aboutsummaryrefslogtreecommitdiff
path: root/contrib/global/PROBLEMS
blob: e30e7e0d3b1e76fddf342fc32a81c2de22692ded (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
GLOBAL cannot recognize following macros and functions.

1. Macro which doesn't end with ';'.

   GLOBAL cannot recognize func() after M(a), because M(a) seems to be
   function definition.

	#define M(a)	static char *string = a;

	M(a)

	func() {
		...
	}

   It should be follows.

	#define M(a)	static char *string = a

	M(a);

	func() {
		...
	}

2. Macro which is a renamed function.

	#define func _func

	_func() {
		...
	}
	main() {
		func();
	}

   In fact, main() calls _func() instead of func() but GLOBAL cannot
   recognize it.