mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Support for abbreviated struct declarations.
This commit is contained in:
@@ -713,7 +713,7 @@ Input::read_input ()
|
||||
_struct_decl = struct_decl;
|
||||
/* Set _struct_tag to the naked "struct something". */
|
||||
const char *p;
|
||||
for (p = struct_decl; *p && *p != '{' && *p != '\n'; p++)
|
||||
for (p = struct_decl; *p && *p != '{' && *p != ';' && *p != '\n'; p++)
|
||||
;
|
||||
for (; p > struct_decl;)
|
||||
if (p[-1] == '\n' || p[-1] == ' ' || p[-1] == '\t')
|
||||
|
||||
Reference in New Issue
Block a user