PIPS
|
Go to the source code of this file.
Macros | |
#define | GENERIC_STATIC_OBJECT(PREFIX, name, type) |
Add the attribute ((unused)) for gcc to avoid warning if the functions are not used. More... | |
#define | GENERIC_STATIC_STATUS(PREFIX, name, type, init, cloze) |
#define | GENERIC_FUNCTION(PREFIX, name, type) |
The idea here is to have a static function the name of which is name, and which is a newgen function (that is a ->). More... | |
#define | GENERIC_LOCAL_FUNCTION(name, type) GENERIC_FUNCTION(static, name, type) |
#define | GENERIC_GLOBAL_FUNCTION(name, type) GENERIC_FUNCTION(extern, name, type) |
The idea here is to have a static function the name of which is name, and which is a newgen function (that is a ->).
It embeds the status of some function related to the manipulated data, with the {INIT,SET,RESET,GET,CLOSE} functions. Plus the STORE, UPDATE and LOAD operators. and BOUND_P predicate. This could replace all generic_mappings in PIPS, if the mapping types are declared to newgen. It would also ease the db management. STORE and LOAD are prefered to extend and apply because it sounds like the generic mappings, and it feels as a status/static thing
Definition at line 72 of file newgen_generic_function.h.
#define GENERIC_GLOBAL_FUNCTION | ( | name, | |
type | |||
) | GENERIC_FUNCTION(extern, name, type) |
Definition at line 99 of file newgen_generic_function.h.
#define GENERIC_LOCAL_FUNCTION | ( | name, | |
type | |||
) | GENERIC_FUNCTION(static, name, type) |
Definition at line 96 of file newgen_generic_function.h.
Add the attribute ((unused)) for gcc to avoid warning if the functions are not used.
Definition at line 28 of file newgen_generic_function.h.
Definition at line 49 of file newgen_generic_function.h.