diff options
author | Werner Koch <[email protected]> | 2013-10-28 06:05:41 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-10-28 06:26:05 +0000 |
commit | a15c35f37ed2b58805adc213029998aa3e52f038 (patch) | |
tree | 49e99409d127af64863166ac17b67a88365f9afd /common/argparse.c | |
parent | scd: fix pinpad input on Windows. (diff) | |
download | gnupg-a15c35f37ed2b58805adc213029998aa3e52f038.tar.gz gnupg-a15c35f37ed2b58805adc213029998aa3e52f038.zip |
doc: Change yat2m to allow arbitrary condition names.
* doc/yat2m.c (MAX_CONDITION_NESTING): New.
(gpgone_defined): Remove.
(condition_s, condition_stack, condition_stack_idx): New.
(cond_is_active, cond_in_verbatim): New.
(add_predefined_macro, set_macro, macro_set_p): New.
(evaluate_conditions, push_condition, pop_condition): New.
(parse_file): Rewrite to use the condition stack.
(top_parse_file): Set prefined macros.
(main): Change -D to define arbitrary macros.
--
This change allows the use of other conditionals than "gpgone" and
thus make "gpgtwoone" et al. actually work. It does now also track
conditionals over included files.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/argparse.c')
0 files changed, 0 insertions, 0 deletions