michaelrsweet / mxml

Tiny XML library.
https://www.msweet.org/mxml
Apache License 2.0
426 stars 157 forks source link

Add #define for allocation increment #318

Closed michaelrsweet closed 3 weeks ago

michaelrsweet commented 1 month ago

Add a #define in mxml-private.h to control the allocation increment for mxml_set_attr and mxmlIndexNew:

#define _MXML_ALLOC_SIZE 16 // Allocation increment
michaelrsweet commented 3 weeks ago

[master 002c34f] Add MXML_ALLOC_SIZE define (Issue #318)

You can add the define to the CFLAGS environment variable prior to running the configure script to change it at build time.