mc/slang/include/jdmacros.h
Pavel Roskin ade4cf0bbf * include/jdmacros.h: Define SLMEMSET and SLMEMCPY
unconditionally, use macros with arguments.
* include/_slang.h: Make it clear which parts are disabled
for compatibility with glib.
* include/slinclud.h: Include malloc.h only if STDC_HEADERS is
not defined.
2002-10-07 15:48:42 +00:00

15 lines
331 B
C

/* Fully rewritten to use glib rather than S-Lang replacements */
#ifndef _JD_MACROS_H_
#define _JD_MACROS_H_
#include <glib.h>
#define SLMEMSET(x,y,z) memset(x,y,z)
#define SLMEMCPY(x,y,z) memcpy(x,y,z)
#define SLfree(x) g_free(x)
#define SLmalloc(x) g_malloc(x)
#define _SLvsnprintf g_vsnprintf
#endif /* _JD_MACROS_H_ */