/[ascend]/trunk/base/generic/general/list.c
ViewVC logotype

Diff of /trunk/base/generic/general/list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 707 by johnpye, Fri Mar 31 08:52:57 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 1012  void gl_reverse(struct gl_list_t *list) Line 1012  void gl_reverse(struct gl_list_t *list)
1012    unsigned long c,len;    unsigned long c,len;
1013    
1014    if (list==NULL || list->length <2L) return;    if (list==NULL || list->length <2L) return;
1015    tmpdata = (VOIDPTR *)ascmalloc(list->capacity*sizeof(VOIDPTR));    tmpdata = ASC_NEW_ARRAY(VOIDPTR,(list->capacity));
1016    if (tmpdata==NULL) {    if (tmpdata==NULL) {
1017      Asc_Panic(2, NULL, "gl_reverse out of memory. Bye!\n");      Asc_Panic(2, NULL, "gl_reverse out of memory. Bye!\n");
1018    }    }

Legend:
Removed from v.707  
changed lines
  Added in v.708

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22