/[m4]/m4/m4/ltdl.c
ViewVC logotype

Diff of /m4/m4/ltdl.c

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

revision 1.15 by gary, Fri Aug 15 15:53:04 2003 UTC revision 1.16 by gary, Wed Sep 10 17:12:02 2003 UTC
# Line 29  Foundation, Inc., 59 Temple Place, Suite Line 29  Foundation, Inc., 59 Temple Place, Suite
29  #  include <config.h>  #  include <config.h>
30  #endif  #endif
31    
32    #if WITH_DMALLOC
33    #  undef malloc
34    #  undef realloc
35    #endif
36    
37  #if HAVE_UNISTD_H  #if HAVE_UNISTD_H
38  #  include <unistd.h>  #  include <unistd.h>
39  #endif  #endif
# Line 131  Foundation, Inc., 59 Temple Place, Suite Line 136  Foundation, Inc., 59 Temple Place, Suite
136  #endif  #endif
137    
138    
   
139    
140  /* --- WINDOWS SUPPORT --- */  /* --- WINDOWS SUPPORT --- */
141    
# Line 211  static char   *lt_estrdup      LT_PARAMS((con Line 215  static char   *lt_estrdup      LT_PARAMS((con
215  static lt_ptr lt_emalloc        LT_PARAMS((size_t size));  static lt_ptr lt_emalloc        LT_PARAMS((size_t size));
216  static lt_ptr lt_erealloc       LT_PARAMS((lt_ptr addr, size_t size));  static lt_ptr lt_erealloc       LT_PARAMS((lt_ptr addr, size_t size));
217    
 /* static lt_ptr rpl_realloc    LT_PARAMS((lt_ptr ptr, size_t size)); */  
 #define rpl_realloc realloc  
   
218  /* These are the pointers that can be changed by the caller:  */  /* These are the pointers that can be changed by the caller:  */
219  LT_GLOBAL_DATA lt_ptr (*lt_dlmalloc)    LT_PARAMS((size_t size))  LT_GLOBAL_DATA lt_ptr (*lt_dlmalloc)    LT_PARAMS((size_t size))
220                          = (lt_ptr (*) LT_PARAMS((size_t))) malloc;                          = (lt_ptr (*) LT_PARAMS((size_t))) malloc;
221  LT_GLOBAL_DATA lt_ptr (*lt_dlrealloc)   LT_PARAMS((lt_ptr ptr, size_t size))  LT_GLOBAL_DATA lt_ptr (*lt_dlrealloc)   LT_PARAMS((lt_ptr ptr, size_t size))
222                          = (lt_ptr (*) LT_PARAMS((lt_ptr, size_t))) rpl_realloc;                          = (lt_ptr (*) LT_PARAMS((lt_ptr, size_t))) realloc;
223  LT_GLOBAL_DATA void   (*lt_dlfree)      LT_PARAMS((lt_ptr ptr))  LT_GLOBAL_DATA void   (*lt_dlfree)      LT_PARAMS((lt_ptr ptr))
224                          = (void (*) LT_PARAMS((lt_ptr))) free;                          = (void (*) LT_PARAMS((lt_ptr))) free;
225    
# Line 237  LT_GLOBAL_DATA void   (*lt_dlfree)     LT_PA Line 238  LT_GLOBAL_DATA void   (*lt_dlfree)     LT_PA
238  #else  #else
239    
240  #define LT_DLMALLOC(tp, n)      ((tp *) lt_dlmalloc ((n) * sizeof(tp)))  #define LT_DLMALLOC(tp, n)      ((tp *) lt_dlmalloc ((n) * sizeof(tp)))
241  #define LT_DLREALLOC(tp, p, n)  ((tp *) rpl_realloc ((p), (n) * sizeof(tp)))  #define LT_DLREALLOC(tp, p, n)  ((tp *) lt_dlrealloc ((p), (n) * sizeof(tp)))
242  #define LT_DLFREE(p)                                            \  #define LT_DLFREE(p)                                            \
243          LT_STMT_START { if (p) (p) = (lt_dlfree (p), (lt_ptr) 0); } LT_STMT_END          LT_STMT_START { if (p) (p) = (lt_dlfree (p), (lt_ptr) 0); } LT_STMT_END
244    

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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