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:
parent
f0026a3818
commit
6e0b6a6665
@ -135,6 +135,9 @@ gen_header()
|
||||
while read line; do
|
||||
LC_COLLATE=C
|
||||
case $line in
|
||||
'#stop')
|
||||
exit 0
|
||||
;;
|
||||
'#conditional')
|
||||
unconditional=
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user