Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- After several frustrating weeks I finally succeed in repro’ing the …

…map being stuck bug. The reason it was so hard to find is the scenario where waze wants to display a bitmap but due to some reason the image size is 0. This leads to endless loop while trying to see what text size should fit into such bitmap.

-	Fixed the appbar issues - the appbar will be always visible now.
  • Loading branch information...
commit a0d52a3fe33434d7b1951ebdccebb7a30cee6860 1 parent 5f439ee
@meirtsvi authored
Showing with 57,839 additions and 54,379 deletions.
  1. +919 −919 WazeWP7/CibylCallTable.cs
  2. BIN  WazeWP7/Resources/program.data.bin
  3. BIN  WazeWP75.suo
  4. BIN  bb_waze_code/j2me/c/program
  5. BIN  bb_waze_code/j2me/include/cibyl-syscalls.db
  6. +35 −0 bb_waze_code/j2me/include/syscalls/ansi/include/assert.h
  7. +88 −0 bb_waze_code/j2me/include/syscalls/ansi/include/ctype.h
  8. +40 −0 bb_waze_code/j2me/include/syscalls/ansi/include/dirent.h
  9. +18 −0 bb_waze_code/j2me/include/syscalls/ansi/include/errno.h
  10. +23 −0 bb_waze_code/j2me/include/syscalls/ansi/include/fcntl.h
  11. +128 −0 bb_waze_code/j2me/include/syscalls/ansi/include/limits.h
  12. +126 −0 bb_waze_code/j2me/include/syscalls/ansi/include/math.h
  13. +69 −0 bb_waze_code/j2me/include/syscalls/ansi/include/setjmp.h
  14. +133 −0 bb_waze_code/j2me/include/syscalls/ansi/include/stdarg.h
  15. +419 −0 bb_waze_code/j2me/include/syscalls/ansi/include/stddef.h
  16. +25 −0 bb_waze_code/j2me/include/syscalls/ansi/include/stdint.h
  17. +101 −0 bb_waze_code/j2me/include/syscalls/ansi/include/stdio.h
  18. +67 −0 bb_waze_code/j2me/include/syscalls/ansi/include/stdlib.h
  19. +74 −0 bb_waze_code/j2me/include/syscalls/ansi/include/string.h
  20. +19 −0 bb_waze_code/j2me/include/syscalls/ansi/include/sys/stat.h
  21. +31 −0 bb_waze_code/j2me/include/syscalls/ansi/include/sys/time.h
  22. +16 −0 bb_waze_code/j2me/include/syscalls/ansi/include/sys/types.h
  23. +54 −0 bb_waze_code/j2me/include/syscalls/ansi/include/time.h
  24. +17 −0 bb_waze_code/j2me/include/syscalls/ansi/include/unistd.h
  25. +46 −0 bb_waze_code/j2me/include/syscalls/async_net/include/async_net.h
  26. +36 −0 bb_waze_code/j2me/include/syscalls/async_net/include/ui_worker.h
  27. +68 −0 bb_waze_code/j2me/include/syscalls/gps_manager/include/gps_manager.h
  28. +112 −0 bb_waze_code/j2me/include/syscalls/java/include/java/io.h
  29. +101 −0 bb_waze_code/j2me/include/syscalls/java/include/java/lang.h
  30. +58 −0 bb_waze_code/j2me/include/syscalls/java/include/java/util.h
  31. +36 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/__alert.h
  32. +64 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/__font.h
  33. +168 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/io.h
  34. +301 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/lcdui.h
  35. +113 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/lcdui/game.h
  36. +30 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/media.h
  37. +30 −0 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/midlet.h
  38. +29 −0 bb_waze_code/j2me/include/syscalls/json_lib/include/json_lib.h
  39. +15 −0 bb_waze_code/j2me/include/syscalls/rim_device/include/device_specific.h
  40. +30 −0 bb_waze_code/j2me/include/syscalls/rim_timer_mgr/include/rim_timer_mgr.h
  41. +348 −0 bb_waze_code/j2me/include/syscalls/rimapi/include/rimapi.h
  42. +37 −0 bb_waze_code/j2me/include/syscalls/rimapi_os5/include/rimapi_os5.h
  43. +138 −0 bb_waze_code/j2me/include/syscalls/softfloat/include/cibyl-softfloat.h
  44. +42 −0 bb_waze_code/j2me/include/syscalls/sound_mgr/include/sound_mgr.h
  45. +43 −0 bb_waze_code/j2me/include/syscalls/tile_storage/include/tile_storage.h
  46. +38 −0 bb_waze_code/j2me/include/syscalls/timer_mgr/include/timer_mgr.h
  47. +33 −0 bb_waze_code/j2me/include/syscalls/waze/include/roadmap_math_j2me.h
  48. +8 −3 bb_waze_code/src/ssd/ssd_button.c
  49. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Mips/__init__.pyc
  50. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Mips/instruction.pyc
  51. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Mips/javamethod.pyc
  52. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Mips/mips.pyc
  53. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Mips/optimizer.pyc
  54. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Builtins/__init__.pyc
  55. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Builtins/base.pyc
  56. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Builtins/builtins.pyc
  57. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Builtins/exceptions.pyc
  58. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Builtins/softfloat.pyc
  59. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Mips/__init__.pyc
  60. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/Mips/mult.pyc
  61. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/Optimization/__init__.pyc
  62. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/__init__.pyc
  63. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/basicblock.pyc
  64. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/bytecode.pyc
  65. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/codeblock.pyc
  66. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/function.pyc
  67. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/javaclass.pyc
  68. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/labelmanager.pyc
  69. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/profile.pyc
  70. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/register.pyc
  71. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/BinaryTranslation/translator.pyc
  72. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/CompiledHelpers/__init__.pyc
  73. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/CompiledHelpers/helpers.pyc
  74. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/__init__.pyc
  75. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/classes.pyc
  76. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/emit.pyc
  77. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/parse.pyc
  78. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/template.pyc
  79. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/__init__.pyc
  80. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/const_and_inc.pyc
  81. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/const_and_pop.pyc
  82. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/const_store_aload.pyc
  83. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/double_pop.pyc
  84. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/double_stores.pyc
  85. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/dup_pop.pyc
  86. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/getstatic_v1_pop.pyc
  87. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/goto_next_line.pyc
  88. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/jal_arguments.pyc
  89. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/jal_return.pyc
  90. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/push_store_inc.pyc
  91. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/putstatic_getstatic.pyc
  92. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/PeepholeOptimizer/templates/unused_label.pyc
  93. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/SyscallHandling/__init__.pyc
  94. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/SyscallHandling/function.pyc
  95. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/SyscallHandling/syscallgenerator.pyc
  96. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/__init__.pyc
  97. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/config.pyc
  98. BIN  cibyl/mips-cibyl-elf/bin/python/Cibyl/elf.pyc
  99. BIN  cibyl/mips-cibyl-elf/bin/python/which.pyc
  100. BIN  cibyl/mips-cibyl-elf/mips-cibyl-elf/sys-root/usr/include/cibyl-syscalls.db
  101. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Mips/__init__.pyc
  102. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Mips/instruction.pyc
  103. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Mips/javamethod.pyc
  104. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Mips/mips.pyc
  105. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Mips/optimizer.pyc
  106. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Builtins/__init__.pyc
  107. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Builtins/base.pyc
  108. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Builtins/builtins.pyc
  109. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Builtins/exceptions.pyc
  110. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Builtins/softfloat.pyc
  111. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Mips/__init__.pyc
  112. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/Mips/mult.pyc
  113. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/Optimization/__init__.pyc
  114. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/__init__.pyc
  115. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/basicblock.pyc
  116. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/bytecode.pyc
  117. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/codeblock.pyc
  118. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/function.pyc
  119. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/javaclass.pyc
  120. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/labelmanager.pyc
  121. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/profile.pyc
  122. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/register.pyc
  123. BIN  cibyl/tools/python/Cibyl/BinaryTranslation/translator.pyc
  124. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/__init__.pyc
  125. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/classes.pyc
  126. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/emit.pyc
  127. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/parse.pyc
  128. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/template.pyc
  129. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/__init__.pyc
  130. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/const_and_inc.pyc
  131. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/const_and_pop.pyc
  132. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/const_store_aload.pyc
  133. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/double_pop.pyc
  134. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/double_stores.pyc
  135. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/dup_pop.pyc
  136. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/getstatic_v1_pop.pyc
  137. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/goto_next_line.pyc
  138. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/jal_arguments.pyc
  139. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/jal_return.pyc
  140. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/push_store_inc.pyc
  141. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/putstatic_getstatic.pyc
  142. BIN  cibyl/tools/python/Cibyl/PeepholeOptimizer/templates/unused_label.pyc
  143. BIN  cibyl/tools/python/Cibyl/SyscallHandling/__init__.pyc
  144. BIN  cibyl/tools/python/Cibyl/SyscallHandling/function.pyc
  145. BIN  cibyl/tools/python/Cibyl/SyscallHandling/syscallgenerator.pyc
  146. BIN  cibyl/tools/python/Cibyl/__init__.pyc
  147. BIN  cibyl/tools/python/Cibyl/config.pyc
  148. BIN  cibyl/tools/python/Cibyl/elf.pyc
  149. BIN  cibyl/tools/python/which.pyc
  150. +18 −18 converted/Cibyl.j
  151. +4 −4 converted/Cibyl1.j
  152. +32 −32 converted/Cibyl100.j
  153. +32 −32 converted/Cibyl101.j
  154. +8 −8 converted/Cibyl102.j
  155. +4 −4 converted/Cibyl103.j
  156. +138 −138 converted/Cibyl104.j
  157. +218 −218 converted/Cibyl105.j
  158. +6 −6 converted/Cibyl106.j
  159. +52 −52 converted/Cibyl107.j
  160. +1,028 −970 converted/Cibyl108.j
  161. +1,541 −1,541 converted/Cibyl109.j
  162. +8 −8 converted/Cibyl11.j
  163. +1,229 −1,229 converted/Cibyl110.j
  164. +1,266 −1,266 converted/Cibyl111.j
  165. +1,452 −1,452 converted/Cibyl112.j
  166. +1,224 −1,224 converted/Cibyl113.j
  167. +1,360 −1,360 converted/Cibyl114.j
  168. +1,270 −1,270 converted/Cibyl115.j
  169. +1,226 −1,226 converted/Cibyl116.j
  170. +1,356 −1,356 converted/Cibyl117.j
  171. +1,194 −1,194 converted/Cibyl118.j
  172. +1,286 −1,286 converted/Cibyl119.j
  173. +1,202 −1,202 converted/Cibyl120.j
  174. +1,175 −1,175 converted/Cibyl121.j
  175. +1,226 −1,226 converted/Cibyl122.j
  176. +1,300 −1,300 converted/Cibyl123.j
  177. +1,282 −1,282 converted/Cibyl124.j
  178. +1,206 −1,206 converted/Cibyl125.j
  179. +1,137 −1,137 converted/Cibyl126.j
  180. +1,169 −1,169 converted/Cibyl127.j
  181. +1,259 −1,259 converted/Cibyl128.j
  182. +2,037 −2,037 converted/Cibyl129.j
  183. +1,241 −1,241 converted/Cibyl130.j
  184. +1,285 −1,285 converted/Cibyl131.j
  185. +1,558 −1,558 converted/Cibyl132.j
  186. +1,909 −1,909 converted/Cibyl133.j
  187. +1,353 −1,353 converted/Cibyl134.j
  188. +1,307 −1,307 converted/Cibyl135.j
  189. +1,205 −1,205 converted/Cibyl136.j
  190. +1,116 −1,116 converted/Cibyl137.j
  191. +1,184 −1,184 converted/Cibyl138.j
  192. +1,439 −1,439 converted/Cibyl139.j
  193. +8 −8 converted/Cibyl14.j
  194. +1,357 −1,357 converted/Cibyl140.j
  195. +1,452 −1,452 converted/Cibyl141.j
  196. +1,255 −1,255 converted/Cibyl142.j
  197. +1,638 −1,640 converted/Cibyl143.j
  198. +1,289 −1,289 converted/Cibyl144.j
  199. +858 −858 converted/Cibyl145.j
  200. +26 −26 converted/Cibyl16.j
  201. +270 −270 converted/Cibyl17.j
  202. +6 −6 converted/Cibyl18.j
  203. +16 −16 converted/Cibyl19.j
  204. +2 −2 converted/Cibyl2.j
  205. +2 −2 converted/Cibyl20.j
  206. +4 −4 converted/Cibyl21.j
  207. +12 −12 converted/Cibyl22.j
  208. +4 −4 converted/Cibyl23.j
  209. +60 −60 converted/Cibyl24.j
  210. +50 −50 converted/Cibyl25.j
  211. +4 −4 converted/Cibyl26.j
  212. +26 −26 converted/Cibyl27.j
  213. +2 −2 converted/Cibyl28.j
  214. +350 −350 converted/Cibyl29.j
  215. +30 −30 converted/Cibyl3.j
  216. +28 −28 converted/Cibyl30.j
  217. +2 −2 converted/Cibyl31.j
  218. +80 −80 converted/Cibyl32.j
  219. +72 −72 converted/Cibyl33.j
  220. +130 −130 converted/Cibyl34.j
  221. +10 −10 converted/Cibyl35.j
  222. +12 −12 converted/Cibyl36.j
  223. +62 −62 converted/Cibyl37.j
  224. +96 −96 converted/Cibyl38.j
  225. +16 −16 converted/Cibyl39.j
  226. +38 −38 converted/Cibyl4.j
  227. +6 −6 converted/Cibyl40.j
  228. +12 −12 converted/Cibyl42.j
  229. +46 −46 converted/Cibyl43.j
  230. +92 −92 converted/Cibyl44.j
  231. +152 −152 converted/Cibyl45.j
  232. +24 −24 converted/Cibyl46.j
  233. +20 −20 converted/Cibyl47.j
  234. +6 −6 converted/Cibyl49.j
  235. +74 −74 converted/Cibyl5.j
  236. +8 −8 converted/Cibyl50.j
  237. +4 −4 converted/Cibyl51.j
  238. +82 −82 converted/Cibyl52.j
  239. +216 −216 converted/Cibyl53.j
  240. +302 −302 converted/Cibyl54.j
  241. +30 −30 converted/Cibyl55.j
  242. +6 −6 converted/Cibyl58.j
  243. +6 −6 converted/Cibyl59.j
  244. +144 −144 converted/Cibyl6.j
  245. +8 −8 converted/Cibyl60.j
  246. +70 −70 converted/Cibyl61.j
  247. +36 −36 converted/Cibyl62.j
  248. +106 −106 converted/Cibyl63.j
  249. +98 −98 converted/Cibyl64.j
  250. +26 −26 converted/Cibyl65.j
  251. +22 −22 converted/Cibyl66.j
  252. +2 −2 converted/Cibyl67.j
  253. +40 −40 converted/Cibyl68.j
  254. +12 −12 converted/Cibyl69.j
  255. +18 −18 converted/Cibyl70.j
  256. +10 −10 converted/Cibyl71.j
  257. +26 −26 converted/Cibyl72.j
Sorry, we could not display the entire diff because it was too big.
View
1,838 WazeWP7/CibylCallTable.cs
919 additions, 919 deletions not shown
View
BIN  WazeWP7/Resources/program.data.bin
Binary file not shown
View
BIN  WazeWP75.suo
Binary file not shown
View
BIN  bb_waze_code/j2me/c/program
Binary file not shown
View
BIN  bb_waze_code/j2me/include/cibyl-syscalls.db
Binary file not shown
View
35 bb_waze_code/j2me/include/syscalls/ansi/include/assert.h
@@ -0,0 +1,35 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: assert.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl stdlib stuff
+*
+* $Id: assert.h 12045 2006-11-13 19:58:48Z ska $
+*
+********************************************************************/
+#ifndef __ASSERT_H__
+#define __ASSERT_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#if defined(NDEBUG)
+# define assert(x)
+#else
+# include <stdio.h>
+# include <stdlib.h>
+# define assert(x) do { \
+if ( ! (x) ) \
+{\
+printf("ASSERTION FAILED at %d in %s:%s\n", __LINE__, __FILE__, __FUNCTION__); \
+exit(1); \
+} \
+} while(0)
+#endif
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__ASSERT_H__ */
View
88 bb_waze_code/j2me/include/syscalls/ansi/include/ctype.h
@@ -0,0 +1,88 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: ctype.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl ctype
+*
+* $Id: ctype.h 12096 2006-11-14 15:49:07Z ska $
+*
+********************************************************************/
+#ifndef __CTYPE_H__
+#define __CTYPE_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+static inline int isascii(int c)
+{
+return ( (c & ~0x7f) == 0 );
+}
+
+static inline int isupper(int c)
+{
+return ( c >= 'A' && c <= 'Z' );
+}
+
+static inline int islower(int c)
+{
+return ( c >= 'a' && c <= 'z' );
+}
+
+static inline int isalpha(int c)
+{
+return isupper(c) || islower(c);
+}
+
+static inline int isspace(int c)
+{
+return (c == ' ') || (c == '\f') || (c == '\n') || (c == '\r') ||
+(c == '\t') || (c == '\v');
+}
+
+static inline int isdigit(int c)
+{
+return (c >= '0') && (c <= '9');
+}
+
+static inline int isalnum(int c)
+{
+return isalpha(c) || isdigit(c);
+}
+
+static inline int isprint(int c)
+{
+c &= 0x7f;
+
+return (c >= 32 && c < 127);
+}
+
+static inline int isgraph(int c)
+{
+return isprint(c) && c != ' ';
+}
+
+static inline int iscntrl(int c)
+{
+return c <= 0x1f || c == 0x7f;
+}
+
+static inline int isxdigit(int c)
+{
+return isdigit(c) || (c >= 'A' && c <= 'F') ||
+(c >= 'a' && c <= 'f');
+}
+
+static inline int ispunct(int c)
+{
+return isprint(c) && !isspace(c) && !isalnum(c);
+}
+
+extern int tolower (int c);
+extern int toupper (int c);
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__CTYPE_H__ */
View
40 bb_waze_code/j2me/include/syscalls/ansi/include/dirent.h
@@ -0,0 +1,40 @@
+/*********************************************************************
+*
+* Copyright (C) 2007, Blekinge Institute of Technology
+*
+* Filename: dirent.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: dirents for Cibyl
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __DIRENT_H__
+#define __DIRENT_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <stdio.h>
+
+struct dirent
+{
+char d_name[256]; /* filename */
+};
+
+typedef struct
+{
+struct s_cibyl_dops *ops;
+void *priv; /* private stuff */
+} DIR;
+
+extern DIR *opendir(const char *name);
+extern int closedir(DIR *dir);
+extern struct dirent *readdir(DIR *dir);
+extern int readdir_r(DIR *dir, struct dirent *entry,
+struct dirent **result);
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__DIRENT_H__ */
View
18 bb_waze_code/j2me/include/syscalls/ansi/include/errno.h
@@ -0,0 +1,18 @@
+/*********************************************************************
+*
+* Copyright (C) 2007, Simon Kagstrom
+*
+* Filename: errno.h
+* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
+* Description: Errno impl.
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __ERRNO_H__
+#define __ERRNO_H__
+
+/* TMP! */
+#define errno 0
+
+#endif /* !__ERRNO_H__ */
View
23 bb_waze_code/j2me/include/syscalls/ansi/include/fcntl.h
@@ -0,0 +1,23 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: fcntl.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: fcntl
+*
+* $Id: fcntl.h 12097 2006-11-14 15:49:17Z ska $
+*
+********************************************************************/
+#ifndef __FCNTL_H__
+#define __FCNTL_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+/* Fill me with stuff! */
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__FCNTL_H__ */
View
128 bb_waze_code/j2me/include/syscalls/ansi/include/limits.h
@@ -0,0 +1,128 @@
+/* Copyright (C) 1991, 92, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+This file is part of the GNU C Library.
+
+The GNU C Library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+The GNU C Library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with the GNU C Library; if not, write to the Free
+Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA. */
+
+/*
+* ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types <limits.h>
+*/
+
+#ifndef _LIBC_LIMITS_H_
+#define _LIBC_LIMITS_H_ 1
+
+
+/* Maximum length of any multibyte character in any locale.
+We define this value here since the gcc header does not define
+the correct value. */
+#define MB_LEN_MAX 16
+
+/* We only protect from multiple inclusion here, because all the other
+#include's protect themselves, and in GCC 2 we may #include_next through
+multiple copies of this file before we get to GCC's. */
+# ifndef _LIMITS_H
+# define _LIMITS_H 1
+
+/* We don't have #include_next.
+Define ANSI <limits.h> for standard 32-bit words. */
+
+/* These assume 8-bit `char's, 16-bit `short int's,
+and 32-bit `int's and `long int's. */
+
+/* Number of bits in a `char'. */
+# define CHAR_BIT 8
+
+/* Minimum and maximum values a `signed char' can hold. */
+# define SCHAR_MIN (-128)
+# define SCHAR_MAX 127
+
+/* Maximum value an `unsigned char' can hold. (Minimum is 0.) */
+# define UCHAR_MAX 255
+
+/* Minimum and maximum values a `char' can hold. */
+# ifdef __CHAR_UNSIGNED__
+# define CHAR_MIN 0
+# define CHAR_MAX UCHAR_MAX
+# else
+# define CHAR_MIN SCHAR_MIN
+# define CHAR_MAX SCHAR_MAX
+# endif
+
+/* Minimum and maximum values a `signed short int' can hold. */
+# define SHRT_MIN (-32768)
+# define SHRT_MAX 32767
+
+/* Maximum value an `unsigned short int' can hold. (Minimum is 0.) */
+# define USHRT_MAX 65535
+
+/* Minimum and maximum values a `signed int' can hold. */
+# define INT_MIN (-INT_MAX - 1)
+# define INT_MAX 2147483647
+
+/* Maximum value an `unsigned int' can hold. (Minimum is 0.) */
+# define UINT_MAX 4294967295U
+
+/* Minimum and maximum values a `signed long int' can hold. */
+# if __WORDSIZE == 64
+# define LONG_MAX 9223372036854775807L
+# else
+# define LONG_MAX 2147483647L
+# endif
+# define LONG_MIN (-LONG_MAX - 1L)
+
+/* Maximum value an `unsigned long int' can hold. (Minimum is 0.) */
+# if __WORDSIZE == 64
+# define ULONG_MAX 18446744073709551615UL
+# else
+# define ULONG_MAX 4294967295UL
+# endif
+
+# ifdef __USE_ISOC99
+
+/* Minimum and maximum values a `signed long long int' can hold. */
+# define LLONG_MAX 9223372036854775807LL
+# define LLONG_MIN (-LLONG_MAX - 1LL)
+
+/* Maximum value an `unsigned long long int' can hold. (Minimum is 0.) */
+# define ULLONG_MAX 18446744073709551615ULL
+
+# endif /* ISO C99 */
+
+# endif /* limits.h */
+
+#endif /* !_LIBC_LIMITS_H_ */
+
+/* Get the compiler's limits.h, which defines almost all the ISO constants.
+
+We put this #include_next outside the double inclusion check because
+it should be possible to include this file more than once and still get
+the definitions from gcc's header. */
+#if defined __GNUC__ && !defined _GCC_LIMITS_H_
+
+/* The <limits.h> files in some gcc versions don't define LLONG_MIN,
+LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for
+ages are available. */
+# ifdef __USE_ISOC99
+# ifndef LLONG_MIN
+# define LLONG_MIN LONG_LONG_MIN
+# endif
+# ifndef LLONG_MAX
+# define LLONG_MAX LONG_LONG_MAX
+# endif
+# ifndef ULLONG_MAX
+# define ULLONG_MAX ULONG_LONG_MAX
+# endif
+# endif
+#endif
View
126 bb_waze_code/j2me/include/syscalls/ansi/include/math.h
@@ -0,0 +1,126 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: math.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl math
+*
+* $Id: math.h 14111 2007-03-10 08:37:37Z ska $
+*
+********************************************************************/
+#ifndef __MATH_H__
+#define __MATH_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <cibyl-softfloat.h>
+
+/* These are normally conditionally defined, but we skip that */
+# define M_E 2.7182818284590452354 /* e */
+# define M_LOG2E 1.4426950408889634074 /* log_2 e */
+# define M_LOG10E 0.43429448190325182765 /* log_10 e */
+# define M_LN2 0.69314718055994530942 /* log_e 2 */
+# define M_LN10 2.30258509299404568402 /* log_e 10 */
+# define M_PI 3.14159265358979323846 /* pi */
+# define M_PI_2 1.57079632679489661923 /* pi/2 */
+# define M_PI_4 0.78539816339744830962 /* pi/4 */
+# define M_1_PI 0.31830988618379067154 /* 1/pi */
+# define M_2_PI 0.63661977236758134308 /* 2/pi */
+# define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */
+# define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
+# define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
+
+/* Requires GCC >= 3.3 */
+#define NAN (__builtin_nanf(""))
+#define INFINITY (__builtin_inff())
+
+extern double sin(double x);
+extern float sinf(float x);
+
+extern double cos(double x);
+extern float cosf(float x);
+
+extern double atan2(double x, double y);
+extern float atan2f(float x, float y);
+
+extern double atan(double x);
+extern float atanf(float x);
+
+extern double asin(double x);
+extern float asinf(float x);
+
+extern double acos(double x);
+extern float acosf(float x);
+
+extern double log10(double x);
+extern float log10f(float x);
+
+extern double log(double x);
+extern float logf(float x);
+
+extern double pow(double x, double y);
+extern float powf(float x, float y);
+
+
+extern double sqrt(double x);
+extern float sqrtf(float x);
+
+extern double exp(double x);
+extern float expf(float x);
+
+extern double floor(double x);
+extern float floorf(float x);
+
+
+static inline double fabs(double a)
+{
+if (a < 0.0)
+return -a;
+return a;
+}
+
+static inline float fabsf(float a)
+{
+if (a < 0.0)
+return -a;
+return a;
+}
+
+static inline int isnan(double A)
+{
+double_union_t a;
+
+a.f = A;
+
+return __isnan_helper(&a.i);
+}
+
+#define isinf(x) \
+(sizeof (x) == sizeof (float) \
+? __isinff (x) \
+: __isinf (x))
+
+static inline int __isinf(double A)
+{
+double_union_t a;
+
+a.f = A;
+
+return __isinf_helper(&a.i);
+}
+
+static inline int __isinff(double A)
+{
+float_union_t a;
+
+a.f = A;
+
+return __isinff_helper(a.i);
+}
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__MATH_H__ */
View
69 bb_waze_code/j2me/include/syscalls/ansi/include/setjmp.h
@@ -0,0 +1,69 @@
+/*********************************************************************
+*
+* Copyright (C) 2008, Simon Kagstrom
+*
+* Filename: stdio.h
+* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
+* Description: Cibyl setjmp.h
+*
+* $Id: $
+*
+********************************************************************/
+#ifndef __SETJMP_H__
+#define __SETJMP_H__
+
+#include <cibyl.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+typedef int NOPH_SetjmpException_t;
+
+#define __NR_NOPH_SetjmpException_new 183 /* ansi */
+static inline _syscall2(NOPH_SetjmpException_t,NOPH_SetjmpException_new, int, cookie, int, val)
+#define __NR_NOPH_SetjmpException_getCookie 184 /* ansi */
+static inline _syscall1(int,NOPH_SetjmpException_getCookie, NOPH_SetjmpException_t, e)
+#define __NR_NOPH_SetjmpException_getValue 185 /* ansi */
+static inline _syscall1(int,NOPH_SetjmpException_getValue, NOPH_SetjmpException_t, e)
+
+typedef int jmp_buf[1];
+
+/* "Builtins" */
+extern int __NOPH_setjmp(int cookie);
+
+static inline int __attribute__((returns_twice)) setjmp(jmp_buf env)
+{
+int cookie;
+int out;
+
+asm(".pushsection .cibylsetjmp\n"
+"1: \n"
+".long 2f \n"
+".popsection \n"
+" la %[cookie], 1b \n"
+"2: jal __NOPH_setjmp \n"
+" move %[out], $2 \n"
+""
+: [cookie]"=r"(cookie), [out]"=r"(out)
+:
+: "memory", "$2", "$4");
+env[0] = cookie;
+
+/* The longjmp return value will be "generated" */
+return out;
+}
+
+static inline void longjmp(jmp_buf env, int val)
+{
+NOPH_SetjmpException_t e = NOPH_SetjmpException_new(env[0], val);
+
+/* Raise the exception */
+NOPH_throw(e);
+}
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
View
133 bb_waze_code/j2me/include/syscalls/ansi/include/stdarg.h
@@ -0,0 +1,133 @@
+/* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to
+the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA. */
+
+/* As a special exception, if you include this header file into source
+files compiled by GCC, this header file does not by itself cause
+the resulting executable to be covered by the GNU General Public
+License. This exception does not however invalidate any other
+reasons why the executable file might be covered by the GNU General
+Public License. */
+
+/*
+* ISO C Standard: 7.15 Variable arguments <stdarg.h>
+*/
+
+#ifndef _STDARG_H
+#ifndef _ANSI_STDARG_H_
+#ifndef __need___va_list
+#define _STDARG_H
+#define _ANSI_STDARG_H_
+#endif /* not __need___va_list */
+#undef __need___va_list
+
+/* Define __gnuc_va_list. */
+#define __STDC_VERSION__ 199900
+#ifndef __GNUC_VA_LIST
+#define __GNUC_VA_LIST
+typedef __builtin_va_list __gnuc_va_list;
+#endif
+
+/* Define the standard macros for the user,
+if this invocation was from the user program. */
+#ifdef _STDARG_H
+
+#define va_start(v,l) __builtin_va_start(v,l)
+#define va_end(v) __builtin_va_end(v)
+#define va_arg(v,l) __builtin_va_arg(v,l)
+#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L
+#define va_copy(d,s) __builtin_va_copy(d,s)
+#endif
+#define __va_copy(d,s) __builtin_va_copy(d,s)
+
+/* Define va_list, if desired, from __gnuc_va_list. */
+/* We deliberately do not define va_list when called from
+stdio.h, because ANSI C says that stdio.h is not supposed to define
+va_list. stdio.h needs to have access to that data type,
+but must not use that name. It should use the name __gnuc_va_list,
+which is safe because it is reserved for the implementation. */
+
+#ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */
+#undef _VA_LIST
+#endif
+
+#ifdef _BSD_VA_LIST
+#undef _BSD_VA_LIST
+#endif
+
+#if defined(__svr4__) || (defined(_SCO_DS) && !defined(__VA_LIST))
+/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
+so we must avoid testing it and setting it here.
+SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
+have no conflict with that. */
+#ifndef _VA_LIST_
+#define _VA_LIST_
+#ifdef __i860__
+#ifndef _VA_LIST
+#define _VA_LIST va_list
+#endif
+#endif /* __i860__ */
+typedef __gnuc_va_list va_list;
+#ifdef _SCO_DS
+#define __VA_LIST
+#endif
+#endif /* _VA_LIST_ */
+#else /* not __svr4__ || _SCO_DS */
+
+/* The macro _VA_LIST_ is the same thing used by this file in Ultrix.
+But on BSD NET2 we must not test or define or undef it.
+(Note that the comments in NET 2's ansi.h
+are incorrect for _VA_LIST_--see stdio.h!) */
+#if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__) || defined(WINNT)
+/* The macro _VA_LIST_DEFINED is used in Windows NT 3.5 */
+#ifndef _VA_LIST_DEFINED
+/* The macro _VA_LIST is used in SCO Unix 3.2. */
+#ifndef _VA_LIST
+/* The macro _VA_LIST_T_H is used in the Bull dpx2 */
+#ifndef _VA_LIST_T_H
+/* The macro __va_list__ is used by BeOS. */
+#ifndef __va_list__
+typedef __gnuc_va_list va_list;
+#endif /* not __va_list__ */
+#endif /* not _VA_LIST_T_H */
+#endif /* not _VA_LIST */
+#endif /* not _VA_LIST_DEFINED */
+#if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__))
+#define _VA_LIST_
+#endif
+#ifndef _VA_LIST
+#define _VA_LIST
+#endif
+#ifndef _VA_LIST_DEFINED
+#define _VA_LIST_DEFINED
+#endif
+#ifndef _VA_LIST_T_H
+#define _VA_LIST_T_H
+#endif
+#ifndef __va_list__
+#define __va_list__
+#endif
+
+#endif /* not _VA_LIST_, except on certain systems */
+
+#endif /* not __svr4__ */
+
+#endif /* _STDARG_H */
+
+#endif /* not _ANSI_STDARG_H_ */
+#endif /* not _STDARG_H */
View
419 bb_waze_code/j2me/include/syscalls/ansi/include/stddef.h
@@ -0,0 +1,419 @@
+/* Copyright (C) 1989, 1997, 1998, 1999, 2000, 2002, 2004
+Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING. If not, write to
+the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA. */
+
+/* As a special exception, if you include this header file into source
+files compiled by GCC, this header file does not by itself cause
+the resulting executable to be covered by the GNU General Public
+License. This exception does not however invalidate any other
+reasons why the executable file might be covered by the GNU General
+Public License. */
+
+/*
+* ISO C Standard: 7.17 Common definitions <stddef.h>
+*/
+#if (!defined(_STDDEF_H) && !defined(_STDDEF_H_) && !defined(_ANSI_STDDEF_H) \
+&& !defined(__STDDEF_H__)) \
+|| defined(__need_wchar_t) || defined(__need_size_t) \
+|| defined(__need_ptrdiff_t) || defined(__need_NULL) \
+|| defined(__need_wint_t)
+
+/* Any one of these symbols __need_* means that GNU libc
+wants us just to define one data type. So don't define
+the symbols that indicate this file's entire job has been done. */
+#if (!defined(__need_wchar_t) && !defined(__need_size_t) \
+&& !defined(__need_ptrdiff_t) && !defined(__need_NULL) \
+&& !defined(__need_wint_t))
+#define _STDDEF_H
+#define _STDDEF_H_
+/* snaroff@next.com says the NeXT needs this. */
+#define _ANSI_STDDEF_H
+/* Irix 5.1 needs this. */
+#define __STDDEF_H__
+#endif
+
+#ifndef __sys_stdtypes_h
+/* This avoids lossage on SunOS but only if stdtypes.h comes first.
+There's no way to win with the other order! Sun lossage. */
+
+/* On 4.3bsd-net2, make sure ansi.h is included, so we have
+one less case to deal with in the following. */
+#if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__)
+#include <machine/ansi.h>
+#endif
+/* On FreeBSD 5, machine/ansi.h does not exist anymore... */
+#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
+#include <sys/_types.h>
+#endif
+
+/* In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
+defined if the corresponding type is *not* defined.
+FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_ */
+#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_)
+#if !defined(_SIZE_T_) && !defined(_BSD_SIZE_T_)
+#define _SIZE_T
+#endif
+#if !defined(_PTRDIFF_T_) && !defined(_BSD_PTRDIFF_T_)
+#define _PTRDIFF_T
+#endif
+/* On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_
+instead of _WCHAR_T_. */
+#if !defined(_WCHAR_T_) && !defined(_BSD_WCHAR_T_)
+#ifndef _BSD_WCHAR_T_
+#define _WCHAR_T
+#endif
+#endif
+/* Undef _FOO_T_ if we are supposed to define foo_t. */
+#if defined (__need_ptrdiff_t) || defined (_STDDEF_H_)
+#undef _PTRDIFF_T_
+#undef _BSD_PTRDIFF_T_
+#endif
+#if defined (__need_size_t) || defined (_STDDEF_H_)
+#undef _SIZE_T_
+#undef _BSD_SIZE_T_
+#endif
+#if defined (__need_wchar_t) || defined (_STDDEF_H_)
+#undef _WCHAR_T_
+#undef _BSD_WCHAR_T_
+#endif
+#endif /* defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) */
+
+/* Sequent's header files use _PTRDIFF_T_ in some conflicting way.
+Just ignore it. */
+#if defined (__sequent__) && defined (_PTRDIFF_T_)
+#undef _PTRDIFF_T_
+#endif
+
+/* On VxWorks, <type/vxTypesBase.h> may have defined macros like
+_TYPE_size_t which will typedef size_t. fixincludes patched the
+vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
+not defined, and so that defining this macro defines _GCC_SIZE_T.
+If we find that the macros are still defined at this point, we must
+invoke them so that the type is defined as expected. */
+#if defined (_TYPE_ptrdiff_t) && (defined (__need_ptrdiff_t) || defined (_STDDEF_H_))
+_TYPE_ptrdiff_t;
+#undef _TYPE_ptrdiff_t
+#endif
+#if defined (_TYPE_size_t) && (defined (__need_size_t) || defined (_STDDEF_H_))
+_TYPE_size_t;
+#undef _TYPE_size_t
+#endif
+#if defined (_TYPE_wchar_t) && (defined (__need_wchar_t) || defined (_STDDEF_H_))
+_TYPE_wchar_t;
+#undef _TYPE_wchar_t
+#endif
+
+/* In case nobody has defined these types, but we aren't running under
+GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
+__WCHAR_TYPE__ have reasonable values. This can happen if the
+parts of GCC is compiled by an older compiler, that actually
+include gstddef.h, such as collect2. */
+
+/* Signed type of difference of two pointers. */
+
+/* Define this type if we are doing the whole job,
+or if we want this type in particular. */
+#if defined (_STDDEF_H) || defined (__need_ptrdiff_t)
+#ifndef _PTRDIFF_T /* in case <sys/types.h> has defined it. */
+#ifndef _T_PTRDIFF_
+#ifndef _T_PTRDIFF
+#ifndef __PTRDIFF_T
+#ifndef _PTRDIFF_T_
+#ifndef _BSD_PTRDIFF_T_
+#ifndef ___int_ptrdiff_t_h
+#ifndef _GCC_PTRDIFF_T
+#define _PTRDIFF_T
+#define _T_PTRDIFF_
+#define _T_PTRDIFF
+#define __PTRDIFF_T
+#define _PTRDIFF_T_
+#define _BSD_PTRDIFF_T_
+#define ___int_ptrdiff_t_h
+#define _GCC_PTRDIFF_T
+#ifndef __PTRDIFF_TYPE__
+#define __PTRDIFF_TYPE__ long int
+#endif
+typedef __PTRDIFF_TYPE__ ptrdiff_t;
+#endif /* _GCC_PTRDIFF_T */
+#endif /* ___int_ptrdiff_t_h */
+#endif /* _BSD_PTRDIFF_T_ */
+#endif /* _PTRDIFF_T_ */
+#endif /* __PTRDIFF_T */
+#endif /* _T_PTRDIFF */
+#endif /* _T_PTRDIFF_ */
+#endif /* _PTRDIFF_T */
+
+/* If this symbol has done its job, get rid of it. */
+#undef __need_ptrdiff_t
+
+#endif /* _STDDEF_H or __need_ptrdiff_t. */
+
+/* Unsigned type of `sizeof' something. */
+
+/* Define this type if we are doing the whole job,
+or if we want this type in particular. */
+#if defined (_STDDEF_H) || defined (__need_size_t)
+#ifndef __size_t__ /* BeOS */
+#ifndef __SIZE_T__ /* Cray Unicos/Mk */
+#ifndef _SIZE_T /* in case <sys/types.h> has defined it. */
+#ifndef _SYS_SIZE_T_H
+#ifndef _T_SIZE_
+#ifndef _T_SIZE
+#ifndef __SIZE_T
+#ifndef _SIZE_T_
+#ifndef _BSD_SIZE_T_
+#ifndef _SIZE_T_DEFINED_
+#ifndef _SIZE_T_DEFINED
+#ifndef _BSD_SIZE_T_DEFINED_ /* Darwin */
+#ifndef _SIZE_T_DECLARED /* FreeBSD 5 */
+#ifndef ___int_size_t_h
+#ifndef _GCC_SIZE_T
+#ifndef _SIZET_
+#ifndef __size_t
+#define __size_t__ /* BeOS */
+#define __SIZE_T__ /* Cray Unicos/Mk */
+#define _SIZE_T
+#define _SYS_SIZE_T_H
+#define _T_SIZE_
+#define _T_SIZE
+#define __SIZE_T
+#define _SIZE_T_
+#define _BSD_SIZE_T_
+#define _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED
+#define _BSD_SIZE_T_DEFINED_ /* Darwin */
+#define _SIZE_T_DECLARED /* FreeBSD 5 */
+#define ___int_size_t_h
+#define _GCC_SIZE_T
+#define _SIZET_
+#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
+/* __size_t is a typedef on FreeBSD 5!, must not trash it. */
+#else
+#define __size_t
+#endif
+#ifndef __SIZE_TYPE__
+#define __SIZE_TYPE__ long unsigned int
+#endif
+#if !(defined (__GNUG__) && defined (size_t))
+typedef __SIZE_TYPE__ size_t;
+#ifdef __BEOS__
+typedef long ssize_t;
+#endif /* __BEOS__ */
+#endif /* !(defined (__GNUG__) && defined (size_t)) */
+#endif /* __size_t */
+#endif /* _SIZET_ */
+#endif /* _GCC_SIZE_T */
+#endif /* ___int_size_t_h */
+#endif /* _SIZE_T_DECLARED */
+#endif /* _BSD_SIZE_T_DEFINED_ */
+#endif /* _SIZE_T_DEFINED */
+#endif /* _SIZE_T_DEFINED_ */
+#endif /* _BSD_SIZE_T_ */
+#endif /* _SIZE_T_ */
+#endif /* __SIZE_T */
+#endif /* _T_SIZE */
+#endif /* _T_SIZE_ */
+#endif /* _SYS_SIZE_T_H */
+#endif /* _SIZE_T */
+#endif /* __SIZE_T__ */
+#endif /* __size_t__ */
+#undef __need_size_t
+#endif /* _STDDEF_H or __need_size_t. */
+
+
+/* Wide character type.
+Locale-writers should change this as necessary to
+be big enough to hold unique values not between 0 and 127,
+and not (wchar_t) -1, for each defined multibyte character. */
+
+/* Define this type if we are doing the whole job,
+or if we want this type in particular. */
+#if defined (_STDDEF_H) || defined (__need_wchar_t)
+#ifndef __wchar_t__ /* BeOS */
+#ifndef __WCHAR_T__ /* Cray Unicos/Mk */
+#ifndef _WCHAR_T
+#ifndef _T_WCHAR_
+#ifndef _T_WCHAR
+#ifndef __WCHAR_T
+#ifndef _WCHAR_T_
+#ifndef _BSD_WCHAR_T_
+#ifndef _BSD_WCHAR_T_DEFINED_ /* Darwin */
+#ifndef _BSD_RUNE_T_DEFINED_ /* Darwin */
+#ifndef _WCHAR_T_DECLARED /* FreeBSD 5 */
+#ifndef _WCHAR_T_DEFINED_
+#ifndef _WCHAR_T_DEFINED
+#ifndef _WCHAR_T_H
+#ifndef ___int_wchar_t_h
+#ifndef __INT_WCHAR_T_H
+#ifndef _GCC_WCHAR_T
+#define __wchar_t__ /* BeOS */
+#define __WCHAR_T__ /* Cray Unicos/Mk */
+#define _WCHAR_T
+#define _T_WCHAR_
+#define _T_WCHAR
+#define __WCHAR_T
+#define _WCHAR_T_
+#define _BSD_WCHAR_T_
+#define _WCHAR_T_DEFINED_
+#define _WCHAR_T_DEFINED
+#define _WCHAR_T_H
+#define ___int_wchar_t_h
+#define __INT_WCHAR_T_H
+#define _GCC_WCHAR_T
+#define _WCHAR_T_DECLARED
+
+/* On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_
+instead of _WCHAR_T_, and _BSD_RUNE_T_ (which, unlike the other
+symbols in the _FOO_T_ family, stays defined even after its
+corresponding type is defined). If we define wchar_t, then we
+must undef _WCHAR_T_; for BSD/386 1.1 (and perhaps others), if
+we undef _WCHAR_T_, then we must also define rune_t, since
+headers like runetype.h assume that if machine/ansi.h is included,
+and _BSD_WCHAR_T_ is not defined, then rune_t is available.
+machine/ansi.h says, "Note that _WCHAR_T_ and _RUNE_T_ must be of
+the same type." */
+#ifdef _BSD_WCHAR_T_
+#undef _BSD_WCHAR_T_
+#ifdef _BSD_RUNE_T_
+#if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE)
+typedef _BSD_RUNE_T_ rune_t;
+#define _BSD_WCHAR_T_DEFINED_
+#define _BSD_RUNE_T_DEFINED_ /* Darwin */
+#if defined (__FreeBSD__) && (__FreeBSD__ < 5)
+/* Why is this file so hard to maintain properly? In contrast to
+the comment above regarding BSD/386 1.1, on FreeBSD for as long
+as the symbol has existed, _BSD_RUNE_T_ must not stay defined or
+redundant typedefs will occur when stdlib.h is included after this file. */
+#undef _BSD_RUNE_T_
+#endif
+#endif
+#endif
+#endif
+/* FreeBSD 5 can't be handled well using "traditional" logic above
+since it no longer defines _BSD_RUNE_T_ yet still desires to export
+rune_t in some cases... */
+#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
+#if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE)
+#if __BSD_VISIBLE
+#ifndef _RUNE_T_DECLARED
+typedef __rune_t rune_t;
+#define _RUNE_T_DECLARED
+#endif
+#endif
+#endif
+#endif
+
+#ifndef __WCHAR_TYPE__
+#define __WCHAR_TYPE__ int
+#endif
+#ifndef __cplusplus
+typedef __WCHAR_TYPE__ wchar_t;
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif /* _WCHAR_T_DECLARED */
+#endif /* _BSD_RUNE_T_DEFINED_ */
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif /* __WCHAR_T__ */
+#endif /* __wchar_t__ */
+#undef __need_wchar_t
+#endif /* _STDDEF_H or __need_wchar_t. */
+
+#if defined (__need_wint_t)
+#ifndef _WINT_T
+#define _WINT_T
+
+#ifndef __WINT_TYPE__
+#define __WINT_TYPE__ unsigned int
+#endif
+typedef __WINT_TYPE__ wint_t;
+#endif
+#undef __need_wint_t
+#endif
+
+/* In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
+are already defined. */
+/* BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here. */
+#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_)
+/* The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_
+are probably typos and should be removed before 2.8 is released. */
+#ifdef _GCC_PTRDIFF_T_
+#undef _PTRDIFF_T_
+#undef _BSD_PTRDIFF_T_
+#endif
+#ifdef _GCC_SIZE_T_
+#undef _SIZE_T_
+#undef _BSD_SIZE_T_
+#endif
+#ifdef _GCC_WCHAR_T_
+#undef _WCHAR_T_
+#undef _BSD_WCHAR_T_
+#endif
+/* The following ones are the real ones. */
+#ifdef _GCC_PTRDIFF_T
+#undef _PTRDIFF_T_
+#undef _BSD_PTRDIFF_T_
+#endif
+#ifdef _GCC_SIZE_T
+#undef _SIZE_T_
+#undef _BSD_SIZE_T_
+#endif
+#ifdef _GCC_WCHAR_T
+#undef _WCHAR_T_
+#undef _BSD_WCHAR_T_
+#endif
+#endif /* _ANSI_H_ || _MACHINE_ANSI_H_ */
+
+#endif /* __sys_stdtypes_h */
+
+/* A null pointer constant. */
+
+#if defined (_STDDEF_H) || defined (__need_NULL)
+#undef NULL /* in case <stdio.h> has defined it. */
+#ifdef __GNUG__
+#define NULL __null
+#else /* G++ */
+#ifndef __cplusplus
+#define NULL ((void *)0)
+#else /* C++ */
+#define NULL 0
+#endif /* C++ */
+#endif /* G++ */
+#endif /* NULL not defined and <stddef.h> or need NULL. */
+#undef __need_NULL
+
+#ifdef _STDDEF_H
+
+/* Offset of member MEMBER in a struct of type TYPE. */
+#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
+
+#endif /* _STDDEF_H was defined this time */
+
+#endif /* !_STDDEF_H && !_STDDEF_H_ && !_ANSI_STDDEF_H && !__STDDEF_H__
+|| __need_XXX was not defined before */
View
25 bb_waze_code/j2me/include/syscalls/ansi/include/stdint.h
@@ -0,0 +1,25 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: stdint.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: stdint for Cibyl
+*
+* $Id: stdint.h 12571 2006-11-29 15:21:40Z ska $
+*
+********************************************************************/
+#ifndef __STDINT_H__
+#define __STDINT_H__
+
+/* Explicitly sized types for MIPS1/Java */
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef short int16_t;
+typedef unsigned short uint16_t;
+typedef int int32_t;
+typedef unsigned int uint32_t;
+typedef long long int64_t;
+typedef unsigned long long uint64_t;
+
+#endif /* !__STDINT_H__ */
View
101 bb_waze_code/j2me/include/syscalls/ansi/include/stdio.h
@@ -0,0 +1,101 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: stdio.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl stdio.h
+*
+* $Id: stdio.h 13559 2007-02-09 22:36:31Z ska $
+*
+********************************************************************/
+#ifndef __STDIO_H__
+#define __STDIO_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <cibyl.h>
+#include <stddef.h>
+#include <stdarg.h>
+
+#define __NR___puts 186 /* ansi */
+static inline _syscall1(int,__puts, const char*, string) /* Not generated */
+#define puts __puts
+#define __NR___putchar 187 /* ansi */
+static inline _syscall1(int,__putchar, int, c) /* Not generated */
+#define putchar __putchar
+
+/* File handling */
+#define SEEK_SET 0 /* Seek from beginning of file. */
+#define SEEK_CUR 1 /* Seek from current position. */
+#define SEEK_END 2 /* Seek from end of file. */
+
+#ifndef EOF
+# define EOF (-1)
+#endif
+
+struct s_cibyl_fops;
+
+typedef struct
+{
+struct s_cibyl_fops *ops;
+short eof; /* eof status */
+short error;
+long fptr; /* Real file pointer */
+long vfptr; /* Virtual file pointer */
+size_t file_size;
+void *priv; /* Filesystem private stuff */
+} FILE;
+
+#define EOF (-1)
+
+extern FILE *stdin;
+extern FILE *stdout;
+extern FILE *stderr;
+
+extern FILE* fopen(const char* path, const char* mode); /* Not generated */
+extern int fclose(FILE* fp); /* Not generated */
+
+extern void clearerr(FILE* stream); /* Not generated */
+extern int feof(FILE* stream); /* Not generated */
+extern int ferror(FILE* stream); /* Not generated */
+
+
+extern void rewind(FILE *stream);
+extern int fseek(FILE* stream, long offset, int whence); /* Not generated */
+extern long ftell(FILE *stream);
+extern int fflush(FILE* stream); /* Not generated */
+
+extern int fgetc(FILE* stream); /* Not generated */
+extern char* fgets(char* s, int size, FILE* stream); /* Not generated */
+extern int fputc(int c, FILE* stream); /* Not generated */
+#define fputs __fputs
+extern int __fputs(const char* ptr, FILE* stream); /* Not generated */
+
+extern size_t fread(void* ptr, size_t size, size_t nmemb, FILE* stream); /* Not generated */
+extern size_t fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream); /* Not generated */
+
+extern int remove(const char *pathname);
+
+extern int vsnprintf(char* str, unsigned int size, const char* format, va_list ap);
+#define vsprintf(str, fmt, ap) vsnprintf(str, 0xfffffff, fmt, ap)
+extern int vfprintf(FILE *fp, const char* fmt, va_list ap);
+extern int vprintf(const char* format, va_list ap);
+extern int snprintf(char *buf, size_t n, const char *fmt, ...);
+extern int sprintf(char *buf, const char *fmt, ...);
+extern int fprintf(FILE *fp, const char* fmt, ...);
+extern int printf(const char* fmt, ...);
+
+extern int sscanf(const char *str, const char *format, ...); /* TMP! */
+
+#define __NR___setup_io 188 /* ansi */
+static inline _syscall2(void,__setup_io, void*, addr_stdout, void*, addr_stderr) /* Not generated */
+
+/* Does not apply for us yet */
+#define setbuf(stream, buf)
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__STDIO_H__ */
View
67 bb_waze_code/j2me/include/syscalls/ansi/include/stdlib.h
@@ -0,0 +1,67 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: stdlib.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl
+*
+* $Id: stdlib.h 13521 2007-02-09 17:16:14Z ska $
+*
+********************************************************************/
+#ifndef __STDLIB_H__
+#define __STDLIB_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <cibyl.h>
+#include <stddef.h>
+
+/* Helper to register callback functions (this is not part of ANSI C, but... ) */
+#define __NR_NOPH_registerCallback 189 /* ansi */
+static inline _syscall2(int,NOPH_registerCallback, char*, name, int, fnAddr) /* Not generated */
+
+#define __NR___exit 190 /* ansi */
+static inline _syscall1(void,__exit, int, code) /* Not generated */
+extern void __attribute__((noreturn)) exit(int code);
+#define abort() __exit(1)
+
+extern int atexit(void (*function)(void));
+
+extern void* malloc(size_t size);
+extern void free(void* ptr);
+extern long long int strtoll(const char *nptr, char **endptr, int base);
+extern long int strtol(const char *nptr, char **endptr, int base);
+extern unsigned long long int strtoull(const char *nptr, char **endptr, int base);
+extern unsigned long int strtoul(const char *nptr, char **endptr, int base);
+extern float atof(const char *nptr);
+extern int atoi(const char *nptr);
+
+#define __NR_rand 191 /* ansi */
+static inline _syscall0(int,rand) /* Not generated */
+#define __NR_srand 192 /* ansi */
+static inline _syscall1(void,srand, unsigned int, seed) /* Not generated */
+
+#include <string.h>
+
+static inline void *calloc(size_t nmemb, size_t size)
+{
+void *out = (void*)malloc(nmemb * size);
+memset(out, 0, nmemb * size);
+
+return out;
+}
+
+extern void *realloc(void *ptr, size_t size);
+
+static inline int abs(int x)
+{
+if (x > 0) return x;
+else return -x;
+}
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__STDLIB_H__ */
View
74 bb_waze_code/j2me/include/syscalls/ansi/include/string.h
@@ -0,0 +1,74 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: string.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: String stuff
+*
+* $Id: string.h 13520 2007-02-09 17:16:00Z ska $
+*
+********************************************************************/
+#ifndef __STRING_H__
+#define __STRING_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <cibyl.h>
+#include <stddef.h>
+
+/* GCC builtin functions */
+#define __NR___strcpy 193 /* ansi */
+static inline _syscall2(char*,__strcpy, char*, dest, const char*, src) /* Not generated */
+#define __NR___strncpy 194 /* ansi */
+static inline _syscall3(char*,__strncpy, char*, dest, const char*, src, size_t, n) /* Not generated */
+#define __NR___strcat 195 /* ansi */
+static inline _syscall2(char*,__strcat, char*, dest, const char*, src) /* Not generated */
+#define __NR___strncat 196 /* ansi */
+static inline _syscall3(char*,__strncat, char*, dest, const char*, src, size_t, n) /* Not generated */
+#define __NR___strcmp 197 /* ansi */
+static inline _syscall2(int,__strcmp, const char*, s1, const char*, s2) /* Not generated */
+#define __NR___strncmp 198 /* ansi */
+static inline _syscall3(int,__strncmp, const char*, s1, const char*, s2, size_t, n) /* Not generated */
+#define __NR___strlen 199 /* ansi */
+static inline _syscall1(size_t,__strlen, const char*, s) /* Not generated */
+#define __NR___memset 200 /* ansi */
+static inline _syscall3(void*,__memset, void*, s, int, c, size_t, n) /* Not generated */
+#define __NR___memcmp 201 /* ansi */
+static inline _syscall3(int,__memcmp, const void*, s1, const void*, s2, size_t, n) /* Not generated */
+
+/* These are not syscalls but implemented in ansi.c. They are here in
+* order to allow for GCC builtins.
+*/
+extern char *strcat(char *dest, const char *src);
+extern char *strncat(char *dest, const char *src, size_t n);
+extern char *strcpy(char *dest, const char *src);
+extern char *strncpy(char *dest, const char *src, size_t n);
+extern int strcmp(const char* s1, const char* s2);
+extern int strncmp(const char *s1, const char *s2, size_t n);
+extern int strcasecmp(const char *s1, const char *s2);
+extern int strncasecmp(const char *s1, const char *s2, size_t n);
+extern size_t strlen(const char *s);
+extern void *memset(void *s, int c, size_t n);
+extern void *memcpy(void *dest, const void *src, size_t n);
+extern int memcmp(const void* s1, const void* s2, size_t n);
+extern char *strchr(const char *s, int c);
+extern char *strrchr(const char *s, int c);
+
+extern char *strdup(const char *s);
+extern char *strstr(const char *haystack, const char *needle);
+
+extern char *strtok(char *str, const char *delim);
+extern char *strtok_r(char *str, const char *delim, char **saveptr);
+
+extern size_t strspn(const char *s, const char *accept);
+extern size_t strcspn(const char *s, const char *reject);
+extern char *strpbrk(const char *s, const char *accept);
+
+extern void *memmove(void *dest, const void *src, size_t n);
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__STRING_H__ */
View
19 bb_waze_code/j2me/include/syscalls/ansi/include/sys/stat.h
@@ -0,0 +1,19 @@
+/*********************************************************************
+*
+* Copyright (C) 2008, Simon Kagstrom
+*
+* Filename: stat.h
+* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
+* Description: Stat (for mkdir)
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __SYS__STAT_H__
+#define __SYS__STAT_H__
+
+typedef int mode_t; /* Actually ignored */
+
+extern int mkdir(const char *pathname, mode_t mode);
+
+#endif /* !__SYS__STAT_H__ */
View
31 bb_waze_code/j2me/include/syscalls/ansi/include/sys/time.h
@@ -0,0 +1,31 @@
+/*********************************************************************
+*
+* Copyright (C) 2007, Simon Kagstrom
+*
+* Filename: time.h
+* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
+* Description: time header file
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __SYS__TIME_H__
+#define __SYS__TIME_H__
+
+typedef long suseconds_t;
+typedef int time_t;
+
+struct timeval {
+time_t tv_sec; /* seconds */
+suseconds_t tv_usec; /* microseconds */
+};
+
+struct timezone {
+#if 0 /* Not yet supported */
+int tz_minuteswest; /* minutes west of Greenwich */
+int tz_dsttime; /* type of DST correction */
+#endif
+};
+
+
+#endif /* !__SYS__TIME_H__ */
View
16 bb_waze_code/j2me/include/syscalls/ansi/include/sys/types.h
@@ -0,0 +1,16 @@
+/*********************************************************************
+*
+* Copyright (C) 2007, Blekinge Institute of Technology
+*
+* Filename: types.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __SYS__TYPES_H__
+#define __SYS__TYPES_H__
+
+
+#endif /* !__SYS__TYPES_H__ */
View
54 bb_waze_code/j2me/include/syscalls/ansi/include/time.h
@@ -0,0 +1,54 @@
+/*********************************************************************
+*
+* Copyright (C) 2006-2007, Simon Kagstrom
+*
+* Filename: time.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Time defs
+*
+* $Id: time.h 13572 2007-02-10 10:44:29Z ska $
+*
+********************************************************************/
+#ifndef __TIME_H__
+#define __TIME_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <sys/time.h>
+#include <cibyl.h>
+
+struct tm {
+int tm_sec; /* seconds */
+int tm_min; /* minutes */
+int tm_hour; /* hours */
+int tm_mday; /* day of the month */
+int tm_mon; /* month */
+int tm_year; /* year */
+int tm_wday; /* day of the week */
+int tm_yday; /* day in the year */
+int tm_isdst; /* daylight saving time */
+};
+
+extern struct tm *gmtime(const time_t *timep);
+extern time_t timegm(struct tm *_tm);
+
+extern struct tm *localtime(const time_t *timep);
+extern struct tm *localtime_r(const time_t *timep, struct tm *result);
+
+#define __NR_time 202 /* ansi */
+static inline _syscall1(time_t,time, time_t*, t) /* Not generated */
+#define __NR___gettimeofday 203 /* ansi */
+static inline _syscall2(int,__gettimeofday, int*, tv, int*, tz) /* Not generated */
+
+#define difftime(t1,t0) (double)(t1 - t0)
+
+static inline int gettimeofday(struct timeval* tv, struct timezone* tz)
+{
+return __gettimeofday((int*)tv, (int*)tz);
+}
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__TIME_H__ */
View
17 bb_waze_code/j2me/include/syscalls/ansi/include/unistd.h
@@ -0,0 +1,17 @@
+/*********************************************************************
+*
+* Copyright (C) 2008, Simon Kagstrom
+*
+* Filename: unistd.h
+* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
+* Description: Unistd stuff (rmdir)
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __SYS__UNISTD_H__
+#define __SYS__UNISTD_H__
+
+extern int rmdir(const char *pathname);
+
+#endif /* !__SYS__UNISTD_H__ */
View
46 bb_waze_code/j2me/include/syscalls/async_net/include/async_net.h
@@ -0,0 +1,46 @@
+/* async_net.h
+*
+* LICENSE:
+*
+* Copyright 2009 Ehud Shabtai
+*
+* RoadMap is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License V2 as published by
+* the Free Software Foundation.
+*
+* RoadMap is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with RoadMap; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __ASYNC_NET_H__
+#define __ASYNC_NET_H__
+
+#include <cibyl.h>
+#include <javax/microedition/midlet.h>
+
+/* GpsManager class (this is not in J2ME) */
+typedef int NOPH_AsyncNet_t;
+
+#define __NR_NOPH_AsyncNet_new 54 /* async_net */
+static inline _syscall5(NOPH_AsyncNet_t,NOPH_AsyncNet_new, const char*, url, int, method, const char*, update_time, void*, cb_addr, void*, context)
+
+#define __NR_NOPH_AsyncNet_startRead 55 /* async_net */
+static inline _syscall2(void,NOPH_AsyncNet_startRead, NOPH_AsyncNet_t, async, int, input_id)
+#define __NR_NOPH_AsyncNet_stopRead 56 /* async_net */
+static inline _syscall1(void,NOPH_AsyncNet_stopRead, NOPH_AsyncNet_t, async)
+#define __NR_NOPH_AsyncNet_close 57 /* async_net */
+static inline _syscall1(void,NOPH_AsyncNet_close, NOPH_AsyncNet_t, async)
+#define __NR_NOPH_AsyncNet_read 58 /* async_net */
+static inline _syscall3(int,NOPH_AsyncNet_read, NOPH_AsyncNet_t, async, void*, buffer, int, len)
+#define __NR_NOPH_AsyncNet_isReading 59 /* async_net */
+static inline _syscall1(int,NOPH_AsyncNet_isReading, NOPH_AsyncNet_t, async)
+#define __NR_NOPH_AsyncNet_printUrl 60 /* async_net */
+static inline _syscall1(void,NOPH_AsyncNet_printUrl, int, c_connection)
+
+#endif /* !__ASYNC_NET_H__ */
View
36 bb_waze_code/j2me/include/syscalls/async_net/include/ui_worker.h
@@ -0,0 +1,36 @@
+/* ui_worker.h
+*
+* LICENSE:
+*
+* Copyright 2009 Ehud Shabtai
+*
+* RoadMap is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License V2 as published by
+* the Free Software Foundation.
+*
+* RoadMap is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with RoadMap; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __UI_WORKER_H__
+#define __UI_WORKER_H__
+
+#include <cibyl.h>
+
+typedef int NOPH_UIWorker_t;
+
+#define __NR_NOPH_UIWorker_poll 61 /* async_net */
+static inline _syscall0(void,NOPH_UIWorker_poll)
+#define __NR_NOPH_UIWorker_pendingDraws 62 /* async_net */
+static inline _syscall0(int,NOPH_UIWorker_pendingDraws)
+#define __NR_NOPH_UIWorker_registerMsgAddr 63 /* async_net */
+static inline _syscall2(void,NOPH_UIWorker_registerMsgAddr, int, addr, int, size)
+#define __NR_NOPH_UIWorker_addCallback 64 /* async_net */
+static inline _syscall5(void,NOPH_UIWorker_addCallback, void*, callback, int, p1, int, p2, int, p3, int, p4)
+#endif /* !__UI_WORKER_H__ */
View
68 bb_waze_code/j2me/include/syscalls/gps_manager/include/gps_manager.h
@@ -0,0 +1,68 @@
+/* gps_manager.h
+*
+* LICENSE:
+*
+* Copyright 2008 Ehud Shabtai
+*
+* RoadMap is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License V2 as published by
+* the Free Software Foundation.
+*
+* RoadMap is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with RoadMap; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __GPS_MANAGER_H__
+#define __GPS_MANAGER_H__
+
+#include <cibyl.h>
+#include <javax/microedition/midlet.h>
+
+struct GpsData {
+int time;
+int longitude;
+int latitude;
+int speed;
+int azymuth;
+int horizontal_accuracy;
+int vertical_accuracy;
+int status;
+};
+
+/* GpsManager class (this is not in J2ME) */
+typedef int NOPH_GpsManager_t;
+
+#define __NR_NOPH_GpsManager_getInstance 165 /* gps_manager */
+static inline _syscall0(NOPH_GpsManager_t,NOPH_GpsManager_getInstance)
+
+#define __NR_NOPH_GpsManager_setTypeMsgs 166 /* gps_manager */
+static inline _syscall3(void,NOPH_GpsManager_setTypeMsgs, NOPH_GpsManager_t, gm, const char*, internal, const char*, external)
+#define __NR_NOPH_GpsManager_searchGps 167 /* gps_manager */
+static inline _syscall4(void,NOPH_GpsManager_searchGps, NOPH_GpsManager_t, gm, NOPH_MIDlet_t, m, const char*, wait_msg, const char*, not_found_msg)
+#define __NR_NOPH_GpsManager_searchGpsRim 168 /* gps_manager */
+static inline _syscall3(void,NOPH_GpsManager_searchGpsRim, NOPH_GpsManager_t, gm, const char*, wait_msg, const char*, not_found_msg)
+#define __NR_NOPH_GpsManager_connect 169 /* gps_manager */
+static inline _syscall2(int,NOPH_GpsManager_connect, NOPH_GpsManager_t, gm, const char*, url)
+#define __NR_NOPH_GpsManager_disconnect 170 /* gps_manager */
+static inline _syscall1(void,NOPH_GpsManager_disconnect, NOPH_GpsManager_t, gm)
+#define __NR_NOPH_GpsManager_start 171 /* gps_manager */
+static inline _syscall4(void,NOPH_GpsManager_start, NOPH_GpsManager_t, gm, int, interval, int, timeout, int, maxage)
+#define __NR_NOPH_GpsManager_stop 172 /* gps_manager */
+static inline _syscall1(void,NOPH_GpsManager_stop, NOPH_GpsManager_t, gm)
+#define __NR_NOPH_GpsManager_read 173 /* gps_manager */
+static inline _syscall3(int,NOPH_GpsManager_read, NOPH_GpsManager_t, gm, void*, buffer, int, size)
+#define __NR_NOPH_GpsManager_getURL 174 /* gps_manager */
+static inline _syscall3(int,NOPH_GpsManager_getURL, NOPH_GpsManager_t, gm, void*, buffer, int, size)
+
+#ifdef RIMAPI
+#define __NR_NOPH_GpsManager_getCoarseFix 175 /* gps_manager */
+static inline _syscall1(void,NOPH_GpsManager_getCoarseFix, const char*, url)
+#endif
+
+#endif /* !__GPS_MANAGER_H__ */
View
112 bb_waze_code/j2me/include/syscalls/java/include/java/io.h
@@ -0,0 +1,112 @@
+/*********************************************************************
+*
+* Copyright (C) 2007, Simon Kagstrom
+*
+* Filename: io.h
+* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
+* Description:
+*
+* $Id:$
+*
+********************************************************************/
+#ifndef __JAVA__IO_H__
+#define __JAVA__IO_H__
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <cibyl.h>
+#include <cibyl-fileops.h>
+#include <stdio.h>
+
+typedef int NOPH_InputStream_t;
+typedef int NOPH_OutputStream_t;
+typedef int NOPH_DataInputStream_t;
+typedef int NOPH_DataOutputStream_t;
+typedef int NOPH_FileInputStream_t;
+typedef int NOPH_FileOutputStream_t;
+
+typedef int NOPH_EOFException_t;
+
+/* Input stream stuff */
+#define __NR_NOPH_InputStream_available 7 /* java */
+static inline _syscall1(int,NOPH_InputStream_available, NOPH_InputStream_t, is) /* Throws */
+#define __NR_NOPH_InputStream_read 8 /* java */
+static inline _syscall1(int,NOPH_InputStream_read, NOPH_InputStream_t, is) /* Throws */
+#define __NR_NOPH_InputStream_read_into 9 /* java */
+static inline _syscall4(int,NOPH_InputStream_read_into, NOPH_InputStream_t, is, char*, vec, int, size, short*, eof_ptr) /* Not generated */
+#define __NR_NOPH_InputStream_reset 10 /* java */
+static inline _syscall1(void,NOPH_InputStream_reset, NOPH_InputStream_t, is) /* Throws */
+#define __NR_NOPH_InputStream_mark 11 /* java */
+static inline _syscall2(void,NOPH_InputStream_mark, NOPH_InputStream_t, is, int, readLimit)
+#define __NR_NOPH_InputStream_markSupported 12 /* java */
+static inline _syscall1(bool_t,NOPH_InputStream_markSupported, NOPH_InputStream_t, is) /* Throws */
+#define __NR_NOPH_InputStream_close 13 /* java */
+static inline _syscall1(void,NOPH_InputStream_close, NOPH_InputStream_t, is) /* Throws */
+#define __NR_NOPH_InputStream_skip 14 /* java */
+static inline _syscall2(int,NOPH_InputStream_skip, NOPH_InputStream_t, is, int, n) /* Throws */
+
+/* Output stream stuff */
+#define __NR_NOPH_OutputStream_write 15 /* java */
+static inline _syscall2(void,NOPH_OutputStream_write, NOPH_OutputStream_t, os, int, b) /* Throws */
+#define __NR_NOPH_OutputStream_flush 16 /* java */
+static inline _syscall1(void,NOPH_OutputStream_flush, NOPH_OutputStream_t, os) /* Throws */
+#define __NR_NOPH_OutputStream_close 17 /* java */
+static inline _syscall1(void,NOPH_OutputStream_close, NOPH_OutputStream_t, os) /* Throws */
+
+#define __NR_NOPH_DataOutputStream_writeInt 18 /* java */
+static inline _syscall2(void,NOPH_DataOutputStream_writeInt, NOPH_DataOutputStream_t, os, int, i) /* Throws */
+#define __NR_NOPH_DataOutputStream_writeShort 19 /* java */
+static inline _syscall2(void,NOPH_DataOutputStream_writeShort, NOPH_DataOutputStream_t, os, short, i) /* Throws */
+
+/* FileInputStream (J2SE) */
+#define __NR_NOPH_FileInputStream_new 20 /* java */
+static inline _syscall1(NOPH_FileInputStream_t,NOPH_FileInputStream_new, const char*, name) /* Throws */
+#define __NR_NOPH_FileOutputStream_new 21 /* java */
+static inline _syscall1(NOPH_FileOutputStream_t,NOPH_FileOutputStream_new, const char*, name) /* Throws */
+
+/* EOFException */
+#define __NR_NOPH_EOFException_new 22 /* java */
+static inline _syscall0(NOPH_EOFException_t,NOPH_EOFException_new)
+#define __NR_NOPH_EOFException_new_string 23 /* java */
+static inline _syscall1(NOPH_EOFException_t,NOPH_EOFException_new_string, char*, s)
+
+/* --- Non-Java functionality --- */
+/* For "inheriting" input and output file systems */
+extern cibyl_fops_t NOPH_InputStream_fops;
+extern cibyl_fops_t NOPH_OutputStream_fops;
+
+typedef struct
+{
+NOPH_InputStream_t is;
+} NOPH_InputStream_file_t;
+
+typedef struct
+{
+NOPH_OutputStream_t os;
+} NOPH_OutputStream_file_t;
+
+/**
+* Create a ANSI C file from an OutputStream. The resulting FILE is
+* write-only and does not support fseek, feof etc.
+*
+* @param os the output stream to use as base
+* @return a pointer to the new FILE output stream
+*/
+extern FILE *NOPH_OutputStream_createFILE(NOPH_OutputStream_t os);
+
+/**
+* Create a ANSI C file from an InputStream. The resulting FILE is
+* read-only and supports normal operations such as fseek, feof etc.
+*
+* @param os the input stream to use as base
+* @return a pointer to the new FILE input stream
+*/
+extern FILE *NOPH_InputStream_createFILE(NOPH_InputStream_t os);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif /* !__JAVA__IO_H__ */
View
101 bb_waze_code/j2me/include/syscalls/java/include/java/lang.h
@@ -0,0 +1,101 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: java-lang.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: java.lang syscalls
+*
+* $Id: lang.h 12060 2006-11-14 07:06:01Z ska $
+*
+********************************************************************/
+#ifndef __JAVA_LANG_H__
+#define __JAVA_LANG_H__
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <cibyl.h>
+#include <stdint.h>
+#include "io.h"
+
+typedef int NOPH_Object_t;
+typedef int NOPH_Class_t;
+typedef int NOPH_String_t;
+typedef int NOPH_Throwable_t;
+
+#define __NR_NOPH_delete 24 /* java */
+static inline _syscall1(void,NOPH_delete, NOPH_Object_t, obj) /* Not generated */
+
+/**
+* Write a Java String object to a char pointer.
+*
+* @param obj the String object to write
+* @param addr the address to write to
+* @param maxlen the length of the passed address
+*
+* @return the number of characters written
+*/
+#define __NR_NOPH_String_toCharPtr 25 /* java */
+static inline _syscall3(int,NOPH_String_toCharPtr, NOPH_String_t, obj, char*, addr, int, maxlen) /* Not generated */
+
+/* Should return a 64-bit value - we get wraparound problems otherwise! */
+#define __NR___NOPH_System_currentTimeMillis 26 /* java */
+static inline _syscall1(void,__NOPH_System_currentTimeMillis, int64_t*, p) /* Not generated */
+static inline int64_t NOPH_System_currentTimeMillis(void)
+{
+int64_t out;
+__NOPH_System_currentTimeMillis(&out);
+
+return out;
+}
+#define __NR_NOPH_Thread_sleep 27 /* java */
+static inline _syscall1(void,NOPH_Thread_sleep, int, ms) /* Throws */
+
+#define __NR_NOPH_Throwable_printStackTrace 28 /* java */
+static inline _syscall1(void,NOPH_Throwable_printStackTrace, NOPH_Throwable_t, th)
+#define __NR_NOPH_Throwable_getMessage 29 /* java */
+static inline _syscall1(NOPH_String_t,NOPH_Throwable_getMessage, NOPH_Throwable_t, th)
+#define __NR_NOPH_Throwable_toString 30 /* java */
+static inline _syscall1(NOPH_String_t,NOPH_Throwable_toString, NOPH_Throwable_t, th)
+
+/* Exception */
+#define __NR_NOPH_Exception_new 31 /* java */
+static inline _syscall0(NOPH_Exception_t,NOPH_Exception_new)
+#define __NR_NOPH_Exception_new_string 32 /* java */
+static inline _syscall1(NOPH_Exception_t,NOPH_Exception_new_string, char*, s)
+
+extern NOPH_Exception_t NOPH_Exception_new_string_va(char *s, ...);
+#define NOPH_Exception_new_string NOPH_Exception_new_string_va
+
+/* Object */
+#define __NR_NOPH_Object_new 33 /* java */
+static inline _syscall0(NOPH_Object_t,NOPH_Object_new)
+#define __NR_NOPH_Object_hashCode 34 /* java */
+static inline _syscall1(int,NOPH_Object_hashCode, NOPH_Object_t, obj)
+#define __NR_NOPH_Object_getClass 35 /* java */
+static inline _syscall1(NOPH_Class_t,NOPH_Object_getClass, NOPH_Object_t, obj)
+#define __NR_NOPH_Object_toString 36 /* java */
+static inline _syscall1(NOPH_String_t,NOPH_Object_toString, NOPH_Object_t, obj)
+#define __NR_NOPH_Object_notify 37 /* java */
+static inline _syscall1(void,NOPH_Object_notify, NOPH_Object_t, obj) /* Throws */
+#define __NR_NOPH_Object_notifyAll 38 /* java */
+static inline _syscall1(void,NOPH_Object_notifyAll, NOPH_Object_t, obj) /* Throws */
+#define __NR_NOPH_Object_wait 39 /* java */
+static inline _syscall1(void,NOPH_Object_wait, NOPH_Object_t, obj) /* Throws */
+#define __NR_NOPH_Object_wait_timeout 40 /* java */
+static inline _syscall2(void,NOPH_Object_wait_timeout, NOPH_Object_t, obj, int, timeout) /* Throws */
+#define __NR_NOPH_Object_wait_timeoout2 41 /* java */
+static inline _syscall3(void,NOPH_Object_wait_timeoout2, NOPH_Object_t, obj, int, timeout, int, nanos) /* Throws */
+
+/* Class */
+#define __NR_NOPH_Class_getResourceAsStream 42 /* java */
+static inline _syscall2(NOPH_InputStream_t,NOPH_Class_getResourceAsStream, NOPH_Class_t, obj, char*, name) /* Throws */
+#define __NR_NOPH_Class_getName 43 /* java */
+static inline _syscall1(NOPH_String_t,NOPH_Class_getName, NOPH_Class_t, obj)
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__JAVA_LANG_H__ */
View
58 bb_waze_code/j2me/include/syscalls/java/include/java/util.h
@@ -0,0 +1,58 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: java-util.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: java.util syscalls
+*
+* $Id: $
+*
+********************************************************************/
+#ifndef __JAVA_UTIL_H__
+#define __JAVA_UTIL_H__
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include <java/lang.h>
+
+typedef int NOPH_Enumeration_t;
+typedef int NOPH_TimeZone_t;
+typedef int NOPH_Calendar_t;
+typedef int NOPH_TimerTask_t;
+
+#define NOPH_Calendar_HOUR 11
+#define NOPH_Calendar_MINUTE 12
+#define NOPH_Calendar_SECOND 13
+
+#define __NR_NOPH_Enumeration_hasMoreElements 44 /* java */
+static inline _syscall1(bool_t,NOPH_Enumeration_hasMoreElements, NOPH_Enumeration_t, enumeration)
+#define __NR_NOPH_Enumeration_nextElement 45 /* java */
+static inline _syscall1(NOPH_Object_t,NOPH_Enumeration_nextElement, NOPH_Enumeration_t, enumeration) /* Throws */
+
+/* TimerTask */
+#define __NR_NOPH_TimerTask_cancel 46 /* java */
+static inline _syscall1(void,NOPH_TimerTask_cancel, NOPH_TimerTask_t, timerTask)
+
+/* Time zone stuff */
+#define __NR_NOPH_TimeZone_getDefault 47 /* java */
+static inline _syscall0(NOPH_TimeZone_t,NOPH_TimeZone_getDefault)
+#define __NR_NOPH_TimeZone_getTimeZone 48 /* java */
+static inline _syscall1(NOPH_TimeZone_t,NOPH_TimeZone_getTimeZone, char, *ID)
+#define __NR_NOPH_TimeZone_getRawOffset 49 /* java */
+static inline _syscall1(int,NOPH_TimeZone_getRawOffset, NOPH_TimeZone_t, tz)
+#define __NR_NOPH_TimeZone_getID 50 /* java */
+static inline _syscall1(NOPH_String_t,NOPH_TimeZone_getID, NOPH_TimeZone_t, tz)
+#define __NR_NOPH_TimeZone_useDaylightTime 51 /* java */
+static inline _syscall1(bool_t,NOPH_TimeZone_useDaylightTime, NOPH_TimeZone_t, tz)
+
+#define __NR_NOPH_Calendar_getInstance 52 /* java */
+static inline _syscall0(NOPH_Calendar_t,NOPH_Calendar_getInstance)
+#define __NR_NOPH_Calendar_get 53 /* java */
+static inline _syscall2(int,NOPH_Calendar_get, NOPH_Calendar_t, calendar, int, what)
+
+#if defined(__cplusplus)
+}
+#endif
+#endif /* !__JAVA_UTIL_H__ */
View
36 bb_waze_code/j2me/include/syscalls/javax.microedition/include/javax/microedition/__alert.h
@@ -0,0 +1,36 @@
+/*********************************************************************
+*
+* Copyright (C) 2006, Blekinge Institute of Technology
+*
+* Filename: __alert.h
+* Author: Simon Kagstrom <ska@bth.se>
+* Description: Cibyl J2ME API
+*
+* $Id: __alert.h 14120 2007-03-10 09:51:33Z ska $
+*
+********************************************************************/
+#ifndef __JAVAX__MICROEDITION__LCDUI_ALERT_H__
+#define __JAVAX__MICROEDITION__LCDUI_ALERT_H__
+
+/* This should not be included directly */
+#define NOPH_Alert_FOREVER -2
+
+#define NOPH_AlertType_INFO 1
+#define NOPH_AlertType_WARNING 2
+#define NOPH_AlertType_ERROR 3
+#define NOPH_AlertType_ALARM 4
+#define NOPH_AlertType_CONFIRMATION 5
+
+typedef int NOPH_Alert_t;
+typedef int NOPH_AlertType_t;
+
+#define __NR_NOPH_Alert_new 371 /* javax.microedition */
+static inline _syscall4(NOPH_Alert_t,NOPH_Alert_new, const char*, title, const char*, alertText, NOPH_Image_t, alertImage, NOPH_AlertType_t, alertType)
+
+#define __NR_NOPH_Alert_setTimeout 372 /* javax.microedition */
+static inline _syscall2(void,NOPH_Alert_setTimeout, NOPH_Alert_t, alert, int, time)
+
+#define __NR_NOPH_AlertType_get 373 /* javax.microedition */
+static inline _syscall1(NOPH_AlertType_t,NOPH_AlertType_get, int, type) /* Not generated */