summaryrefslogtreecommitdiffstats
path: root/contrib/global/PROBLEMS
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/global/PROBLEMS')
-rw-r--r--contrib/global/PROBLEMS38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/global/PROBLEMS b/contrib/global/PROBLEMS
new file mode 100644
index 0000000..e30e7e0
--- /dev/null
+++ b/contrib/global/PROBLEMS
@@ -0,0 +1,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.
OpenPOWER on IntegriCloud