[Quest-ed-checkins] CVS: quest-3b/src/quest memory.c,1.1.1.1,1.2 quest.c,1.5,1.6
Brought to you by:
alexm
|
From: Alexander M. <al...@us...> - 2002-05-20 19:17:52
|
Update of /cvsroot/quest-ed/quest-3b/src/quest
In directory usw-pr-cvs1:/tmp/cvs-serv28264/src/quest
Modified Files:
memory.c quest.c
Log Message:
Misc. cleanups.
Index: memory.c
===================================================================
RCS file: /cvsroot/quest-ed/quest-3b/src/quest/memory.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** memory.c 11 Aug 2001 16:09:09 -0000 1.1.1.1
--- memory.c 20 May 2002 19:17:45 -0000 1.2
***************
*** 99,103 ****
void *Q_realloc(void *temp, int size)
! {
#ifdef TRACK_MEM_USED
int oldsize=0;
--- 99,103 ----
void *Q_realloc(void *temp, int size)
! { /* TODO: check for NULL and free returning NULL to catch errors */
#ifdef TRACK_MEM_USED
int oldsize=0;
***************
*** 125,129 ****
#endif
! temp = (void *)realloc(temp,size);
#endif
--- 125,129 ----
#endif
! temp = (void *)realloc(temp,size);
#endif
Index: quest.c
===================================================================
RCS file: /cvsroot/quest-ed/quest-3b/src/quest/quest.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** quest.c 27 Aug 2001 21:23:20 -0000 1.5
--- quest.c 20 May 2002 19:17:45 -0000 1.6
***************
*** 140,144 ****
{"help" ,"h" ,"Get help on arguments" ,P_0 ,ACT_CALL ,{f:ARG_Help}},
! {0 , 0, 0, 0, 0,{0}}
};
#define NUM_ARGS ((int)(sizeof(args)/sizeof(args[0])-1))
--- 140,144 ----
{"help" ,"h" ,"Get help on arguments" ,P_0 ,ACT_CALL ,{f:ARG_Help}},
! {0}
};
#define NUM_ARGS ((int)(sizeof(args)/sizeof(args[0])-1))
|