wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

hack.h (597B)


      1 
      2 typedef unsigned long	ulong;
      3 typedef unsigned int	uint;
      4 typedef unsigned char	uchar;
      5 
      6 #define _XOPEN_SOURCE 600
      7 #define IXP_P9_STRUCTS
      8 #define IXP_NO_P9_
      9 #include <assert.h>
     10 #include <stdarg.h>
     11 #include <stdbool.h>
     12 #include <stdint.h>
     13 #include <stdlib.h>
     14 #include <string.h>
     15 #include <stuff/util.h>
     16 #include <X11/Xlib.h>
     17 
     18 #define strdup my_strdup
     19 #define smprint my_smprint
     20 #define vsmprint my_vsmprint
     21 
     22 static char*	smprint(const char*, ...);
     23 static char*	vsmprint(const char*, va_list);
     24 static char*	strdup(const char*);
     25 
     26 #define nil ((void*)0)
     27 #define nelem(ary) (sizeof(ary) / sizeof(*ary))
     28