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:
parent
a840a14f1f
commit
0e2c5e226b
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user