webruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1364) hide show
  1. checksums.yaml +7 -0
  2. data/bin/webruby +36 -0
  3. data/driver/driver.c +50 -0
  4. data/driver/main.c +40 -0
  5. data/lib/webruby/app.rb +13 -0
  6. data/lib/webruby/config.rb +61 -0
  7. data/lib/webruby/environment.rb +32 -0
  8. data/lib/webruby/rake/files.rake +66 -0
  9. data/lib/webruby/rake/general.rake +22 -0
  10. data/lib/webruby/rake/mruby.rake +44 -0
  11. data/lib/webruby/utility.rb +132 -0
  12. data/lib/webruby.rb +10 -0
  13. data/modules/emscripten/AUTHORS +89 -0
  14. data/modules/emscripten/LICENSE +68 -0
  15. data/modules/emscripten/README.markdown +14 -0
  16. data/modules/emscripten/cmake/Platform/Emscripten.cmake +61 -0
  17. data/modules/emscripten/cmake/Platform/Emscripten_unix.cmake +24 -0
  18. data/modules/emscripten/em++ +12 -0
  19. data/modules/emscripten/em++.bat +2 -0
  20. data/modules/emscripten/em-config +24 -0
  21. data/modules/emscripten/em-config.bat +2 -0
  22. data/modules/emscripten/emar +24 -0
  23. data/modules/emscripten/emar.bat +2 -0
  24. data/modules/emscripten/emcc +1744 -0
  25. data/modules/emscripten/emcc.bat +2 -0
  26. data/modules/emscripten/emcc.py +5 -0
  27. data/modules/emscripten/emconfigure +27 -0
  28. data/modules/emscripten/emconfigure.bat +2 -0
  29. data/modules/emscripten/emlibtool +11 -0
  30. data/modules/emscripten/emlibtool.bat +2 -0
  31. data/modules/emscripten/emlink.py +293 -0
  32. data/modules/emscripten/emmake +29 -0
  33. data/modules/emscripten/emmake.bat +2 -0
  34. data/modules/emscripten/emranlib +9 -0
  35. data/modules/emscripten/emranlib.bat +2 -0
  36. data/modules/emscripten/emscons +20 -0
  37. data/modules/emscripten/emscripten.py +835 -0
  38. data/modules/emscripten/patches/README +4 -0
  39. data/modules/emscripten/patches/series +2 -0
  40. data/modules/emscripten/scons-tools/closure.py +28 -0
  41. data/modules/emscripten/scons-tools/emscripten.py +359 -0
  42. data/modules/emscripten/scons-tools/llvm.py +33 -0
  43. data/modules/emscripten/src/analyzer.js +1695 -0
  44. data/modules/emscripten/src/compiler.html +48 -0
  45. data/modules/emscripten/src/compiler.js +298 -0
  46. data/modules/emscripten/src/corruptionCheck.js +98 -0
  47. data/modules/emscripten/src/determinstic.js +20 -0
  48. data/modules/emscripten/src/embind/embind.js +1677 -0
  49. data/modules/emscripten/src/embind/emval.js +283 -0
  50. data/modules/emscripten/src/experimental/allow_loopvars_from_memsetcpy_inasm.diff +97 -0
  51. data/modules/emscripten/src/experimental/batching.diff +44 -0
  52. data/modules/emscripten/src/experimental/functypeopt.diff +113 -0
  53. data/modules/emscripten/src/experimental/multiple_heaps.diff +175 -0
  54. data/modules/emscripten/src/experimental/noncallgraphprofiling.diff +197 -0
  55. data/modules/emscripten/src/experimental/optimize_memcpy_for_ta1.diff +124 -0
  56. data/modules/emscripten/src/experimental/remove__label__s.diff +140 -0
  57. data/modules/emscripten/src/experimental/renderer_cache_hash.diff +99 -0
  58. data/modules/emscripten/src/experimental/sdl_key_forwarding.diff +57 -0
  59. data/modules/emscripten/src/experimental/simplifyGeneratedFunctionsDetection.diff +336 -0
  60. data/modules/emscripten/src/experimental/stringCache.diff +147 -0
  61. data/modules/emscripten/src/fastLong.js +299 -0
  62. data/modules/emscripten/src/framework.js +257 -0
  63. data/modules/emscripten/src/gl-matrix.js +1952 -0
  64. data/modules/emscripten/src/headless.js +904 -0
  65. data/modules/emscripten/src/intertyper.js +1050 -0
  66. data/modules/emscripten/src/jsifier.js +1827 -0
  67. data/modules/emscripten/src/library.js +8270 -0
  68. data/modules/emscripten/src/library_browser.js +911 -0
  69. data/modules/emscripten/src/library_egl.js +491 -0
  70. data/modules/emscripten/src/library_gc.js +236 -0
  71. data/modules/emscripten/src/library_gl.js +4452 -0
  72. data/modules/emscripten/src/library_glfw.js +576 -0
  73. data/modules/emscripten/src/library_glut.js +449 -0
  74. data/modules/emscripten/src/library_jansson.js +320 -0
  75. data/modules/emscripten/src/library_openal.js +602 -0
  76. data/modules/emscripten/src/library_sdl.js +2024 -0
  77. data/modules/emscripten/src/library_strtok_r.c +97 -0
  78. data/modules/emscripten/src/library_xlib.js +23 -0
  79. data/modules/emscripten/src/long.js +1609 -0
  80. data/modules/emscripten/src/modules.js +491 -0
  81. data/modules/emscripten/src/parseTools.js +2474 -0
  82. data/modules/emscripten/src/postamble.js +170 -0
  83. data/modules/emscripten/src/postamble_sharedlib.js +16 -0
  84. data/modules/emscripten/src/preamble.js +914 -0
  85. data/modules/emscripten/src/preamble_sharedlib.js +25 -0
  86. data/modules/emscripten/src/relooper/README.markdown +14 -0
  87. data/modules/emscripten/src/relooper/Relooper.cpp +1236 -0
  88. data/modules/emscripten/src/relooper/Relooper.h +250 -0
  89. data/modules/emscripten/src/relooper/doit.sh +70 -0
  90. data/modules/emscripten/src/relooper/emscripten/glue.js +57 -0
  91. data/modules/emscripten/src/relooper/emscripten/test.js +44 -0
  92. data/modules/emscripten/src/relooper/fuzzer.py +116 -0
  93. data/modules/emscripten/src/relooper/ministring.h +35 -0
  94. data/modules/emscripten/src/relooper/paper.pdf +0 -0
  95. data/modules/emscripten/src/relooper/test.cpp +262 -0
  96. data/modules/emscripten/src/relooper/test.txt +155 -0
  97. data/modules/emscripten/src/relooper/test2.c +44 -0
  98. data/modules/emscripten/src/relooper/test2.txt +12 -0
  99. data/modules/emscripten/src/relooper/test3.c +42 -0
  100. data/modules/emscripten/src/relooper/test3.txt +27 -0
  101. data/modules/emscripten/src/relooper/test4.cpp +40 -0
  102. data/modules/emscripten/src/relooper/test4.txt +23 -0
  103. data/modules/emscripten/src/relooper/test5.cpp +40 -0
  104. data/modules/emscripten/src/relooper/test5.txt +32 -0
  105. data/modules/emscripten/src/relooper/test6.cpp +31 -0
  106. data/modules/emscripten/src/relooper/test6.txt +12 -0
  107. data/modules/emscripten/src/relooper/test_dead.cpp +28 -0
  108. data/modules/emscripten/src/relooper/test_dead.txt +9 -0
  109. data/modules/emscripten/src/relooper/test_debug.cpp +30 -0
  110. data/modules/emscripten/src/relooper/test_debug.txt +128 -0
  111. data/modules/emscripten/src/relooper/test_fuzz1.cpp +52 -0
  112. data/modules/emscripten/src/relooper/test_fuzz1.txt +32 -0
  113. data/modules/emscripten/src/relooper/test_fuzz2.cpp +34 -0
  114. data/modules/emscripten/src/relooper/test_fuzz2.txt +13 -0
  115. data/modules/emscripten/src/relooper/test_fuzz3.cpp +36 -0
  116. data/modules/emscripten/src/relooper/test_fuzz3.txt +9 -0
  117. data/modules/emscripten/src/relooper/test_fuzz4.cpp +38 -0
  118. data/modules/emscripten/src/relooper/test_fuzz4.txt +19 -0
  119. data/modules/emscripten/src/relooper/test_fuzz5.cpp +57 -0
  120. data/modules/emscripten/src/relooper/test_fuzz5.txt +52 -0
  121. data/modules/emscripten/src/relooper/test_fuzz6.cpp +322 -0
  122. data/modules/emscripten/src/relooper/test_fuzz6.txt +108 -0
  123. data/modules/emscripten/src/relooper/test_inf.cpp +813 -0
  124. data/modules/emscripten/src/relooper/test_inf.txt +385 -0
  125. data/modules/emscripten/src/relooper/testit.sh +62 -0
  126. data/modules/emscripten/src/relooper/updateit.sh +17 -0
  127. data/modules/emscripten/src/relooper.js +11516 -0
  128. data/modules/emscripten/src/relooper.js.raw.js +11511 -0
  129. data/modules/emscripten/src/runtime.js +546 -0
  130. data/modules/emscripten/src/settings.js +1284 -0
  131. data/modules/emscripten/src/shell.html +92 -0
  132. data/modules/emscripten/src/shell.js +153 -0
  133. data/modules/emscripten/src/shell_sharedlib.js +12 -0
  134. data/modules/emscripten/src/socket.io.js +3870 -0
  135. data/modules/emscripten/src/utility.js +379 -0
  136. data/modules/emscripten/src/wrtcp.js +821 -0
  137. data/modules/emscripten/system/include/AL/al.h +172 -0
  138. data/modules/emscripten/system/include/AL/alc.h +84 -0
  139. data/modules/emscripten/system/include/EGL/egl.h +329 -0
  140. data/modules/emscripten/system/include/EGL/eglext.h +398 -0
  141. data/modules/emscripten/system/include/EGL/eglplatform.h +141 -0
  142. data/modules/emscripten/system/include/GL/freeglut_std.h +628 -0
  143. data/modules/emscripten/system/include/GL/gl.h +2241 -0
  144. data/modules/emscripten/system/include/GL/glew.h +6 -0
  145. data/modules/emscripten/system/include/GL/glext.h +11127 -0
  146. data/modules/emscripten/system/include/GL/glfw.h +518 -0
  147. data/modules/emscripten/system/include/GL/glu.h +353 -0
  148. data/modules/emscripten/system/include/GL/glut.h +21 -0
  149. data/modules/emscripten/system/include/GLES/gl.h +770 -0
  150. data/modules/emscripten/system/include/GLES/glext.h +1278 -0
  151. data/modules/emscripten/system/include/GLES/glplatform.h +30 -0
  152. data/modules/emscripten/system/include/GLES2/gl2.h +621 -0
  153. data/modules/emscripten/system/include/GLES2/gl2ext.h +803 -0
  154. data/modules/emscripten/system/include/GLES2/gl2platform.h +30 -0
  155. data/modules/emscripten/system/include/KHR/khrplatform.h +277 -0
  156. data/modules/emscripten/system/include/SDL/COPYING +19 -0
  157. data/modules/emscripten/system/include/SDL/SDL.h +162 -0
  158. data/modules/emscripten/system/include/SDL/SDL_assert.h +241 -0
  159. data/modules/emscripten/system/include/SDL/SDL_atomic.h +318 -0
  160. data/modules/emscripten/system/include/SDL/SDL_audio.h +509 -0
  161. data/modules/emscripten/system/include/SDL/SDL_blendmode.h +60 -0
  162. data/modules/emscripten/system/include/SDL/SDL_clipboard.h +75 -0
  163. data/modules/emscripten/system/include/SDL/SDL_compat.h +365 -0
  164. data/modules/emscripten/system/include/SDL/SDL_config.h +48 -0
  165. data/modules/emscripten/system/include/SDL/SDL_config.h.in +297 -0
  166. data/modules/emscripten/system/include/SDL/SDL_config_android.h +133 -0
  167. data/modules/emscripten/system/include/SDL/SDL_config_iphoneos.h +148 -0
  168. data/modules/emscripten/system/include/SDL/SDL_config_macosx.h +172 -0
  169. data/modules/emscripten/system/include/SDL/SDL_config_minimal.h +74 -0
  170. data/modules/emscripten/system/include/SDL/SDL_config_nintendods.h +129 -0
  171. data/modules/emscripten/system/include/SDL/SDL_config_pandora.h +125 -0
  172. data/modules/emscripten/system/include/SDL/SDL_config_windows.h +207 -0
  173. data/modules/emscripten/system/include/SDL/SDL_config_wiz.h +119 -0
  174. data/modules/emscripten/system/include/SDL/SDL_copying.h +20 -0
  175. data/modules/emscripten/system/include/SDL/SDL_cpuinfo.h +150 -0
  176. data/modules/emscripten/system/include/SDL/SDL_endian.h +248 -0
  177. data/modules/emscripten/system/include/SDL/SDL_error.h +77 -0
  178. data/modules/emscripten/system/include/SDL/SDL_events.h +639 -0
  179. data/modules/emscripten/system/include/SDL/SDL_gesture.h +91 -0
  180. data/modules/emscripten/system/include/SDL/SDL_gfxPrimitives.h +246 -0
  181. data/modules/emscripten/system/include/SDL/SDL_haptic.h +1200 -0
  182. data/modules/emscripten/system/include/SDL/SDL_hints.h +206 -0
  183. data/modules/emscripten/system/include/SDL/SDL_image.h +138 -0
  184. data/modules/emscripten/system/include/SDL/SDL_input.h +87 -0
  185. data/modules/emscripten/system/include/SDL/SDL_joystick.h +208 -0
  186. data/modules/emscripten/system/include/SDL/SDL_keyboard.h +169 -0
  187. data/modules/emscripten/system/include/SDL/SDL_keycode.h +344 -0
  188. data/modules/emscripten/system/include/SDL/SDL_loadso.h +85 -0
  189. data/modules/emscripten/system/include/SDL/SDL_log.h +211 -0
  190. data/modules/emscripten/system/include/SDL/SDL_main.h +98 -0
  191. data/modules/emscripten/system/include/SDL/SDL_mixer.h +634 -0
  192. data/modules/emscripten/system/include/SDL/SDL_mouse.h +213 -0
  193. data/modules/emscripten/system/include/SDL/SDL_mutex.h +248 -0
  194. data/modules/emscripten/system/include/SDL/SDL_name.h +11 -0
  195. data/modules/emscripten/system/include/SDL/SDL_opengl.h +11116 -0
  196. data/modules/emscripten/system/include/SDL/SDL_opengles.h +38 -0
  197. data/modules/emscripten/system/include/SDL/SDL_opengles2.h +38 -0
  198. data/modules/emscripten/system/include/SDL/SDL_pixels.h +423 -0
  199. data/modules/emscripten/system/include/SDL/SDL_platform.h +160 -0
  200. data/modules/emscripten/system/include/SDL/SDL_power.h +79 -0
  201. data/modules/emscripten/system/include/SDL/SDL_quit.h +58 -0
  202. data/modules/emscripten/system/include/SDL/SDL_rect.h +136 -0
  203. data/modules/emscripten/system/include/SDL/SDL_render.h +615 -0
  204. data/modules/emscripten/system/include/SDL/SDL_revision.h +2 -0
  205. data/modules/emscripten/system/include/SDL/SDL_revision.h.orig +2 -0
  206. data/modules/emscripten/system/include/SDL/SDL_rotozoom.h +123 -0
  207. data/modules/emscripten/system/include/SDL/SDL_rwops.h +220 -0
  208. data/modules/emscripten/system/include/SDL/SDL_scancode.h +398 -0
  209. data/modules/emscripten/system/include/SDL/SDL_shape.h +147 -0
  210. data/modules/emscripten/system/include/SDL/SDL_stdinc.h +764 -0
  211. data/modules/emscripten/system/include/SDL/SDL_surface.h +499 -0
  212. data/modules/emscripten/system/include/SDL/SDL_syswm.h +241 -0
  213. data/modules/emscripten/system/include/SDL/SDL_thread.h +182 -0
  214. data/modules/emscripten/system/include/SDL/SDL_timer.h +108 -0
  215. data/modules/emscripten/system/include/SDL/SDL_touch.h +124 -0
  216. data/modules/emscripten/system/include/SDL/SDL_ttf.h +249 -0
  217. data/modules/emscripten/system/include/SDL/SDL_types.h +29 -0
  218. data/modules/emscripten/system/include/SDL/SDL_version.h +166 -0
  219. data/modules/emscripten/system/include/SDL/SDL_video.h +820 -0
  220. data/modules/emscripten/system/include/SDL/begin_code.h +135 -0
  221. data/modules/emscripten/system/include/SDL/close_code.h +37 -0
  222. data/modules/emscripten/system/include/X11/X.h +717 -0
  223. data/modules/emscripten/system/include/X11/Xatom.h +79 -0
  224. data/modules/emscripten/system/include/X11/Xfuncproto.h +127 -0
  225. data/modules/emscripten/system/include/X11/Xlib.h +4023 -0
  226. data/modules/emscripten/system/include/X11/Xosdefs.h +116 -0
  227. data/modules/emscripten/system/include/X11/Xutil.h +826 -0
  228. data/modules/emscripten/system/include/X11/keysym.h +73 -0
  229. data/modules/emscripten/system/include/X11/keysymdef.h +2389 -0
  230. data/modules/emscripten/system/include/bsd/float.h +91 -0
  231. data/modules/emscripten/system/include/bsd/readme.txt +2 -0
  232. data/modules/emscripten/system/include/bsd/sys/mman.h +180 -0
  233. data/modules/emscripten/system/include/bsd/sys/utsname.h +70 -0
  234. data/modules/emscripten/system/include/dlfcn.h +31 -0
  235. data/modules/emscripten/system/include/emscripten/bind.h +1210 -0
  236. data/modules/emscripten/system/include/emscripten/emscripten.h +388 -0
  237. data/modules/emscripten/system/include/emscripten/val.h +311 -0
  238. data/modules/emscripten/system/include/emscripten/wire.h +393 -0
  239. data/modules/emscripten/system/include/err.h +95 -0
  240. data/modules/emscripten/system/include/execinfo.h +44 -0
  241. data/modules/emscripten/system/include/features.h +3 -0
  242. data/modules/emscripten/system/include/gc.h +70 -0
  243. data/modules/emscripten/system/include/gfx/png.h +3798 -0
  244. data/modules/emscripten/system/include/gfx/pngconf.h +1665 -0
  245. data/modules/emscripten/system/include/gfx/tiff.h +654 -0
  246. data/modules/emscripten/system/include/gfx/tiffconf.h +104 -0
  247. data/modules/emscripten/system/include/gfx/tiffio.h +526 -0
  248. data/modules/emscripten/system/include/gfx/tiffvers.h +9 -0
  249. data/modules/emscripten/system/include/jansson.h +323 -0
  250. data/modules/emscripten/system/include/jansson_config.h +54 -0
  251. data/modules/emscripten/system/include/libc/_ansi.h +135 -0
  252. data/modules/emscripten/system/include/libc/_syslist.h +40 -0
  253. data/modules/emscripten/system/include/libc/alloca.h +21 -0
  254. data/modules/emscripten/system/include/libc/ar.h +69 -0
  255. data/modules/emscripten/system/include/libc/argz.h +33 -0
  256. data/modules/emscripten/system/include/libc/assert.h +46 -0
  257. data/modules/emscripten/system/include/libc/complex.h +124 -0
  258. data/modules/emscripten/system/include/libc/ctype.h +196 -0
  259. data/modules/emscripten/system/include/libc/dirent.h +16 -0
  260. data/modules/emscripten/system/include/libc/endian.h +3 -0
  261. data/modules/emscripten/system/include/libc/envlock.h +15 -0
  262. data/modules/emscripten/system/include/libc/envz.h +16 -0
  263. data/modules/emscripten/system/include/libc/errno.h +11 -0
  264. data/modules/emscripten/system/include/libc/fastmath.h +13 -0
  265. data/modules/emscripten/system/include/libc/fcntl.h +1 -0
  266. data/modules/emscripten/system/include/libc/fnmatch.h +55 -0
  267. data/modules/emscripten/system/include/libc/getopt.h +196 -0
  268. data/modules/emscripten/system/include/libc/glob.h +89 -0
  269. data/modules/emscripten/system/include/libc/grp.h +94 -0
  270. data/modules/emscripten/system/include/libc/iconv.h +62 -0
  271. data/modules/emscripten/system/include/libc/ieeefp.h +256 -0
  272. data/modules/emscripten/system/include/libc/ifaddrs.h +64 -0
  273. data/modules/emscripten/system/include/libc/inttypes.h +290 -0
  274. data/modules/emscripten/system/include/libc/iso646.h +43 -0
  275. data/modules/emscripten/system/include/libc/langinfo.h +316 -0
  276. data/modules/emscripten/system/include/libc/libgen.h +23 -0
  277. data/modules/emscripten/system/include/libc/limits.h +155 -0
  278. data/modules/emscripten/system/include/libc/locale.h +80 -0
  279. data/modules/emscripten/system/include/libc/machine/_default_types.h +121 -0
  280. data/modules/emscripten/system/include/libc/machine/_types.h +8 -0
  281. data/modules/emscripten/system/include/libc/machine/ansi.h +1 -0
  282. data/modules/emscripten/system/include/libc/machine/endian.h +31 -0
  283. data/modules/emscripten/system/include/libc/machine/fastmath.h +100 -0
  284. data/modules/emscripten/system/include/libc/machine/ieeefp.h +376 -0
  285. data/modules/emscripten/system/include/libc/machine/malloc.h +8 -0
  286. data/modules/emscripten/system/include/libc/machine/param.h +1 -0
  287. data/modules/emscripten/system/include/libc/machine/setjmp-dj.h +43 -0
  288. data/modules/emscripten/system/include/libc/machine/setjmp.h +361 -0
  289. data/modules/emscripten/system/include/libc/machine/stdlib.h +8 -0
  290. data/modules/emscripten/system/include/libc/machine/termios.h +1 -0
  291. data/modules/emscripten/system/include/libc/machine/time.h +19 -0
  292. data/modules/emscripten/system/include/libc/machine/types.h +30 -0
  293. data/modules/emscripten/system/include/libc/malloc.h +169 -0
  294. data/modules/emscripten/system/include/libc/math.h +594 -0
  295. data/modules/emscripten/system/include/libc/newlib.h +2 -0
  296. data/modules/emscripten/system/include/libc/paths.h +7 -0
  297. data/modules/emscripten/system/include/libc/process.h +44 -0
  298. data/modules/emscripten/system/include/libc/pthread.h +362 -0
  299. data/modules/emscripten/system/include/libc/pwd.h +78 -0
  300. data/modules/emscripten/system/include/libc/readme.txt +3 -0
  301. data/modules/emscripten/system/include/libc/reent.h +183 -0
  302. data/modules/emscripten/system/include/libc/regdef.h +7 -0
  303. data/modules/emscripten/system/include/libc/regex.h +102 -0
  304. data/modules/emscripten/system/include/libc/sched.h +97 -0
  305. data/modules/emscripten/system/include/libc/search.h +59 -0
  306. data/modules/emscripten/system/include/libc/setjmp.h +20 -0
  307. data/modules/emscripten/system/include/libc/signal.h +30 -0
  308. data/modules/emscripten/system/include/libc/stdarg.h +50 -0
  309. data/modules/emscripten/system/include/libc/stddef.h +64 -0
  310. data/modules/emscripten/system/include/libc/stdint.h +493 -0
  311. data/modules/emscripten/system/include/libc/stdio.h +694 -0
  312. data/modules/emscripten/system/include/libc/stdlib.h +230 -0
  313. data/modules/emscripten/system/include/libc/string.h +105 -0
  314. data/modules/emscripten/system/include/libc/strings.h +35 -0
  315. data/modules/emscripten/system/include/libc/sys/_default_fcntl.h +223 -0
  316. data/modules/emscripten/system/include/libc/sys/_types.h +93 -0
  317. data/modules/emscripten/system/include/libc/sys/cdefs.h +123 -0
  318. data/modules/emscripten/system/include/libc/sys/config.h +255 -0
  319. data/modules/emscripten/system/include/libc/sys/custom_file.h +2 -0
  320. data/modules/emscripten/system/include/libc/sys/dir.h +10 -0
  321. data/modules/emscripten/system/include/libc/sys/dirent.h +58 -0
  322. data/modules/emscripten/system/include/libc/sys/errno.h +190 -0
  323. data/modules/emscripten/system/include/libc/sys/fcntl.h +4 -0
  324. data/modules/emscripten/system/include/libc/sys/features.h +212 -0
  325. data/modules/emscripten/system/include/libc/sys/file.h +2 -0
  326. data/modules/emscripten/system/include/libc/sys/iconvnls.h +77 -0
  327. data/modules/emscripten/system/include/libc/sys/lock.h +24 -0
  328. data/modules/emscripten/system/include/libc/sys/param.h +25 -0
  329. data/modules/emscripten/system/include/libc/sys/queue.h +471 -0
  330. data/modules/emscripten/system/include/libc/sys/reent.h +843 -0
  331. data/modules/emscripten/system/include/libc/sys/resource.h +59 -0
  332. data/modules/emscripten/system/include/libc/sys/sched.h +67 -0
  333. data/modules/emscripten/system/include/libc/sys/signal.h +314 -0
  334. data/modules/emscripten/system/include/libc/sys/stat.h +222 -0
  335. data/modules/emscripten/system/include/libc/sys/stdio.h +27 -0
  336. data/modules/emscripten/system/include/libc/sys/string.h +2 -0
  337. data/modules/emscripten/system/include/libc/sys/syslimits.h +65 -0
  338. data/modules/emscripten/system/include/libc/sys/termios.h +280 -0
  339. data/modules/emscripten/system/include/libc/sys/time.h +85 -0
  340. data/modules/emscripten/system/include/libc/sys/timeb.h +39 -0
  341. data/modules/emscripten/system/include/libc/sys/times.h +28 -0
  342. data/modules/emscripten/system/include/libc/sys/ttydefaults.h +97 -0
  343. data/modules/emscripten/system/include/libc/sys/types.h +481 -0
  344. data/modules/emscripten/system/include/libc/sys/unistd.h +514 -0
  345. data/modules/emscripten/system/include/libc/sys/utime.h +26 -0
  346. data/modules/emscripten/system/include/libc/sys/wait.h +40 -0
  347. data/modules/emscripten/system/include/libc/tar.h +39 -0
  348. data/modules/emscripten/system/include/libc/termios.h +7 -0
  349. data/modules/emscripten/system/include/libc/time.h +273 -0
  350. data/modules/emscripten/system/include/libc/unctrl.h +46 -0
  351. data/modules/emscripten/system/include/libc/unistd.h +6 -0
  352. data/modules/emscripten/system/include/libc/utime.h +12 -0
  353. data/modules/emscripten/system/include/libc/utmp.h +8 -0
  354. data/modules/emscripten/system/include/libc/wchar.h +194 -0
  355. data/modules/emscripten/system/include/libc/wctype.h +47 -0
  356. data/modules/emscripten/system/include/libc/wordexp.h +53 -0
  357. data/modules/emscripten/system/include/libcxx/CREDITS.TXT +91 -0
  358. data/modules/emscripten/system/include/libcxx/LICENSE.txt +76 -0
  359. data/modules/emscripten/system/include/libcxx/__bit_reference +1268 -0
  360. data/modules/emscripten/system/include/libcxx/__config +485 -0
  361. data/modules/emscripten/system/include/libcxx/__debug +193 -0
  362. data/modules/emscripten/system/include/libcxx/__functional_03 +2130 -0
  363. data/modules/emscripten/system/include/libcxx/__functional_base +437 -0
  364. data/modules/emscripten/system/include/libcxx/__functional_base_03 +1087 -0
  365. data/modules/emscripten/system/include/libcxx/__hash_table +1945 -0
  366. data/modules/emscripten/system/include/libcxx/__locale +1435 -0
  367. data/modules/emscripten/system/include/libcxx/__mutex_base +438 -0
  368. data/modules/emscripten/system/include/libcxx/__split_buffer +654 -0
  369. data/modules/emscripten/system/include/libcxx/__sso_allocator +77 -0
  370. data/modules/emscripten/system/include/libcxx/__std_stream +317 -0
  371. data/modules/emscripten/system/include/libcxx/__tree +2293 -0
  372. data/modules/emscripten/system/include/libcxx/__tuple +305 -0
  373. data/modules/emscripten/system/include/libcxx/__tuple_03 +27 -0
  374. data/modules/emscripten/system/include/libcxx/__undef_min_max +19 -0
  375. data/modules/emscripten/system/include/libcxx/algorithm +5458 -0
  376. data/modules/emscripten/system/include/libcxx/array +341 -0
  377. data/modules/emscripten/system/include/libcxx/atomic +1521 -0
  378. data/modules/emscripten/system/include/libcxx/bitset +1081 -0
  379. data/modules/emscripten/system/include/libcxx/cassert +25 -0
  380. data/modules/emscripten/system/include/libcxx/ccomplex +29 -0
  381. data/modules/emscripten/system/include/libcxx/cctype +164 -0
  382. data/modules/emscripten/system/include/libcxx/cerrno +393 -0
  383. data/modules/emscripten/system/include/libcxx/cfenv +82 -0
  384. data/modules/emscripten/system/include/libcxx/cfloat +78 -0
  385. data/modules/emscripten/system/include/libcxx/chrono +898 -0
  386. data/modules/emscripten/system/include/libcxx/cinttypes +259 -0
  387. data/modules/emscripten/system/include/libcxx/ciso646 +25 -0
  388. data/modules/emscripten/system/include/libcxx/climits +48 -0
  389. data/modules/emscripten/system/include/libcxx/clocale +53 -0
  390. data/modules/emscripten/system/include/libcxx/cmath +1683 -0
  391. data/modules/emscripten/system/include/libcxx/codecvt +547 -0
  392. data/modules/emscripten/system/include/libcxx/complex +1526 -0
  393. data/modules/emscripten/system/include/libcxx/complex.h +35 -0
  394. data/modules/emscripten/system/include/libcxx/condition_variable +256 -0
  395. data/modules/emscripten/system/include/libcxx/csetjmp +52 -0
  396. data/modules/emscripten/system/include/libcxx/csignal +58 -0
  397. data/modules/emscripten/system/include/libcxx/cstdarg +48 -0
  398. data/modules/emscripten/system/include/libcxx/cstdbool +32 -0
  399. data/modules/emscripten/system/include/libcxx/cstddef +103 -0
  400. data/modules/emscripten/system/include/libcxx/cstdint +191 -0
  401. data/modules/emscripten/system/include/libcxx/cstdio +175 -0
  402. data/modules/emscripten/system/include/libcxx/cstdlib +172 -0
  403. data/modules/emscripten/system/include/libcxx/cstring +112 -0
  404. data/modules/emscripten/system/include/libcxx/ctgmath +29 -0
  405. data/modules/emscripten/system/include/libcxx/ctime +72 -0
  406. data/modules/emscripten/system/include/libcxx/cwchar +208 -0
  407. data/modules/emscripten/system/include/libcxx/cwctype +213 -0
  408. data/modules/emscripten/system/include/libcxx/deque +2846 -0
  409. data/modules/emscripten/system/include/libcxx/exception +250 -0
  410. data/modules/emscripten/system/include/libcxx/ext/__hash +46 -0
  411. data/modules/emscripten/system/include/libcxx/ext/hash_map +1003 -0
  412. data/modules/emscripten/system/include/libcxx/ext/hash_set +657 -0
  413. data/modules/emscripten/system/include/libcxx/forward_list +1636 -0
  414. data/modules/emscripten/system/include/libcxx/fstream +1415 -0
  415. data/modules/emscripten/system/include/libcxx/functional +2063 -0
  416. data/modules/emscripten/system/include/libcxx/future +2505 -0
  417. data/modules/emscripten/system/include/libcxx/initializer_list +105 -0
  418. data/modules/emscripten/system/include/libcxx/iomanip +504 -0
  419. data/modules/emscripten/system/include/libcxx/ios +988 -0
  420. data/modules/emscripten/system/include/libcxx/iosfwd +194 -0
  421. data/modules/emscripten/system/include/libcxx/iostream +60 -0
  422. data/modules/emscripten/system/include/libcxx/istream +1713 -0
  423. data/modules/emscripten/system/include/libcxx/iterator +1869 -0
  424. data/modules/emscripten/system/include/libcxx/limits +809 -0
  425. data/modules/emscripten/system/include/libcxx/list +2275 -0
  426. data/modules/emscripten/system/include/libcxx/locale +4591 -0
  427. data/modules/emscripten/system/include/libcxx/map +1924 -0
  428. data/modules/emscripten/system/include/libcxx/memory +5437 -0
  429. data/modules/emscripten/system/include/libcxx/mutex +566 -0
  430. data/modules/emscripten/system/include/libcxx/new +117 -0
  431. data/modules/emscripten/system/include/libcxx/numeric +197 -0
  432. data/modules/emscripten/system/include/libcxx/ostream +1286 -0
  433. data/modules/emscripten/system/include/libcxx/queue +717 -0
  434. data/modules/emscripten/system/include/libcxx/random +6750 -0
  435. data/modules/emscripten/system/include/libcxx/ratio +487 -0
  436. data/modules/emscripten/system/include/libcxx/readme.txt +1 -0
  437. data/modules/emscripten/system/include/libcxx/regex +6439 -0
  438. data/modules/emscripten/system/include/libcxx/scoped_allocator +578 -0
  439. data/modules/emscripten/system/include/libcxx/set +1025 -0
  440. data/modules/emscripten/system/include/libcxx/sstream +888 -0
  441. data/modules/emscripten/system/include/libcxx/stack +292 -0
  442. data/modules/emscripten/system/include/libcxx/stdexcept +162 -0
  443. data/modules/emscripten/system/include/libcxx/streambuf +564 -0
  444. data/modules/emscripten/system/include/libcxx/string +3987 -0
  445. data/modules/emscripten/system/include/libcxx/strstream +400 -0
  446. data/modules/emscripten/system/include/libcxx/support/solaris/floatingpoint.h +5 -0
  447. data/modules/emscripten/system/include/libcxx/support/solaris/wchar.h +38 -0
  448. data/modules/emscripten/system/include/libcxx/support/solaris/xlocale.h +146 -0
  449. data/modules/emscripten/system/include/libcxx/support/win32/limits_win32.h +79 -0
  450. data/modules/emscripten/system/include/libcxx/support/win32/locale_win32.h +116 -0
  451. data/modules/emscripten/system/include/libcxx/support/win32/math_win32.h +113 -0
  452. data/modules/emscripten/system/include/libcxx/support/win32/support.h +115 -0
  453. data/modules/emscripten/system/include/libcxx/system_error +636 -0
  454. data/modules/emscripten/system/include/libcxx/tgmath.h +29 -0
  455. data/modules/emscripten/system/include/libcxx/thread +459 -0
  456. data/modules/emscripten/system/include/libcxx/tuple +1092 -0
  457. data/modules/emscripten/system/include/libcxx/type_traits +3040 -0
  458. data/modules/emscripten/system/include/libcxx/typeindex +103 -0
  459. data/modules/emscripten/system/include/libcxx/typeinfo +124 -0
  460. data/modules/emscripten/system/include/libcxx/unordered_map +1864 -0
  461. data/modules/emscripten/system/include/libcxx/unordered_set +1144 -0
  462. data/modules/emscripten/system/include/libcxx/utility +583 -0
  463. data/modules/emscripten/system/include/libcxx/valarray +4779 -0
  464. data/modules/emscripten/system/include/libcxx/vector +3228 -0
  465. data/modules/emscripten/system/include/memory.h +10 -0
  466. data/modules/emscripten/system/include/mntent.h +23 -0
  467. data/modules/emscripten/system/include/net/arpa/inet.h +32 -0
  468. data/modules/emscripten/system/include/net/arpa/nameser.h +535 -0
  469. data/modules/emscripten/system/include/net/arpa/nameser_compat.h +187 -0
  470. data/modules/emscripten/system/include/net/if.h +87 -0
  471. data/modules/emscripten/system/include/net/netinet/in.h +166 -0
  472. data/modules/emscripten/system/include/net/netinet/tcp.h +246 -0
  473. data/modules/emscripten/system/include/net/resolv.h +389 -0
  474. data/modules/emscripten/system/include/netdb.h +94 -0
  475. data/modules/emscripten/system/include/nl_types.h +19 -0
  476. data/modules/emscripten/system/include/poll.h +3 -0
  477. data/modules/emscripten/system/include/pty.h +6 -0
  478. data/modules/emscripten/system/include/semaphore.h +31 -0
  479. data/modules/emscripten/system/include/spawn.h +105 -0
  480. data/modules/emscripten/system/include/stdbool.h +16 -0
  481. data/modules/emscripten/system/include/sys/bitypes.h +3 -0
  482. data/modules/emscripten/system/include/sys/io.h +14 -0
  483. data/modules/emscripten/system/include/sys/ioctl.h +26 -0
  484. data/modules/emscripten/system/include/sys/poll.h +31 -0
  485. data/modules/emscripten/system/include/sys/select.h +14 -0
  486. data/modules/emscripten/system/include/sys/socket.h +101 -0
  487. data/modules/emscripten/system/include/sys/socketvar.h +3 -0
  488. data/modules/emscripten/system/include/sys/statvfs.h +32 -0
  489. data/modules/emscripten/system/include/sys/sysctl.h +14 -0
  490. data/modules/emscripten/system/include/sys/uio.h +22 -0
  491. data/modules/emscripten/system/include/sys/un.h +66 -0
  492. data/modules/emscripten/system/include/sysexits.h +108 -0
  493. data/modules/emscripten/system/include/unwind.h +154 -0
  494. data/modules/emscripten/system/include/xlocale.h +47 -0
  495. data/modules/emscripten/system/include/zconf.h +428 -0
  496. data/modules/emscripten/system/include/zlib.h +1613 -0
  497. data/modules/emscripten/system/lib/compiler-rt/LICENSE.TXT +97 -0
  498. data/modules/emscripten/system/lib/compiler-rt/divdi3.c +47 -0
  499. data/modules/emscripten/system/lib/compiler-rt/int_endianness.h +116 -0
  500. data/modules/emscripten/system/lib/compiler-rt/int_lib.h +46 -0
  501. data/modules/emscripten/system/lib/compiler-rt/int_math.h +67 -0
  502. data/modules/emscripten/system/lib/compiler-rt/int_types.h +140 -0
  503. data/modules/emscripten/system/lib/compiler-rt/int_util.h +29 -0
  504. data/modules/emscripten/system/lib/compiler-rt/muldi3.c +56 -0
  505. data/modules/emscripten/system/lib/compiler-rt/readme.txt +20 -0
  506. data/modules/emscripten/system/lib/compiler-rt/udivdi3.c +36 -0
  507. data/modules/emscripten/system/lib/compiler-rt/udivmoddi4.c +251 -0
  508. data/modules/emscripten/system/lib/debugging.cpp +24 -0
  509. data/modules/emscripten/system/lib/dlmalloc.c +6299 -0
  510. data/modules/emscripten/system/lib/embind/bind.cpp +63 -0
  511. data/modules/emscripten/system/lib/libc/gen/err.c +49 -0
  512. data/modules/emscripten/system/lib/libc/gen/errx.c +49 -0
  513. data/modules/emscripten/system/lib/libc/gen/verr.c +58 -0
  514. data/modules/emscripten/system/lib/libc/gen/verrx.c +51 -0
  515. data/modules/emscripten/system/lib/libc/gen/vwarn.c +55 -0
  516. data/modules/emscripten/system/lib/libc/gen/vwarnx.c +48 -0
  517. data/modules/emscripten/system/lib/libc/gen/warn.c +49 -0
  518. data/modules/emscripten/system/lib/libc/gen/warnx.c +49 -0
  519. data/modules/emscripten/system/lib/libc/musl/COPYRIGHT +92 -0
  520. data/modules/emscripten/system/lib/libc/musl/readme.txt +1 -0
  521. data/modules/emscripten/system/lib/libc/musl/src/ctype/alpha.h +125 -0
  522. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswalnum.c +7 -0
  523. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswalpha.c +14 -0
  524. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswblank.c +8 -0
  525. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswcntrl.c +10 -0
  526. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswctype.c +63 -0
  527. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswdigit.c +9 -0
  528. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswgraph.c +7 -0
  529. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswlower.c +6 -0
  530. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswprint.c +19 -0
  531. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswpunct.c +12 -0
  532. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswspace.c +19 -0
  533. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswupper.c +6 -0
  534. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswxdigit.c +7 -0
  535. data/modules/emscripten/system/lib/libc/musl/src/ctype/nonspacing.h +62 -0
  536. data/modules/emscripten/system/lib/libc/musl/src/ctype/punct.h +109 -0
  537. data/modules/emscripten/system/lib/libc/musl/src/ctype/towctrans.c +268 -0
  538. data/modules/emscripten/system/lib/libc/musl/src/ctype/wcswidth.c +8 -0
  539. data/modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c +16 -0
  540. data/modules/emscripten/system/lib/libc/musl/src/ctype/wcwidth.c +29 -0
  541. data/modules/emscripten/system/lib/libc/musl/src/ctype/wide.h +42 -0
  542. data/modules/emscripten/system/lib/libc/musl/src/internal/libc.c +22 -0
  543. data/modules/emscripten/system/lib/libc/musl/src/internal/libc.h +71 -0
  544. data/modules/emscripten/system/lib/libc/musl/src/multibyte/btowc.c +7 -0
  545. data/modules/emscripten/system/lib/libc/musl/src/multibyte/internal.c +38 -0
  546. data/modules/emscripten/system/lib/libc/musl/src/multibyte/internal.h +22 -0
  547. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mblen.c +17 -0
  548. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbrlen.c +18 -0
  549. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbrtowc.c +57 -0
  550. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsinit.c +17 -0
  551. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsnrtowcs.c +65 -0
  552. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsrtowcs.c +100 -0
  553. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbstowcs.c +7 -0
  554. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbtowc.c +53 -0
  555. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcrtomb.c +38 -0
  556. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcsnrtombs.c +52 -0
  557. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcsrtombs.c +58 -0
  558. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcstombs.c +7 -0
  559. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wctob.c +8 -0
  560. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wctomb.c +18 -0
  561. data/modules/emscripten/system/lib/libc/musl/src/string/wcpcpy.c +6 -0
  562. data/modules/emscripten/system/lib/libc/musl/src/string/wcpncpy.c +6 -0
  563. data/modules/emscripten/system/lib/libc/musl/src/string/wcscasecmp.c +7 -0
  564. data/modules/emscripten/system/lib/libc/musl/src/string/wcscasecmp_l.c +6 -0
  565. data/modules/emscripten/system/lib/libc/musl/src/string/wcscat.c +7 -0
  566. data/modules/emscripten/system/lib/libc/musl/src/string/wcschr.c +8 -0
  567. data/modules/emscripten/system/lib/libc/musl/src/string/wcscmp.c +7 -0
  568. data/modules/emscripten/system/lib/libc/musl/src/string/wcscpy.c +8 -0
  569. data/modules/emscripten/system/lib/libc/musl/src/string/wcscspn.c +10 -0
  570. data/modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c +11 -0
  571. data/modules/emscripten/system/lib/libc/musl/src/string/wcslen.c +8 -0
  572. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncasecmp.c +9 -0
  573. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncasecmp_l.c +6 -0
  574. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncat.c +10 -0
  575. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncmp.c +7 -0
  576. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncpy.c +9 -0
  577. data/modules/emscripten/system/lib/libc/musl/src/string/wcsnlen.c +8 -0
  578. data/modules/emscripten/system/lib/libc/musl/src/string/wcspbrk.c +7 -0
  579. data/modules/emscripten/system/lib/libc/musl/src/string/wcsrchr.c +8 -0
  580. data/modules/emscripten/system/lib/libc/musl/src/string/wcsspn.c +8 -0
  581. data/modules/emscripten/system/lib/libc/musl/src/string/wcsstr.c +108 -0
  582. data/modules/emscripten/system/lib/libc/musl/src/string/wcstok.c +12 -0
  583. data/modules/emscripten/system/lib/libc/musl/src/string/wcswcs.c +6 -0
  584. data/modules/emscripten/system/lib/libc/musl/src/string/wmemchr.c +8 -0
  585. data/modules/emscripten/system/lib/libc/musl/src/string/wmemcmp.c +8 -0
  586. data/modules/emscripten/system/lib/libc/musl/src/string/wmemcpy.c +9 -0
  587. data/modules/emscripten/system/lib/libc/musl/src/string/wmemmove.c +12 -0
  588. data/modules/emscripten/system/lib/libc/musl/src/string/wmemset.c +9 -0
  589. data/modules/emscripten/system/lib/libc/stdlib/getopt_long.c +511 -0
  590. data/modules/emscripten/system/lib/libc/stdlib/strtod.c +305 -0
  591. data/modules/emscripten/system/lib/libc.symbols +81 -0
  592. data/modules/emscripten/system/lib/libcextra.symbols +61 -0
  593. data/modules/emscripten/system/lib/libcxx/CREDITS.TXT +91 -0
  594. data/modules/emscripten/system/lib/libcxx/LICENSE.txt +76 -0
  595. data/modules/emscripten/system/lib/libcxx/algorithm.cpp +83 -0
  596. data/modules/emscripten/system/lib/libcxx/bind.cpp +30 -0
  597. data/modules/emscripten/system/lib/libcxx/chrono.cpp +132 -0
  598. data/modules/emscripten/system/lib/libcxx/condition_variable.cpp +81 -0
  599. data/modules/emscripten/system/lib/libcxx/debug.cpp +504 -0
  600. data/modules/emscripten/system/lib/libcxx/exception.cpp +226 -0
  601. data/modules/emscripten/system/lib/libcxx/future.cpp +285 -0
  602. data/modules/emscripten/system/lib/libcxx/hash.cpp +564 -0
  603. data/modules/emscripten/system/lib/libcxx/ios.cpp +455 -0
  604. data/modules/emscripten/system/lib/libcxx/iostream.cpp +68 -0
  605. data/modules/emscripten/system/lib/libcxx/locale.cpp +6093 -0
  606. data/modules/emscripten/system/lib/libcxx/memory.cpp +223 -0
  607. data/modules/emscripten/system/lib/libcxx/mutex.cpp +250 -0
  608. data/modules/emscripten/system/lib/libcxx/new.cpp +205 -0
  609. data/modules/emscripten/system/lib/libcxx/random.cpp +48 -0
  610. data/modules/emscripten/system/lib/libcxx/readme.txt +1 -0
  611. data/modules/emscripten/system/lib/libcxx/regex.cpp +325 -0
  612. data/modules/emscripten/system/lib/libcxx/stdexcept.cpp +196 -0
  613. data/modules/emscripten/system/lib/libcxx/string.cpp +687 -0
  614. data/modules/emscripten/system/lib/libcxx/strstream.cpp +329 -0
  615. data/modules/emscripten/system/lib/libcxx/support/solaris/README +4 -0
  616. data/modules/emscripten/system/lib/libcxx/support/solaris/mbsnrtowcs.inc +76 -0
  617. data/modules/emscripten/system/lib/libcxx/support/solaris/wcsnrtombs.inc +93 -0
  618. data/modules/emscripten/system/lib/libcxx/support/solaris/xlocale.c +245 -0
  619. data/modules/emscripten/system/lib/libcxx/support/win32/locale_win32.cpp +94 -0
  620. data/modules/emscripten/system/lib/libcxx/support/win32/support.cpp +70 -0
  621. data/modules/emscripten/system/lib/libcxx/symbols +2927 -0
  622. data/modules/emscripten/system/lib/libcxx/system_error.cpp +201 -0
  623. data/modules/emscripten/system/lib/libcxx/thread.cpp +208 -0
  624. data/modules/emscripten/system/lib/libcxx/typeinfo.cpp +60 -0
  625. data/modules/emscripten/system/lib/libcxx/utility.cpp +17 -0
  626. data/modules/emscripten/system/lib/libcxx/valarray.cpp +54 -0
  627. data/modules/emscripten/system/lib/libcxxabi/CREDITS.TXT +38 -0
  628. data/modules/emscripten/system/lib/libcxxabi/LICENSE.TXT +76 -0
  629. data/modules/emscripten/system/lib/libcxxabi/include/cxa_demangle.h +167 -0
  630. data/modules/emscripten/system/lib/libcxxabi/include/cxxabi.h +175 -0
  631. data/modules/emscripten/system/lib/libcxxabi/lib/buildit +99 -0
  632. data/modules/emscripten/system/lib/libcxxabi/readme.txt +1 -0
  633. data/modules/emscripten/system/lib/libcxxabi/src/abort_message.cpp +50 -0
  634. data/modules/emscripten/system/lib/libcxxabi/src/abort_message.h +33 -0
  635. data/modules/emscripten/system/lib/libcxxabi/src/cxa_aux_runtime.cpp +34 -0
  636. data/modules/emscripten/system/lib/libcxxabi/src/cxa_demangle.cpp +11036 -0
  637. data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception.cpp +622 -0
  638. data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception.hpp +123 -0
  639. data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception_storage.cpp +91 -0
  640. data/modules/emscripten/system/lib/libcxxabi/src/cxa_guard.cpp +231 -0
  641. data/modules/emscripten/system/lib/libcxxabi/src/cxa_handlers.cpp +125 -0
  642. data/modules/emscripten/system/lib/libcxxabi/src/cxa_handlers.hpp +54 -0
  643. data/modules/emscripten/system/lib/libcxxabi/src/cxa_new_delete.cpp +242 -0
  644. data/modules/emscripten/system/lib/libcxxabi/src/cxa_personality.cpp +1055 -0
  645. data/modules/emscripten/system/lib/libcxxabi/src/cxa_unexpected.cpp +27 -0
  646. data/modules/emscripten/system/lib/libcxxabi/src/cxa_vector.cpp +367 -0
  647. data/modules/emscripten/system/lib/libcxxabi/src/cxa_virtual.cpp +31 -0
  648. data/modules/emscripten/system/lib/libcxxabi/src/exception.cpp +41 -0
  649. data/modules/emscripten/system/lib/libcxxabi/src/fallback_malloc.ipp +174 -0
  650. data/modules/emscripten/system/lib/libcxxabi/src/private_typeinfo.cpp +1146 -0
  651. data/modules/emscripten/system/lib/libcxxabi/src/private_typeinfo.h +248 -0
  652. data/modules/emscripten/system/lib/libcxxabi/src/stdexcept.cpp +169 -0
  653. data/modules/emscripten/system/lib/libcxxabi/src/typeinfo.cpp +53 -0
  654. data/modules/emscripten/system/lib/libcxxabi/symbols +236 -0
  655. data/modules/emscripten/system/lib/sdl.cpp +13 -0
  656. data/modules/emscripten/system/lib/sdl.symbols +1 -0
  657. data/modules/emscripten/tests/hello_world.js +92 -0
  658. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/CppHeaderParser.py +2347 -0
  659. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/__init__.py +4 -0
  660. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/doc/CppHeaderParser.html +657 -0
  661. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/examples/SampleClass.h +147 -0
  662. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/examples/readSampleClass.py +74 -0
  663. data/modules/emscripten/third_party/CppHeaderParser/PKG-INFO +249 -0
  664. data/modules/emscripten/third_party/CppHeaderParser/README.html +544 -0
  665. data/modules/emscripten/third_party/CppHeaderParser/README.txt +226 -0
  666. data/modules/emscripten/third_party/CppHeaderParser/setup.py +43 -0
  667. data/modules/emscripten/third_party/ansidecl.h +371 -0
  668. data/modules/emscripten/third_party/closure-compiler/COPYING +202 -0
  669. data/modules/emscripten/third_party/closure-compiler/README +292 -0
  670. data/modules/emscripten/third_party/closure-compiler/compiler.jar +0 -0
  671. data/modules/emscripten/third_party/closure-compiler/readme.txt +3 -0
  672. data/modules/emscripten/third_party/cp-demangle.h +161 -0
  673. data/modules/emscripten/third_party/demangle.h +549 -0
  674. data/modules/emscripten/third_party/demangler.py +49 -0
  675. data/modules/emscripten/third_party/gcc_demangler.c +4226 -0
  676. data/modules/emscripten/third_party/gcc_demangler.js +21282 -0
  677. data/modules/emscripten/third_party/jni/emjvm.cpp +133 -0
  678. data/modules/emscripten/third_party/jni/emjvm.h +8 -0
  679. data/modules/emscripten/third_party/jni/emjvm.js +185 -0
  680. data/modules/emscripten/third_party/jni/jni.h +1154 -0
  681. data/modules/emscripten/third_party/libiberty.h +634 -0
  682. data/modules/emscripten/third_party/lzma.js/README.markdown +37 -0
  683. data/modules/emscripten/third_party/lzma.js/doit.sh +37 -0
  684. data/modules/emscripten/third_party/lzma.js/lzip/AUTHORS +7 -0
  685. data/modules/emscripten/third_party/lzma.js/lzip/COPYING +676 -0
  686. data/modules/emscripten/third_party/lzma.js/lzip/ChangeLog +201 -0
  687. data/modules/emscripten/third_party/lzma.js/lzip/INSTALL +56 -0
  688. data/modules/emscripten/third_party/lzma.js/lzip/Makefile +160 -0
  689. data/modules/emscripten/third_party/lzma.js/lzip/Makefile.in +138 -0
  690. data/modules/emscripten/third_party/lzma.js/lzip/NEWS +22 -0
  691. data/modules/emscripten/third_party/lzma.js/lzip/README +77 -0
  692. data/modules/emscripten/third_party/lzma.js/lzip/arg_parser.cc +204 -0
  693. data/modules/emscripten/third_party/lzma.js/lzip/arg_parser.h +106 -0
  694. data/modules/emscripten/third_party/lzma.js/lzip/configure +192 -0
  695. data/modules/emscripten/third_party/lzma.js/lzip/decoder.cc +252 -0
  696. data/modules/emscripten/third_party/lzma.js/lzip/decoder.h +268 -0
  697. data/modules/emscripten/third_party/lzma.js/lzip/encoder.cc +643 -0
  698. data/modules/emscripten/third_party/lzma.js/lzip/encoder.h +582 -0
  699. data/modules/emscripten/third_party/lzma.js/lzip/fast_encoder.cc +378 -0
  700. data/modules/emscripten/third_party/lzma.js/lzip/fast_encoder.h +171 -0
  701. data/modules/emscripten/third_party/lzma.js/lzip/lzip.h +264 -0
  702. data/modules/emscripten/third_party/lzma.js/lzip/main.cc +545 -0
  703. data/modules/emscripten/third_party/lzma.js/lzma-decoder.js +27 -0
  704. data/modules/emscripten/third_party/lzma.js/lzma-full.js +27 -0
  705. data/modules/emscripten/third_party/lzma.js/native_test.sh +5 -0
  706. data/modules/emscripten/third_party/lzma.js/post.js +13 -0
  707. data/modules/emscripten/third_party/lzma.js/pre.js +13 -0
  708. data/modules/emscripten/third_party/lzma.js/test-decoder.js +39 -0
  709. data/modules/emscripten/third_party/lzma.js/test-full.html +9 -0
  710. data/modules/emscripten/third_party/lzma.js/test-full.js +78 -0
  711. data/modules/emscripten/third_party/ply/ANNOUNCE +40 -0
  712. data/modules/emscripten/third_party/ply/CHANGES +1093 -0
  713. data/modules/emscripten/third_party/ply/PKG-INFO +22 -0
  714. data/modules/emscripten/third_party/ply/README +271 -0
  715. data/modules/emscripten/third_party/ply/TODO +16 -0
  716. data/modules/emscripten/third_party/ply/doc/internal.html +874 -0
  717. data/modules/emscripten/third_party/ply/doc/makedoc.py +194 -0
  718. data/modules/emscripten/third_party/ply/doc/ply.html +3262 -0
  719. data/modules/emscripten/third_party/ply/example/BASIC/README +79 -0
  720. data/modules/emscripten/third_party/ply/example/BASIC/basic.py +71 -0
  721. data/modules/emscripten/third_party/ply/example/BASIC/basiclex.py +74 -0
  722. data/modules/emscripten/third_party/ply/example/BASIC/basiclog.py +79 -0
  723. data/modules/emscripten/third_party/ply/example/BASIC/basinterp.py +441 -0
  724. data/modules/emscripten/third_party/ply/example/BASIC/basparse.py +424 -0
  725. data/modules/emscripten/third_party/ply/example/BASIC/dim.bas +14 -0
  726. data/modules/emscripten/third_party/ply/example/BASIC/func.bas +5 -0
  727. data/modules/emscripten/third_party/ply/example/BASIC/gcd.bas +22 -0
  728. data/modules/emscripten/third_party/ply/example/BASIC/gosub.bas +13 -0
  729. data/modules/emscripten/third_party/ply/example/BASIC/hello.bas +4 -0
  730. data/modules/emscripten/third_party/ply/example/BASIC/linear.bas +17 -0
  731. data/modules/emscripten/third_party/ply/example/BASIC/maxsin.bas +12 -0
  732. data/modules/emscripten/third_party/ply/example/BASIC/powers.bas +13 -0
  733. data/modules/emscripten/third_party/ply/example/BASIC/rand.bas +4 -0
  734. data/modules/emscripten/third_party/ply/example/BASIC/sales.bas +20 -0
  735. data/modules/emscripten/third_party/ply/example/BASIC/sears.bas +18 -0
  736. data/modules/emscripten/third_party/ply/example/BASIC/sqrt1.bas +5 -0
  737. data/modules/emscripten/third_party/ply/example/BASIC/sqrt2.bas +4 -0
  738. data/modules/emscripten/third_party/ply/example/GardenSnake/GardenSnake.py +709 -0
  739. data/modules/emscripten/third_party/ply/example/GardenSnake/README +5 -0
  740. data/modules/emscripten/third_party/ply/example/README +10 -0
  741. data/modules/emscripten/third_party/ply/example/ansic/README +2 -0
  742. data/modules/emscripten/third_party/ply/example/ansic/clex.py +164 -0
  743. data/modules/emscripten/third_party/ply/example/ansic/cparse.py +863 -0
  744. data/modules/emscripten/third_party/ply/example/calc/calc.py +107 -0
  745. data/modules/emscripten/third_party/ply/example/calcdebug/calc.py +113 -0
  746. data/modules/emscripten/third_party/ply/example/classcalc/calc.py +157 -0
  747. data/modules/emscripten/third_party/ply/example/cleanup.sh +2 -0
  748. data/modules/emscripten/third_party/ply/example/closurecalc/calc.py +130 -0
  749. data/modules/emscripten/third_party/ply/example/hedit/hedit.py +48 -0
  750. data/modules/emscripten/third_party/ply/example/newclasscalc/calc.py +160 -0
  751. data/modules/emscripten/third_party/ply/example/optcalc/README +9 -0
  752. data/modules/emscripten/third_party/ply/example/optcalc/calc.py +119 -0
  753. data/modules/emscripten/third_party/ply/example/unicalc/calc.py +117 -0
  754. data/modules/emscripten/third_party/ply/example/yply/README +41 -0
  755. data/modules/emscripten/third_party/ply/example/yply/ylex.py +112 -0
  756. data/modules/emscripten/third_party/ply/example/yply/yparse.py +217 -0
  757. data/modules/emscripten/third_party/ply/example/yply/yply.py +53 -0
  758. data/modules/emscripten/third_party/ply/ply/__init__.py +4 -0
  759. data/modules/emscripten/third_party/ply/ply/cpp.py +898 -0
  760. data/modules/emscripten/third_party/ply/ply/ctokens.py +133 -0
  761. data/modules/emscripten/third_party/ply/ply/lex.py +1058 -0
  762. data/modules/emscripten/third_party/ply/ply/yacc.py +3276 -0
  763. data/modules/emscripten/third_party/ply/setup.py +31 -0
  764. data/modules/emscripten/third_party/ply/test/README +7 -0
  765. data/modules/emscripten/third_party/ply/test/calclex.py +49 -0
  766. data/modules/emscripten/third_party/ply/test/cleanup.sh +4 -0
  767. data/modules/emscripten/third_party/ply/test/lex_closure.py +54 -0
  768. data/modules/emscripten/third_party/ply/test/lex_doc1.py +26 -0
  769. data/modules/emscripten/third_party/ply/test/lex_dup1.py +29 -0
  770. data/modules/emscripten/third_party/ply/test/lex_dup2.py +33 -0
  771. data/modules/emscripten/third_party/ply/test/lex_dup3.py +31 -0
  772. data/modules/emscripten/third_party/ply/test/lex_empty.py +20 -0
  773. data/modules/emscripten/third_party/ply/test/lex_error1.py +24 -0
  774. data/modules/emscripten/third_party/ply/test/lex_error2.py +26 -0
  775. data/modules/emscripten/third_party/ply/test/lex_error3.py +27 -0
  776. data/modules/emscripten/third_party/ply/test/lex_error4.py +27 -0
  777. data/modules/emscripten/third_party/ply/test/lex_hedit.py +47 -0
  778. data/modules/emscripten/third_party/ply/test/lex_ignore.py +31 -0
  779. data/modules/emscripten/third_party/ply/test/lex_ignore2.py +29 -0
  780. data/modules/emscripten/third_party/ply/test/lex_literal1.py +25 -0
  781. data/modules/emscripten/third_party/ply/test/lex_literal2.py +25 -0
  782. data/modules/emscripten/third_party/ply/test/lex_many_tokens.py +27 -0
  783. data/modules/emscripten/third_party/ply/test/lex_module.py +10 -0
  784. data/modules/emscripten/third_party/ply/test/lex_module_import.py +42 -0
  785. data/modules/emscripten/third_party/ply/test/lex_object.py +55 -0
  786. data/modules/emscripten/third_party/ply/test/lex_opt_alias.py +54 -0
  787. data/modules/emscripten/third_party/ply/test/lex_optimize.py +50 -0
  788. data/modules/emscripten/third_party/ply/test/lex_optimize2.py +50 -0
  789. data/modules/emscripten/third_party/ply/test/lex_optimize3.py +52 -0
  790. data/modules/emscripten/third_party/ply/test/lex_re1.py +27 -0
  791. data/modules/emscripten/third_party/ply/test/lex_re2.py +27 -0
  792. data/modules/emscripten/third_party/ply/test/lex_re3.py +29 -0
  793. data/modules/emscripten/third_party/ply/test/lex_rule1.py +27 -0
  794. data/modules/emscripten/third_party/ply/test/lex_rule2.py +29 -0
  795. data/modules/emscripten/third_party/ply/test/lex_rule3.py +27 -0
  796. data/modules/emscripten/third_party/ply/test/lex_state1.py +40 -0
  797. data/modules/emscripten/third_party/ply/test/lex_state2.py +40 -0
  798. data/modules/emscripten/third_party/ply/test/lex_state3.py +42 -0
  799. data/modules/emscripten/third_party/ply/test/lex_state4.py +41 -0
  800. data/modules/emscripten/third_party/ply/test/lex_state5.py +40 -0
  801. data/modules/emscripten/third_party/ply/test/lex_state_noerror.py +39 -0
  802. data/modules/emscripten/third_party/ply/test/lex_state_norule.py +40 -0
  803. data/modules/emscripten/third_party/ply/test/lex_state_try.py +45 -0
  804. data/modules/emscripten/third_party/ply/test/lex_token1.py +19 -0
  805. data/modules/emscripten/third_party/ply/test/lex_token2.py +22 -0
  806. data/modules/emscripten/third_party/ply/test/lex_token3.py +24 -0
  807. data/modules/emscripten/third_party/ply/test/lex_token4.py +26 -0
  808. data/modules/emscripten/third_party/ply/test/lex_token5.py +31 -0
  809. data/modules/emscripten/third_party/ply/test/lex_token_dup.py +29 -0
  810. data/modules/emscripten/third_party/ply/test/testlex.py +606 -0
  811. data/modules/emscripten/third_party/ply/test/testyacc.py +347 -0
  812. data/modules/emscripten/third_party/ply/test/yacc_badargs.py +68 -0
  813. data/modules/emscripten/third_party/ply/test/yacc_badid.py +77 -0
  814. data/modules/emscripten/third_party/ply/test/yacc_badprec.py +64 -0
  815. data/modules/emscripten/third_party/ply/test/yacc_badprec2.py +68 -0
  816. data/modules/emscripten/third_party/ply/test/yacc_badprec3.py +68 -0
  817. data/modules/emscripten/third_party/ply/test/yacc_badrule.py +68 -0
  818. data/modules/emscripten/third_party/ply/test/yacc_badtok.py +68 -0
  819. data/modules/emscripten/third_party/ply/test/yacc_dup.py +68 -0
  820. data/modules/emscripten/third_party/ply/test/yacc_error1.py +68 -0
  821. data/modules/emscripten/third_party/ply/test/yacc_error2.py +68 -0
  822. data/modules/emscripten/third_party/ply/test/yacc_error3.py +67 -0
  823. data/modules/emscripten/third_party/ply/test/yacc_error4.py +72 -0
  824. data/modules/emscripten/third_party/ply/test/yacc_inf.py +56 -0
  825. data/modules/emscripten/third_party/ply/test/yacc_literal.py +69 -0
  826. data/modules/emscripten/third_party/ply/test/yacc_misplaced.py +68 -0
  827. data/modules/emscripten/third_party/ply/test/yacc_missing1.py +68 -0
  828. data/modules/emscripten/third_party/ply/test/yacc_nested.py +33 -0
  829. data/modules/emscripten/third_party/ply/test/yacc_nodoc.py +67 -0
  830. data/modules/emscripten/third_party/ply/test/yacc_noerror.py +66 -0
  831. data/modules/emscripten/third_party/ply/test/yacc_nop.py +68 -0
  832. data/modules/emscripten/third_party/ply/test/yacc_notfunc.py +66 -0
  833. data/modules/emscripten/third_party/ply/test/yacc_notok.py +67 -0
  834. data/modules/emscripten/third_party/ply/test/yacc_prec1.py +68 -0
  835. data/modules/emscripten/third_party/ply/test/yacc_rr.py +72 -0
  836. data/modules/emscripten/third_party/ply/test/yacc_rr_unused.py +30 -0
  837. data/modules/emscripten/third_party/ply/test/yacc_simple.py +68 -0
  838. data/modules/emscripten/third_party/ply/test/yacc_sr.py +63 -0
  839. data/modules/emscripten/third_party/ply/test/yacc_term1.py +68 -0
  840. data/modules/emscripten/third_party/ply/test/yacc_unused.py +77 -0
  841. data/modules/emscripten/third_party/ply/test/yacc_unused_rule.py +72 -0
  842. data/modules/emscripten/third_party/ply/test/yacc_uprec.py +63 -0
  843. data/modules/emscripten/third_party/ply/test/yacc_uprec2.py +63 -0
  844. data/modules/emscripten/third_party/readme.txt +7 -0
  845. data/modules/emscripten/third_party/websockify/CHANGES.txt +23 -0
  846. data/modules/emscripten/third_party/websockify/LICENSE.txt +16 -0
  847. data/modules/emscripten/third_party/websockify/MANIFEST.in +1 -0
  848. data/modules/emscripten/third_party/websockify/Makefile +11 -0
  849. data/modules/emscripten/third_party/websockify/README.md +168 -0
  850. data/modules/emscripten/third_party/websockify/Windows/Windows Service Readme.txt +39 -0
  851. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Program.cs +24 -0
  852. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.Designer.cs +61 -0
  853. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.cs +19 -0
  854. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.resx +129 -0
  855. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Properties/AssemblyInfo.cs +36 -0
  856. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Service1.Designer.cs +37 -0
  857. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Service1.cs +41 -0
  858. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/noVNC Websocket.csproj +75 -0
  859. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/noVNC Websocket.sln +20 -0
  860. data/modules/emscripten/third_party/websockify/docs/LICENSE.GPL-3 +621 -0
  861. data/modules/emscripten/third_party/websockify/docs/LICENSE.LGPL-3 +165 -0
  862. data/modules/emscripten/third_party/websockify/docs/LICENSE.MPL-2.0 +373 -0
  863. data/modules/emscripten/third_party/websockify/docs/TODO +9 -0
  864. data/modules/emscripten/third_party/websockify/docs/flash_policy.txt +4 -0
  865. data/modules/emscripten/third_party/websockify/docs/latency_results.txt +114 -0
  866. data/modules/emscripten/third_party/websockify/docs/notes +17 -0
  867. data/modules/emscripten/third_party/websockify/docs/release.txt +9 -0
  868. data/modules/emscripten/third_party/websockify/docs/websockify.1 +110 -0
  869. data/modules/emscripten/third_party/websockify/include/VT100.js +919 -0
  870. data/modules/emscripten/third_party/websockify/include/base64.js +114 -0
  871. data/modules/emscripten/third_party/websockify/include/keysym.js +99 -0
  872. data/modules/emscripten/third_party/websockify/include/util.js +359 -0
  873. data/modules/emscripten/third_party/websockify/include/web-socket-js/README.txt +109 -0
  874. data/modules/emscripten/third_party/websockify/include/web-socket-js/WebSocketMain.swf +0 -0
  875. data/modules/emscripten/third_party/websockify/include/web-socket-js/swfobject.js +4 -0
  876. data/modules/emscripten/third_party/websockify/include/web-socket-js/web_socket.js +391 -0
  877. data/modules/emscripten/third_party/websockify/include/websock.js +422 -0
  878. data/modules/emscripten/third_party/websockify/include/webutil.js +216 -0
  879. data/modules/emscripten/third_party/websockify/include/wsirc.js +235 -0
  880. data/modules/emscripten/third_party/websockify/include/wstelnet.js +335 -0
  881. data/modules/emscripten/third_party/websockify/other/Makefile +14 -0
  882. data/modules/emscripten/third_party/websockify/other/README.md +51 -0
  883. data/modules/emscripten/third_party/websockify/other/launch.sh +108 -0
  884. data/modules/emscripten/third_party/websockify/other/project.clj +13 -0
  885. data/modules/emscripten/third_party/websockify/other/websocket.c +802 -0
  886. data/modules/emscripten/third_party/websockify/other/websocket.h +84 -0
  887. data/modules/emscripten/third_party/websockify/other/websocket.rb +456 -0
  888. data/modules/emscripten/third_party/websockify/other/websockify.c +385 -0
  889. data/modules/emscripten/third_party/websockify/other/websockify.clj +233 -0
  890. data/modules/emscripten/third_party/websockify/other/websockify.js +196 -0
  891. data/modules/emscripten/third_party/websockify/other/websockify.rb +171 -0
  892. data/modules/emscripten/third_party/websockify/other/wswrap +22 -0
  893. data/modules/emscripten/third_party/websockify/rebind +18 -0
  894. data/modules/emscripten/third_party/websockify/rebind.c +94 -0
  895. data/modules/emscripten/third_party/websockify/run +5 -0
  896. data/modules/emscripten/third_party/websockify/setup.py +30 -0
  897. data/modules/emscripten/third_party/websockify/tests/b64_vs_utf8.py +29 -0
  898. data/modules/emscripten/third_party/websockify/tests/base64.html +91 -0
  899. data/modules/emscripten/third_party/websockify/tests/base64.js +12 -0
  900. data/modules/emscripten/third_party/websockify/tests/echo.html +148 -0
  901. data/modules/emscripten/third_party/websockify/tests/echo.py +75 -0
  902. data/modules/emscripten/third_party/websockify/tests/echo.rb +62 -0
  903. data/modules/emscripten/third_party/websockify/tests/latency.html +290 -0
  904. data/modules/emscripten/third_party/websockify/tests/latency.py +75 -0
  905. data/modules/emscripten/third_party/websockify/tests/load.html +250 -0
  906. data/modules/emscripten/third_party/websockify/tests/load.py +167 -0
  907. data/modules/emscripten/third_party/websockify/tests/plain_echo.html +168 -0
  908. data/modules/emscripten/third_party/websockify/tests/simple.html +68 -0
  909. data/modules/emscripten/third_party/websockify/tests/utf8-list.py +22 -0
  910. data/modules/emscripten/third_party/websockify/websockify/__init__.py +2 -0
  911. data/modules/emscripten/third_party/websockify/websockify/websocket.py +982 -0
  912. data/modules/emscripten/third_party/websockify/websockify/websocketproxy.py +393 -0
  913. data/modules/emscripten/third_party/websockify/websockify.py +5 -0
  914. data/modules/emscripten/third_party/websockify/wsirc.html +99 -0
  915. data/modules/emscripten/third_party/websockify/wstelnet.html +74 -0
  916. data/modules/emscripten/tools/__init__.py +0 -0
  917. data/modules/emscripten/tools/__init__.pyc +0 -0
  918. data/modules/emscripten/tools/autodebugger.py +289 -0
  919. data/modules/emscripten/tools/autodebugger_c.py +37 -0
  920. data/modules/emscripten/tools/autodebugger_indenter.py +18 -0
  921. data/modules/emscripten/tools/autodebugger_js.py +47 -0
  922. data/modules/emscripten/tools/autodediffer.py +60 -0
  923. data/modules/emscripten/tools/bindings_generator.py +832 -0
  924. data/modules/emscripten/tools/bisect_pair.py +88 -0
  925. data/modules/emscripten/tools/cache.py +198 -0
  926. data/modules/emscripten/tools/cache.pyc +0 -0
  927. data/modules/emscripten/tools/clean_webconsole.py +34 -0
  928. data/modules/emscripten/tools/crunch-worker.js +124 -0
  929. data/modules/emscripten/tools/diff_autodebugger.py +15 -0
  930. data/modules/emscripten/tools/eliminator/asm-eliminator-test-output.js +5129 -0
  931. data/modules/emscripten/tools/eliminator/asm-eliminator-test.js +6861 -0
  932. data/modules/emscripten/tools/eliminator/eliminator-test-output.js +6122 -0
  933. data/modules/emscripten/tools/eliminator/eliminator-test.js +8856 -0
  934. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/README.html +888 -0
  935. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/README.org +463 -0
  936. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/bin/uglifyjs +317 -0
  937. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/docstyle.css +75 -0
  938. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/object-ast.js +75 -0
  939. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js +1363 -0
  940. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/process.js +2005 -0
  941. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/squeeze-more.js +51 -0
  942. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/package.json +22 -0
  943. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/beautify.js +28 -0
  944. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/testparser.js +402 -0
  945. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array1.js +1 -0
  946. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array2.js +1 -0
  947. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array3.js +1 -0
  948. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array4.js +1 -0
  949. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/assignment.js +1 -0
  950. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/concatstring.js +1 -0
  951. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/const.js +1 -0
  952. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js +1 -0
  953. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/forstatement.js +1 -0
  954. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/if.js +1 -0
  955. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js +1 -0
  956. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js +1 -0
  957. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue10.js +1 -0
  958. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue11.js +1 -0
  959. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue13.js +1 -0
  960. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue14.js +1 -0
  961. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue16.js +1 -0
  962. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue17.js +1 -0
  963. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue20.js +1 -0
  964. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue21.js +1 -0
  965. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue25.js +1 -0
  966. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue27.js +1 -0
  967. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue28.js +1 -0
  968. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue29.js +1 -0
  969. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue30.js +1 -0
  970. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue34.js +1 -0
  971. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue4.js +1 -0
  972. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue48.js +1 -0
  973. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue50.js +1 -0
  974. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue53.js +1 -0
  975. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js +1 -0
  976. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue68.js +1 -0
  977. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue69.js +1 -0
  978. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue9.js +1 -0
  979. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/mangle.js +1 -0
  980. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js +1 -0
  981. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/var.js +1 -0
  982. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/with.js +1 -0
  983. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array1.js +3 -0
  984. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array2.js +4 -0
  985. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array3.js +4 -0
  986. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array4.js +6 -0
  987. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/assignment.js +20 -0
  988. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/concatstring.js +3 -0
  989. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/const.js +5 -0
  990. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/empty-blocks.js +4 -0
  991. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/forstatement.js +10 -0
  992. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/if.js +6 -0
  993. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/ifreturn.js +9 -0
  994. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/ifreturn2.js +16 -0
  995. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue10.js +1 -0
  996. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue11.js +3 -0
  997. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue13.js +1 -0
  998. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue14.js +1 -0
  999. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue16.js +1 -0
  1000. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue17.js +4 -0
  1001. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue20.js +1 -0
  1002. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue21.js +6 -0
  1003. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue25.js +7 -0
  1004. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue27.js +1 -0
  1005. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue28.js +3 -0
  1006. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue29.js +1 -0
  1007. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue30.js +3 -0
  1008. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue34.js +3 -0
  1009. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue4.js +3 -0
  1010. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue48.js +1 -0
  1011. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue50.js +9 -0
  1012. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue53.js +1 -0
  1013. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue54.1.js +3 -0
  1014. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue68.js +5 -0
  1015. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue69.js +1 -0
  1016. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue9.js +4 -0
  1017. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/mangle.js +5 -0
  1018. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/strict-equals.js +3 -0
  1019. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/var.js +3 -0
  1020. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/with.js +2 -0
  1021. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/scripts.js +55 -0
  1022. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/hoist.js +33 -0
  1023. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/instrument.js +97 -0
  1024. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/instrument2.js +138 -0
  1025. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/test.js +16 -0
  1026. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/uglify-js.js +17 -0
  1027. data/modules/emscripten/tools/eliminator/safe-eliminator-test-output.js +85 -0
  1028. data/modules/emscripten/tools/eliminator/safe-eliminator-test.js +103 -0
  1029. data/modules/emscripten/tools/emconfiguren.py +19 -0
  1030. data/modules/emscripten/tools/emmaken.py +230 -0
  1031. data/modules/emscripten/tools/emmakenxx.py +18 -0
  1032. data/modules/emscripten/tools/exec_llvm.py +50 -0
  1033. data/modules/emscripten/tools/file2json.py +49 -0
  1034. data/modules/emscripten/tools/file_packager.py +649 -0
  1035. data/modules/emscripten/tools/find_bigfuncs.py +23 -0
  1036. data/modules/emscripten/tools/find_bigis.py +18 -0
  1037. data/modules/emscripten/tools/fix_closure.py +88 -0
  1038. data/modules/emscripten/tools/ie7_fix.py +14 -0
  1039. data/modules/emscripten/tools/js-optimizer.js +3440 -0
  1040. data/modules/emscripten/tools/js_optimizer.py +341 -0
  1041. data/modules/emscripten/tools/js_optimizer.pyc +0 -0
  1042. data/modules/emscripten/tools/jsrun.py +27 -0
  1043. data/modules/emscripten/tools/jsrun.pyc +0 -0
  1044. data/modules/emscripten/tools/ll-strip.py +56 -0
  1045. data/modules/emscripten/tools/make_file.py +19 -0
  1046. data/modules/emscripten/tools/make_minigzip.py +13 -0
  1047. data/modules/emscripten/tools/namespacer.py +95 -0
  1048. data/modules/emscripten/tools/nativize_llvm.py +34 -0
  1049. data/modules/emscripten/tools/node_modules/source-map/CHANGELOG.md +58 -0
  1050. data/modules/emscripten/tools/node_modules/source-map/LICENSE +28 -0
  1051. data/modules/emscripten/tools/node_modules/source-map/Makefile.dryice.js +166 -0
  1052. data/modules/emscripten/tools/node_modules/source-map/README.md +347 -0
  1053. data/modules/emscripten/tools/node_modules/source-map/build/assert-shim.js +56 -0
  1054. data/modules/emscripten/tools/node_modules/source-map/build/mini-require.js +152 -0
  1055. data/modules/emscripten/tools/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  1056. data/modules/emscripten/tools/node_modules/source-map/build/prefix-utils.jsm +18 -0
  1057. data/modules/emscripten/tools/node_modules/source-map/build/suffix-browser.js +8 -0
  1058. data/modules/emscripten/tools/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  1059. data/modules/emscripten/tools/node_modules/source-map/build/suffix-utils.jsm +21 -0
  1060. data/modules/emscripten/tools/node_modules/source-map/build/test-prefix.js +8 -0
  1061. data/modules/emscripten/tools/node_modules/source-map/build/test-suffix.js +3 -0
  1062. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/array-set.js +96 -0
  1063. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  1064. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/base64.js +42 -0
  1065. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  1066. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-map-consumer.js +430 -0
  1067. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-map-generator.js +381 -0
  1068. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-node.js +353 -0
  1069. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/util.js +117 -0
  1070. data/modules/emscripten/tools/node_modules/source-map/lib/source-map.js +8 -0
  1071. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  1072. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/README.md +119 -0
  1073. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  1074. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/package.json +33 -0
  1075. data/modules/emscripten/tools/node_modules/source-map/package.json +74 -0
  1076. data/modules/emscripten/tools/node_modules/source-map/test/run-tests.js +73 -0
  1077. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-api.js +26 -0
  1078. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-array-set.js +71 -0
  1079. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  1080. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-base64.js +35 -0
  1081. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  1082. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  1083. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js +306 -0
  1084. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-map-generator.js +391 -0
  1085. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-node.js +282 -0
  1086. data/modules/emscripten/tools/node_modules/source-map/test/source-map/util.js +152 -0
  1087. data/modules/emscripten/tools/reproduceriter.js +216 -0
  1088. data/modules/emscripten/tools/reproduceriter.py +160 -0
  1089. data/modules/emscripten/tools/response_file.py +28 -0
  1090. data/modules/emscripten/tools/response_file.pyc +0 -0
  1091. data/modules/emscripten/tools/scan_js.py +20 -0
  1092. data/modules/emscripten/tools/scan_ll.py +18 -0
  1093. data/modules/emscripten/tools/scons/site_scons/site_tools/emscripten/__init__.py +3 -0
  1094. data/modules/emscripten/tools/scons/site_scons/site_tools/emscripten/emscripten.py +46 -0
  1095. data/modules/emscripten/tools/settings_template_readonly.py +47 -0
  1096. data/modules/emscripten/tools/shared.py +1437 -0
  1097. data/modules/emscripten/tools/shared.pyc +0 -0
  1098. data/modules/emscripten/tools/source-maps/sourcemap2json.js +15 -0
  1099. data/modules/emscripten/tools/source-maps/sourcemapper.js +177 -0
  1100. data/modules/emscripten/tools/split.py +97 -0
  1101. data/modules/emscripten/tools/tempfiles.py +40 -0
  1102. data/modules/emscripten/tools/tempfiles.pyc +0 -0
  1103. data/modules/emscripten/tools/test-js-optimizer-asm-last-output.js +75 -0
  1104. data/modules/emscripten/tools/test-js-optimizer-asm-last.js +91 -0
  1105. data/modules/emscripten/tools/test-js-optimizer-asm-outline-output.js +570 -0
  1106. data/modules/emscripten/tools/test-js-optimizer-asm-outline.js +606 -0
  1107. data/modules/emscripten/tools/test-js-optimizer-asm-pre-output.js +540 -0
  1108. data/modules/emscripten/tools/test-js-optimizer-asm-pre.js +550 -0
  1109. data/modules/emscripten/tools/test-js-optimizer-asm-regs-min-output.js +36 -0
  1110. data/modules/emscripten/tools/test-js-optimizer-asm-regs-min.js +37 -0
  1111. data/modules/emscripten/tools/test-js-optimizer-asm-regs-output.js +106 -0
  1112. data/modules/emscripten/tools/test-js-optimizer-asm-regs.js +110 -0
  1113. data/modules/emscripten/tools/test-js-optimizer-asm-relocate-output.js +9 -0
  1114. data/modules/emscripten/tools/test-js-optimizer-asm-relocate.js +12 -0
  1115. data/modules/emscripten/tools/test-js-optimizer-output.js +291 -0
  1116. data/modules/emscripten/tools/test-js-optimizer-regs-output.js +232 -0
  1117. data/modules/emscripten/tools/test-js-optimizer-regs.js +237 -0
  1118. data/modules/emscripten/tools/test-js-optimizer-t2-output.js +91 -0
  1119. data/modules/emscripten/tools/test-js-optimizer-t2.js +92 -0
  1120. data/modules/emscripten/tools/test-js-optimizer-t2c-output.js +17 -0
  1121. data/modules/emscripten/tools/test-js-optimizer-t2c.js +18 -0
  1122. data/modules/emscripten/tools/test-js-optimizer-t3-output.js +49 -0
  1123. data/modules/emscripten/tools/test-js-optimizer-t3.js +50 -0
  1124. data/modules/emscripten/tools/test-js-optimizer.js +401 -0
  1125. data/modules/mruby/AUTHORS +18 -0
  1126. data/modules/mruby/CONTRIBUTING.md +65 -0
  1127. data/modules/mruby/ChangeLog +15 -0
  1128. data/modules/mruby/INSTALL +29 -0
  1129. data/modules/mruby/LEGAL +6 -0
  1130. data/modules/mruby/MITL +20 -0
  1131. data/modules/mruby/Makefile +18 -0
  1132. data/modules/mruby/NEWS +13 -0
  1133. data/modules/mruby/README.md +116 -0
  1134. data/modules/mruby/Rakefile +114 -0
  1135. data/modules/mruby/TODO +11 -0
  1136. data/modules/mruby/benchmark/ao-render.rb +315 -0
  1137. data/modules/mruby/benchmark/bm_so_lists.rb +47 -0
  1138. data/modules/mruby/benchmark/fib39.rb +8 -0
  1139. data/modules/mruby/build_config.rb +88 -0
  1140. data/modules/mruby/doc/compile/README.md +376 -0
  1141. data/modules/mruby/doc/mrbgems/README.md +254 -0
  1142. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/README.md +4 -0
  1143. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/mrbgem.rake +23 -0
  1144. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/mrblib/example.rb +5 -0
  1145. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/src/example.c +20 -0
  1146. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/test/example.rb +7 -0
  1147. data/modules/mruby/examples/mrbgems/c_extension_example/README.md +4 -0
  1148. data/modules/mruby/examples/mrbgems/c_extension_example/mrbgem.rake +23 -0
  1149. data/modules/mruby/examples/mrbgems/c_extension_example/src/example.c +20 -0
  1150. data/modules/mruby/examples/mrbgems/c_extension_example/test/example.c +7 -0
  1151. data/modules/mruby/examples/mrbgems/c_extension_example/test/example.rb +3 -0
  1152. data/modules/mruby/examples/mrbgems/ruby_extension_example/README.md +4 -0
  1153. data/modules/mruby/examples/mrbgems/ruby_extension_example/mrbgem.rake +23 -0
  1154. data/modules/mruby/examples/mrbgems/ruby_extension_example/mrblib/example.rb +5 -0
  1155. data/modules/mruby/examples/mrbgems/ruby_extension_example/test/example.rb +3 -0
  1156. data/modules/mruby/examples/targets/ArduinoDue.rb +65 -0
  1157. data/modules/mruby/examples/targets/chipKitMax32.rb +68 -0
  1158. data/modules/mruby/include/mrbconf.h +87 -0
  1159. data/modules/mruby/include/mruby/array.h +63 -0
  1160. data/modules/mruby/include/mruby/class.h +75 -0
  1161. data/modules/mruby/include/mruby/compile.h +176 -0
  1162. data/modules/mruby/include/mruby/data.h +53 -0
  1163. data/modules/mruby/include/mruby/dump.h +151 -0
  1164. data/modules/mruby/include/mruby/gc.h +17 -0
  1165. data/modules/mruby/include/mruby/hash.h +54 -0
  1166. data/modules/mruby/include/mruby/irep.h +40 -0
  1167. data/modules/mruby/include/mruby/khash.h +257 -0
  1168. data/modules/mruby/include/mruby/numeric.h +32 -0
  1169. data/modules/mruby/include/mruby/proc.h +62 -0
  1170. data/modules/mruby/include/mruby/range.h +35 -0
  1171. data/modules/mruby/include/mruby/string.h +78 -0
  1172. data/modules/mruby/include/mruby/value.h +483 -0
  1173. data/modules/mruby/include/mruby/variable.h +78 -0
  1174. data/modules/mruby/include/mruby.h +388 -0
  1175. data/modules/mruby/minirake +477 -0
  1176. data/modules/mruby/mrbgems/default.gembox +61 -0
  1177. data/modules/mruby/mrbgems/full-core.gembox +9 -0
  1178. data/modules/mruby/mrbgems/mruby-array-ext/mrbgem.rake +4 -0
  1179. data/modules/mruby/mrbgems/mruby-array-ext/mrblib/array.rb +204 -0
  1180. data/modules/mruby/mrbgems/mruby-array-ext/src/array.c +140 -0
  1181. data/modules/mruby/mrbgems/mruby-array-ext/test/array.rb +109 -0
  1182. data/modules/mruby/mrbgems/mruby-bin-mirb/mrbgem.rake +5 -0
  1183. data/modules/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +365 -0
  1184. data/modules/mruby/mrbgems/mruby-bin-mruby/mrbgem.rake +5 -0
  1185. data/modules/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +243 -0
  1186. data/modules/mruby/mrbgems/mruby-enum-ext/mrbgem.rake +4 -0
  1187. data/modules/mruby/mrbgems/mruby-enum-ext/mrblib/enum.rb +164 -0
  1188. data/modules/mruby/mrbgems/mruby-enum-ext/test/enum.rb +44 -0
  1189. data/modules/mruby/mrbgems/mruby-eval/mrbgem.rake +4 -0
  1190. data/modules/mruby/mrbgems/mruby-eval/src/eval.c +23 -0
  1191. data/modules/mruby/mrbgems/mruby-fiber/mrbgem.rake +4 -0
  1192. data/modules/mruby/mrbgems/mruby-fiber/src/fiber.c +251 -0
  1193. data/modules/mruby/mrbgems/mruby-fiber/test/fiber.rb +64 -0
  1194. data/modules/mruby/mrbgems/mruby-hash-ext/mrbgem.rake +4 -0
  1195. data/modules/mruby/mrbgems/mruby-hash-ext/mrblib/hash.rb +13 -0
  1196. data/modules/mruby/mrbgems/mruby-hash-ext/src/hash-ext.c +62 -0
  1197. data/modules/mruby/mrbgems/mruby-hash-ext/test/hash.rb +26 -0
  1198. data/modules/mruby/mrbgems/mruby-math/mrbgem.rake +4 -0
  1199. data/modules/mruby/mrbgems/mruby-math/src/math.c +685 -0
  1200. data/modules/mruby/mrbgems/mruby-math/test/math.rb +136 -0
  1201. data/modules/mruby/mrbgems/mruby-numeric-ext/mrbgem.rake +4 -0
  1202. data/modules/mruby/mrbgems/mruby-numeric-ext/src/numeric_ext.c +31 -0
  1203. data/modules/mruby/mrbgems/mruby-numeric-ext/test/numeric.rb +10 -0
  1204. data/modules/mruby/mrbgems/mruby-object-ext/mrbgem.rake +4 -0
  1205. data/modules/mruby/mrbgems/mruby-object-ext/src/object.c +108 -0
  1206. data/modules/mruby/mrbgems/mruby-object-ext/test/nil.rb +11 -0
  1207. data/modules/mruby/mrbgems/mruby-object-ext/test/object.rb +9 -0
  1208. data/modules/mruby/mrbgems/mruby-objectspace/mrbgem.rake +4 -0
  1209. data/modules/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +117 -0
  1210. data/modules/mruby/mrbgems/mruby-objectspace/test/objectspace.rb +38 -0
  1211. data/modules/mruby/mrbgems/mruby-print/mrbgem.rake +4 -0
  1212. data/modules/mruby/mrbgems/mruby-print/mrblib/print.rb +64 -0
  1213. data/modules/mruby/mrbgems/mruby-print/src/print.c +44 -0
  1214. data/modules/mruby/mrbgems/mruby-proc-ext/mrbgem.rake +4 -0
  1215. data/modules/mruby/mrbgems/mruby-proc-ext/mrblib/proc.rb +40 -0
  1216. data/modules/mruby/mrbgems/mruby-proc-ext/src/proc.c +97 -0
  1217. data/modules/mruby/mrbgems/mruby-proc-ext/test/proc.rb +41 -0
  1218. data/modules/mruby/mrbgems/mruby-random/mrbgem.rake +4 -0
  1219. data/modules/mruby/mrbgems/mruby-random/src/mt19937ar.c +193 -0
  1220. data/modules/mruby/mrbgems/mruby-random/src/mt19937ar.h +48 -0
  1221. data/modules/mruby/mrbgems/mruby-random/src/random.c +231 -0
  1222. data/modules/mruby/mrbgems/mruby-random/src/random.h +12 -0
  1223. data/modules/mruby/mrbgems/mruby-random/test/random.rb +32 -0
  1224. data/modules/mruby/mrbgems/mruby-range-ext/mrbgem.rake +4 -0
  1225. data/modules/mruby/mrbgems/mruby-range-ext/src/range.c +141 -0
  1226. data/modules/mruby/mrbgems/mruby-range-ext/test/range.rb +20 -0
  1227. data/modules/mruby/mrbgems/mruby-sprintf/mrbgem.rake +4 -0
  1228. data/modules/mruby/mrbgems/mruby-sprintf/src/kernel.c +30 -0
  1229. data/modules/mruby/mrbgems/mruby-sprintf/src/sprintf.c +1102 -0
  1230. data/modules/mruby/mrbgems/mruby-sprintf/test/sprintf.rb +3 -0
  1231. data/modules/mruby/mrbgems/mruby-string-ext/mrbgem.rake +4 -0
  1232. data/modules/mruby/mrbgems/mruby-string-ext/mrblib/string.rb +52 -0
  1233. data/modules/mruby/mrbgems/mruby-string-ext/src/string.c +175 -0
  1234. data/modules/mruby/mrbgems/mruby-string-ext/test/string.rb +112 -0
  1235. data/modules/mruby/mrbgems/mruby-struct/mrbgem.rake +4 -0
  1236. data/modules/mruby/mrbgems/mruby-struct/mrblib/struct.rb +50 -0
  1237. data/modules/mruby/mrbgems/mruby-struct/src/struct.c +818 -0
  1238. data/modules/mruby/mrbgems/mruby-struct/test/struct.rb +77 -0
  1239. data/modules/mruby/mrbgems/mruby-symbol-ext/mrbgem.rake +4 -0
  1240. data/modules/mruby/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +9 -0
  1241. data/modules/mruby/mrbgems/mruby-symbol-ext/src/symbol.c +55 -0
  1242. data/modules/mruby/mrbgems/mruby-symbol-ext/test/symbol.rb +12 -0
  1243. data/modules/mruby/mrbgems/mruby-time/mrbgem.rake +4 -0
  1244. data/modules/mruby/mrbgems/mruby-time/src/time.c +749 -0
  1245. data/modules/mruby/mrbgems/mruby-time/test/time.rb +201 -0
  1246. data/modules/mruby/mrbgems/mruby-toplevel-ext/mrbgem.rake +4 -0
  1247. data/modules/mruby/mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb +11 -0
  1248. data/modules/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb +24 -0
  1249. data/modules/mruby/mrblib/array.rb +111 -0
  1250. data/modules/mruby/mrblib/class.rb +26 -0
  1251. data/modules/mruby/mrblib/compar.rb +104 -0
  1252. data/modules/mruby/mrblib/enum.rb +398 -0
  1253. data/modules/mruby/mrblib/error.rb +66 -0
  1254. data/modules/mruby/mrblib/hash.rb +193 -0
  1255. data/modules/mruby/mrblib/init_mrblib.c +14 -0
  1256. data/modules/mruby/mrblib/kernel.rb +46 -0
  1257. data/modules/mruby/mrblib/mrblib.rake +18 -0
  1258. data/modules/mruby/mrblib/numeric.rb +101 -0
  1259. data/modules/mruby/mrblib/print.rb +18 -0
  1260. data/modules/mruby/mrblib/range.rb +40 -0
  1261. data/modules/mruby/mrblib/string.rb +145 -0
  1262. data/modules/mruby/src/array.c +1150 -0
  1263. data/modules/mruby/src/backtrace.c +73 -0
  1264. data/modules/mruby/src/class.c +1942 -0
  1265. data/modules/mruby/src/codegen.c +2864 -0
  1266. data/modules/mruby/src/compar.c +13 -0
  1267. data/modules/mruby/src/crc.c +38 -0
  1268. data/modules/mruby/src/dump.c +542 -0
  1269. data/modules/mruby/src/enum.c +14 -0
  1270. data/modules/mruby/src/error.c +454 -0
  1271. data/modules/mruby/src/error.h +18 -0
  1272. data/modules/mruby/src/etc.c +204 -0
  1273. data/modules/mruby/src/gc.c +1542 -0
  1274. data/modules/mruby/src/hash.c +1261 -0
  1275. data/modules/mruby/src/init.c +62 -0
  1276. data/modules/mruby/src/kernel.c +1105 -0
  1277. data/modules/mruby/src/keywords +50 -0
  1278. data/modules/mruby/src/lex.def +212 -0
  1279. data/modules/mruby/src/load.c +629 -0
  1280. data/modules/mruby/src/mruby_core.rake +28 -0
  1281. data/modules/mruby/src/node.h +117 -0
  1282. data/modules/mruby/src/numeric.c +1418 -0
  1283. data/modules/mruby/src/object.c +593 -0
  1284. data/modules/mruby/src/opcode.h +160 -0
  1285. data/modules/mruby/src/parse.y +6050 -0
  1286. data/modules/mruby/src/pool.c +190 -0
  1287. data/modules/mruby/src/print.c +71 -0
  1288. data/modules/mruby/src/proc.c +209 -0
  1289. data/modules/mruby/src/range.c +442 -0
  1290. data/modules/mruby/src/re.h +13 -0
  1291. data/modules/mruby/src/state.c +200 -0
  1292. data/modules/mruby/src/string.c +2580 -0
  1293. data/modules/mruby/src/symbol.c +456 -0
  1294. data/modules/mruby/src/value_array.h +27 -0
  1295. data/modules/mruby/src/variable.c +1147 -0
  1296. data/modules/mruby/src/vm.c +2129 -0
  1297. data/modules/mruby/tasks/libmruby.rake +18 -0
  1298. data/modules/mruby/tasks/mrbgem_spec.rake +297 -0
  1299. data/modules/mruby/tasks/mrbgems.rake +85 -0
  1300. data/modules/mruby/tasks/mrbgems_test.rake +88 -0
  1301. data/modules/mruby/tasks/mruby_build.rake +211 -0
  1302. data/modules/mruby/tasks/mruby_build_commands.rake +287 -0
  1303. data/modules/mruby/tasks/mruby_build_gem.rake +67 -0
  1304. data/modules/mruby/tasks/ruby_ext.rake +70 -0
  1305. data/modules/mruby/tasks/toolchains/androideabi.rake +126 -0
  1306. data/modules/mruby/tasks/toolchains/clang.rake +8 -0
  1307. data/modules/mruby/tasks/toolchains/gcc.rake +21 -0
  1308. data/modules/mruby/tasks/toolchains/vs2010.rake +3 -0
  1309. data/modules/mruby/tasks/toolchains/vs2012.rake +44 -0
  1310. data/modules/mruby/test/README.md +7 -0
  1311. data/modules/mruby/test/assert.rb +238 -0
  1312. data/modules/mruby/test/driver.c +118 -0
  1313. data/modules/mruby/test/init_mrbtest.c +24 -0
  1314. data/modules/mruby/test/mrbtest.rake +47 -0
  1315. data/modules/mruby/test/report.rb +4 -0
  1316. data/modules/mruby/test/t/argumenterror.rb +21 -0
  1317. data/modules/mruby/test/t/array.rb +309 -0
  1318. data/modules/mruby/test/t/basicobject.rb +11 -0
  1319. data/modules/mruby/test/t/bs_block.rb +489 -0
  1320. data/modules/mruby/test/t/bs_literal.rb +38 -0
  1321. data/modules/mruby/test/t/class.rb +219 -0
  1322. data/modules/mruby/test/t/comparable.rb +72 -0
  1323. data/modules/mruby/test/t/enumerable.rb +108 -0
  1324. data/modules/mruby/test/t/exception.rb +337 -0
  1325. data/modules/mruby/test/t/false.rb +33 -0
  1326. data/modules/mruby/test/t/float.rb +145 -0
  1327. data/modules/mruby/test/t/gc.rb +45 -0
  1328. data/modules/mruby/test/t/hash.rb +310 -0
  1329. data/modules/mruby/test/t/indexerror.rb +10 -0
  1330. data/modules/mruby/test/t/integer.rb +222 -0
  1331. data/modules/mruby/test/t/kernel.rb +425 -0
  1332. data/modules/mruby/test/t/literals.rb +287 -0
  1333. data/modules/mruby/test/t/localjumperror.rb +13 -0
  1334. data/modules/mruby/test/t/methods.rb +109 -0
  1335. data/modules/mruby/test/t/module.rb +344 -0
  1336. data/modules/mruby/test/t/nameerror.rb +32 -0
  1337. data/modules/mruby/test/t/nil.rb +29 -0
  1338. data/modules/mruby/test/t/nomethoderror.rb +13 -0
  1339. data/modules/mruby/test/t/numeric.rb +29 -0
  1340. data/modules/mruby/test/t/object.rb +11 -0
  1341. data/modules/mruby/test/t/proc.rb +56 -0
  1342. data/modules/mruby/test/t/range.rb +82 -0
  1343. data/modules/mruby/test/t/rangeerror.rb +10 -0
  1344. data/modules/mruby/test/t/regexperror.rb +4 -0
  1345. data/modules/mruby/test/t/runtimeerror.rb +6 -0
  1346. data/modules/mruby/test/t/standarderror.rb +10 -0
  1347. data/modules/mruby/test/t/string.rb +483 -0
  1348. data/modules/mruby/test/t/symbol.rb +27 -0
  1349. data/modules/mruby/test/t/syntax.rb +67 -0
  1350. data/modules/mruby/test/t/true.rb +33 -0
  1351. data/modules/mruby/test/t/typeerror.rb +11 -0
  1352. data/modules/mruby/tools/mrbc/mrbc.c +318 -0
  1353. data/modules/mruby/tools/mrbc/mrbc.rake +14 -0
  1354. data/modules/mruby/travis_config.rb +6 -0
  1355. data/modules/mrubymix/LICENSE +21 -0
  1356. data/modules/mrubymix/README.md +6 -0
  1357. data/modules/mrubymix/bin/mrubymix +29 -0
  1358. data/modules/mrubymix/lib/mrubymix.rb +93 -0
  1359. data/modules/mrubymix/mrubymix.gemspec +13 -0
  1360. data/scripts/gen_gems_config.rb +185 -0
  1361. data/scripts/gen_post.rb +104 -0
  1362. data/templates/minimal/Rakefile +36 -0
  1363. data/templates/minimal/app/app.rb +3 -0
  1364. metadata +1408 -0
@@ -0,0 +1,4023 @@
1
+ /*
2
+
3
+ Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+
28
+ /*
29
+ * Xlib.h - Header definition and support file for the C subroutine
30
+ * interface library (Xlib) to the X Window System Protocol (V11).
31
+ * Structures and symbols starting with "_" are private to the library.
32
+ */
33
+ #ifndef _XLIB_H_
34
+ #define _XLIB_H_
35
+
36
+ #define XlibSpecificationRelease 6
37
+
38
+ #include <sys/types.h>
39
+
40
+ #if defined(__SCO__) || defined(__UNIXWARE__)
41
+ #include <stdint.h>
42
+ #endif
43
+
44
+ #include <X11/X.h>
45
+
46
+ /* applications should not depend on these two headers being included! */
47
+ #include <X11/Xfuncproto.h>
48
+ #include <X11/Xosdefs.h>
49
+
50
+ #ifndef X_WCHAR
51
+ #include <stddef.h>
52
+ #else
53
+ #ifdef __UNIXOS2__
54
+ #include <stdlib.h>
55
+ #else
56
+ /* replace this with #include or typedef appropriate for your system */
57
+ typedef unsigned long wchar_t;
58
+ #endif
59
+ #endif
60
+
61
+ #if defined(ISC) && defined(USE_XMBTOWC)
62
+ #define wctomb(a,b) _Xwctomb(a,b)
63
+ #define mblen(a,b) _Xmblen(a,b)
64
+ #ifndef USE_XWCHAR_STRING
65
+ #define mbtowc(a,b,c) _Xmbtowc(a,b,c)
66
+ #endif
67
+ #endif
68
+
69
+ extern int
70
+ _Xmblen(
71
+ #ifdef ISC
72
+ char const *str,
73
+ size_t len
74
+ #else
75
+ char *str,
76
+ int len
77
+ #endif
78
+ );
79
+
80
+ /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
81
+ November 2000. Its presence is indicated through the following macro. */
82
+ #define X_HAVE_UTF8_STRING 1
83
+
84
+ typedef char *XPointer;
85
+
86
+ #define Bool int
87
+ #define Status int
88
+ #define True 1
89
+ #define False 0
90
+
91
+ #define QueuedAlready 0
92
+ #define QueuedAfterReading 1
93
+ #define QueuedAfterFlush 2
94
+
95
+ #define ConnectionNumber(dpy) (((_XPrivDisplay)dpy)->fd)
96
+ #define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root)
97
+ #define DefaultScreen(dpy) (((_XPrivDisplay)dpy)->default_screen)
98
+ #define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
99
+ #define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual)
100
+ #define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc)
101
+ #define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel)
102
+ #define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel)
103
+ #define AllPlanes ((unsigned long)~0L)
104
+ #define QLength(dpy) (((_XPrivDisplay)dpy)->qlen)
105
+ #define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width)
106
+ #define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height)
107
+ #define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth)
108
+ #define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight)
109
+ #define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
110
+ #define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries)
111
+ #define ScreenCount(dpy) (((_XPrivDisplay)dpy)->nscreens)
112
+ #define ServerVendor(dpy) (((_XPrivDisplay)dpy)->vendor)
113
+ #define ProtocolVersion(dpy) (((_XPrivDisplay)dpy)->proto_major_version)
114
+ #define ProtocolRevision(dpy) (((_XPrivDisplay)dpy)->proto_minor_version)
115
+ #define VendorRelease(dpy) (((_XPrivDisplay)dpy)->release)
116
+ #define DisplayString(dpy) (((_XPrivDisplay)dpy)->display_name)
117
+ #define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
118
+ #define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap)
119
+ #define BitmapUnit(dpy) (((_XPrivDisplay)dpy)->bitmap_unit)
120
+ #define BitmapBitOrder(dpy) (((_XPrivDisplay)dpy)->bitmap_bit_order)
121
+ #define BitmapPad(dpy) (((_XPrivDisplay)dpy)->bitmap_pad)
122
+ #define ImageByteOrder(dpy) (((_XPrivDisplay)dpy)->byte_order)
123
+ #ifdef CRAY /* unable to get WORD64 without pulling in other symbols */
124
+ #define NextRequest(dpy) XNextRequest(dpy)
125
+ #else
126
+ #define NextRequest(dpy) (((_XPrivDisplay)dpy)->request + 1)
127
+ #endif
128
+ #define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)dpy)->last_request_read)
129
+
130
+ /* macros for screen oriented applications (toolkit) */
131
+ #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)dpy)->screens[scr])
132
+ #define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy))
133
+ #define DisplayOfScreen(s) ((s)->display)
134
+ #define RootWindowOfScreen(s) ((s)->root)
135
+ #define BlackPixelOfScreen(s) ((s)->black_pixel)
136
+ #define WhitePixelOfScreen(s) ((s)->white_pixel)
137
+ #define DefaultColormapOfScreen(s)((s)->cmap)
138
+ #define DefaultDepthOfScreen(s) ((s)->root_depth)
139
+ #define DefaultGCOfScreen(s) ((s)->default_gc)
140
+ #define DefaultVisualOfScreen(s)((s)->root_visual)
141
+ #define WidthOfScreen(s) ((s)->width)
142
+ #define HeightOfScreen(s) ((s)->height)
143
+ #define WidthMMOfScreen(s) ((s)->mwidth)
144
+ #define HeightMMOfScreen(s) ((s)->mheight)
145
+ #define PlanesOfScreen(s) ((s)->root_depth)
146
+ #define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries)
147
+ #define MinCmapsOfScreen(s) ((s)->min_maps)
148
+ #define MaxCmapsOfScreen(s) ((s)->max_maps)
149
+ #define DoesSaveUnders(s) ((s)->save_unders)
150
+ #define DoesBackingStore(s) ((s)->backing_store)
151
+ #define EventMaskOfScreen(s) ((s)->root_input_mask)
152
+
153
+ /*
154
+ * Extensions need a way to hang private data on some structures.
155
+ */
156
+ typedef struct _XExtData {
157
+ int number; /* number returned by XRegisterExtension */
158
+ struct _XExtData *next; /* next item on list of data for structure */
159
+ int (*free_private)( /* called to free private storage */
160
+ struct _XExtData *extension
161
+ );
162
+ XPointer private_data; /* data private to this extension. */
163
+ } XExtData;
164
+
165
+ /*
166
+ * This file contains structures used by the extension mechanism.
167
+ */
168
+ typedef struct { /* public to extension, cannot be changed */
169
+ int extension; /* extension number */
170
+ int major_opcode; /* major op-code assigned by server */
171
+ int first_event; /* first event number for the extension */
172
+ int first_error; /* first error number for the extension */
173
+ } XExtCodes;
174
+
175
+ /*
176
+ * Data structure for retrieving info about pixmap formats.
177
+ */
178
+
179
+ typedef struct {
180
+ int depth;
181
+ int bits_per_pixel;
182
+ int scanline_pad;
183
+ } XPixmapFormatValues;
184
+
185
+
186
+ /*
187
+ * Data structure for setting graphics context.
188
+ */
189
+ typedef struct {
190
+ int function; /* logical operation */
191
+ unsigned long plane_mask;/* plane mask */
192
+ unsigned long foreground;/* foreground pixel */
193
+ unsigned long background;/* background pixel */
194
+ int line_width; /* line width */
195
+ int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
196
+ int cap_style; /* CapNotLast, CapButt,
197
+ CapRound, CapProjecting */
198
+ int join_style; /* JoinMiter, JoinRound, JoinBevel */
199
+ int fill_style; /* FillSolid, FillTiled,
200
+ FillStippled, FillOpaeueStippled */
201
+ int fill_rule; /* EvenOddRule, WindingRule */
202
+ int arc_mode; /* ArcChord, ArcPieSlice */
203
+ Pixmap tile; /* tile pixmap for tiling operations */
204
+ Pixmap stipple; /* stipple 1 plane pixmap for stipping */
205
+ int ts_x_origin; /* offset for tile or stipple operations */
206
+ int ts_y_origin;
207
+ Font font; /* default text font for text operations */
208
+ int subwindow_mode; /* ClipByChildren, IncludeInferiors */
209
+ Bool graphics_exposures;/* boolean, should exposures be generated */
210
+ int clip_x_origin; /* origin for clipping */
211
+ int clip_y_origin;
212
+ Pixmap clip_mask; /* bitmap clipping; other calls for rects */
213
+ int dash_offset; /* patterned/dashed line information */
214
+ char dashes;
215
+ } XGCValues;
216
+
217
+ /*
218
+ * Graphics context. The contents of this structure are implementation
219
+ * dependent. A GC should be treated as opaque by application code.
220
+ */
221
+
222
+ typedef struct _XGC
223
+ #ifdef XLIB_ILLEGAL_ACCESS
224
+ {
225
+ XExtData *ext_data; /* hook for extension to hang data */
226
+ GContext gid; /* protocol ID for graphics context */
227
+ /* there is more to this structure, but it is private to Xlib */
228
+ }
229
+ #endif
230
+ *GC;
231
+
232
+ /*
233
+ * Visual structure; contains information about colormapping possible.
234
+ */
235
+ typedef struct {
236
+ XExtData *ext_data; /* hook for extension to hang data */
237
+ VisualID visualid; /* visual id of this visual */
238
+ #if defined(__cplusplus) || defined(c_plusplus)
239
+ int c_class; /* C++ class of screen (monochrome, etc.) */
240
+ #else
241
+ int class; /* class of screen (monochrome, etc.) */
242
+ #endif
243
+ unsigned long red_mask, green_mask, blue_mask; /* mask values */
244
+ int bits_per_rgb; /* log base 2 of distinct color values */
245
+ int map_entries; /* color map entries */
246
+ } Visual;
247
+
248
+ /*
249
+ * Depth structure; contains information for each possible depth.
250
+ */
251
+ typedef struct {
252
+ int depth; /* this depth (Z) of the depth */
253
+ int nvisuals; /* number of Visual types at this depth */
254
+ Visual *visuals; /* list of visuals possible at this depth */
255
+ } Depth;
256
+
257
+ /*
258
+ * Information about the screen. The contents of this structure are
259
+ * implementation dependent. A Screen should be treated as opaque
260
+ * by application code.
261
+ */
262
+
263
+ struct _XDisplay; /* Forward declare before use for C++ */
264
+
265
+ typedef struct {
266
+ XExtData *ext_data; /* hook for extension to hang data */
267
+ struct _XDisplay *display;/* back pointer to display structure */
268
+ Window root; /* Root window id. */
269
+ int width, height; /* width and height of screen */
270
+ int mwidth, mheight; /* width and height of in millimeters */
271
+ int ndepths; /* number of depths possible */
272
+ Depth *depths; /* list of allowable depths on the screen */
273
+ int root_depth; /* bits per pixel */
274
+ Visual *root_visual; /* root visual */
275
+ GC default_gc; /* GC for the root root visual */
276
+ Colormap cmap; /* default color map */
277
+ unsigned long white_pixel;
278
+ unsigned long black_pixel; /* White and Black pixel values */
279
+ int max_maps, min_maps; /* max and min color maps */
280
+ int backing_store; /* Never, WhenMapped, Always */
281
+ Bool save_unders;
282
+ long root_input_mask; /* initial root input mask */
283
+ } Screen;
284
+
285
+ /*
286
+ * Format structure; describes ZFormat data the screen will understand.
287
+ */
288
+ typedef struct {
289
+ XExtData *ext_data; /* hook for extension to hang data */
290
+ int depth; /* depth of this image format */
291
+ int bits_per_pixel; /* bits/pixel at this depth */
292
+ int scanline_pad; /* scanline must padded to this multiple */
293
+ } ScreenFormat;
294
+
295
+ /*
296
+ * Data structure for setting window attributes.
297
+ */
298
+ typedef struct {
299
+ Pixmap background_pixmap; /* background or None or ParentRelative */
300
+ unsigned long background_pixel; /* background pixel */
301
+ Pixmap border_pixmap; /* border of the window */
302
+ unsigned long border_pixel; /* border pixel value */
303
+ int bit_gravity; /* one of bit gravity values */
304
+ int win_gravity; /* one of the window gravity values */
305
+ int backing_store; /* NotUseful, WhenMapped, Always */
306
+ unsigned long backing_planes;/* planes to be preseved if possible */
307
+ unsigned long backing_pixel;/* value to use in restoring planes */
308
+ Bool save_under; /* should bits under be saved? (popups) */
309
+ long event_mask; /* set of events that should be saved */
310
+ long do_not_propagate_mask; /* set of events that should not propagate */
311
+ Bool override_redirect; /* boolean value for override-redirect */
312
+ Colormap colormap; /* color map to be associated with window */
313
+ Cursor cursor; /* cursor to be displayed (or None) */
314
+ } XSetWindowAttributes;
315
+
316
+ typedef struct {
317
+ int x, y; /* location of window */
318
+ int width, height; /* width and height of window */
319
+ int border_width; /* border width of window */
320
+ int depth; /* depth of window */
321
+ Visual *visual; /* the associated visual structure */
322
+ Window root; /* root of screen containing window */
323
+ #if defined(__cplusplus) || defined(c_plusplus)
324
+ int c_class; /* C++ InputOutput, InputOnly*/
325
+ #else
326
+ int class; /* InputOutput, InputOnly*/
327
+ #endif
328
+ int bit_gravity; /* one of bit gravity values */
329
+ int win_gravity; /* one of the window gravity values */
330
+ int backing_store; /* NotUseful, WhenMapped, Always */
331
+ unsigned long backing_planes;/* planes to be preserved if possible */
332
+ unsigned long backing_pixel;/* value to be used when restoring planes */
333
+ Bool save_under; /* boolean, should bits under be saved? */
334
+ Colormap colormap; /* color map to be associated with window */
335
+ Bool map_installed; /* boolean, is color map currently installed*/
336
+ int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
337
+ long all_event_masks; /* set of events all people have interest in*/
338
+ long your_event_mask; /* my event mask */
339
+ long do_not_propagate_mask; /* set of events that should not propagate */
340
+ Bool override_redirect; /* boolean value for override-redirect */
341
+ Screen *screen; /* back pointer to correct screen */
342
+ } XWindowAttributes;
343
+
344
+ /*
345
+ * Data structure for host setting; getting routines.
346
+ *
347
+ */
348
+
349
+ typedef struct {
350
+ int family; /* for example FamilyInternet */
351
+ int length; /* length of address, in bytes */
352
+ char *address; /* pointer to where to find the bytes */
353
+ } XHostAddress;
354
+
355
+ /*
356
+ * Data structure for ServerFamilyInterpreted addresses in host routines
357
+ */
358
+ typedef struct {
359
+ int typelength; /* length of type string, in bytes */
360
+ int valuelength; /* length of value string, in bytes */
361
+ char *type; /* pointer to where to find the type string */
362
+ char *value; /* pointer to where to find the address */
363
+ } XServerInterpretedAddress;
364
+
365
+ /*
366
+ * Data structure for "image" data, used by image manipulation routines.
367
+ */
368
+ typedef struct _XImage {
369
+ int width, height; /* size of image */
370
+ int xoffset; /* number of pixels offset in X direction */
371
+ int format; /* XYBitmap, XYPixmap, ZPixmap */
372
+ char *data; /* pointer to image data */
373
+ int byte_order; /* data byte order, LSBFirst, MSBFirst */
374
+ int bitmap_unit; /* quant. of scanline 8, 16, 32 */
375
+ int bitmap_bit_order; /* LSBFirst, MSBFirst */
376
+ int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
377
+ int depth; /* depth of image */
378
+ int bytes_per_line; /* accelarator to next line */
379
+ int bits_per_pixel; /* bits per pixel (ZPixmap) */
380
+ unsigned long red_mask; /* bits in z arrangment */
381
+ unsigned long green_mask;
382
+ unsigned long blue_mask;
383
+ XPointer obdata; /* hook for the object routines to hang on */
384
+ struct funcs { /* image manipulation routines */
385
+ struct _XImage *(*create_image)(
386
+ struct _XDisplay* /* display */,
387
+ Visual* /* visual */,
388
+ unsigned int /* depth */,
389
+ int /* format */,
390
+ int /* offset */,
391
+ char* /* data */,
392
+ unsigned int /* width */,
393
+ unsigned int /* height */,
394
+ int /* bitmap_pad */,
395
+ int /* bytes_per_line */);
396
+ int (*destroy_image) (struct _XImage *);
397
+ unsigned long (*get_pixel) (struct _XImage *, int, int);
398
+ int (*put_pixel) (struct _XImage *, int, int, unsigned long);
399
+ struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int);
400
+ int (*add_pixel) (struct _XImage *, long);
401
+ } f;
402
+ } XImage;
403
+
404
+ /*
405
+ * Data structure for XReconfigureWindow
406
+ */
407
+ typedef struct {
408
+ int x, y;
409
+ int width, height;
410
+ int border_width;
411
+ Window sibling;
412
+ int stack_mode;
413
+ } XWindowChanges;
414
+
415
+ /*
416
+ * Data structure used by color operations
417
+ */
418
+ typedef struct {
419
+ unsigned long pixel;
420
+ unsigned short red, green, blue;
421
+ char flags; /* do_red, do_green, do_blue */
422
+ char pad;
423
+ } XColor;
424
+
425
+ /*
426
+ * Data structures for graphics operations. On most machines, these are
427
+ * congruent with the wire protocol structures, so reformatting the data
428
+ * can be avoided on these architectures.
429
+ */
430
+ typedef struct {
431
+ short x1, y1, x2, y2;
432
+ } XSegment;
433
+
434
+ typedef struct {
435
+ short x, y;
436
+ } XPoint;
437
+
438
+ typedef struct {
439
+ short x, y;
440
+ unsigned short width, height;
441
+ } XRectangle;
442
+
443
+ typedef struct {
444
+ short x, y;
445
+ unsigned short width, height;
446
+ short angle1, angle2;
447
+ } XArc;
448
+
449
+
450
+ /* Data structure for XChangeKeyboardControl */
451
+
452
+ typedef struct {
453
+ int key_click_percent;
454
+ int bell_percent;
455
+ int bell_pitch;
456
+ int bell_duration;
457
+ int led;
458
+ int led_mode;
459
+ int key;
460
+ int auto_repeat_mode; /* On, Off, Default */
461
+ } XKeyboardControl;
462
+
463
+ /* Data structure for XGetKeyboardControl */
464
+
465
+ typedef struct {
466
+ int key_click_percent;
467
+ int bell_percent;
468
+ unsigned int bell_pitch, bell_duration;
469
+ unsigned long led_mask;
470
+ int global_auto_repeat;
471
+ char auto_repeats[32];
472
+ } XKeyboardState;
473
+
474
+ /* Data structure for XGetMotionEvents. */
475
+
476
+ typedef struct {
477
+ Time time;
478
+ short x, y;
479
+ } XTimeCoord;
480
+
481
+ /* Data structure for X{Set,Get}ModifierMapping */
482
+
483
+ typedef struct {
484
+ int max_keypermod; /* The server's max # of keys per modifier */
485
+ KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */
486
+ } XModifierKeymap;
487
+
488
+
489
+ /*
490
+ * Display datatype maintaining display specific data.
491
+ * The contents of this structure are implementation dependent.
492
+ * A Display should be treated as opaque by application code.
493
+ */
494
+ #ifndef XLIB_ILLEGAL_ACCESS
495
+ typedef struct _XDisplay Display;
496
+ #endif
497
+
498
+ struct _XPrivate; /* Forward declare before use for C++ */
499
+ struct _XrmHashBucketRec;
500
+
501
+ typedef struct
502
+ #ifdef XLIB_ILLEGAL_ACCESS
503
+ _XDisplay
504
+ #endif
505
+ {
506
+ XExtData *ext_data; /* hook for extension to hang data */
507
+ struct _XPrivate *private1;
508
+ int fd; /* Network socket. */
509
+ int private2;
510
+ int proto_major_version;/* major version of server's X protocol */
511
+ int proto_minor_version;/* minor version of servers X protocol */
512
+ char *vendor; /* vendor of the server hardware */
513
+ XID private3;
514
+ XID private4;
515
+ XID private5;
516
+ int private6;
517
+ XID (*resource_alloc)( /* allocator function */
518
+ struct _XDisplay*
519
+ );
520
+ int byte_order; /* screen byte order, LSBFirst, MSBFirst */
521
+ int bitmap_unit; /* padding and data requirements */
522
+ int bitmap_pad; /* padding requirements on bitmaps */
523
+ int bitmap_bit_order; /* LeastSignificant or MostSignificant */
524
+ int nformats; /* number of pixmap formats in list */
525
+ ScreenFormat *pixmap_format; /* pixmap format list */
526
+ int private8;
527
+ int release; /* release of the server */
528
+ struct _XPrivate *private9, *private10;
529
+ int qlen; /* Length of input event queue */
530
+ unsigned long last_request_read; /* seq number of last event read */
531
+ unsigned long request; /* sequence number of last request. */
532
+ XPointer private11;
533
+ XPointer private12;
534
+ XPointer private13;
535
+ XPointer private14;
536
+ unsigned max_request_size; /* maximum number 32 bit words in request*/
537
+ struct _XrmHashBucketRec *db;
538
+ int (*private15)(
539
+ struct _XDisplay*
540
+ );
541
+ char *display_name; /* "host:display" string used on this connect*/
542
+ int default_screen; /* default screen for operations */
543
+ int nscreens; /* number of screens on this server*/
544
+ Screen *screens; /* pointer to list of screens */
545
+ unsigned long motion_buffer; /* size of motion buffer */
546
+ unsigned long private16;
547
+ int min_keycode; /* minimum defined keycode */
548
+ int max_keycode; /* maximum defined keycode */
549
+ XPointer private17;
550
+ XPointer private18;
551
+ int private19;
552
+ char *xdefaults; /* contents of defaults from server */
553
+ /* there is more to this structure, but it is private to Xlib */
554
+ }
555
+ #ifdef XLIB_ILLEGAL_ACCESS
556
+ Display,
557
+ #endif
558
+ *_XPrivDisplay;
559
+
560
+ #undef _XEVENT_
561
+ #ifndef _XEVENT_
562
+ /*
563
+ * Definitions of specific events.
564
+ */
565
+ typedef struct {
566
+ int type; /* of event */
567
+ unsigned long serial; /* # of last request processed by server */
568
+ Bool send_event; /* true if this came from a SendEvent request */
569
+ Display *display; /* Display the event was read from */
570
+ Window window; /* "event" window it is reported relative to */
571
+ Window root; /* root window that the event occurred on */
572
+ Window subwindow; /* child window */
573
+ Time time; /* milliseconds */
574
+ int x, y; /* pointer x, y coordinates in event window */
575
+ int x_root, y_root; /* coordinates relative to root */
576
+ unsigned int state; /* key or button mask */
577
+ unsigned int keycode; /* detail */
578
+ Bool same_screen; /* same screen flag */
579
+ } XKeyEvent;
580
+ typedef XKeyEvent XKeyPressedEvent;
581
+ typedef XKeyEvent XKeyReleasedEvent;
582
+
583
+ typedef struct {
584
+ int type; /* of event */
585
+ unsigned long serial; /* # of last request processed by server */
586
+ Bool send_event; /* true if this came from a SendEvent request */
587
+ Display *display; /* Display the event was read from */
588
+ Window window; /* "event" window it is reported relative to */
589
+ Window root; /* root window that the event occurred on */
590
+ Window subwindow; /* child window */
591
+ Time time; /* milliseconds */
592
+ int x, y; /* pointer x, y coordinates in event window */
593
+ int x_root, y_root; /* coordinates relative to root */
594
+ unsigned int state; /* key or button mask */
595
+ unsigned int button; /* detail */
596
+ Bool same_screen; /* same screen flag */
597
+ } XButtonEvent;
598
+ typedef XButtonEvent XButtonPressedEvent;
599
+ typedef XButtonEvent XButtonReleasedEvent;
600
+
601
+ typedef struct {
602
+ int type; /* of event */
603
+ unsigned long serial; /* # of last request processed by server */
604
+ Bool send_event; /* true if this came from a SendEvent request */
605
+ Display *display; /* Display the event was read from */
606
+ Window window; /* "event" window reported relative to */
607
+ Window root; /* root window that the event occurred on */
608
+ Window subwindow; /* child window */
609
+ Time time; /* milliseconds */
610
+ int x, y; /* pointer x, y coordinates in event window */
611
+ int x_root, y_root; /* coordinates relative to root */
612
+ unsigned int state; /* key or button mask */
613
+ char is_hint; /* detail */
614
+ Bool same_screen; /* same screen flag */
615
+ } XMotionEvent;
616
+ typedef XMotionEvent XPointerMovedEvent;
617
+
618
+ typedef struct {
619
+ int type; /* of event */
620
+ unsigned long serial; /* # of last request processed by server */
621
+ Bool send_event; /* true if this came from a SendEvent request */
622
+ Display *display; /* Display the event was read from */
623
+ Window window; /* "event" window reported relative to */
624
+ Window root; /* root window that the event occurred on */
625
+ Window subwindow; /* child window */
626
+ Time time; /* milliseconds */
627
+ int x, y; /* pointer x, y coordinates in event window */
628
+ int x_root, y_root; /* coordinates relative to root */
629
+ int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
630
+ int detail;
631
+ /*
632
+ * NotifyAncestor, NotifyVirtual, NotifyInferior,
633
+ * NotifyNonlinear,NotifyNonlinearVirtual
634
+ */
635
+ Bool same_screen; /* same screen flag */
636
+ Bool focus; /* boolean focus */
637
+ unsigned int state; /* key or button mask */
638
+ } XCrossingEvent;
639
+ typedef XCrossingEvent XEnterWindowEvent;
640
+ typedef XCrossingEvent XLeaveWindowEvent;
641
+
642
+ typedef struct {
643
+ int type; /* FocusIn or FocusOut */
644
+ unsigned long serial; /* # of last request processed by server */
645
+ Bool send_event; /* true if this came from a SendEvent request */
646
+ Display *display; /* Display the event was read from */
647
+ Window window; /* window of event */
648
+ int mode; /* NotifyNormal, NotifyWhileGrabbed,
649
+ NotifyGrab, NotifyUngrab */
650
+ int detail;
651
+ /*
652
+ * NotifyAncestor, NotifyVirtual, NotifyInferior,
653
+ * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
654
+ * NotifyPointerRoot, NotifyDetailNone
655
+ */
656
+ } XFocusChangeEvent;
657
+ typedef XFocusChangeEvent XFocusInEvent;
658
+ typedef XFocusChangeEvent XFocusOutEvent;
659
+
660
+ /* generated on EnterWindow and FocusIn when KeyMapState selected */
661
+ typedef struct {
662
+ int type;
663
+ unsigned long serial; /* # of last request processed by server */
664
+ Bool send_event; /* true if this came from a SendEvent request */
665
+ Display *display; /* Display the event was read from */
666
+ Window window;
667
+ char key_vector[32];
668
+ } XKeymapEvent;
669
+
670
+ typedef struct {
671
+ int type;
672
+ unsigned long serial; /* # of last request processed by server */
673
+ Bool send_event; /* true if this came from a SendEvent request */
674
+ Display *display; /* Display the event was read from */
675
+ Window window;
676
+ int x, y;
677
+ int width, height;
678
+ int count; /* if non-zero, at least this many more */
679
+ } XExposeEvent;
680
+
681
+ typedef struct {
682
+ int type;
683
+ unsigned long serial; /* # of last request processed by server */
684
+ Bool send_event; /* true if this came from a SendEvent request */
685
+ Display *display; /* Display the event was read from */
686
+ Drawable drawable;
687
+ int x, y;
688
+ int width, height;
689
+ int count; /* if non-zero, at least this many more */
690
+ int major_code; /* core is CopyArea or CopyPlane */
691
+ int minor_code; /* not defined in the core */
692
+ } XGraphicsExposeEvent;
693
+
694
+ typedef struct {
695
+ int type;
696
+ unsigned long serial; /* # of last request processed by server */
697
+ Bool send_event; /* true if this came from a SendEvent request */
698
+ Display *display; /* Display the event was read from */
699
+ Drawable drawable;
700
+ int major_code; /* core is CopyArea or CopyPlane */
701
+ int minor_code; /* not defined in the core */
702
+ } XNoExposeEvent;
703
+
704
+ typedef struct {
705
+ int type;
706
+ unsigned long serial; /* # of last request processed by server */
707
+ Bool send_event; /* true if this came from a SendEvent request */
708
+ Display *display; /* Display the event was read from */
709
+ Window window;
710
+ int state; /* Visibility state */
711
+ } XVisibilityEvent;
712
+
713
+ typedef struct {
714
+ int type;
715
+ unsigned long serial; /* # of last request processed by server */
716
+ Bool send_event; /* true if this came from a SendEvent request */
717
+ Display *display; /* Display the event was read from */
718
+ Window parent; /* parent of the window */
719
+ Window window; /* window id of window created */
720
+ int x, y; /* window location */
721
+ int width, height; /* size of window */
722
+ int border_width; /* border width */
723
+ Bool override_redirect; /* creation should be overridden */
724
+ } XCreateWindowEvent;
725
+
726
+ typedef struct {
727
+ int type;
728
+ unsigned long serial; /* # of last request processed by server */
729
+ Bool send_event; /* true if this came from a SendEvent request */
730
+ Display *display; /* Display the event was read from */
731
+ Window event;
732
+ Window window;
733
+ } XDestroyWindowEvent;
734
+
735
+ typedef struct {
736
+ int type;
737
+ unsigned long serial; /* # of last request processed by server */
738
+ Bool send_event; /* true if this came from a SendEvent request */
739
+ Display *display; /* Display the event was read from */
740
+ Window event;
741
+ Window window;
742
+ Bool from_configure;
743
+ } XUnmapEvent;
744
+
745
+ typedef struct {
746
+ int type;
747
+ unsigned long serial; /* # of last request processed by server */
748
+ Bool send_event; /* true if this came from a SendEvent request */
749
+ Display *display; /* Display the event was read from */
750
+ Window event;
751
+ Window window;
752
+ Bool override_redirect; /* boolean, is override set... */
753
+ } XMapEvent;
754
+
755
+ typedef struct {
756
+ int type;
757
+ unsigned long serial; /* # of last request processed by server */
758
+ Bool send_event; /* true if this came from a SendEvent request */
759
+ Display *display; /* Display the event was read from */
760
+ Window parent;
761
+ Window window;
762
+ } XMapRequestEvent;
763
+
764
+ typedef struct {
765
+ int type;
766
+ unsigned long serial; /* # of last request processed by server */
767
+ Bool send_event; /* true if this came from a SendEvent request */
768
+ Display *display; /* Display the event was read from */
769
+ Window event;
770
+ Window window;
771
+ Window parent;
772
+ int x, y;
773
+ Bool override_redirect;
774
+ } XReparentEvent;
775
+
776
+ typedef struct {
777
+ int type;
778
+ unsigned long serial; /* # of last request processed by server */
779
+ Bool send_event; /* true if this came from a SendEvent request */
780
+ Display *display; /* Display the event was read from */
781
+ Window event;
782
+ Window window;
783
+ int x, y;
784
+ int width, height;
785
+ int border_width;
786
+ Window above;
787
+ Bool override_redirect;
788
+ } XConfigureEvent;
789
+
790
+ typedef struct {
791
+ int type;
792
+ unsigned long serial; /* # of last request processed by server */
793
+ Bool send_event; /* true if this came from a SendEvent request */
794
+ Display *display; /* Display the event was read from */
795
+ Window event;
796
+ Window window;
797
+ int x, y;
798
+ } XGravityEvent;
799
+
800
+ typedef struct {
801
+ int type;
802
+ unsigned long serial; /* # of last request processed by server */
803
+ Bool send_event; /* true if this came from a SendEvent request */
804
+ Display *display; /* Display the event was read from */
805
+ Window window;
806
+ int width, height;
807
+ } XResizeRequestEvent;
808
+
809
+ typedef struct {
810
+ int type;
811
+ unsigned long serial; /* # of last request processed by server */
812
+ Bool send_event; /* true if this came from a SendEvent request */
813
+ Display *display; /* Display the event was read from */
814
+ Window parent;
815
+ Window window;
816
+ int x, y;
817
+ int width, height;
818
+ int border_width;
819
+ Window above;
820
+ int detail; /* Above, Below, TopIf, BottomIf, Opposite */
821
+ unsigned long value_mask;
822
+ } XConfigureRequestEvent;
823
+
824
+ typedef struct {
825
+ int type;
826
+ unsigned long serial; /* # of last request processed by server */
827
+ Bool send_event; /* true if this came from a SendEvent request */
828
+ Display *display; /* Display the event was read from */
829
+ Window event;
830
+ Window window;
831
+ int place; /* PlaceOnTop, PlaceOnBottom */
832
+ } XCirculateEvent;
833
+
834
+ typedef struct {
835
+ int type;
836
+ unsigned long serial; /* # of last request processed by server */
837
+ Bool send_event; /* true if this came from a SendEvent request */
838
+ Display *display; /* Display the event was read from */
839
+ Window parent;
840
+ Window window;
841
+ int place; /* PlaceOnTop, PlaceOnBottom */
842
+ } XCirculateRequestEvent;
843
+
844
+ typedef struct {
845
+ int type;
846
+ unsigned long serial; /* # of last request processed by server */
847
+ Bool send_event; /* true if this came from a SendEvent request */
848
+ Display *display; /* Display the event was read from */
849
+ Window window;
850
+ Atom atom;
851
+ Time time;
852
+ int state; /* NewValue, Deleted */
853
+ } XPropertyEvent;
854
+
855
+ typedef struct {
856
+ int type;
857
+ unsigned long serial; /* # of last request processed by server */
858
+ Bool send_event; /* true if this came from a SendEvent request */
859
+ Display *display; /* Display the event was read from */
860
+ Window window;
861
+ Atom selection;
862
+ Time time;
863
+ } XSelectionClearEvent;
864
+
865
+ typedef struct {
866
+ int type;
867
+ unsigned long serial; /* # of last request processed by server */
868
+ Bool send_event; /* true if this came from a SendEvent request */
869
+ Display *display; /* Display the event was read from */
870
+ Window owner;
871
+ Window requestor;
872
+ Atom selection;
873
+ Atom target;
874
+ Atom property;
875
+ Time time;
876
+ } XSelectionRequestEvent;
877
+
878
+ typedef struct {
879
+ int type;
880
+ unsigned long serial; /* # of last request processed by server */
881
+ Bool send_event; /* true if this came from a SendEvent request */
882
+ Display *display; /* Display the event was read from */
883
+ Window requestor;
884
+ Atom selection;
885
+ Atom target;
886
+ Atom property; /* ATOM or None */
887
+ Time time;
888
+ } XSelectionEvent;
889
+
890
+ typedef struct {
891
+ int type;
892
+ unsigned long serial; /* # of last request processed by server */
893
+ Bool send_event; /* true if this came from a SendEvent request */
894
+ Display *display; /* Display the event was read from */
895
+ Window window;
896
+ Colormap colormap; /* COLORMAP or None */
897
+ #if defined(__cplusplus) || defined(c_plusplus)
898
+ Bool c_new; /* C++ */
899
+ #else
900
+ Bool new;
901
+ #endif
902
+ int state; /* ColormapInstalled, ColormapUninstalled */
903
+ } XColormapEvent;
904
+
905
+ typedef struct {
906
+ int type;
907
+ unsigned long serial; /* # of last request processed by server */
908
+ Bool send_event; /* true if this came from a SendEvent request */
909
+ Display *display; /* Display the event was read from */
910
+ Window window;
911
+ Atom message_type;
912
+ int format;
913
+ union {
914
+ char b[20];
915
+ short s[10];
916
+ long l[5];
917
+ } data;
918
+ } XClientMessageEvent;
919
+
920
+ typedef struct {
921
+ int type;
922
+ unsigned long serial; /* # of last request processed by server */
923
+ Bool send_event; /* true if this came from a SendEvent request */
924
+ Display *display; /* Display the event was read from */
925
+ Window window; /* unused */
926
+ int request; /* one of MappingModifier, MappingKeyboard,
927
+ MappingPointer */
928
+ int first_keycode; /* first keycode */
929
+ int count; /* defines range of change w. first_keycode*/
930
+ } XMappingEvent;
931
+
932
+ typedef struct {
933
+ int type;
934
+ Display *display; /* Display the event was read from */
935
+ XID resourceid; /* resource id */
936
+ unsigned long serial; /* serial number of failed request */
937
+ unsigned char error_code; /* error code of failed request */
938
+ unsigned char request_code; /* Major op-code of failed request */
939
+ unsigned char minor_code; /* Minor op-code of failed request */
940
+ } XErrorEvent;
941
+
942
+ typedef struct {
943
+ int type;
944
+ unsigned long serial; /* # of last request processed by server */
945
+ Bool send_event; /* true if this came from a SendEvent request */
946
+ Display *display;/* Display the event was read from */
947
+ Window window; /* window on which event was requested in event mask */
948
+ } XAnyEvent;
949
+
950
+
951
+ /***************************************************************
952
+ *
953
+ * GenericEvent. This event is the standard event for all newer extensions.
954
+ */
955
+
956
+ typedef struct
957
+ {
958
+ int type; /* of event. Always GenericEvent */
959
+ unsigned long serial; /* # of last request processed */
960
+ Bool send_event; /* true if from SendEvent request */
961
+ Display *display; /* Display the event was read from */
962
+ int extension; /* major opcode of extension that caused the event */
963
+ int evtype; /* actual event type. */
964
+ } XGenericEvent;
965
+
966
+ typedef struct {
967
+ int type; /* of event. Always GenericEvent */
968
+ unsigned long serial; /* # of last request processed */
969
+ Bool send_event; /* true if from SendEvent request */
970
+ Display *display; /* Display the event was read from */
971
+ int extension; /* major opcode of extension that caused the event */
972
+ int evtype; /* actual event type. */
973
+ unsigned int cookie;
974
+ void *data;
975
+ } XGenericEventCookie;
976
+
977
+ /*
978
+ * this union is defined so Xlib can always use the same sized
979
+ * event structure internally, to avoid memory fragmentation.
980
+ */
981
+ typedef union _XEvent {
982
+ int type; /* must not be changed; first element */
983
+ XAnyEvent xany;
984
+ XKeyEvent xkey;
985
+ XButtonEvent xbutton;
986
+ XMotionEvent xmotion;
987
+ XCrossingEvent xcrossing;
988
+ XFocusChangeEvent xfocus;
989
+ XExposeEvent xexpose;
990
+ XGraphicsExposeEvent xgraphicsexpose;
991
+ XNoExposeEvent xnoexpose;
992
+ XVisibilityEvent xvisibility;
993
+ XCreateWindowEvent xcreatewindow;
994
+ XDestroyWindowEvent xdestroywindow;
995
+ XUnmapEvent xunmap;
996
+ XMapEvent xmap;
997
+ XMapRequestEvent xmaprequest;
998
+ XReparentEvent xreparent;
999
+ XConfigureEvent xconfigure;
1000
+ XGravityEvent xgravity;
1001
+ XResizeRequestEvent xresizerequest;
1002
+ XConfigureRequestEvent xconfigurerequest;
1003
+ XCirculateEvent xcirculate;
1004
+ XCirculateRequestEvent xcirculaterequest;
1005
+ XPropertyEvent xproperty;
1006
+ XSelectionClearEvent xselectionclear;
1007
+ XSelectionRequestEvent xselectionrequest;
1008
+ XSelectionEvent xselection;
1009
+ XColormapEvent xcolormap;
1010
+ XClientMessageEvent xclient;
1011
+ XMappingEvent xmapping;
1012
+ XErrorEvent xerror;
1013
+ XKeymapEvent xkeymap;
1014
+ XGenericEvent xgeneric;
1015
+ XGenericEventCookie xcookie;
1016
+ long pad[24];
1017
+ } XEvent;
1018
+ #endif
1019
+
1020
+ #define XAllocID(dpy) ((*((_XPrivDisplay)dpy)->resource_alloc)((dpy)))
1021
+
1022
+ /*
1023
+ * per character font metric information.
1024
+ */
1025
+ typedef struct {
1026
+ short lbearing; /* origin to left edge of raster */
1027
+ short rbearing; /* origin to right edge of raster */
1028
+ short width; /* advance to next char's origin */
1029
+ short ascent; /* baseline to top edge of raster */
1030
+ short descent; /* baseline to bottom edge of raster */
1031
+ unsigned short attributes; /* per char flags (not predefined) */
1032
+ } XCharStruct;
1033
+
1034
+ /*
1035
+ * To allow arbitrary information with fonts, there are additional properties
1036
+ * returned.
1037
+ */
1038
+ typedef struct {
1039
+ Atom name;
1040
+ unsigned long card32;
1041
+ } XFontProp;
1042
+
1043
+ typedef struct {
1044
+ XExtData *ext_data; /* hook for extension to hang data */
1045
+ Font fid; /* Font id for this font */
1046
+ unsigned direction; /* hint about direction the font is painted */
1047
+ unsigned min_char_or_byte2;/* first character */
1048
+ unsigned max_char_or_byte2;/* last character */
1049
+ unsigned min_byte1; /* first row that exists */
1050
+ unsigned max_byte1; /* last row that exists */
1051
+ Bool all_chars_exist;/* flag if all characters have non-zero size*/
1052
+ unsigned default_char; /* char to print for undefined character */
1053
+ int n_properties; /* how many properties there are */
1054
+ XFontProp *properties; /* pointer to array of additional properties*/
1055
+ XCharStruct min_bounds; /* minimum bounds over all existing char*/
1056
+ XCharStruct max_bounds; /* maximum bounds over all existing char*/
1057
+ XCharStruct *per_char; /* first_char to last_char information */
1058
+ int ascent; /* log. extent above baseline for spacing */
1059
+ int descent; /* log. descent below baseline for spacing */
1060
+ } XFontStruct;
1061
+
1062
+ /*
1063
+ * PolyText routines take these as arguments.
1064
+ */
1065
+ typedef struct {
1066
+ char *chars; /* pointer to string */
1067
+ int nchars; /* number of characters */
1068
+ int delta; /* delta between strings */
1069
+ Font font; /* font to print it in, None don't change */
1070
+ } XTextItem;
1071
+
1072
+ typedef struct { /* normal 16 bit characters are two bytes */
1073
+ unsigned char byte1;
1074
+ unsigned char byte2;
1075
+ } XChar2b;
1076
+
1077
+ typedef struct {
1078
+ XChar2b *chars; /* two byte characters */
1079
+ int nchars; /* number of characters */
1080
+ int delta; /* delta between strings */
1081
+ Font font; /* font to print it in, None don't change */
1082
+ } XTextItem16;
1083
+
1084
+
1085
+ typedef union { Display *display;
1086
+ GC gc;
1087
+ Visual *visual;
1088
+ Screen *screen;
1089
+ ScreenFormat *pixmap_format;
1090
+ XFontStruct *font; } XEDataObject;
1091
+
1092
+ typedef struct {
1093
+ XRectangle max_ink_extent;
1094
+ XRectangle max_logical_extent;
1095
+ } XFontSetExtents;
1096
+
1097
+ /* unused:
1098
+ typedef void (*XOMProc)();
1099
+ */
1100
+
1101
+ typedef struct _XOM *XOM;
1102
+ typedef struct _XOC *XOC, *XFontSet;
1103
+
1104
+ typedef struct {
1105
+ char *chars;
1106
+ int nchars;
1107
+ int delta;
1108
+ XFontSet font_set;
1109
+ } XmbTextItem;
1110
+
1111
+ typedef struct {
1112
+ wchar_t *chars;
1113
+ int nchars;
1114
+ int delta;
1115
+ XFontSet font_set;
1116
+ } XwcTextItem;
1117
+
1118
+ #define XNRequiredCharSet "requiredCharSet"
1119
+ #define XNQueryOrientation "queryOrientation"
1120
+ #define XNBaseFontName "baseFontName"
1121
+ #define XNOMAutomatic "omAutomatic"
1122
+ #define XNMissingCharSet "missingCharSet"
1123
+ #define XNDefaultString "defaultString"
1124
+ #define XNOrientation "orientation"
1125
+ #define XNDirectionalDependentDrawing "directionalDependentDrawing"
1126
+ #define XNContextualDrawing "contextualDrawing"
1127
+ #define XNFontInfo "fontInfo"
1128
+
1129
+ typedef struct {
1130
+ int charset_count;
1131
+ char **charset_list;
1132
+ } XOMCharSetList;
1133
+
1134
+ typedef enum {
1135
+ XOMOrientation_LTR_TTB,
1136
+ XOMOrientation_RTL_TTB,
1137
+ XOMOrientation_TTB_LTR,
1138
+ XOMOrientation_TTB_RTL,
1139
+ XOMOrientation_Context
1140
+ } XOrientation;
1141
+
1142
+ typedef struct {
1143
+ int num_orientation;
1144
+ XOrientation *orientation; /* Input Text description */
1145
+ } XOMOrientation;
1146
+
1147
+ typedef struct {
1148
+ int num_font;
1149
+ XFontStruct **font_struct_list;
1150
+ char **font_name_list;
1151
+ } XOMFontInfo;
1152
+
1153
+ typedef struct _XIM *XIM;
1154
+ typedef struct _XIC *XIC;
1155
+
1156
+ typedef void (*XIMProc)(
1157
+ XIM,
1158
+ XPointer,
1159
+ XPointer
1160
+ );
1161
+
1162
+ typedef Bool (*XICProc)(
1163
+ XIC,
1164
+ XPointer,
1165
+ XPointer
1166
+ );
1167
+
1168
+ typedef void (*XIDProc)(
1169
+ Display*,
1170
+ XPointer,
1171
+ XPointer
1172
+ );
1173
+
1174
+ typedef unsigned long XIMStyle;
1175
+
1176
+ typedef struct {
1177
+ unsigned short count_styles;
1178
+ XIMStyle *supported_styles;
1179
+ } XIMStyles;
1180
+
1181
+ #define XIMPreeditArea 0x0001L
1182
+ #define XIMPreeditCallbacks 0x0002L
1183
+ #define XIMPreeditPosition 0x0004L
1184
+ #define XIMPreeditNothing 0x0008L
1185
+ #define XIMPreeditNone 0x0010L
1186
+ #define XIMStatusArea 0x0100L
1187
+ #define XIMStatusCallbacks 0x0200L
1188
+ #define XIMStatusNothing 0x0400L
1189
+ #define XIMStatusNone 0x0800L
1190
+
1191
+ #define XNVaNestedList "XNVaNestedList"
1192
+ #define XNQueryInputStyle "queryInputStyle"
1193
+ #define XNClientWindow "clientWindow"
1194
+ #define XNInputStyle "inputStyle"
1195
+ #define XNFocusWindow "focusWindow"
1196
+ #define XNResourceName "resourceName"
1197
+ #define XNResourceClass "resourceClass"
1198
+ #define XNGeometryCallback "geometryCallback"
1199
+ #define XNDestroyCallback "destroyCallback"
1200
+ #define XNFilterEvents "filterEvents"
1201
+ #define XNPreeditStartCallback "preeditStartCallback"
1202
+ #define XNPreeditDoneCallback "preeditDoneCallback"
1203
+ #define XNPreeditDrawCallback "preeditDrawCallback"
1204
+ #define XNPreeditCaretCallback "preeditCaretCallback"
1205
+ #define XNPreeditStateNotifyCallback "preeditStateNotifyCallback"
1206
+ #define XNPreeditAttributes "preeditAttributes"
1207
+ #define XNStatusStartCallback "statusStartCallback"
1208
+ #define XNStatusDoneCallback "statusDoneCallback"
1209
+ #define XNStatusDrawCallback "statusDrawCallback"
1210
+ #define XNStatusAttributes "statusAttributes"
1211
+ #define XNArea "area"
1212
+ #define XNAreaNeeded "areaNeeded"
1213
+ #define XNSpotLocation "spotLocation"
1214
+ #define XNColormap "colorMap"
1215
+ #define XNStdColormap "stdColorMap"
1216
+ #define XNForeground "foreground"
1217
+ #define XNBackground "background"
1218
+ #define XNBackgroundPixmap "backgroundPixmap"
1219
+ #define XNFontSet "fontSet"
1220
+ #define XNLineSpace "lineSpace"
1221
+ #define XNCursor "cursor"
1222
+
1223
+ #define XNQueryIMValuesList "queryIMValuesList"
1224
+ #define XNQueryICValuesList "queryICValuesList"
1225
+ #define XNVisiblePosition "visiblePosition"
1226
+ #define XNR6PreeditCallback "r6PreeditCallback"
1227
+ #define XNStringConversionCallback "stringConversionCallback"
1228
+ #define XNStringConversion "stringConversion"
1229
+ #define XNResetState "resetState"
1230
+ #define XNHotKey "hotKey"
1231
+ #define XNHotKeyState "hotKeyState"
1232
+ #define XNPreeditState "preeditState"
1233
+ #define XNSeparatorofNestedList "separatorofNestedList"
1234
+
1235
+ #define XBufferOverflow -1
1236
+ #define XLookupNone 1
1237
+ #define XLookupChars 2
1238
+ #define XLookupKeySym 3
1239
+ #define XLookupBoth 4
1240
+
1241
+ typedef void *XVaNestedList;
1242
+
1243
+ typedef struct {
1244
+ XPointer client_data;
1245
+ XIMProc callback;
1246
+ } XIMCallback;
1247
+
1248
+ typedef struct {
1249
+ XPointer client_data;
1250
+ XICProc callback;
1251
+ } XICCallback;
1252
+
1253
+ typedef unsigned long XIMFeedback;
1254
+
1255
+ #define XIMReverse 1L
1256
+ #define XIMUnderline (1L<<1)
1257
+ #define XIMHighlight (1L<<2)
1258
+ #define XIMPrimary (1L<<5)
1259
+ #define XIMSecondary (1L<<6)
1260
+ #define XIMTertiary (1L<<7)
1261
+ #define XIMVisibleToForward (1L<<8)
1262
+ #define XIMVisibleToBackword (1L<<9)
1263
+ #define XIMVisibleToCenter (1L<<10)
1264
+
1265
+ typedef struct _XIMText {
1266
+ unsigned short length;
1267
+ XIMFeedback *feedback;
1268
+ Bool encoding_is_wchar;
1269
+ union {
1270
+ char *multi_byte;
1271
+ wchar_t *wide_char;
1272
+ } string;
1273
+ } XIMText;
1274
+
1275
+ typedef unsigned long XIMPreeditState;
1276
+
1277
+ #define XIMPreeditUnKnown 0L
1278
+ #define XIMPreeditEnable 1L
1279
+ #define XIMPreeditDisable (1L<<1)
1280
+
1281
+ typedef struct _XIMPreeditStateNotifyCallbackStruct {
1282
+ XIMPreeditState state;
1283
+ } XIMPreeditStateNotifyCallbackStruct;
1284
+
1285
+ typedef unsigned long XIMResetState;
1286
+
1287
+ #define XIMInitialState 1L
1288
+ #define XIMPreserveState (1L<<1)
1289
+
1290
+ typedef unsigned long XIMStringConversionFeedback;
1291
+
1292
+ #define XIMStringConversionLeftEdge (0x00000001)
1293
+ #define XIMStringConversionRightEdge (0x00000002)
1294
+ #define XIMStringConversionTopEdge (0x00000004)
1295
+ #define XIMStringConversionBottomEdge (0x00000008)
1296
+ #define XIMStringConversionConcealed (0x00000010)
1297
+ #define XIMStringConversionWrapped (0x00000020)
1298
+
1299
+ typedef struct _XIMStringConversionText {
1300
+ unsigned short length;
1301
+ XIMStringConversionFeedback *feedback;
1302
+ Bool encoding_is_wchar;
1303
+ union {
1304
+ char *mbs;
1305
+ wchar_t *wcs;
1306
+ } string;
1307
+ } XIMStringConversionText;
1308
+
1309
+ typedef unsigned short XIMStringConversionPosition;
1310
+
1311
+ typedef unsigned short XIMStringConversionType;
1312
+
1313
+ #define XIMStringConversionBuffer (0x0001)
1314
+ #define XIMStringConversionLine (0x0002)
1315
+ #define XIMStringConversionWord (0x0003)
1316
+ #define XIMStringConversionChar (0x0004)
1317
+
1318
+ typedef unsigned short XIMStringConversionOperation;
1319
+
1320
+ #define XIMStringConversionSubstitution (0x0001)
1321
+ #define XIMStringConversionRetrieval (0x0002)
1322
+
1323
+ typedef enum {
1324
+ XIMForwardChar, XIMBackwardChar,
1325
+ XIMForwardWord, XIMBackwardWord,
1326
+ XIMCaretUp, XIMCaretDown,
1327
+ XIMNextLine, XIMPreviousLine,
1328
+ XIMLineStart, XIMLineEnd,
1329
+ XIMAbsolutePosition,
1330
+ XIMDontChange
1331
+ } XIMCaretDirection;
1332
+
1333
+ typedef struct _XIMStringConversionCallbackStruct {
1334
+ XIMStringConversionPosition position;
1335
+ XIMCaretDirection direction;
1336
+ XIMStringConversionOperation operation;
1337
+ unsigned short factor;
1338
+ XIMStringConversionText *text;
1339
+ } XIMStringConversionCallbackStruct;
1340
+
1341
+ typedef struct _XIMPreeditDrawCallbackStruct {
1342
+ int caret; /* Cursor offset within pre-edit string */
1343
+ int chg_first; /* Starting change position */
1344
+ int chg_length; /* Length of the change in character count */
1345
+ XIMText *text;
1346
+ } XIMPreeditDrawCallbackStruct;
1347
+
1348
+ typedef enum {
1349
+ XIMIsInvisible, /* Disable caret feedback */
1350
+ XIMIsPrimary, /* UI defined caret feedback */
1351
+ XIMIsSecondary /* UI defined caret feedback */
1352
+ } XIMCaretStyle;
1353
+
1354
+ typedef struct _XIMPreeditCaretCallbackStruct {
1355
+ int position; /* Caret offset within pre-edit string */
1356
+ XIMCaretDirection direction; /* Caret moves direction */
1357
+ XIMCaretStyle style; /* Feedback of the caret */
1358
+ } XIMPreeditCaretCallbackStruct;
1359
+
1360
+ typedef enum {
1361
+ XIMTextType,
1362
+ XIMBitmapType
1363
+ } XIMStatusDataType;
1364
+
1365
+ typedef struct _XIMStatusDrawCallbackStruct {
1366
+ XIMStatusDataType type;
1367
+ union {
1368
+ XIMText *text;
1369
+ Pixmap bitmap;
1370
+ } data;
1371
+ } XIMStatusDrawCallbackStruct;
1372
+
1373
+ typedef struct _XIMHotKeyTrigger {
1374
+ KeySym keysym;
1375
+ int modifier;
1376
+ int modifier_mask;
1377
+ } XIMHotKeyTrigger;
1378
+
1379
+ typedef struct _XIMHotKeyTriggers {
1380
+ int num_hot_key;
1381
+ XIMHotKeyTrigger *key;
1382
+ } XIMHotKeyTriggers;
1383
+
1384
+ typedef unsigned long XIMHotKeyState;
1385
+
1386
+ #define XIMHotKeyStateON (0x0001L)
1387
+ #define XIMHotKeyStateOFF (0x0002L)
1388
+
1389
+ typedef struct {
1390
+ unsigned short count_values;
1391
+ char **supported_values;
1392
+ } XIMValuesList;
1393
+
1394
+ _XFUNCPROTOBEGIN
1395
+
1396
+ #if defined(WIN32) && !defined(_XLIBINT_)
1397
+ #define _Xdebug (*_Xdebug_p)
1398
+ #endif
1399
+
1400
+ extern int _Xdebug;
1401
+
1402
+ extern XFontStruct *XLoadQueryFont(
1403
+ Display* /* display */,
1404
+ _Xconst char* /* name */
1405
+ );
1406
+
1407
+ extern XFontStruct *XQueryFont(
1408
+ Display* /* display */,
1409
+ XID /* font_ID */
1410
+ );
1411
+
1412
+
1413
+ extern XTimeCoord *XGetMotionEvents(
1414
+ Display* /* display */,
1415
+ Window /* w */,
1416
+ Time /* start */,
1417
+ Time /* stop */,
1418
+ int* /* nevents_return */
1419
+ );
1420
+
1421
+ extern XModifierKeymap *XDeleteModifiermapEntry(
1422
+ XModifierKeymap* /* modmap */,
1423
+ #if NeedWidePrototypes
1424
+ unsigned int /* keycode_entry */,
1425
+ #else
1426
+ KeyCode /* keycode_entry */,
1427
+ #endif
1428
+ int /* modifier */
1429
+ );
1430
+
1431
+ extern XModifierKeymap *XGetModifierMapping(
1432
+ Display* /* display */
1433
+ );
1434
+
1435
+ extern XModifierKeymap *XInsertModifiermapEntry(
1436
+ XModifierKeymap* /* modmap */,
1437
+ #if NeedWidePrototypes
1438
+ unsigned int /* keycode_entry */,
1439
+ #else
1440
+ KeyCode /* keycode_entry */,
1441
+ #endif
1442
+ int /* modifier */
1443
+ );
1444
+
1445
+ extern XModifierKeymap *XNewModifiermap(
1446
+ int /* max_keys_per_mod */
1447
+ );
1448
+
1449
+ extern XImage *XCreateImage(
1450
+ Display* /* display */,
1451
+ Visual* /* visual */,
1452
+ unsigned int /* depth */,
1453
+ int /* format */,
1454
+ int /* offset */,
1455
+ char* /* data */,
1456
+ unsigned int /* width */,
1457
+ unsigned int /* height */,
1458
+ int /* bitmap_pad */,
1459
+ int /* bytes_per_line */
1460
+ );
1461
+ extern Status XInitImage(
1462
+ XImage* /* image */
1463
+ );
1464
+ extern XImage *XGetImage(
1465
+ Display* /* display */,
1466
+ Drawable /* d */,
1467
+ int /* x */,
1468
+ int /* y */,
1469
+ unsigned int /* width */,
1470
+ unsigned int /* height */,
1471
+ unsigned long /* plane_mask */,
1472
+ int /* format */
1473
+ );
1474
+ extern XImage *XGetSubImage(
1475
+ Display* /* display */,
1476
+ Drawable /* d */,
1477
+ int /* x */,
1478
+ int /* y */,
1479
+ unsigned int /* width */,
1480
+ unsigned int /* height */,
1481
+ unsigned long /* plane_mask */,
1482
+ int /* format */,
1483
+ XImage* /* dest_image */,
1484
+ int /* dest_x */,
1485
+ int /* dest_y */
1486
+ );
1487
+
1488
+ /*
1489
+ * X function declarations.
1490
+ */
1491
+ extern Display *XOpenDisplay(
1492
+ _Xconst char* /* display_name */
1493
+ );
1494
+
1495
+ extern void XrmInitialize(
1496
+ void
1497
+ );
1498
+
1499
+ extern char *XFetchBytes(
1500
+ Display* /* display */,
1501
+ int* /* nbytes_return */
1502
+ );
1503
+ extern char *XFetchBuffer(
1504
+ Display* /* display */,
1505
+ int* /* nbytes_return */,
1506
+ int /* buffer */
1507
+ );
1508
+ extern char *XGetAtomName(
1509
+ Display* /* display */,
1510
+ Atom /* atom */
1511
+ );
1512
+ extern Status XGetAtomNames(
1513
+ Display* /* dpy */,
1514
+ Atom* /* atoms */,
1515
+ int /* count */,
1516
+ char** /* names_return */
1517
+ );
1518
+ extern char *XGetDefault(
1519
+ Display* /* display */,
1520
+ _Xconst char* /* program */,
1521
+ _Xconst char* /* option */
1522
+ );
1523
+ extern char *XDisplayName(
1524
+ _Xconst char* /* string */
1525
+ );
1526
+ extern char *XKeysymToString(
1527
+ KeySym /* keysym */
1528
+ );
1529
+
1530
+ extern int (*XSynchronize(
1531
+ Display* /* display */,
1532
+ Bool /* onoff */
1533
+ ))(
1534
+ Display* /* display */
1535
+ );
1536
+ extern int (*XSetAfterFunction(
1537
+ Display* /* display */,
1538
+ int (*) (
1539
+ Display* /* display */
1540
+ ) /* procedure */
1541
+ ))(
1542
+ Display* /* display */
1543
+ );
1544
+ extern Atom XInternAtom(
1545
+ Display* /* display */,
1546
+ _Xconst char* /* atom_name */,
1547
+ Bool /* only_if_exists */
1548
+ );
1549
+ extern Status XInternAtoms(
1550
+ Display* /* dpy */,
1551
+ char** /* names */,
1552
+ int /* count */,
1553
+ Bool /* onlyIfExists */,
1554
+ Atom* /* atoms_return */
1555
+ );
1556
+ extern Colormap XCopyColormapAndFree(
1557
+ Display* /* display */,
1558
+ Colormap /* colormap */
1559
+ );
1560
+ extern Colormap XCreateColormap(
1561
+ Display* /* display */,
1562
+ Window /* w */,
1563
+ Visual* /* visual */,
1564
+ int /* alloc */
1565
+ );
1566
+ extern Cursor XCreatePixmapCursor(
1567
+ Display* /* display */,
1568
+ Pixmap /* source */,
1569
+ Pixmap /* mask */,
1570
+ XColor* /* foreground_color */,
1571
+ XColor* /* background_color */,
1572
+ unsigned int /* x */,
1573
+ unsigned int /* y */
1574
+ );
1575
+ extern Cursor XCreateGlyphCursor(
1576
+ Display* /* display */,
1577
+ Font /* source_font */,
1578
+ Font /* mask_font */,
1579
+ unsigned int /* source_char */,
1580
+ unsigned int /* mask_char */,
1581
+ XColor _Xconst * /* foreground_color */,
1582
+ XColor _Xconst * /* background_color */
1583
+ );
1584
+ extern Cursor XCreateFontCursor(
1585
+ Display* /* display */,
1586
+ unsigned int /* shape */
1587
+ );
1588
+ extern Font XLoadFont(
1589
+ Display* /* display */,
1590
+ _Xconst char* /* name */
1591
+ );
1592
+ extern GC XCreateGC(
1593
+ Display* /* display */,
1594
+ Drawable /* d */,
1595
+ unsigned long /* valuemask */,
1596
+ XGCValues* /* values */
1597
+ );
1598
+ extern GContext XGContextFromGC(
1599
+ GC /* gc */
1600
+ );
1601
+ extern void XFlushGC(
1602
+ Display* /* display */,
1603
+ GC /* gc */
1604
+ );
1605
+ extern Pixmap XCreatePixmap(
1606
+ Display* /* display */,
1607
+ Drawable /* d */,
1608
+ unsigned int /* width */,
1609
+ unsigned int /* height */,
1610
+ unsigned int /* depth */
1611
+ );
1612
+ extern Pixmap XCreateBitmapFromData(
1613
+ Display* /* display */,
1614
+ Drawable /* d */,
1615
+ _Xconst char* /* data */,
1616
+ unsigned int /* width */,
1617
+ unsigned int /* height */
1618
+ );
1619
+ extern Pixmap XCreatePixmapFromBitmapData(
1620
+ Display* /* display */,
1621
+ Drawable /* d */,
1622
+ char* /* data */,
1623
+ unsigned int /* width */,
1624
+ unsigned int /* height */,
1625
+ unsigned long /* fg */,
1626
+ unsigned long /* bg */,
1627
+ unsigned int /* depth */
1628
+ );
1629
+ extern Window XCreateSimpleWindow(
1630
+ Display* /* display */,
1631
+ Window /* parent */,
1632
+ int /* x */,
1633
+ int /* y */,
1634
+ unsigned int /* width */,
1635
+ unsigned int /* height */,
1636
+ unsigned int /* border_width */,
1637
+ unsigned long /* border */,
1638
+ unsigned long /* background */
1639
+ );
1640
+ extern Window XGetSelectionOwner(
1641
+ Display* /* display */,
1642
+ Atom /* selection */
1643
+ );
1644
+ extern Window XCreateWindow(
1645
+ Display* /* display */,
1646
+ Window /* parent */,
1647
+ int /* x */,
1648
+ int /* y */,
1649
+ unsigned int /* width */,
1650
+ unsigned int /* height */,
1651
+ unsigned int /* border_width */,
1652
+ int /* depth */,
1653
+ unsigned int /* class */,
1654
+ Visual* /* visual */,
1655
+ unsigned long /* valuemask */,
1656
+ XSetWindowAttributes* /* attributes */
1657
+ );
1658
+ extern Colormap *XListInstalledColormaps(
1659
+ Display* /* display */,
1660
+ Window /* w */,
1661
+ int* /* num_return */
1662
+ );
1663
+ extern char **XListFonts(
1664
+ Display* /* display */,
1665
+ _Xconst char* /* pattern */,
1666
+ int /* maxnames */,
1667
+ int* /* actual_count_return */
1668
+ );
1669
+ extern char **XListFontsWithInfo(
1670
+ Display* /* display */,
1671
+ _Xconst char* /* pattern */,
1672
+ int /* maxnames */,
1673
+ int* /* count_return */,
1674
+ XFontStruct** /* info_return */
1675
+ );
1676
+ extern char **XGetFontPath(
1677
+ Display* /* display */,
1678
+ int* /* npaths_return */
1679
+ );
1680
+ extern char **XListExtensions(
1681
+ Display* /* display */,
1682
+ int* /* nextensions_return */
1683
+ );
1684
+ extern Atom *XListProperties(
1685
+ Display* /* display */,
1686
+ Window /* w */,
1687
+ int* /* num_prop_return */
1688
+ );
1689
+ extern XHostAddress *XListHosts(
1690
+ Display* /* display */,
1691
+ int* /* nhosts_return */,
1692
+ Bool* /* state_return */
1693
+ );
1694
+ extern KeySym XKeycodeToKeysym(
1695
+ Display* /* display */,
1696
+ #if NeedWidePrototypes
1697
+ unsigned int /* keycode */,
1698
+ #else
1699
+ KeyCode /* keycode */,
1700
+ #endif
1701
+ int /* index */
1702
+ );
1703
+ extern KeySym XLookupKeysym(
1704
+ XKeyEvent* /* key_event */,
1705
+ int /* index */
1706
+ );
1707
+ extern KeySym *XGetKeyboardMapping(
1708
+ Display* /* display */,
1709
+ #if NeedWidePrototypes
1710
+ unsigned int /* first_keycode */,
1711
+ #else
1712
+ KeyCode /* first_keycode */,
1713
+ #endif
1714
+ int /* keycode_count */,
1715
+ int* /* keysyms_per_keycode_return */
1716
+ );
1717
+ extern KeySym XStringToKeysym(
1718
+ _Xconst char* /* string */
1719
+ );
1720
+ extern long XMaxRequestSize(
1721
+ Display* /* display */
1722
+ );
1723
+ extern long XExtendedMaxRequestSize(
1724
+ Display* /* display */
1725
+ );
1726
+ extern char *XResourceManagerString(
1727
+ Display* /* display */
1728
+ );
1729
+ extern char *XScreenResourceString(
1730
+ Screen* /* screen */
1731
+ );
1732
+ extern unsigned long XDisplayMotionBufferSize(
1733
+ Display* /* display */
1734
+ );
1735
+ extern VisualID XVisualIDFromVisual(
1736
+ Visual* /* visual */
1737
+ );
1738
+
1739
+ /* multithread routines */
1740
+
1741
+ extern Status XInitThreads(
1742
+ void
1743
+ );
1744
+
1745
+ extern void XLockDisplay(
1746
+ Display* /* display */
1747
+ );
1748
+
1749
+ extern void XUnlockDisplay(
1750
+ Display* /* display */
1751
+ );
1752
+
1753
+ /* routines for dealing with extensions */
1754
+
1755
+ extern XExtCodes *XInitExtension(
1756
+ Display* /* display */,
1757
+ _Xconst char* /* name */
1758
+ );
1759
+
1760
+ extern XExtCodes *XAddExtension(
1761
+ Display* /* display */
1762
+ );
1763
+ extern XExtData *XFindOnExtensionList(
1764
+ XExtData** /* structure */,
1765
+ int /* number */
1766
+ );
1767
+ extern XExtData **XEHeadOfExtensionList(
1768
+ XEDataObject /* object */
1769
+ );
1770
+
1771
+ /* these are routines for which there are also macros */
1772
+ extern Window XRootWindow(
1773
+ Display* /* display */,
1774
+ int /* screen_number */
1775
+ );
1776
+ extern Window XDefaultRootWindow(
1777
+ Display* /* display */
1778
+ );
1779
+ extern Window XRootWindowOfScreen(
1780
+ Screen* /* screen */
1781
+ );
1782
+ extern Visual *XDefaultVisual(
1783
+ Display* /* display */,
1784
+ int /* screen_number */
1785
+ );
1786
+ extern Visual *XDefaultVisualOfScreen(
1787
+ Screen* /* screen */
1788
+ );
1789
+ extern GC XDefaultGC(
1790
+ Display* /* display */,
1791
+ int /* screen_number */
1792
+ );
1793
+ extern GC XDefaultGCOfScreen(
1794
+ Screen* /* screen */
1795
+ );
1796
+ extern unsigned long XBlackPixel(
1797
+ Display* /* display */,
1798
+ int /* screen_number */
1799
+ );
1800
+ extern unsigned long XWhitePixel(
1801
+ Display* /* display */,
1802
+ int /* screen_number */
1803
+ );
1804
+ extern unsigned long XAllPlanes(
1805
+ void
1806
+ );
1807
+ extern unsigned long XBlackPixelOfScreen(
1808
+ Screen* /* screen */
1809
+ );
1810
+ extern unsigned long XWhitePixelOfScreen(
1811
+ Screen* /* screen */
1812
+ );
1813
+ extern unsigned long XNextRequest(
1814
+ Display* /* display */
1815
+ );
1816
+ extern unsigned long XLastKnownRequestProcessed(
1817
+ Display* /* display */
1818
+ );
1819
+ extern char *XServerVendor(
1820
+ Display* /* display */
1821
+ );
1822
+ extern char *XDisplayString(
1823
+ Display* /* display */
1824
+ );
1825
+ extern Colormap XDefaultColormap(
1826
+ Display* /* display */,
1827
+ int /* screen_number */
1828
+ );
1829
+ extern Colormap XDefaultColormapOfScreen(
1830
+ Screen* /* screen */
1831
+ );
1832
+ extern Display *XDisplayOfScreen(
1833
+ Screen* /* screen */
1834
+ );
1835
+ extern Screen *XScreenOfDisplay(
1836
+ Display* /* display */,
1837
+ int /* screen_number */
1838
+ );
1839
+ extern Screen *XDefaultScreenOfDisplay(
1840
+ Display* /* display */
1841
+ );
1842
+ extern long XEventMaskOfScreen(
1843
+ Screen* /* screen */
1844
+ );
1845
+
1846
+ extern int XScreenNumberOfScreen(
1847
+ Screen* /* screen */
1848
+ );
1849
+
1850
+ typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */
1851
+ Display* /* display */,
1852
+ XErrorEvent* /* error_event */
1853
+ );
1854
+
1855
+ extern XErrorHandler XSetErrorHandler (
1856
+ XErrorHandler /* handler */
1857
+ );
1858
+
1859
+
1860
+ typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */
1861
+ Display* /* display */
1862
+ );
1863
+
1864
+ extern XIOErrorHandler XSetIOErrorHandler (
1865
+ XIOErrorHandler /* handler */
1866
+ );
1867
+
1868
+
1869
+ extern XPixmapFormatValues *XListPixmapFormats(
1870
+ Display* /* display */,
1871
+ int* /* count_return */
1872
+ );
1873
+ extern int *XListDepths(
1874
+ Display* /* display */,
1875
+ int /* screen_number */,
1876
+ int* /* count_return */
1877
+ );
1878
+
1879
+ /* ICCCM routines for things that don't require special include files; */
1880
+ /* other declarations are given in Xutil.h */
1881
+ extern Status XReconfigureWMWindow(
1882
+ Display* /* display */,
1883
+ Window /* w */,
1884
+ int /* screen_number */,
1885
+ unsigned int /* mask */,
1886
+ XWindowChanges* /* changes */
1887
+ );
1888
+
1889
+ extern Status XGetWMProtocols(
1890
+ Display* /* display */,
1891
+ Window /* w */,
1892
+ Atom** /* protocols_return */,
1893
+ int* /* count_return */
1894
+ );
1895
+ extern Status XSetWMProtocols(
1896
+ Display* /* display */,
1897
+ Window /* w */,
1898
+ Atom* /* protocols */,
1899
+ int /* count */
1900
+ );
1901
+ extern Status XIconifyWindow(
1902
+ Display* /* display */,
1903
+ Window /* w */,
1904
+ int /* screen_number */
1905
+ );
1906
+ extern Status XWithdrawWindow(
1907
+ Display* /* display */,
1908
+ Window /* w */,
1909
+ int /* screen_number */
1910
+ );
1911
+ extern Status XGetCommand(
1912
+ Display* /* display */,
1913
+ Window /* w */,
1914
+ char*** /* argv_return */,
1915
+ int* /* argc_return */
1916
+ );
1917
+ extern Status XGetWMColormapWindows(
1918
+ Display* /* display */,
1919
+ Window /* w */,
1920
+ Window** /* windows_return */,
1921
+ int* /* count_return */
1922
+ );
1923
+ extern Status XSetWMColormapWindows(
1924
+ Display* /* display */,
1925
+ Window /* w */,
1926
+ Window* /* colormap_windows */,
1927
+ int /* count */
1928
+ );
1929
+ extern void XFreeStringList(
1930
+ char** /* list */
1931
+ );
1932
+ extern int XSetTransientForHint(
1933
+ Display* /* display */,
1934
+ Window /* w */,
1935
+ Window /* prop_window */
1936
+ );
1937
+
1938
+ /* The following are given in alphabetical order */
1939
+
1940
+ extern int XActivateScreenSaver(
1941
+ Display* /* display */
1942
+ );
1943
+
1944
+ extern int XAddHost(
1945
+ Display* /* display */,
1946
+ XHostAddress* /* host */
1947
+ );
1948
+
1949
+ extern int XAddHosts(
1950
+ Display* /* display */,
1951
+ XHostAddress* /* hosts */,
1952
+ int /* num_hosts */
1953
+ );
1954
+
1955
+ extern int XAddToExtensionList(
1956
+ struct _XExtData** /* structure */,
1957
+ XExtData* /* ext_data */
1958
+ );
1959
+
1960
+ extern int XAddToSaveSet(
1961
+ Display* /* display */,
1962
+ Window /* w */
1963
+ );
1964
+
1965
+ extern Status XAllocColor(
1966
+ Display* /* display */,
1967
+ Colormap /* colormap */,
1968
+ XColor* /* screen_in_out */
1969
+ );
1970
+
1971
+ extern Status XAllocColorCells(
1972
+ Display* /* display */,
1973
+ Colormap /* colormap */,
1974
+ Bool /* contig */,
1975
+ unsigned long* /* plane_masks_return */,
1976
+ unsigned int /* nplanes */,
1977
+ unsigned long* /* pixels_return */,
1978
+ unsigned int /* npixels */
1979
+ );
1980
+
1981
+ extern Status XAllocColorPlanes(
1982
+ Display* /* display */,
1983
+ Colormap /* colormap */,
1984
+ Bool /* contig */,
1985
+ unsigned long* /* pixels_return */,
1986
+ int /* ncolors */,
1987
+ int /* nreds */,
1988
+ int /* ngreens */,
1989
+ int /* nblues */,
1990
+ unsigned long* /* rmask_return */,
1991
+ unsigned long* /* gmask_return */,
1992
+ unsigned long* /* bmask_return */
1993
+ );
1994
+
1995
+ extern Status XAllocNamedColor(
1996
+ Display* /* display */,
1997
+ Colormap /* colormap */,
1998
+ _Xconst char* /* color_name */,
1999
+ XColor* /* screen_def_return */,
2000
+ XColor* /* exact_def_return */
2001
+ );
2002
+
2003
+ extern int XAllowEvents(
2004
+ Display* /* display */,
2005
+ int /* event_mode */,
2006
+ Time /* time */
2007
+ );
2008
+
2009
+ extern int XAutoRepeatOff(
2010
+ Display* /* display */
2011
+ );
2012
+
2013
+ extern int XAutoRepeatOn(
2014
+ Display* /* display */
2015
+ );
2016
+
2017
+ extern int XBell(
2018
+ Display* /* display */,
2019
+ int /* percent */
2020
+ );
2021
+
2022
+ extern int XBitmapBitOrder(
2023
+ Display* /* display */
2024
+ );
2025
+
2026
+ extern int XBitmapPad(
2027
+ Display* /* display */
2028
+ );
2029
+
2030
+ extern int XBitmapUnit(
2031
+ Display* /* display */
2032
+ );
2033
+
2034
+ extern int XCellsOfScreen(
2035
+ Screen* /* screen */
2036
+ );
2037
+
2038
+ extern int XChangeActivePointerGrab(
2039
+ Display* /* display */,
2040
+ unsigned int /* event_mask */,
2041
+ Cursor /* cursor */,
2042
+ Time /* time */
2043
+ );
2044
+
2045
+ extern int XChangeGC(
2046
+ Display* /* display */,
2047
+ GC /* gc */,
2048
+ unsigned long /* valuemask */,
2049
+ XGCValues* /* values */
2050
+ );
2051
+
2052
+ extern int XChangeKeyboardControl(
2053
+ Display* /* display */,
2054
+ unsigned long /* value_mask */,
2055
+ XKeyboardControl* /* values */
2056
+ );
2057
+
2058
+ extern int XChangeKeyboardMapping(
2059
+ Display* /* display */,
2060
+ int /* first_keycode */,
2061
+ int /* keysyms_per_keycode */,
2062
+ KeySym* /* keysyms */,
2063
+ int /* num_codes */
2064
+ );
2065
+
2066
+ extern int XChangePointerControl(
2067
+ Display* /* display */,
2068
+ Bool /* do_accel */,
2069
+ Bool /* do_threshold */,
2070
+ int /* accel_numerator */,
2071
+ int /* accel_denominator */,
2072
+ int /* threshold */
2073
+ );
2074
+
2075
+ extern int XChangeProperty(
2076
+ Display* /* display */,
2077
+ Window /* w */,
2078
+ Atom /* property */,
2079
+ Atom /* type */,
2080
+ int /* format */,
2081
+ int /* mode */,
2082
+ _Xconst unsigned char* /* data */,
2083
+ int /* nelements */
2084
+ );
2085
+
2086
+ extern int XChangeSaveSet(
2087
+ Display* /* display */,
2088
+ Window /* w */,
2089
+ int /* change_mode */
2090
+ );
2091
+
2092
+ extern int XChangeWindowAttributes(
2093
+ Display* /* display */,
2094
+ Window /* w */,
2095
+ unsigned long /* valuemask */,
2096
+ XSetWindowAttributes* /* attributes */
2097
+ );
2098
+
2099
+ extern Bool XCheckIfEvent(
2100
+ Display* /* display */,
2101
+ XEvent* /* event_return */,
2102
+ Bool (*) (
2103
+ Display* /* display */,
2104
+ XEvent* /* event */,
2105
+ XPointer /* arg */
2106
+ ) /* predicate */,
2107
+ XPointer /* arg */
2108
+ );
2109
+
2110
+ extern Bool XCheckMaskEvent(
2111
+ Display* /* display */,
2112
+ long /* event_mask */,
2113
+ XEvent* /* event_return */
2114
+ );
2115
+
2116
+ extern Bool XCheckTypedEvent(
2117
+ Display* /* display */,
2118
+ int /* event_type */,
2119
+ XEvent* /* event_return */
2120
+ );
2121
+
2122
+ extern Bool XCheckTypedWindowEvent(
2123
+ Display* /* display */,
2124
+ Window /* w */,
2125
+ int /* event_type */,
2126
+ XEvent* /* event_return */
2127
+ );
2128
+
2129
+ extern Bool XCheckWindowEvent(
2130
+ Display* /* display */,
2131
+ Window /* w */,
2132
+ long /* event_mask */,
2133
+ XEvent* /* event_return */
2134
+ );
2135
+
2136
+ extern int XCirculateSubwindows(
2137
+ Display* /* display */,
2138
+ Window /* w */,
2139
+ int /* direction */
2140
+ );
2141
+
2142
+ extern int XCirculateSubwindowsDown(
2143
+ Display* /* display */,
2144
+ Window /* w */
2145
+ );
2146
+
2147
+ extern int XCirculateSubwindowsUp(
2148
+ Display* /* display */,
2149
+ Window /* w */
2150
+ );
2151
+
2152
+ extern int XClearArea(
2153
+ Display* /* display */,
2154
+ Window /* w */,
2155
+ int /* x */,
2156
+ int /* y */,
2157
+ unsigned int /* width */,
2158
+ unsigned int /* height */,
2159
+ Bool /* exposures */
2160
+ );
2161
+
2162
+ extern int XClearWindow(
2163
+ Display* /* display */,
2164
+ Window /* w */
2165
+ );
2166
+
2167
+ extern int XCloseDisplay(
2168
+ Display* /* display */
2169
+ );
2170
+
2171
+ extern int XConfigureWindow(
2172
+ Display* /* display */,
2173
+ Window /* w */,
2174
+ unsigned int /* value_mask */,
2175
+ XWindowChanges* /* values */
2176
+ );
2177
+
2178
+ extern int XConnectionNumber(
2179
+ Display* /* display */
2180
+ );
2181
+
2182
+ extern int XConvertSelection(
2183
+ Display* /* display */,
2184
+ Atom /* selection */,
2185
+ Atom /* target */,
2186
+ Atom /* property */,
2187
+ Window /* requestor */,
2188
+ Time /* time */
2189
+ );
2190
+
2191
+ extern int XCopyArea(
2192
+ Display* /* display */,
2193
+ Drawable /* src */,
2194
+ Drawable /* dest */,
2195
+ GC /* gc */,
2196
+ int /* src_x */,
2197
+ int /* src_y */,
2198
+ unsigned int /* width */,
2199
+ unsigned int /* height */,
2200
+ int /* dest_x */,
2201
+ int /* dest_y */
2202
+ );
2203
+
2204
+ extern int XCopyGC(
2205
+ Display* /* display */,
2206
+ GC /* src */,
2207
+ unsigned long /* valuemask */,
2208
+ GC /* dest */
2209
+ );
2210
+
2211
+ extern int XCopyPlane(
2212
+ Display* /* display */,
2213
+ Drawable /* src */,
2214
+ Drawable /* dest */,
2215
+ GC /* gc */,
2216
+ int /* src_x */,
2217
+ int /* src_y */,
2218
+ unsigned int /* width */,
2219
+ unsigned int /* height */,
2220
+ int /* dest_x */,
2221
+ int /* dest_y */,
2222
+ unsigned long /* plane */
2223
+ );
2224
+
2225
+ extern int XDefaultDepth(
2226
+ Display* /* display */,
2227
+ int /* screen_number */
2228
+ );
2229
+
2230
+ extern int XDefaultDepthOfScreen(
2231
+ Screen* /* screen */
2232
+ );
2233
+
2234
+ extern int XDefaultScreen(
2235
+ Display* /* display */
2236
+ );
2237
+
2238
+ extern int XDefineCursor(
2239
+ Display* /* display */,
2240
+ Window /* w */,
2241
+ Cursor /* cursor */
2242
+ );
2243
+
2244
+ extern int XDeleteProperty(
2245
+ Display* /* display */,
2246
+ Window /* w */,
2247
+ Atom /* property */
2248
+ );
2249
+
2250
+ extern int XDestroyWindow(
2251
+ Display* /* display */,
2252
+ Window /* w */
2253
+ );
2254
+
2255
+ extern int XDestroySubwindows(
2256
+ Display* /* display */,
2257
+ Window /* w */
2258
+ );
2259
+
2260
+ extern int XDoesBackingStore(
2261
+ Screen* /* screen */
2262
+ );
2263
+
2264
+ extern Bool XDoesSaveUnders(
2265
+ Screen* /* screen */
2266
+ );
2267
+
2268
+ extern int XDisableAccessControl(
2269
+ Display* /* display */
2270
+ );
2271
+
2272
+
2273
+ extern int XDisplayCells(
2274
+ Display* /* display */,
2275
+ int /* screen_number */
2276
+ );
2277
+
2278
+ extern int XDisplayHeight(
2279
+ Display* /* display */,
2280
+ int /* screen_number */
2281
+ );
2282
+
2283
+ extern int XDisplayHeightMM(
2284
+ Display* /* display */,
2285
+ int /* screen_number */
2286
+ );
2287
+
2288
+ extern int XDisplayKeycodes(
2289
+ Display* /* display */,
2290
+ int* /* min_keycodes_return */,
2291
+ int* /* max_keycodes_return */
2292
+ );
2293
+
2294
+ extern int XDisplayPlanes(
2295
+ Display* /* display */,
2296
+ int /* screen_number */
2297
+ );
2298
+
2299
+ extern int XDisplayWidth(
2300
+ Display* /* display */,
2301
+ int /* screen_number */
2302
+ );
2303
+
2304
+ extern int XDisplayWidthMM(
2305
+ Display* /* display */,
2306
+ int /* screen_number */
2307
+ );
2308
+
2309
+ extern int XDrawArc(
2310
+ Display* /* display */,
2311
+ Drawable /* d */,
2312
+ GC /* gc */,
2313
+ int /* x */,
2314
+ int /* y */,
2315
+ unsigned int /* width */,
2316
+ unsigned int /* height */,
2317
+ int /* angle1 */,
2318
+ int /* angle2 */
2319
+ );
2320
+
2321
+ extern int XDrawArcs(
2322
+ Display* /* display */,
2323
+ Drawable /* d */,
2324
+ GC /* gc */,
2325
+ XArc* /* arcs */,
2326
+ int /* narcs */
2327
+ );
2328
+
2329
+ extern int XDrawImageString(
2330
+ Display* /* display */,
2331
+ Drawable /* d */,
2332
+ GC /* gc */,
2333
+ int /* x */,
2334
+ int /* y */,
2335
+ _Xconst char* /* string */,
2336
+ int /* length */
2337
+ );
2338
+
2339
+ extern int XDrawImageString16(
2340
+ Display* /* display */,
2341
+ Drawable /* d */,
2342
+ GC /* gc */,
2343
+ int /* x */,
2344
+ int /* y */,
2345
+ _Xconst XChar2b* /* string */,
2346
+ int /* length */
2347
+ );
2348
+
2349
+ extern int XDrawLine(
2350
+ Display* /* display */,
2351
+ Drawable /* d */,
2352
+ GC /* gc */,
2353
+ int /* x1 */,
2354
+ int /* y1 */,
2355
+ int /* x2 */,
2356
+ int /* y2 */
2357
+ );
2358
+
2359
+ extern int XDrawLines(
2360
+ Display* /* display */,
2361
+ Drawable /* d */,
2362
+ GC /* gc */,
2363
+ XPoint* /* points */,
2364
+ int /* npoints */,
2365
+ int /* mode */
2366
+ );
2367
+
2368
+ extern int XDrawPoint(
2369
+ Display* /* display */,
2370
+ Drawable /* d */,
2371
+ GC /* gc */,
2372
+ int /* x */,
2373
+ int /* y */
2374
+ );
2375
+
2376
+ extern int XDrawPoints(
2377
+ Display* /* display */,
2378
+ Drawable /* d */,
2379
+ GC /* gc */,
2380
+ XPoint* /* points */,
2381
+ int /* npoints */,
2382
+ int /* mode */
2383
+ );
2384
+
2385
+ extern int XDrawRectangle(
2386
+ Display* /* display */,
2387
+ Drawable /* d */,
2388
+ GC /* gc */,
2389
+ int /* x */,
2390
+ int /* y */,
2391
+ unsigned int /* width */,
2392
+ unsigned int /* height */
2393
+ );
2394
+
2395
+ extern int XDrawRectangles(
2396
+ Display* /* display */,
2397
+ Drawable /* d */,
2398
+ GC /* gc */,
2399
+ XRectangle* /* rectangles */,
2400
+ int /* nrectangles */
2401
+ );
2402
+
2403
+ extern int XDrawSegments(
2404
+ Display* /* display */,
2405
+ Drawable /* d */,
2406
+ GC /* gc */,
2407
+ XSegment* /* segments */,
2408
+ int /* nsegments */
2409
+ );
2410
+
2411
+ extern int XDrawString(
2412
+ Display* /* display */,
2413
+ Drawable /* d */,
2414
+ GC /* gc */,
2415
+ int /* x */,
2416
+ int /* y */,
2417
+ _Xconst char* /* string */,
2418
+ int /* length */
2419
+ );
2420
+
2421
+ extern int XDrawString16(
2422
+ Display* /* display */,
2423
+ Drawable /* d */,
2424
+ GC /* gc */,
2425
+ int /* x */,
2426
+ int /* y */,
2427
+ _Xconst XChar2b* /* string */,
2428
+ int /* length */
2429
+ );
2430
+
2431
+ extern int XDrawText(
2432
+ Display* /* display */,
2433
+ Drawable /* d */,
2434
+ GC /* gc */,
2435
+ int /* x */,
2436
+ int /* y */,
2437
+ XTextItem* /* items */,
2438
+ int /* nitems */
2439
+ );
2440
+
2441
+ extern int XDrawText16(
2442
+ Display* /* display */,
2443
+ Drawable /* d */,
2444
+ GC /* gc */,
2445
+ int /* x */,
2446
+ int /* y */,
2447
+ XTextItem16* /* items */,
2448
+ int /* nitems */
2449
+ );
2450
+
2451
+ extern int XEnableAccessControl(
2452
+ Display* /* display */
2453
+ );
2454
+
2455
+ extern int XEventsQueued(
2456
+ Display* /* display */,
2457
+ int /* mode */
2458
+ );
2459
+
2460
+ extern Status XFetchName(
2461
+ Display* /* display */,
2462
+ Window /* w */,
2463
+ char** /* window_name_return */
2464
+ );
2465
+
2466
+ extern int XFillArc(
2467
+ Display* /* display */,
2468
+ Drawable /* d */,
2469
+ GC /* gc */,
2470
+ int /* x */,
2471
+ int /* y */,
2472
+ unsigned int /* width */,
2473
+ unsigned int /* height */,
2474
+ int /* angle1 */,
2475
+ int /* angle2 */
2476
+ );
2477
+
2478
+ extern int XFillArcs(
2479
+ Display* /* display */,
2480
+ Drawable /* d */,
2481
+ GC /* gc */,
2482
+ XArc* /* arcs */,
2483
+ int /* narcs */
2484
+ );
2485
+
2486
+ extern int XFillPolygon(
2487
+ Display* /* display */,
2488
+ Drawable /* d */,
2489
+ GC /* gc */,
2490
+ XPoint* /* points */,
2491
+ int /* npoints */,
2492
+ int /* shape */,
2493
+ int /* mode */
2494
+ );
2495
+
2496
+ extern int XFillRectangle(
2497
+ Display* /* display */,
2498
+ Drawable /* d */,
2499
+ GC /* gc */,
2500
+ int /* x */,
2501
+ int /* y */,
2502
+ unsigned int /* width */,
2503
+ unsigned int /* height */
2504
+ );
2505
+
2506
+ extern int XFillRectangles(
2507
+ Display* /* display */,
2508
+ Drawable /* d */,
2509
+ GC /* gc */,
2510
+ XRectangle* /* rectangles */,
2511
+ int /* nrectangles */
2512
+ );
2513
+
2514
+ extern int XFlush(
2515
+ Display* /* display */
2516
+ );
2517
+
2518
+ extern int XForceScreenSaver(
2519
+ Display* /* display */,
2520
+ int /* mode */
2521
+ );
2522
+
2523
+ extern int XFree(
2524
+ void* /* data */
2525
+ );
2526
+
2527
+ extern int XFreeColormap(
2528
+ Display* /* display */,
2529
+ Colormap /* colormap */
2530
+ );
2531
+
2532
+ extern int XFreeColors(
2533
+ Display* /* display */,
2534
+ Colormap /* colormap */,
2535
+ unsigned long* /* pixels */,
2536
+ int /* npixels */,
2537
+ unsigned long /* planes */
2538
+ );
2539
+
2540
+ extern int XFreeCursor(
2541
+ Display* /* display */,
2542
+ Cursor /* cursor */
2543
+ );
2544
+
2545
+ extern int XFreeExtensionList(
2546
+ char** /* list */
2547
+ );
2548
+
2549
+ extern int XFreeFont(
2550
+ Display* /* display */,
2551
+ XFontStruct* /* font_struct */
2552
+ );
2553
+
2554
+ extern int XFreeFontInfo(
2555
+ char** /* names */,
2556
+ XFontStruct* /* free_info */,
2557
+ int /* actual_count */
2558
+ );
2559
+
2560
+ extern int XFreeFontNames(
2561
+ char** /* list */
2562
+ );
2563
+
2564
+ extern int XFreeFontPath(
2565
+ char** /* list */
2566
+ );
2567
+
2568
+ extern int XFreeGC(
2569
+ Display* /* display */,
2570
+ GC /* gc */
2571
+ );
2572
+
2573
+ extern int XFreeModifiermap(
2574
+ XModifierKeymap* /* modmap */
2575
+ );
2576
+
2577
+ extern int XFreePixmap(
2578
+ Display* /* display */,
2579
+ Pixmap /* pixmap */
2580
+ );
2581
+
2582
+ extern int XGeometry(
2583
+ Display* /* display */,
2584
+ int /* screen */,
2585
+ _Xconst char* /* position */,
2586
+ _Xconst char* /* default_position */,
2587
+ unsigned int /* bwidth */,
2588
+ unsigned int /* fwidth */,
2589
+ unsigned int /* fheight */,
2590
+ int /* xadder */,
2591
+ int /* yadder */,
2592
+ int* /* x_return */,
2593
+ int* /* y_return */,
2594
+ int* /* width_return */,
2595
+ int* /* height_return */
2596
+ );
2597
+
2598
+ extern int XGetErrorDatabaseText(
2599
+ Display* /* display */,
2600
+ _Xconst char* /* name */,
2601
+ _Xconst char* /* message */,
2602
+ _Xconst char* /* default_string */,
2603
+ char* /* buffer_return */,
2604
+ int /* length */
2605
+ );
2606
+
2607
+ extern int XGetErrorText(
2608
+ Display* /* display */,
2609
+ int /* code */,
2610
+ char* /* buffer_return */,
2611
+ int /* length */
2612
+ );
2613
+
2614
+ extern Bool XGetFontProperty(
2615
+ XFontStruct* /* font_struct */,
2616
+ Atom /* atom */,
2617
+ unsigned long* /* value_return */
2618
+ );
2619
+
2620
+ extern Status XGetGCValues(
2621
+ Display* /* display */,
2622
+ GC /* gc */,
2623
+ unsigned long /* valuemask */,
2624
+ XGCValues* /* values_return */
2625
+ );
2626
+
2627
+ extern Status XGetGeometry(
2628
+ Display* /* display */,
2629
+ Drawable /* d */,
2630
+ Window* /* root_return */,
2631
+ int* /* x_return */,
2632
+ int* /* y_return */,
2633
+ unsigned int* /* width_return */,
2634
+ unsigned int* /* height_return */,
2635
+ unsigned int* /* border_width_return */,
2636
+ unsigned int* /* depth_return */
2637
+ );
2638
+
2639
+ extern Status XGetIconName(
2640
+ Display* /* display */,
2641
+ Window /* w */,
2642
+ char** /* icon_name_return */
2643
+ );
2644
+
2645
+ extern int XGetInputFocus(
2646
+ Display* /* display */,
2647
+ Window* /* focus_return */,
2648
+ int* /* revert_to_return */
2649
+ );
2650
+
2651
+ extern int XGetKeyboardControl(
2652
+ Display* /* display */,
2653
+ XKeyboardState* /* values_return */
2654
+ );
2655
+
2656
+ extern int XGetPointerControl(
2657
+ Display* /* display */,
2658
+ int* /* accel_numerator_return */,
2659
+ int* /* accel_denominator_return */,
2660
+ int* /* threshold_return */
2661
+ );
2662
+
2663
+ extern int XGetPointerMapping(
2664
+ Display* /* display */,
2665
+ unsigned char* /* map_return */,
2666
+ int /* nmap */
2667
+ );
2668
+
2669
+ extern int XGetScreenSaver(
2670
+ Display* /* display */,
2671
+ int* /* timeout_return */,
2672
+ int* /* interval_return */,
2673
+ int* /* prefer_blanking_return */,
2674
+ int* /* allow_exposures_return */
2675
+ );
2676
+
2677
+ extern Status XGetTransientForHint(
2678
+ Display* /* display */,
2679
+ Window /* w */,
2680
+ Window* /* prop_window_return */
2681
+ );
2682
+
2683
+ extern int XGetWindowProperty(
2684
+ Display* /* display */,
2685
+ Window /* w */,
2686
+ Atom /* property */,
2687
+ long /* long_offset */,
2688
+ long /* long_length */,
2689
+ Bool /* delete */,
2690
+ Atom /* req_type */,
2691
+ Atom* /* actual_type_return */,
2692
+ int* /* actual_format_return */,
2693
+ unsigned long* /* nitems_return */,
2694
+ unsigned long* /* bytes_after_return */,
2695
+ unsigned char** /* prop_return */
2696
+ );
2697
+
2698
+ extern Status XGetWindowAttributes(
2699
+ Display* /* display */,
2700
+ Window /* w */,
2701
+ XWindowAttributes* /* window_attributes_return */
2702
+ );
2703
+
2704
+ extern int XGrabButton(
2705
+ Display* /* display */,
2706
+ unsigned int /* button */,
2707
+ unsigned int /* modifiers */,
2708
+ Window /* grab_window */,
2709
+ Bool /* owner_events */,
2710
+ unsigned int /* event_mask */,
2711
+ int /* pointer_mode */,
2712
+ int /* keyboard_mode */,
2713
+ Window /* confine_to */,
2714
+ Cursor /* cursor */
2715
+ );
2716
+
2717
+ extern int XGrabKey(
2718
+ Display* /* display */,
2719
+ int /* keycode */,
2720
+ unsigned int /* modifiers */,
2721
+ Window /* grab_window */,
2722
+ Bool /* owner_events */,
2723
+ int /* pointer_mode */,
2724
+ int /* keyboard_mode */
2725
+ );
2726
+
2727
+ extern int XGrabKeyboard(
2728
+ Display* /* display */,
2729
+ Window /* grab_window */,
2730
+ Bool /* owner_events */,
2731
+ int /* pointer_mode */,
2732
+ int /* keyboard_mode */,
2733
+ Time /* time */
2734
+ );
2735
+
2736
+ extern int XGrabPointer(
2737
+ Display* /* display */,
2738
+ Window /* grab_window */,
2739
+ Bool /* owner_events */,
2740
+ unsigned int /* event_mask */,
2741
+ int /* pointer_mode */,
2742
+ int /* keyboard_mode */,
2743
+ Window /* confine_to */,
2744
+ Cursor /* cursor */,
2745
+ Time /* time */
2746
+ );
2747
+
2748
+ extern int XGrabServer(
2749
+ Display* /* display */
2750
+ );
2751
+
2752
+ extern int XHeightMMOfScreen(
2753
+ Screen* /* screen */
2754
+ );
2755
+
2756
+ extern int XHeightOfScreen(
2757
+ Screen* /* screen */
2758
+ );
2759
+
2760
+ extern int XIfEvent(
2761
+ Display* /* display */,
2762
+ XEvent* /* event_return */,
2763
+ Bool (*) (
2764
+ Display* /* display */,
2765
+ XEvent* /* event */,
2766
+ XPointer /* arg */
2767
+ ) /* predicate */,
2768
+ XPointer /* arg */
2769
+ );
2770
+
2771
+ extern int XImageByteOrder(
2772
+ Display* /* display */
2773
+ );
2774
+
2775
+ extern int XInstallColormap(
2776
+ Display* /* display */,
2777
+ Colormap /* colormap */
2778
+ );
2779
+
2780
+ extern KeyCode XKeysymToKeycode(
2781
+ Display* /* display */,
2782
+ KeySym /* keysym */
2783
+ );
2784
+
2785
+ extern int XKillClient(
2786
+ Display* /* display */,
2787
+ XID /* resource */
2788
+ );
2789
+
2790
+ extern Status XLookupColor(
2791
+ Display* /* display */,
2792
+ Colormap /* colormap */,
2793
+ _Xconst char* /* color_name */,
2794
+ XColor* /* exact_def_return */,
2795
+ XColor* /* screen_def_return */
2796
+ );
2797
+
2798
+ extern int XLowerWindow(
2799
+ Display* /* display */,
2800
+ Window /* w */
2801
+ );
2802
+
2803
+ extern int XMapRaised(
2804
+ Display* /* display */,
2805
+ Window /* w */
2806
+ );
2807
+
2808
+ extern int XMapSubwindows(
2809
+ Display* /* display */,
2810
+ Window /* w */
2811
+ );
2812
+
2813
+ extern int XMapWindow(
2814
+ Display* /* display */,
2815
+ Window /* w */
2816
+ );
2817
+
2818
+ extern int XMaskEvent(
2819
+ Display* /* display */,
2820
+ long /* event_mask */,
2821
+ XEvent* /* event_return */
2822
+ );
2823
+
2824
+ extern int XMaxCmapsOfScreen(
2825
+ Screen* /* screen */
2826
+ );
2827
+
2828
+ extern int XMinCmapsOfScreen(
2829
+ Screen* /* screen */
2830
+ );
2831
+
2832
+ extern int XMoveResizeWindow(
2833
+ Display* /* display */,
2834
+ Window /* w */,
2835
+ int /* x */,
2836
+ int /* y */,
2837
+ unsigned int /* width */,
2838
+ unsigned int /* height */
2839
+ );
2840
+
2841
+ extern int XMoveWindow(
2842
+ Display* /* display */,
2843
+ Window /* w */,
2844
+ int /* x */,
2845
+ int /* y */
2846
+ );
2847
+
2848
+ extern int XNextEvent(
2849
+ Display* /* display */,
2850
+ XEvent* /* event_return */
2851
+ );
2852
+
2853
+ extern int XNoOp(
2854
+ Display* /* display */
2855
+ );
2856
+
2857
+ extern Status XParseColor(
2858
+ Display* /* display */,
2859
+ Colormap /* colormap */,
2860
+ _Xconst char* /* spec */,
2861
+ XColor* /* exact_def_return */
2862
+ );
2863
+
2864
+ extern int XParseGeometry(
2865
+ _Xconst char* /* parsestring */,
2866
+ int* /* x_return */,
2867
+ int* /* y_return */,
2868
+ unsigned int* /* width_return */,
2869
+ unsigned int* /* height_return */
2870
+ );
2871
+
2872
+ extern int XPeekEvent(
2873
+ Display* /* display */,
2874
+ XEvent* /* event_return */
2875
+ );
2876
+
2877
+ extern int XPeekIfEvent(
2878
+ Display* /* display */,
2879
+ XEvent* /* event_return */,
2880
+ Bool (*) (
2881
+ Display* /* display */,
2882
+ XEvent* /* event */,
2883
+ XPointer /* arg */
2884
+ ) /* predicate */,
2885
+ XPointer /* arg */
2886
+ );
2887
+
2888
+ extern int XPending(
2889
+ Display* /* display */
2890
+ );
2891
+
2892
+ extern int XPlanesOfScreen(
2893
+ Screen* /* screen */
2894
+ );
2895
+
2896
+ extern int XProtocolRevision(
2897
+ Display* /* display */
2898
+ );
2899
+
2900
+ extern int XProtocolVersion(
2901
+ Display* /* display */
2902
+ );
2903
+
2904
+
2905
+ extern int XPutBackEvent(
2906
+ Display* /* display */,
2907
+ XEvent* /* event */
2908
+ );
2909
+
2910
+ extern int XPutImage(
2911
+ Display* /* display */,
2912
+ Drawable /* d */,
2913
+ GC /* gc */,
2914
+ XImage* /* image */,
2915
+ int /* src_x */,
2916
+ int /* src_y */,
2917
+ int /* dest_x */,
2918
+ int /* dest_y */,
2919
+ unsigned int /* width */,
2920
+ unsigned int /* height */
2921
+ );
2922
+
2923
+ extern int XQLength(
2924
+ Display* /* display */
2925
+ );
2926
+
2927
+ extern Status XQueryBestCursor(
2928
+ Display* /* display */,
2929
+ Drawable /* d */,
2930
+ unsigned int /* width */,
2931
+ unsigned int /* height */,
2932
+ unsigned int* /* width_return */,
2933
+ unsigned int* /* height_return */
2934
+ );
2935
+
2936
+ extern Status XQueryBestSize(
2937
+ Display* /* display */,
2938
+ int /* class */,
2939
+ Drawable /* which_screen */,
2940
+ unsigned int /* width */,
2941
+ unsigned int /* height */,
2942
+ unsigned int* /* width_return */,
2943
+ unsigned int* /* height_return */
2944
+ );
2945
+
2946
+ extern Status XQueryBestStipple(
2947
+ Display* /* display */,
2948
+ Drawable /* which_screen */,
2949
+ unsigned int /* width */,
2950
+ unsigned int /* height */,
2951
+ unsigned int* /* width_return */,
2952
+ unsigned int* /* height_return */
2953
+ );
2954
+
2955
+ extern Status XQueryBestTile(
2956
+ Display* /* display */,
2957
+ Drawable /* which_screen */,
2958
+ unsigned int /* width */,
2959
+ unsigned int /* height */,
2960
+ unsigned int* /* width_return */,
2961
+ unsigned int* /* height_return */
2962
+ );
2963
+
2964
+ extern int XQueryColor(
2965
+ Display* /* display */,
2966
+ Colormap /* colormap */,
2967
+ XColor* /* def_in_out */
2968
+ );
2969
+
2970
+ extern int XQueryColors(
2971
+ Display* /* display */,
2972
+ Colormap /* colormap */,
2973
+ XColor* /* defs_in_out */,
2974
+ int /* ncolors */
2975
+ );
2976
+
2977
+ extern Bool XQueryExtension(
2978
+ Display* /* display */,
2979
+ _Xconst char* /* name */,
2980
+ int* /* major_opcode_return */,
2981
+ int* /* first_event_return */,
2982
+ int* /* first_error_return */
2983
+ );
2984
+
2985
+ extern int XQueryKeymap(
2986
+ Display* /* display */,
2987
+ char [32] /* keys_return */
2988
+ );
2989
+
2990
+ extern Bool XQueryPointer(
2991
+ Display* /* display */,
2992
+ Window /* w */,
2993
+ Window* /* root_return */,
2994
+ Window* /* child_return */,
2995
+ int* /* root_x_return */,
2996
+ int* /* root_y_return */,
2997
+ int* /* win_x_return */,
2998
+ int* /* win_y_return */,
2999
+ unsigned int* /* mask_return */
3000
+ );
3001
+
3002
+ extern int XQueryTextExtents(
3003
+ Display* /* display */,
3004
+ XID /* font_ID */,
3005
+ _Xconst char* /* string */,
3006
+ int /* nchars */,
3007
+ int* /* direction_return */,
3008
+ int* /* font_ascent_return */,
3009
+ int* /* font_descent_return */,
3010
+ XCharStruct* /* overall_return */
3011
+ );
3012
+
3013
+ extern int XQueryTextExtents16(
3014
+ Display* /* display */,
3015
+ XID /* font_ID */,
3016
+ _Xconst XChar2b* /* string */,
3017
+ int /* nchars */,
3018
+ int* /* direction_return */,
3019
+ int* /* font_ascent_return */,
3020
+ int* /* font_descent_return */,
3021
+ XCharStruct* /* overall_return */
3022
+ );
3023
+
3024
+ extern Status XQueryTree(
3025
+ Display* /* display */,
3026
+ Window /* w */,
3027
+ Window* /* root_return */,
3028
+ Window* /* parent_return */,
3029
+ Window** /* children_return */,
3030
+ unsigned int* /* nchildren_return */
3031
+ );
3032
+
3033
+ extern int XRaiseWindow(
3034
+ Display* /* display */,
3035
+ Window /* w */
3036
+ );
3037
+
3038
+ extern int XReadBitmapFile(
3039
+ Display* /* display */,
3040
+ Drawable /* d */,
3041
+ _Xconst char* /* filename */,
3042
+ unsigned int* /* width_return */,
3043
+ unsigned int* /* height_return */,
3044
+ Pixmap* /* bitmap_return */,
3045
+ int* /* x_hot_return */,
3046
+ int* /* y_hot_return */
3047
+ );
3048
+
3049
+ extern int XReadBitmapFileData(
3050
+ _Xconst char* /* filename */,
3051
+ unsigned int* /* width_return */,
3052
+ unsigned int* /* height_return */,
3053
+ unsigned char** /* data_return */,
3054
+ int* /* x_hot_return */,
3055
+ int* /* y_hot_return */
3056
+ );
3057
+
3058
+ extern int XRebindKeysym(
3059
+ Display* /* display */,
3060
+ KeySym /* keysym */,
3061
+ KeySym* /* list */,
3062
+ int /* mod_count */,
3063
+ _Xconst unsigned char* /* string */,
3064
+ int /* bytes_string */
3065
+ );
3066
+
3067
+ extern int XRecolorCursor(
3068
+ Display* /* display */,
3069
+ Cursor /* cursor */,
3070
+ XColor* /* foreground_color */,
3071
+ XColor* /* background_color */
3072
+ );
3073
+
3074
+ extern int XRefreshKeyboardMapping(
3075
+ XMappingEvent* /* event_map */
3076
+ );
3077
+
3078
+ extern int XRemoveFromSaveSet(
3079
+ Display* /* display */,
3080
+ Window /* w */
3081
+ );
3082
+
3083
+ extern int XRemoveHost(
3084
+ Display* /* display */,
3085
+ XHostAddress* /* host */
3086
+ );
3087
+
3088
+ extern int XRemoveHosts(
3089
+ Display* /* display */,
3090
+ XHostAddress* /* hosts */,
3091
+ int /* num_hosts */
3092
+ );
3093
+
3094
+ extern int XReparentWindow(
3095
+ Display* /* display */,
3096
+ Window /* w */,
3097
+ Window /* parent */,
3098
+ int /* x */,
3099
+ int /* y */
3100
+ );
3101
+
3102
+ extern int XResetScreenSaver(
3103
+ Display* /* display */
3104
+ );
3105
+
3106
+ extern int XResizeWindow(
3107
+ Display* /* display */,
3108
+ Window /* w */,
3109
+ unsigned int /* width */,
3110
+ unsigned int /* height */
3111
+ );
3112
+
3113
+ extern int XRestackWindows(
3114
+ Display* /* display */,
3115
+ Window* /* windows */,
3116
+ int /* nwindows */
3117
+ );
3118
+
3119
+ extern int XRotateBuffers(
3120
+ Display* /* display */,
3121
+ int /* rotate */
3122
+ );
3123
+
3124
+ extern int XRotateWindowProperties(
3125
+ Display* /* display */,
3126
+ Window /* w */,
3127
+ Atom* /* properties */,
3128
+ int /* num_prop */,
3129
+ int /* npositions */
3130
+ );
3131
+
3132
+ extern int XScreenCount(
3133
+ Display* /* display */
3134
+ );
3135
+
3136
+ extern int XSelectInput(
3137
+ Display* /* display */,
3138
+ Window /* w */,
3139
+ long /* event_mask */
3140
+ );
3141
+
3142
+ extern Status XSendEvent(
3143
+ Display* /* display */,
3144
+ Window /* w */,
3145
+ Bool /* propagate */,
3146
+ long /* event_mask */,
3147
+ XEvent* /* event_send */
3148
+ );
3149
+
3150
+ extern int XSetAccessControl(
3151
+ Display* /* display */,
3152
+ int /* mode */
3153
+ );
3154
+
3155
+ extern int XSetArcMode(
3156
+ Display* /* display */,
3157
+ GC /* gc */,
3158
+ int /* arc_mode */
3159
+ );
3160
+
3161
+ extern int XSetBackground(
3162
+ Display* /* display */,
3163
+ GC /* gc */,
3164
+ unsigned long /* background */
3165
+ );
3166
+
3167
+ extern int XSetClipMask(
3168
+ Display* /* display */,
3169
+ GC /* gc */,
3170
+ Pixmap /* pixmap */
3171
+ );
3172
+
3173
+ extern int XSetClipOrigin(
3174
+ Display* /* display */,
3175
+ GC /* gc */,
3176
+ int /* clip_x_origin */,
3177
+ int /* clip_y_origin */
3178
+ );
3179
+
3180
+ extern int XSetClipRectangles(
3181
+ Display* /* display */,
3182
+ GC /* gc */,
3183
+ int /* clip_x_origin */,
3184
+ int /* clip_y_origin */,
3185
+ XRectangle* /* rectangles */,
3186
+ int /* n */,
3187
+ int /* ordering */
3188
+ );
3189
+
3190
+ extern int XSetCloseDownMode(
3191
+ Display* /* display */,
3192
+ int /* close_mode */
3193
+ );
3194
+
3195
+ extern int XSetCommand(
3196
+ Display* /* display */,
3197
+ Window /* w */,
3198
+ char** /* argv */,
3199
+ int /* argc */
3200
+ );
3201
+
3202
+ extern int XSetDashes(
3203
+ Display* /* display */,
3204
+ GC /* gc */,
3205
+ int /* dash_offset */,
3206
+ _Xconst char* /* dash_list */,
3207
+ int /* n */
3208
+ );
3209
+
3210
+ extern int XSetFillRule(
3211
+ Display* /* display */,
3212
+ GC /* gc */,
3213
+ int /* fill_rule */
3214
+ );
3215
+
3216
+ extern int XSetFillStyle(
3217
+ Display* /* display */,
3218
+ GC /* gc */,
3219
+ int /* fill_style */
3220
+ );
3221
+
3222
+ extern int XSetFont(
3223
+ Display* /* display */,
3224
+ GC /* gc */,
3225
+ Font /* font */
3226
+ );
3227
+
3228
+ extern int XSetFontPath(
3229
+ Display* /* display */,
3230
+ char** /* directories */,
3231
+ int /* ndirs */
3232
+ );
3233
+
3234
+ extern int XSetForeground(
3235
+ Display* /* display */,
3236
+ GC /* gc */,
3237
+ unsigned long /* foreground */
3238
+ );
3239
+
3240
+ extern int XSetFunction(
3241
+ Display* /* display */,
3242
+ GC /* gc */,
3243
+ int /* function */
3244
+ );
3245
+
3246
+ extern int XSetGraphicsExposures(
3247
+ Display* /* display */,
3248
+ GC /* gc */,
3249
+ Bool /* graphics_exposures */
3250
+ );
3251
+
3252
+ extern int XSetIconName(
3253
+ Display* /* display */,
3254
+ Window /* w */,
3255
+ _Xconst char* /* icon_name */
3256
+ );
3257
+
3258
+ extern int XSetInputFocus(
3259
+ Display* /* display */,
3260
+ Window /* focus */,
3261
+ int /* revert_to */,
3262
+ Time /* time */
3263
+ );
3264
+
3265
+ extern int XSetLineAttributes(
3266
+ Display* /* display */,
3267
+ GC /* gc */,
3268
+ unsigned int /* line_width */,
3269
+ int /* line_style */,
3270
+ int /* cap_style */,
3271
+ int /* join_style */
3272
+ );
3273
+
3274
+ extern int XSetModifierMapping(
3275
+ Display* /* display */,
3276
+ XModifierKeymap* /* modmap */
3277
+ );
3278
+
3279
+ extern int XSetPlaneMask(
3280
+ Display* /* display */,
3281
+ GC /* gc */,
3282
+ unsigned long /* plane_mask */
3283
+ );
3284
+
3285
+ extern int XSetPointerMapping(
3286
+ Display* /* display */,
3287
+ _Xconst unsigned char* /* map */,
3288
+ int /* nmap */
3289
+ );
3290
+
3291
+ extern int XSetScreenSaver(
3292
+ Display* /* display */,
3293
+ int /* timeout */,
3294
+ int /* interval */,
3295
+ int /* prefer_blanking */,
3296
+ int /* allow_exposures */
3297
+ );
3298
+
3299
+ extern int XSetSelectionOwner(
3300
+ Display* /* display */,
3301
+ Atom /* selection */,
3302
+ Window /* owner */,
3303
+ Time /* time */
3304
+ );
3305
+
3306
+ extern int XSetState(
3307
+ Display* /* display */,
3308
+ GC /* gc */,
3309
+ unsigned long /* foreground */,
3310
+ unsigned long /* background */,
3311
+ int /* function */,
3312
+ unsigned long /* plane_mask */
3313
+ );
3314
+
3315
+ extern int XSetStipple(
3316
+ Display* /* display */,
3317
+ GC /* gc */,
3318
+ Pixmap /* stipple */
3319
+ );
3320
+
3321
+ extern int XSetSubwindowMode(
3322
+ Display* /* display */,
3323
+ GC /* gc */,
3324
+ int /* subwindow_mode */
3325
+ );
3326
+
3327
+ extern int XSetTSOrigin(
3328
+ Display* /* display */,
3329
+ GC /* gc */,
3330
+ int /* ts_x_origin */,
3331
+ int /* ts_y_origin */
3332
+ );
3333
+
3334
+ extern int XSetTile(
3335
+ Display* /* display */,
3336
+ GC /* gc */,
3337
+ Pixmap /* tile */
3338
+ );
3339
+
3340
+ extern int XSetWindowBackground(
3341
+ Display* /* display */,
3342
+ Window /* w */,
3343
+ unsigned long /* background_pixel */
3344
+ );
3345
+
3346
+ extern int XSetWindowBackgroundPixmap(
3347
+ Display* /* display */,
3348
+ Window /* w */,
3349
+ Pixmap /* background_pixmap */
3350
+ );
3351
+
3352
+ extern int XSetWindowBorder(
3353
+ Display* /* display */,
3354
+ Window /* w */,
3355
+ unsigned long /* border_pixel */
3356
+ );
3357
+
3358
+ extern int XSetWindowBorderPixmap(
3359
+ Display* /* display */,
3360
+ Window /* w */,
3361
+ Pixmap /* border_pixmap */
3362
+ );
3363
+
3364
+ extern int XSetWindowBorderWidth(
3365
+ Display* /* display */,
3366
+ Window /* w */,
3367
+ unsigned int /* width */
3368
+ );
3369
+
3370
+ extern int XSetWindowColormap(
3371
+ Display* /* display */,
3372
+ Window /* w */,
3373
+ Colormap /* colormap */
3374
+ );
3375
+
3376
+ extern int XStoreBuffer(
3377
+ Display* /* display */,
3378
+ _Xconst char* /* bytes */,
3379
+ int /* nbytes */,
3380
+ int /* buffer */
3381
+ );
3382
+
3383
+ extern int XStoreBytes(
3384
+ Display* /* display */,
3385
+ _Xconst char* /* bytes */,
3386
+ int /* nbytes */
3387
+ );
3388
+
3389
+ extern int XStoreColor(
3390
+ Display* /* display */,
3391
+ Colormap /* colormap */,
3392
+ XColor* /* color */
3393
+ );
3394
+
3395
+ extern int XStoreColors(
3396
+ Display* /* display */,
3397
+ Colormap /* colormap */,
3398
+ XColor* /* color */,
3399
+ int /* ncolors */
3400
+ );
3401
+
3402
+ extern int XStoreName(
3403
+ Display* /* display */,
3404
+ Window /* w */,
3405
+ _Xconst char* /* window_name */
3406
+ );
3407
+
3408
+ extern int XStoreNamedColor(
3409
+ Display* /* display */,
3410
+ Colormap /* colormap */,
3411
+ _Xconst char* /* color */,
3412
+ unsigned long /* pixel */,
3413
+ int /* flags */
3414
+ );
3415
+
3416
+ extern int XSync(
3417
+ Display* /* display */,
3418
+ Bool /* discard */
3419
+ );
3420
+
3421
+ extern int XTextExtents(
3422
+ XFontStruct* /* font_struct */,
3423
+ _Xconst char* /* string */,
3424
+ int /* nchars */,
3425
+ int* /* direction_return */,
3426
+ int* /* font_ascent_return */,
3427
+ int* /* font_descent_return */,
3428
+ XCharStruct* /* overall_return */
3429
+ );
3430
+
3431
+ extern int XTextExtents16(
3432
+ XFontStruct* /* font_struct */,
3433
+ _Xconst XChar2b* /* string */,
3434
+ int /* nchars */,
3435
+ int* /* direction_return */,
3436
+ int* /* font_ascent_return */,
3437
+ int* /* font_descent_return */,
3438
+ XCharStruct* /* overall_return */
3439
+ );
3440
+
3441
+ extern int XTextWidth(
3442
+ XFontStruct* /* font_struct */,
3443
+ _Xconst char* /* string */,
3444
+ int /* count */
3445
+ );
3446
+
3447
+ extern int XTextWidth16(
3448
+ XFontStruct* /* font_struct */,
3449
+ _Xconst XChar2b* /* string */,
3450
+ int /* count */
3451
+ );
3452
+
3453
+ extern Bool XTranslateCoordinates(
3454
+ Display* /* display */,
3455
+ Window /* src_w */,
3456
+ Window /* dest_w */,
3457
+ int /* src_x */,
3458
+ int /* src_y */,
3459
+ int* /* dest_x_return */,
3460
+ int* /* dest_y_return */,
3461
+ Window* /* child_return */
3462
+ );
3463
+
3464
+ extern int XUndefineCursor(
3465
+ Display* /* display */,
3466
+ Window /* w */
3467
+ );
3468
+
3469
+ extern int XUngrabButton(
3470
+ Display* /* display */,
3471
+ unsigned int /* button */,
3472
+ unsigned int /* modifiers */,
3473
+ Window /* grab_window */
3474
+ );
3475
+
3476
+ extern int XUngrabKey(
3477
+ Display* /* display */,
3478
+ int /* keycode */,
3479
+ unsigned int /* modifiers */,
3480
+ Window /* grab_window */
3481
+ );
3482
+
3483
+ extern int XUngrabKeyboard(
3484
+ Display* /* display */,
3485
+ Time /* time */
3486
+ );
3487
+
3488
+ extern int XUngrabPointer(
3489
+ Display* /* display */,
3490
+ Time /* time */
3491
+ );
3492
+
3493
+ extern int XUngrabServer(
3494
+ Display* /* display */
3495
+ );
3496
+
3497
+ extern int XUninstallColormap(
3498
+ Display* /* display */,
3499
+ Colormap /* colormap */
3500
+ );
3501
+
3502
+ extern int XUnloadFont(
3503
+ Display* /* display */,
3504
+ Font /* font */
3505
+ );
3506
+
3507
+ extern int XUnmapSubwindows(
3508
+ Display* /* display */,
3509
+ Window /* w */
3510
+ );
3511
+
3512
+ extern int XUnmapWindow(
3513
+ Display* /* display */,
3514
+ Window /* w */
3515
+ );
3516
+
3517
+ extern int XVendorRelease(
3518
+ Display* /* display */
3519
+ );
3520
+
3521
+ extern int XWarpPointer(
3522
+ Display* /* display */,
3523
+ Window /* src_w */,
3524
+ Window /* dest_w */,
3525
+ int /* src_x */,
3526
+ int /* src_y */,
3527
+ unsigned int /* src_width */,
3528
+ unsigned int /* src_height */,
3529
+ int /* dest_x */,
3530
+ int /* dest_y */
3531
+ );
3532
+
3533
+ extern int XWidthMMOfScreen(
3534
+ Screen* /* screen */
3535
+ );
3536
+
3537
+ extern int XWidthOfScreen(
3538
+ Screen* /* screen */
3539
+ );
3540
+
3541
+ extern int XWindowEvent(
3542
+ Display* /* display */,
3543
+ Window /* w */,
3544
+ long /* event_mask */,
3545
+ XEvent* /* event_return */
3546
+ );
3547
+
3548
+ extern int XWriteBitmapFile(
3549
+ Display* /* display */,
3550
+ _Xconst char* /* filename */,
3551
+ Pixmap /* bitmap */,
3552
+ unsigned int /* width */,
3553
+ unsigned int /* height */,
3554
+ int /* x_hot */,
3555
+ int /* y_hot */
3556
+ );
3557
+
3558
+ extern Bool XSupportsLocale (void);
3559
+
3560
+ extern char *XSetLocaleModifiers(
3561
+ const char* /* modifier_list */
3562
+ );
3563
+
3564
+ extern XOM XOpenOM(
3565
+ Display* /* display */,
3566
+ struct _XrmHashBucketRec* /* rdb */,
3567
+ _Xconst char* /* res_name */,
3568
+ _Xconst char* /* res_class */
3569
+ );
3570
+
3571
+ extern Status XCloseOM(
3572
+ XOM /* om */
3573
+ );
3574
+
3575
+ extern char *XSetOMValues(
3576
+ XOM /* om */,
3577
+ ...
3578
+ ) _X_SENTINEL(0);
3579
+
3580
+ extern char *XGetOMValues(
3581
+ XOM /* om */,
3582
+ ...
3583
+ ) _X_SENTINEL(0);
3584
+
3585
+ extern Display *XDisplayOfOM(
3586
+ XOM /* om */
3587
+ );
3588
+
3589
+ extern char *XLocaleOfOM(
3590
+ XOM /* om */
3591
+ );
3592
+
3593
+ extern XOC XCreateOC(
3594
+ XOM /* om */,
3595
+ ...
3596
+ ) _X_SENTINEL(0);
3597
+
3598
+ extern void XDestroyOC(
3599
+ XOC /* oc */
3600
+ );
3601
+
3602
+ extern XOM XOMOfOC(
3603
+ XOC /* oc */
3604
+ );
3605
+
3606
+ extern char *XSetOCValues(
3607
+ XOC /* oc */,
3608
+ ...
3609
+ ) _X_SENTINEL(0);
3610
+
3611
+ extern char *XGetOCValues(
3612
+ XOC /* oc */,
3613
+ ...
3614
+ ) _X_SENTINEL(0);
3615
+
3616
+ extern XFontSet XCreateFontSet(
3617
+ Display* /* display */,
3618
+ _Xconst char* /* base_font_name_list */,
3619
+ char*** /* missing_charset_list */,
3620
+ int* /* missing_charset_count */,
3621
+ char** /* def_string */
3622
+ );
3623
+
3624
+ extern void XFreeFontSet(
3625
+ Display* /* display */,
3626
+ XFontSet /* font_set */
3627
+ );
3628
+
3629
+ extern int XFontsOfFontSet(
3630
+ XFontSet /* font_set */,
3631
+ XFontStruct*** /* font_struct_list */,
3632
+ char*** /* font_name_list */
3633
+ );
3634
+
3635
+ extern char *XBaseFontNameListOfFontSet(
3636
+ XFontSet /* font_set */
3637
+ );
3638
+
3639
+ extern char *XLocaleOfFontSet(
3640
+ XFontSet /* font_set */
3641
+ );
3642
+
3643
+ extern Bool XContextDependentDrawing(
3644
+ XFontSet /* font_set */
3645
+ );
3646
+
3647
+ extern Bool XDirectionalDependentDrawing(
3648
+ XFontSet /* font_set */
3649
+ );
3650
+
3651
+ extern Bool XContextualDrawing(
3652
+ XFontSet /* font_set */
3653
+ );
3654
+
3655
+ extern XFontSetExtents *XExtentsOfFontSet(
3656
+ XFontSet /* font_set */
3657
+ );
3658
+
3659
+ extern int XmbTextEscapement(
3660
+ XFontSet /* font_set */,
3661
+ _Xconst char* /* text */,
3662
+ int /* bytes_text */
3663
+ );
3664
+
3665
+ extern int XwcTextEscapement(
3666
+ XFontSet /* font_set */,
3667
+ _Xconst wchar_t* /* text */,
3668
+ int /* num_wchars */
3669
+ );
3670
+
3671
+ extern int Xutf8TextEscapement(
3672
+ XFontSet /* font_set */,
3673
+ _Xconst char* /* text */,
3674
+ int /* bytes_text */
3675
+ );
3676
+
3677
+ extern int XmbTextExtents(
3678
+ XFontSet /* font_set */,
3679
+ _Xconst char* /* text */,
3680
+ int /* bytes_text */,
3681
+ XRectangle* /* overall_ink_return */,
3682
+ XRectangle* /* overall_logical_return */
3683
+ );
3684
+
3685
+ extern int XwcTextExtents(
3686
+ XFontSet /* font_set */,
3687
+ _Xconst wchar_t* /* text */,
3688
+ int /* num_wchars */,
3689
+ XRectangle* /* overall_ink_return */,
3690
+ XRectangle* /* overall_logical_return */
3691
+ );
3692
+
3693
+ extern int Xutf8TextExtents(
3694
+ XFontSet /* font_set */,
3695
+ _Xconst char* /* text */,
3696
+ int /* bytes_text */,
3697
+ XRectangle* /* overall_ink_return */,
3698
+ XRectangle* /* overall_logical_return */
3699
+ );
3700
+
3701
+ extern Status XmbTextPerCharExtents(
3702
+ XFontSet /* font_set */,
3703
+ _Xconst char* /* text */,
3704
+ int /* bytes_text */,
3705
+ XRectangle* /* ink_extents_buffer */,
3706
+ XRectangle* /* logical_extents_buffer */,
3707
+ int /* buffer_size */,
3708
+ int* /* num_chars */,
3709
+ XRectangle* /* overall_ink_return */,
3710
+ XRectangle* /* overall_logical_return */
3711
+ );
3712
+
3713
+ extern Status XwcTextPerCharExtents(
3714
+ XFontSet /* font_set */,
3715
+ _Xconst wchar_t* /* text */,
3716
+ int /* num_wchars */,
3717
+ XRectangle* /* ink_extents_buffer */,
3718
+ XRectangle* /* logical_extents_buffer */,
3719
+ int /* buffer_size */,
3720
+ int* /* num_chars */,
3721
+ XRectangle* /* overall_ink_return */,
3722
+ XRectangle* /* overall_logical_return */
3723
+ );
3724
+
3725
+ extern Status Xutf8TextPerCharExtents(
3726
+ XFontSet /* font_set */,
3727
+ _Xconst char* /* text */,
3728
+ int /* bytes_text */,
3729
+ XRectangle* /* ink_extents_buffer */,
3730
+ XRectangle* /* logical_extents_buffer */,
3731
+ int /* buffer_size */,
3732
+ int* /* num_chars */,
3733
+ XRectangle* /* overall_ink_return */,
3734
+ XRectangle* /* overall_logical_return */
3735
+ );
3736
+
3737
+ extern void XmbDrawText(
3738
+ Display* /* display */,
3739
+ Drawable /* d */,
3740
+ GC /* gc */,
3741
+ int /* x */,
3742
+ int /* y */,
3743
+ XmbTextItem* /* text_items */,
3744
+ int /* nitems */
3745
+ );
3746
+
3747
+ extern void XwcDrawText(
3748
+ Display* /* display */,
3749
+ Drawable /* d */,
3750
+ GC /* gc */,
3751
+ int /* x */,
3752
+ int /* y */,
3753
+ XwcTextItem* /* text_items */,
3754
+ int /* nitems */
3755
+ );
3756
+
3757
+ extern void Xutf8DrawText(
3758
+ Display* /* display */,
3759
+ Drawable /* d */,
3760
+ GC /* gc */,
3761
+ int /* x */,
3762
+ int /* y */,
3763
+ XmbTextItem* /* text_items */,
3764
+ int /* nitems */
3765
+ );
3766
+
3767
+ extern void XmbDrawString(
3768
+ Display* /* display */,
3769
+ Drawable /* d */,
3770
+ XFontSet /* font_set */,
3771
+ GC /* gc */,
3772
+ int /* x */,
3773
+ int /* y */,
3774
+ _Xconst char* /* text */,
3775
+ int /* bytes_text */
3776
+ );
3777
+
3778
+ extern void XwcDrawString(
3779
+ Display* /* display */,
3780
+ Drawable /* d */,
3781
+ XFontSet /* font_set */,
3782
+ GC /* gc */,
3783
+ int /* x */,
3784
+ int /* y */,
3785
+ _Xconst wchar_t* /* text */,
3786
+ int /* num_wchars */
3787
+ );
3788
+
3789
+ extern void Xutf8DrawString(
3790
+ Display* /* display */,
3791
+ Drawable /* d */,
3792
+ XFontSet /* font_set */,
3793
+ GC /* gc */,
3794
+ int /* x */,
3795
+ int /* y */,
3796
+ _Xconst char* /* text */,
3797
+ int /* bytes_text */
3798
+ );
3799
+
3800
+ extern void XmbDrawImageString(
3801
+ Display* /* display */,
3802
+ Drawable /* d */,
3803
+ XFontSet /* font_set */,
3804
+ GC /* gc */,
3805
+ int /* x */,
3806
+ int /* y */,
3807
+ _Xconst char* /* text */,
3808
+ int /* bytes_text */
3809
+ );
3810
+
3811
+ extern void XwcDrawImageString(
3812
+ Display* /* display */,
3813
+ Drawable /* d */,
3814
+ XFontSet /* font_set */,
3815
+ GC /* gc */,
3816
+ int /* x */,
3817
+ int /* y */,
3818
+ _Xconst wchar_t* /* text */,
3819
+ int /* num_wchars */
3820
+ );
3821
+
3822
+ extern void Xutf8DrawImageString(
3823
+ Display* /* display */,
3824
+ Drawable /* d */,
3825
+ XFontSet /* font_set */,
3826
+ GC /* gc */,
3827
+ int /* x */,
3828
+ int /* y */,
3829
+ _Xconst char* /* text */,
3830
+ int /* bytes_text */
3831
+ );
3832
+
3833
+ extern XIM XOpenIM(
3834
+ Display* /* dpy */,
3835
+ struct _XrmHashBucketRec* /* rdb */,
3836
+ char* /* res_name */,
3837
+ char* /* res_class */
3838
+ );
3839
+
3840
+ extern Status XCloseIM(
3841
+ XIM /* im */
3842
+ );
3843
+
3844
+ extern char *XGetIMValues(
3845
+ XIM /* im */, ...
3846
+ ) _X_SENTINEL(0);
3847
+
3848
+ extern char *XSetIMValues(
3849
+ XIM /* im */, ...
3850
+ ) _X_SENTINEL(0);
3851
+
3852
+ extern Display *XDisplayOfIM(
3853
+ XIM /* im */
3854
+ );
3855
+
3856
+ extern char *XLocaleOfIM(
3857
+ XIM /* im*/
3858
+ );
3859
+
3860
+ extern XIC XCreateIC(
3861
+ XIM /* im */, ...
3862
+ ) _X_SENTINEL(0);
3863
+
3864
+ extern void XDestroyIC(
3865
+ XIC /* ic */
3866
+ );
3867
+
3868
+ extern void XSetICFocus(
3869
+ XIC /* ic */
3870
+ );
3871
+
3872
+ extern void XUnsetICFocus(
3873
+ XIC /* ic */
3874
+ );
3875
+
3876
+ extern wchar_t *XwcResetIC(
3877
+ XIC /* ic */
3878
+ );
3879
+
3880
+ extern char *XmbResetIC(
3881
+ XIC /* ic */
3882
+ );
3883
+
3884
+ extern char *Xutf8ResetIC(
3885
+ XIC /* ic */
3886
+ );
3887
+
3888
+ extern char *XSetICValues(
3889
+ XIC /* ic */, ...
3890
+ ) _X_SENTINEL(0);
3891
+
3892
+ extern char *XGetICValues(
3893
+ XIC /* ic */, ...
3894
+ ) _X_SENTINEL(0);
3895
+
3896
+ extern XIM XIMOfIC(
3897
+ XIC /* ic */
3898
+ );
3899
+
3900
+ extern Bool XFilterEvent(
3901
+ XEvent* /* event */,
3902
+ Window /* window */
3903
+ );
3904
+
3905
+ extern int XmbLookupString(
3906
+ XIC /* ic */,
3907
+ XKeyPressedEvent* /* event */,
3908
+ char* /* buffer_return */,
3909
+ int /* bytes_buffer */,
3910
+ KeySym* /* keysym_return */,
3911
+ Status* /* status_return */
3912
+ );
3913
+
3914
+ extern int XwcLookupString(
3915
+ XIC /* ic */,
3916
+ XKeyPressedEvent* /* event */,
3917
+ wchar_t* /* buffer_return */,
3918
+ int /* wchars_buffer */,
3919
+ KeySym* /* keysym_return */,
3920
+ Status* /* status_return */
3921
+ );
3922
+
3923
+ extern int Xutf8LookupString(
3924
+ XIC /* ic */,
3925
+ XKeyPressedEvent* /* event */,
3926
+ char* /* buffer_return */,
3927
+ int /* bytes_buffer */,
3928
+ KeySym* /* keysym_return */,
3929
+ Status* /* status_return */
3930
+ );
3931
+
3932
+ extern XVaNestedList XVaCreateNestedList(
3933
+ int /*unused*/, ...
3934
+ ) _X_SENTINEL(0);
3935
+
3936
+ /* internal connections for IMs */
3937
+
3938
+ extern Bool XRegisterIMInstantiateCallback(
3939
+ Display* /* dpy */,
3940
+ struct _XrmHashBucketRec* /* rdb */,
3941
+ char* /* res_name */,
3942
+ char* /* res_class */,
3943
+ XIDProc /* callback */,
3944
+ XPointer /* client_data */
3945
+ );
3946
+
3947
+ extern Bool XUnregisterIMInstantiateCallback(
3948
+ Display* /* dpy */,
3949
+ struct _XrmHashBucketRec* /* rdb */,
3950
+ char* /* res_name */,
3951
+ char* /* res_class */,
3952
+ XIDProc /* callback */,
3953
+ XPointer /* client_data */
3954
+ );
3955
+
3956
+ typedef void (*XConnectionWatchProc)(
3957
+ Display* /* dpy */,
3958
+ XPointer /* client_data */,
3959
+ int /* fd */,
3960
+ Bool /* opening */, /* open or close flag */
3961
+ XPointer* /* watch_data */ /* open sets, close uses */
3962
+ );
3963
+
3964
+
3965
+ extern Status XInternalConnectionNumbers(
3966
+ Display* /* dpy */,
3967
+ int** /* fd_return */,
3968
+ int* /* count_return */
3969
+ );
3970
+
3971
+ extern void XProcessInternalConnection(
3972
+ Display* /* dpy */,
3973
+ int /* fd */
3974
+ );
3975
+
3976
+ extern Status XAddConnectionWatch(
3977
+ Display* /* dpy */,
3978
+ XConnectionWatchProc /* callback */,
3979
+ XPointer /* client_data */
3980
+ );
3981
+
3982
+ extern void XRemoveConnectionWatch(
3983
+ Display* /* dpy */,
3984
+ XConnectionWatchProc /* callback */,
3985
+ XPointer /* client_data */
3986
+ );
3987
+
3988
+ extern void XSetAuthorization(
3989
+ char * /* name */,
3990
+ int /* namelen */,
3991
+ char * /* data */,
3992
+ int /* datalen */
3993
+ );
3994
+
3995
+ extern int _Xmbtowc(
3996
+ wchar_t * /* wstr */,
3997
+ #ifdef ISC
3998
+ char const * /* str */,
3999
+ size_t /* len */
4000
+ #else
4001
+ char * /* str */,
4002
+ int /* len */
4003
+ #endif
4004
+ );
4005
+
4006
+ extern int _Xwctomb(
4007
+ char * /* str */,
4008
+ wchar_t /* wc */
4009
+ );
4010
+
4011
+ extern Bool XGetEventData(
4012
+ Display* /* dpy */,
4013
+ XGenericEventCookie* /* cookie*/
4014
+ );
4015
+
4016
+ extern void XFreeEventData(
4017
+ Display* /* dpy */,
4018
+ XGenericEventCookie* /* cookie*/
4019
+ );
4020
+
4021
+ _XFUNCPROTOEND
4022
+
4023
+ #endif /* _XLIB_H_ */