argtable / argtable3

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.
http://www.argtable.org
Other
372 stars 65 forks source link

Make argtable3 ANSI-C #35

Closed unmanned-player closed 5 years ago

unmanned-player commented 5 years ago

Is argtable3 really ANSI-C compatible?

I have some projects where there are some stringent CFLAGS '-std=c89 -pedantic' on them. When including argtable into that project it reported several errors in the library. This patch adds those CFLAGS and adjusts the code to make it really ANSI-C compatible.

tomghuang commented 5 years ago

@unmanned-player Thank you so much for this patch. It's pretty reasonable to make Argtable compatible to C89, and I'll keep using -std=c89 to check it.