Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | #ifndef __php_phpkw_swg__ |
2 | #define __php_phpkw_swg__ | |
3 | ||
4 | /* Warnings for Php keywords */ | |
5 | #define PHPKW(x) %namewarn("314:" #x " is a php keyword") #x | |
6 | ||
7 | /* | |
8 | from | |
9 | http://aspn.activestate.com/ASPN/docs/PHP/reserved.html | |
10 | ||
11 | */ | |
12 | ||
13 | ||
14 | PHPKW(and); | |
15 | PHPKW($argc); | |
16 | PHPKW($argv); | |
17 | PHPKW(as); | |
18 | PHPKW(break); | |
19 | PHPKW(case); | |
20 | PHPKW(cfunction); | |
21 | PHPKW(class); | |
22 | PHPKW(continue); | |
23 | PHPKW(declare); | |
24 | PHPKW(default); | |
25 | PHPKW(die); | |
26 | PHPKW(do); | |
27 | PHPKW(E_ALL); | |
28 | PHPKW(echo); | |
29 | PHPKW(E_ERROR); | |
30 | PHPKW(else); | |
31 | PHPKW(elseif); | |
32 | PHPKW(enddeclare); | |
33 | PHPKW(endfor); | |
34 | PHPKW(endforeach); | |
35 | PHPKW(endif); | |
36 | PHPKW(endswitch); | |
37 | PHPKW(endwhile); | |
38 | PHPKW(E_PARSE); | |
39 | PHPKW(eval); | |
40 | PHPKW(E_WARNING); | |
41 | PHPKW(exit); | |
42 | PHPKW(extends); | |
43 | PHPKW(FALSE); | |
44 | PHPKW(__FILE__); | |
45 | PHPKW(for); | |
46 | PHPKW(foreach); | |
47 | PHPKW(function); | |
48 | PHPKW(global); | |
49 | PHPKW($HTTP_COOKIE_VARS); | |
50 | PHPKW($HTTP_ENV_VARS); | |
51 | PHPKW($HTTP_GET_VARS); | |
52 | PHPKW($HTTP_POST_FILES); | |
53 | PHPKW($HTTP_POST_VARS); | |
54 | PHPKW($HTTP_SERVER_VARS); | |
55 | PHPKW(if); | |
56 | PHPKW(include); | |
57 | PHPKW(include_once); | |
58 | PHPKW(__LINE__); | |
59 | PHPKW(list); | |
60 | PHPKW(new); | |
61 | PHPKW(not); | |
62 | PHPKW(NULL); | |
63 | PHPKW(old_function); | |
64 | PHPKW(or); | |
65 | PHPKW(parent); | |
66 | PHPKW(PHP_OS); | |
67 | PHPKW($PHP_SELF); | |
68 | PHPKW(PHP_VERSION); | |
69 | PHPKW(print); | |
70 | PHPKW(require); | |
71 | PHPKW(require_once); | |
72 | PHPKW(return); | |
73 | PHPKW(__sleep); | |
74 | PHPKW(static); | |
75 | PHPKW(stdClass); | |
76 | PHPKW(switch); | |
77 | PHPKW($this); | |
78 | PHPKW(TRUE); | |
79 | PHPKW(var); | |
80 | PHPKW(virtual); | |
81 | PHPKW(__wakeup); | |
82 | PHPKW(while); | |
83 | PHPKW(xor); | |
84 | ||
85 | ||
86 | // This is conflicting with _std_deque.i!. | |
87 | PHPKW(empty); | |
88 | ||
89 | ||
90 | #undef PHPKW | |
91 | ||
92 | #endif //__php_phpkw_swg__ |