nxstyle: Don't complain on ELF things like Elf32_Hdr

This commit is contained in:
YAMAMOTO Takashi 2020-03-06 11:15:04 +09:00 committed by patacongo
parent e5ea0ac32d
commit 4879f2225e

View File

@ -1283,6 +1283,13 @@ int main(int argc, char **argv, char **envp)
/* No error */ /* No error */
} }
/* Ignore ELF stuff like Elf32_Ehdr. */
else if ((strncmp(&line[ident_index], "Elf", 3) == 0))
{
/* No error */
}
/* Special case hex constants. These will look like /* Special case hex constants. These will look like
* identifiers starting with 'x' or 'X' but preceded * identifiers starting with 'x' or 'X' but preceded
* with '0' * with '0'