Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
f1b866ef
Commit
f1b866ef
authored
May 24, 2017
by
Uwe Schulzweida
Browse files
Remove MAX_MOD_OPERATORS.
parent
61a445ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules.h
View file @
f1b866ef
...
...
@@ -14,9 +14,8 @@
GNU General Public License for more details.
*/
#ifndef _MODULES_H
#define _MODULES_H
#define MAX_MOD_OPERATORS 128 // maximum number of operators for a module
#ifndef MODULES_H
#define MODULES_H
#include <iostream>
#include <map>
...
...
@@ -30,7 +29,7 @@ typedef void (*dyn_oper_t)(void *arg);
typedef
struct
{
void
*
(
*
func
)(
void
*
);
// Module
std
::
vector
<
std
::
string
>
help
;
// Help
std
::
vector
<
std
::
string
>
help
;
// Help
std
::
vector
<
const
char
*>
operators
;
// Operator names
short
mode
;
// Module mode: 0:intern 1:extern
short
number
;
// Allowed number type
...
...
@@ -46,18 +45,18 @@ extern int NumAliases;
*/
static
std
::
vector
<
void
*>
custom_modules_lib_handles
;
/**
*
Maps operator names to their module names
/**
*
Maps operator names to their module names
*/
static
std
::
map
<
std
::
string
,
std
::
string
>
modules_map
;
/**
*
Contains added modules as values and their names as key
*/
/**
*
Contains added modules as values and their names as key
*/
static
std
::
map
<
std
::
string
,
modules_t
>
modules
;
/***
*
Key: operator alias / Value: operator original name
Key: operator alias / Value: operator original name
*/
static
std
::
map
<
std
::
string
,
std
::
string
>
aliases
;
...
...
@@ -83,4 +82,4 @@ void load_custom_modules(std::string folder_path);
void
close_library_handles
();
#endif
#endif
/*
_
MODULES_H */
#endif
/* MODULES_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment