version 1.79, 2017/07/04 10:28:09
|
version 1.84, 2017/07/12 15:42:43
|
Line 101
|
Line 101
|
if (((*s_etat_processus).erreur_execution != d_ex) || \ |
if (((*s_etat_processus).erreur_execution != d_ex) || \ |
((*s_etat_processus).erreur_systeme != d_es)) \ |
((*s_etat_processus).erreur_systeme != d_es)) \ |
{ __VA_ARGS__; return(0); } } while(0) |
{ __VA_ARGS__; return(0); } } while(0) |
|
#define structObject struct_objet |
|
#define initializeObject(a, b) do { \ |
|
(*a).descripteur_bibliotheque = (*b).descripteur_bibliotheque; \ |
|
(*a).extension_type = (*b).extension_type; } while(0) |
|
#define objectContainer(a) ((*a).objet) |
|
#define ifIsExternal(a, b) if (((*a).type == EXT) && ((*a).extension_type == b)) |
|
#define elseIfIsExternal(a, b) } else if (((*a).type == EXT) && \ |
|
((*a).extension_type == b)) |
|
#define subType(a) ((*a).extension_type) |
#define integerFormat(a) formateur_nombre(s_etat_processus, a, 'I') |
#define integerFormat(a) formateur_nombre(s_etat_processus, a, 'I') |
|
#define procStatus(a) (*a).s_etat_processus |
|
|
/* |
/* |
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
Line 172
|
Line 182
|
#define declareUnion typedef union { |
#define declareUnion typedef union { |
#define as(name) } name; |
#define as(name) } name; |
|
|
#define target(a) (*a) |
#define target(a) (*(a)) |
#define address(a) (&a) |
#define address(a) (&(a)) |
|
|
#define subroutine(name) int name() |
#define subroutine(name) int name() |
#define beginGroup { __CATCH_SYSTEM_ERROR__; |
#define beginGroup { __CATCH_SYSTEM_ERROR__; |
Line 354
|
Line 364
|
#define endSubroutine END } |
#define endSubroutine END } |
|
|
#define notice(s, ...) __CATCH_SYSTEM_ERROR__; \ |
#define notice(s, ...) __CATCH_SYSTEM_ERROR__; \ |
do { if (affichage_rplso == d_vrai) \ |
do { ufprintf(s, __VA_ARGS__); fflush(s); } while(0) |
{ ufprintf(s, __VA_ARGS__); fflush(s); } } while(0) |
|
#define logger(...) __CATCH_SYSTEM_ERROR__; \ |
#define logger(...) __CATCH_SYSTEM_ERROR__; \ |
do { syslog(LOG_NOTICE, __VA_ARGS__); } while(0) |
do { syslog(LOG_NOTICE, __VA_ARGS__); } while(0) |
|
|
Line 1057
|
Line 1066
|
((*rpl_object).type == CHN) |
((*rpl_object).type == CHN) |
|
|
#define ifIsString(rpl_object) if (isString(rpl_object)) |
#define ifIsString(rpl_object) if (isString(rpl_object)) |
#define elseIfIsString(rpl_object) else if (isString(rpl_object)) |
#define elseIfIsString(rpl_object) } else if (isString(rpl_object)) |
|
|
#define setString(rpl_object, string) do { \ |
#define setString(rpl_object, string) do { \ |
struct_processus *s_etat_processus; \ |
struct_processus *s_etat_processus; \ |
Line 1237
|
Line 1246
|
} \ |
} \ |
} } while(0) |
} } while(0) |
|
|
|
// NON |
|
#define createObject(rpl_object) do { \ |
|
if (rpl_object != NULL) \ |
|
systemError("Reallocated object"); \ |
|
if ((rpl_object = _allocation(NON)) == NULL) \ |
|
systemError("Memory allocation error"); \ |
|
(*rpl_object).objet = NULL; \ |
|
} while(0) |
|
|
// EXT |
// EXT |
#define createExternalObject(rpl_object, subtype) do { \ |
#define createExternalObject(rpl_object, subtype) do { \ |
if (rpl_object != NULL) \ |
if (rpl_object != NULL) \ |