Browse Source

Rename a few generic names to unique names

They can be a problem for the platforms like NuttX, where
the namespace is flat for everything including apps and libraries.
pull/63/head
YAMAMOTO Takashi 4 years ago
parent
commit
32a5d8cdf4
  1. 11
      src/argtable3_private.h

11
src/argtable3_private.h

@ -76,6 +76,17 @@ typedef void(arg_panicfn)(const char* fmt, ...);
} while (0) } while (0)
#endif #endif
/*
* Rename a few generic names to unique names.
* They can be a problem for the platforms like NuttX, where
* the namespace is flat for everything including apps and libraries.
*/
#define xmalloc argtable3_xmalloc
#define xcalloc argtable3_xcalloc
#define xrealloc argtable3_xrealloc
#define xfree argtable3_xfree
extern void dbg_printf(const char* fmt, ...); extern void dbg_printf(const char* fmt, ...);
extern void arg_set_panic(arg_panicfn* proc); extern void arg_set_panic(arg_panicfn* proc);
extern void* xmalloc(size_t size); extern void* xmalloc(size_t size);

Loading…
Cancel
Save