2008-01-18 01:50:35 +03:00
|
|
|
|
|
|
|
typedef unsigned long ulong;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
typedef unsigned char uchar;
|
|
|
|
|
|
|
|
#define _XOPEN_SOURCE 600
|
|
|
|
#define IXP_P9_STRUCTS
|
|
|
|
#define IXP_NO_P9_
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2010-05-22 06:52:47 +04:00
|
|
|
#include <stuff/util.h>
|
2008-01-18 01:50:35 +03:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
|
|
|
#define strdup my_strdup
|
2010-05-22 06:52:47 +04:00
|
|
|
#define smprint my_smprint
|
|
|
|
#define vsmprint my_vsmprint
|
2008-01-18 01:50:35 +03:00
|
|
|
|
|
|
|
static char* smprint(const char*, ...);
|
|
|
|
static char* vsmprint(const char*, va_list);
|
|
|
|
static char* strdup(const char*);
|
|
|
|
|
|
|
|
#define nil ((void*)0)
|
|
|
|
#define nelem(ary) (sizeof(ary) / sizeof(*ary))
|
|
|
|
|