[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
With a wacky macro before it, 'global' appears to miss a function
From: |
Phillip Ezolt |
Subject: |
With a wacky macro before it, 'global' appears to miss a function |
Date: |
Fri, 22 Apr 2011 14:57:51 -0400 |
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)
address@hidden 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:
address@hidden 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
- With a wacky macro before it, 'global' appears to miss a function,
Phillip Ezolt <=
- Re: With a wacky macro before it, 'global' appears to miss a function, Ezolt, Phillip, 2011/04/24
- Re: With a wacky macro before it, 'global' appears to miss a function, Shigio YAMAGUCHI, 2011/04/24
- Re: With a wacky macro before it, 'global' appears to miss a function, Phillip Ezolt, 2011/04/25
- Re: With a wacky macro before it, 'global' appears to miss a function, Shigio YAMAGUCHI, 2011/04/26
- Re: With a wacky macro before it, 'global' appears to miss a function, Marc Herbert, 2011/04/27
- Re: With a wacky macro before it, 'global' appears to miss a function, Shigio YAMAGUCHI, 2011/04/27