/tags/rel-1-3-25/SWIG/Lib/php4/php4kw.swg

# · Unknown · 92 lines · 82 code · 10 blank · 0 comment · 0 complexity · 81097b8d7aacdb21ecf327204c4f990f MD5 · raw file

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