If there is a wacky macro before a function, it appears as if global
misses the functions after it.
Sample:
test.c:
#define STRUCT_DEF_MACRO(name, type) \
struct name { \
struct type *first; \
}
STRUCT_DEF_MACRO(my_struct, int) struct_instance_name;
void test_func(long dummy1, long dummy2)
{
}
.....
Current behavior: (NOTICE: test_func is missing from the display)
[ezolt@cyclptc11 test]$ ../global-5.9.4/gtags/gtags ; ../global-5.9.4/
global/global -f test.c
STRUCT_DEF_MACRO 1 test.c #define STRUCT_DEF_MACRO(name,
type) \
name 2 test.c struct name {
\
STRUCT_DEF_MACRO 6 test.c STRUCT_DEF_MACRO(my_struct,
int) struct_instance_name;
Expected Behavior:
[ezolt@cyclptc11 test]$ ../global-5.9.4/gtags/gtags ; ../global-5.9.4/
global/global -f test.c
STRUCT_DEF_MACRO 1 test.c #define STRUCT_DEF_MACRO(name,
type) \
name 2 test.c struct name {
\
test_func 8 test.c void test_func(long dummy1,
long dummy2)
(NOTE: If you comment out the call to 'STRUCT_DEF_MACRO', things
behave as expected..)
Cheers,
--Phil
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global