hl_c.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * This program is free software; you can redistribute it and/or
  3. * modify it under the terms of the GNU General Public License
  4. * as published by the Free Software Foundation; either version 2
  5. * of the License, or (at your option) any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. * Author: g0tsu
  12. * Email: g0tsu at dnmx.0rg
  13. */
  14. const int HL_C_EXPR_SIZ = 14;
  15. const char *HL_C_EXPR[] = {
  16. "goto",
  17. "break",
  18. "return",
  19. "continue",
  20. "asm",
  21. "case",
  22. "default",
  23. "if",
  24. "else",
  25. "switch",
  26. "while",
  27. "for",
  28. "do",
  29. "sizeof",
  30. "typeof",
  31. };
  32. const int HL_C_TYPE_SIZ = 50;
  33. const char *HL_C_TYPE[] = {
  34. "int",
  35. "long",
  36. "short",
  37. "char",
  38. "void",
  39. "signed",
  40. "unsigned",
  41. "static",
  42. "float",
  43. "double",
  44. "size_t",
  45. "wchar_t",
  46. "time_t",
  47. "va_list",
  48. "jmp_buf",
  49. "FILE",
  50. "DIR",
  51. "wctype_t",
  52. "const",
  53. "bool",
  54. "complex",
  55. "struct",
  56. "union",
  57. "int8_t",
  58. "int16_t",
  59. "int32_t",
  60. "int64_t",
  61. "uint8_t",
  62. "uint16_t",
  63. "uint32_t",
  64. "uint64_t",
  65. "int_least8_t",
  66. "int_least16_t",
  67. "int_least32_t",
  68. "int_least64_t",
  69. "uint_least8_t",
  70. "uint_least16_t",
  71. "uint_least32_t",
  72. "uint_least64_t",
  73. "int_fast8_t",
  74. "int_fast16_t",
  75. "int_fast32_t",
  76. "int_fast64_t",
  77. "uint_fast8_t",
  78. "uint_fast16_t",
  79. "uint_fast32_t",
  80. "uint_fast64_t",
  81. "intptr_t",
  82. "uintptr_t",
  83. "intmax_t",
  84. "uintmax_t"
  85. };
  86. const int HL_C_DECL_SIZ = 14;
  87. const char *HL_C_DECL[] = {
  88. "define",
  89. "typedef",
  90. "inline",
  91. "auto",
  92. "extern",
  93. "inline",
  94. "register",
  95. "volatile",
  96. "include",
  97. "endif",
  98. "ifdef",
  99. "ifndef",
  100. "else",
  101. "enum"
  102. };