ArchWizard

DGD/

source navigation ]
diff markup ]
identifier search ]
file search ]
Version: [ 1.0.a0 ] [ 1.1 ] [ 1.2 ] [ 1.2p1 ] [ 1.2p2 ] [ 1.2p3 ] [ 1.2p4 ] [ 1.2.151 ]

  1 # ifdef DEBUG
  2 
  3 # define ALLOC(type, size)                                                    \
  4                         ((type *) (m_alloc(sizeof(type) * (size_t) (size),    \
  5                                            __FILE__, __LINE__)))
  6 # define REALLOC(mem, type, size1, size2)                                     \
  7                         ((type *) (m_realloc((char *) (mem),                  \
  8                                              sizeof(type) * (size_t) (size1), \
  9                                              sizeof(type) * (size_t) (size2), \
 10                                              __FILE__, __LINE__)))
 11 extern char *m_alloc    P((size_t, char*, int));
 12 extern char *m_realloc  P((char*, size_t, size_t, char*, int));
 13 
 14 # else
 15 
 16 # define ALLOC(type, size)                                                    \
 17                         ((type *) (m_alloc(sizeof(type) * (size_t) (size))))
 18 # define REALLOC(mem, type, size1, size2)                                     \
 19                         ((type *) (m_realloc((char *) (mem),                  \
 20                                              sizeof(type) * (size_t) (size1), \
 21                                              sizeof(type) * (size_t) (size2))))
 22 extern char *m_alloc    P((size_t));
 23 extern char *m_realloc  P((char*, size_t, size_t));
 24 
 25 # endif
 26 
 27 # define FREE(mem)      m_free((char *) (mem))
 28 
 29 extern void  m_init     P((size_t, size_t));
 30 extern void  m_free     P((char*));
 31 extern void  m_dynamic  P((void));
 32 extern void  m_static   P((void));
 33 extern bool  m_check    P((void));
 34 extern void  m_purge    P((void));
 35 extern void  m_finish   P((void));
 36 
 37 typedef struct {
 38     Uint smemsize;      /* static memory size */
 39     Uint smemused;      /* static memory used */
 40     Uint dmemsize;      /* dynamic memory used */
 41     Uint dmemused;      /* dynamic memory used */
 42 } allocinfo;
 43 
 44 extern allocinfo *m_info P((void));
 45 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.