Update externals with latest versions.

This commit is contained in:
ben
2025-11-14 23:04:39 +01:00
parent 5db7304983
commit cb4ba1cb3e
7 changed files with 4273 additions and 5120 deletions

View File

@@ -35,8 +35,25 @@
#include <stdlib.h>
#ifndef ARG_ENABLE_TRACE
#define ARG_ENABLE_TRACE 0
#endif /* ARG_ENABLE_TRACE */
#ifndef ARG_ENABLE_LOG
#define ARG_ENABLE_LOG 1
#endif /* ARG_ENABLE_LOG */
/* Use the embedded getopt as the system getopt(3) */
#ifndef ARG_REPLACE_GETOPT
#define ARG_REPLACE_GETOPT 1
#endif /* ARG_REPLACE_GETOPT */
/* Size of the buffer pre-allocated for dynamic strings.
* If the length exceeds this size, the buffer will be dynamically allocated.
*/
#ifndef ARG_DSTR_SIZE
#define ARG_DSTR_SIZE 200
#endif /* ARG_DSTR_SIZE */
#ifdef __cplusplus
extern "C" {
@@ -81,10 +98,10 @@ typedef void(arg_panicfn)(const char* fmt, ...);
* 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
#define xmalloc malloc
#define xcalloc calloc
#define xrealloc realloc
#define xfree free
extern void dbg_printf(const char* fmt, ...);
extern void arg_set_panic(arg_panicfn* proc);