Commit 820343cc authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

tools: ynl-gen: complete the C keyword list



C keywords need to be avoided when naming things.
Complete the list (ethtool has at least one thing called "auto").

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9b52fd4b
Loading
Loading
Loading
Loading
+34 −1
Original line number Diff line number Diff line
@@ -1172,7 +1172,40 @@ op_mode_to_wrapper = {
}

_C_KW = {
    'do'
    'auto',
    'bool',
    'break',
    'case',
    'char',
    'const',
    'continue',
    'default',
    'do',
    'double',
    'else',
    'enum',
    'extern',
    'float',
    'for',
    'goto',
    'if',
    'inline',
    'int',
    'long',
    'register',
    'return',
    'short',
    'signed',
    'sizeof',
    'static',
    'struct',
    'switch',
    'typedef',
    'union',
    'unsigned',
    'void',
    'volatile',
    'while'
}