Diff for /rpl/src/rplexternals.h between versions 1.80 and 1.84

version 1.80, 2017/07/05 13:53:40 version 1.84, 2017/07/12 15:42:43
Line 105 Line 105
 #define initializeObject(a, b)  do { \  #define initializeObject(a, b)  do { \
             (*a).descripteur_bibliotheque = (*b).descripteur_bibliotheque; \              (*a).descripteur_bibliotheque = (*b).descripteur_bibliotheque; \
             (*a).extension_type = (*b).extension_type; } while(0)              (*a).extension_type = (*b).extension_type; } while(0)
 #define objectContainer(a) (*a).objet  #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 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 360 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 1063 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 1243 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) \

Removed from v.1.80  
changed lines
  Added in v.1.84


CVSweb interface <joel.bertrand@systella.fr>