--- rpl/src/rpl.h 2019/11/06 17:31:47 1.336 +++ rpl/src/rpl.h 2019/11/11 13:16:25 1.337 @@ -1,3 +1,4 @@ +#define DEBUG_MEMOIRE /* ================================================================================ RPL/2 (R) version 4.1.32 @@ -731,13 +732,11 @@ void *debug_memoire_modification(void *p void debug_memoire_retrait(void *ptr); void debug_memoire_verification(); -pid_t debug_fork(); - #define malloc(s) debug_memoire_ajout(s, __FUNCTION__, __LINE__, #s) #define free(s) debug_memoire_retrait(s) #define realloc(s, t) debug_memoire_modification(s, t, \ __FUNCTION__, __LINE__, #t) -#define fork() debug_fork() +#define fork() debug_fork(s_etat_processus) #endif #ifdef DEBUG_RETURN @@ -2557,6 +2556,10 @@ typedef struct processus } struct_processus; #endif +#ifdef DEBUG_MEMOIRE +pid_t debug_fork(struct_processus *s_etat_processus); +#endif + /* ================================================================================