diff options
author | 2007-07-30 10:03:11 +0000 | |
---|---|---|
committer | 2007-07-30 10:03:11 +0000 | |
commit | c51bd17e3cbc8b5b8d36b41f91d3dfa802a7d5d9 (patch) | |
tree | 935e4432ea2a67185db8b49538c5ce5fbe2d05c6 /sys/net/pfkeyv2_parsemessage.c | |
parent | everywhere except in Var_Parse, we always add/append variables to the (diff) | |
download | wireguard-openbsd-c51bd17e3cbc8b5b8d36b41f91d3dfa802a7d5d9.tar.xz wireguard-openbsd-c51bd17e3cbc8b5b8d36b41f91d3dfa802a7d5d9.zip |
introduce a Var_Substi to substitute on intervals.
Since we don't really know how to change Var_Subst and dependent functions,
we cheat, and copy the string to a buffer instead.
Clean-up the parser a bit: reorganize the include files lookup function:
introduce a resolve_include_filename function that figures out the full name
of the file, introduce a handle_include_file that does all the include file
handling, and rename the functions into handle_xxx_include, so that we
can remove most comments.
Rename ParseIsCond into handle_bsd_command, cut most of its code into
constituent functions.
Semantic changes:
- follow the rules that, if an optional construct does not parse correctly,
then it's not a real extension, and give the normal parser a chance to figure
it out. If the syntax checks out, semantic errors ARE real errors.
- allow variables to not be defined in include file names, no reason not to.
okay miod@
Diffstat (limited to 'sys/net/pfkeyv2_parsemessage.c')
0 files changed, 0 insertions, 0 deletions