Home GnuPG

doc: Change yat2m to allow arbitrary condition names.
9a912f8c4f36Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

From GnuPG master commit a15c35f37ed2b58805adc213029998aa3e52f038

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 16 2013, 4:54 PM
Parents
rC0d3bd23d7f73: tests: Add SHA-512 to the long hash test.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC9a912f8c4f36: doc: Change yat2m to allow arbitrary condition names. (authored by Werner Koch <wk@gnupg.org>).Dec 16 2013, 4:54 PM