mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
ade4cf0bbf
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.
15 lines
331 B
C
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_ */
|