Main Page | Class List | File List | Class Members | File Members

misc.h

Go to the documentation of this file.
00001 /* Miscellaneous functions.
00002  *
00003  */
00004 
00005 #ifndef _MISC_H
00006 #define _MISC_H 1
00007 
00008 #define UNREACHABLE 0
00009 
00010 #define DPRINT if(DEBUG) printf
00011 #define IPRINT printf
00012 #define EPRINT eprintf
00013 
00014 inline void eprintf (const char *template, ...);
00015 inline void *xmalloc (size_t size);
00016 inline void xfree(void* x);
00017 inline void mutex_lock(char *caller, pthread_mutex_t *mut);
00018 inline void mutex_unlock(char *caller, pthread_mutex_t *mut);
00019 inline long get_uclock();
00020 inline long get_mclock();
00021 void safe_exit(int val);
00022 inline unsigned ceil_div(unsigned a, unsigned b);
00023 
00024 #endif /* _MISC_H */

Generated on Sun May 14 13:36:52 2006 by  doxygen 1.4.2