xlat: extend syntax

* xlat/gen.sh: Implement #stop directive that stops preprocessor
at the line it has been encountered during the first pass.  This could
be used, for example, to provide fallback definitions for constants
without defining xlat tables.
This commit is contained in:
Дмитрий Левин 2016-12-29 00:30:26 +00:00
parent f0026a3818
commit 6e0b6a6665

View File

@ -135,6 +135,9 @@ gen_header()
while read line; do
LC_COLLATE=C
case $line in
'#stop')
exit 0
;;
'#conditional')
unconditional=
;;