/[bison]/bison/lib/xalloc.h
ViewVC logotype

Diff of /bison/lib/xalloc.h

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

revision 1.2 by akim, Fri Feb 2 14:56:44 2001 UTC revision 1.3 by ra, Tue Aug 21 19:47:13 2001 UTC
# Line 83  char *xstrdup PARAMS ((const char *str)) Line 83  char *xstrdup PARAMS ((const char *str))
83  /* Return a malloc'ed copy of SRC. */  /* Return a malloc'ed copy of SRC. */
84  # define CLONE(Src) CCLONE (Src, 1)  # define CLONE(Src) CCLONE (Src, 1)
85    
86    /* Wrappers for standard functions. */
87    #define CALLOC(t, n) ((t *) calloc (sizeof (t), (n)))
88    #define MALLOC(t, n) ((t *) xmalloc (sizeof (t) * (n)))
89    #define REALLOC(o, t, n) ((t *) xrealloc ((o), sizeof (t) * (n)))
90    
91  #endif /* !XALLOC_H_ */  #endif /* !XALLOC_H_ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26