Files
discount/pgm_options.h
david parsons e199a7aa9e if an unknown flag was in the middle of a comma-delimited flag
string (like -flatex,bogus,footnote), the markdown program
would incorrectly report the first flag as unknown (because set_flag
returned 0 on error, 1 on success and the strtok() of the flag string
had already replaced the commas up to that point with nulls.)

Change it so that set_flag returns null on successful processing and a
pointer to the offending flag on an unknown one.
2017-09-25 12:42:47 -07:00

10 lines
187 B
C

#ifndef PGM_OPTIONS_D
#define PGM_OPTIONS_D
#include <mkdio.h>
char *set_flag(mkd_flag_t *flags, char *optionstring);
void show_flags(int byname, int verbose);
#endif/*PGM_OPTIONS_D*/