]> granicus.if.org Git - strace/commit
xlat: handle xlat constants that are not identifiers
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jun 2018 11:04:09 +0000 (11:04 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jun 2018 11:04:09 +0000 (11:04 +0000)
commit41bfa3bf5fe5a8818a287b086b2d77627e049106
tree96200b2b5dd69eeabe06c2f9ec6941c04deac995
parent3a7d7d8f8c1cb29ee48cede606cd8f8c0c6aa6ab
xlat: handle xlat constants that are not identifiers

Extend xlat generator to support such input lines as
IPV4_DEVCONF_FORWARDING-1 0

This is going to be used later in IFLA_AF_SPEC decoding.

* xlat/gen.sh (cond_def): If the xlat value is not an identifier name,
extract an identifier name from the beginning of xlat value.
xlat/gen.sh