diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-08-06 23:31:51 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-08-06 21:31:51 +0000 |
commit | 5f14f07b4e9e88d95025dca091f4106400ba2d63 (patch) | |
tree | eb5e273df0cc353db58d40e6f21a6186af921f6b | |
parent | 121c997eda95ac2dfded31913747dbddc16e356f (diff) | |
download | strace-5f14f07b4e9e88d95025dca091f4106400ba2d63.tar.gz |
xlat/gen.sh: enable symbolic constants that start with "!"
That allows defining symbolic constants that are negations of other
constants.
* src/xlat/gen.sh (gen_header) <2nd pass>: Allow "!" to start a symbolic
constant.
-rwxr-xr-x | src/xlat/gen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlat/gen.sh b/src/xlat/gen.sh index ae3614b8c..368264d69 100755 --- a/src/xlat/gen.sh +++ b/src/xlat/gen.sh @@ -287,7 +287,7 @@ gen_header() '#val_type '*) val_type="${line#\#val_type }" ;; - [A-Z_]*) # symbolic constants + [A-Z_!]*) # symbolic constants if [ -n "${unconditional}" ]; then print_xlat "${line}" else |