Browse Source
Currently several argtable3 options can be modified only by changing them in source code. This commit makes these options configurable by adding ifndef guards: ARG_DSTR_SIZE, ARG_CMD_NAME_LEN, ARG_CMD_DESCRIPTION_LEN. ARG_DSTR_SIZE option is moved to argtable_private.h for two reasons: - Having them in argtable_private.h allows defining compiler flags (such as -DARG_DSTR_SIZE=100) for argtable3 files only. If the definitions are in the public header file (argtable3.h) then technically we have to pass -DARG_DSTR_SIZE=100 also to other files in the project, so that they evaluate argtable3.h in the same way. - Having them in argtable3.h is actually not necessary, since they are not used anywhere in the public interface. For the same two reasons, ARG_REPLACE_GETOPT has also been moved into argtable3_private.h in the same commit.pull/79/head
Ivan Grokhotkov
2 years ago
3 changed files with 23 additions and 5 deletions
Loading…
Reference in new issue