Hi,
> C/C++ parser cannot handle typedef of the form of 
>  typedef enum tag_name TYPEDEF_NAME;
> correctly. 
> The attached patch corrects this bug.
...
> [ patched version ]
$ global -f b.c
...
> foo                 2 b.c              typedef enum foo { X } BAR, *BAZ;
> $ global -frs b.c
> foo                 3 b.c              typedef enum foo BAR, *BAZ;

Understanding it took time for a while.
Thank you for nice work.
--
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to