From: Dmitry V. Levin Date: Thu, 29 Dec 2016 00:30:26 +0000 (+0000) Subject: xlat: extend syntax X-Git-Tag: v4.16~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e0b6a6665fa10adcaeeb7ed561e3abd4f9b1628;p=strace 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. --- diff --git a/xlat/gen.sh b/xlat/gen.sh index ec632803..d3dec2aa 100755 --- a/xlat/gen.sh +++ b/xlat/gen.sh @@ -135,6 +135,9 @@ gen_header() while read line; do LC_COLLATE=C case $line in + '#stop') + exit 0 + ;; '#conditional') unconditional= ;;