mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
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.
10 lines
187 B
C
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*/
|