xlat: extend syntax

* xlat/gen.sh: Implement #conditional directive that turns on
preprocessor checks turned off earlier by #unconditional directive.
This commit is contained in:
Дмитрий Левин 2016-06-06 15:08:45 +00:00
parent a840a14f1f
commit 0e2c5e226b

View File

@ -135,6 +135,9 @@ gen_header()
while read line; do
LC_COLLATE=C
case $line in
'#conditional')
unconditional=
;;
'#unconditional')
unconditional=1
;;
@ -190,6 +193,9 @@ gen_header()
while read line; do
LC_COLLATE=C
case ${line} in
'#conditional')
unconditional=
;;
'#unconditional')
unconditional=1
;;