gccxml_gem 0.9.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (274) hide show
  1. data/Rakefile +84 -0
  2. data/bin/gccxml.exe +0 -0
  3. data/bin/gccxml_cc1plus.exe +0 -0
  4. data/bin/gccxml_vcconfig.bat +52 -0
  5. data/bin/gccxml_vcconfig.exe +0 -0
  6. data/gccxml.rb +57 -0
  7. data/share/doc/gccxml-0.9/Copyright.txt +55 -0
  8. data/share/doc/gccxml-0.9/gccxml.html +168 -0
  9. data/share/doc/gccxml-0.9/gccxml.txt +293 -0
  10. data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm +7 -0
  11. data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm.h +7 -0
  12. data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset +7 -0
  13. data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset.h +7 -0
  14. data/share/gccxml-0.9/Borland/5.5/Wrappers/cctype +1 -0
  15. data/share/gccxml-0.9/Borland/5.5/Wrappers/cfloat +1 -0
  16. data/share/gccxml-0.9/Borland/5.5/Wrappers/climits +1 -0
  17. data/share/gccxml-0.9/Borland/5.5/Wrappers/cmath +1 -0
  18. data/share/gccxml-0.9/Borland/5.5/Wrappers/complex +7 -0
  19. data/share/gccxml-0.9/Borland/5.5/Wrappers/complex.h +7 -0
  20. data/share/gccxml-0.9/Borland/5.5/Wrappers/cstddef +1 -0
  21. data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdio +1 -0
  22. data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdlib +1 -0
  23. data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring +7 -0
  24. data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring.h +7 -0
  25. data/share/gccxml-0.9/Borland/5.5/Wrappers/ctime +1 -0
  26. data/share/gccxml-0.9/Borland/5.5/Wrappers/cwchar +1 -0
  27. data/share/gccxml-0.9/Borland/5.5/Wrappers/cwctype +1 -0
  28. data/share/gccxml-0.9/Borland/5.5/Wrappers/deque +7 -0
  29. data/share/gccxml-0.9/Borland/5.5/Wrappers/deque.h +7 -0
  30. data/share/gccxml-0.9/Borland/5.5/Wrappers/exception +7 -0
  31. data/share/gccxml-0.9/Borland/5.5/Wrappers/exception.h +7 -0
  32. data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream +7 -0
  33. data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream.h +7 -0
  34. data/share/gccxml-0.9/Borland/5.5/Wrappers/function +7 -0
  35. data/share/gccxml-0.9/Borland/5.5/Wrappers/function.h +7 -0
  36. data/share/gccxml-0.9/Borland/5.5/Wrappers/functional +7 -0
  37. data/share/gccxml-0.9/Borland/5.5/Wrappers/gccxml_typeinfo.h +146 -0
  38. data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip +7 -0
  39. data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip.h +7 -0
  40. data/share/gccxml-0.9/Borland/5.5/Wrappers/ios +7 -0
  41. data/share/gccxml-0.9/Borland/5.5/Wrappers/ios.h +7 -0
  42. data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd +7 -0
  43. data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd.h +7 -0
  44. data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream +7 -0
  45. data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream.h +7 -0
  46. data/share/gccxml-0.9/Borland/5.5/Wrappers/istream +7 -0
  47. data/share/gccxml-0.9/Borland/5.5/Wrappers/istream.h +7 -0
  48. data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator +7 -0
  49. data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator.h +7 -0
  50. data/share/gccxml-0.9/Borland/5.5/Wrappers/limits +7 -0
  51. data/share/gccxml-0.9/Borland/5.5/Wrappers/limits.h +7 -0
  52. data/share/gccxml-0.9/Borland/5.5/Wrappers/list +7 -0
  53. data/share/gccxml-0.9/Borland/5.5/Wrappers/list.h +7 -0
  54. data/share/gccxml-0.9/Borland/5.5/Wrappers/locale +7 -0
  55. data/share/gccxml-0.9/Borland/5.5/Wrappers/locale.h +7 -0
  56. data/share/gccxml-0.9/Borland/5.5/Wrappers/map +7 -0
  57. data/share/gccxml-0.9/Borland/5.5/Wrappers/map.h +7 -0
  58. data/share/gccxml-0.9/Borland/5.5/Wrappers/memory +7 -0
  59. data/share/gccxml-0.9/Borland/5.5/Wrappers/memory.h +7 -0
  60. data/share/gccxml-0.9/Borland/5.5/Wrappers/new +7 -0
  61. data/share/gccxml-0.9/Borland/5.5/Wrappers/new.h +7 -0
  62. data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric +7 -0
  63. data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric.h +7 -0
  64. data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream +7 -0
  65. data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream.h +7 -0
  66. data/share/gccxml-0.9/Borland/5.5/Wrappers/queue +7 -0
  67. data/share/gccxml-0.9/Borland/5.5/Wrappers/queue.h +7 -0
  68. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/codecvt +1 -0
  69. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/collate +1 -0
  70. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/ctype +1 -0
  71. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iosbase +1 -0
  72. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iotraits +1 -0
  73. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iterator +1 -0
  74. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/lochelp +1 -0
  75. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locimpl +1 -0
  76. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locvector +1 -0
  77. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/messages +1 -0
  78. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/money +1 -0
  79. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numbrw +1 -0
  80. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numeral +1 -0
  81. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwdispatch.h +1 -0
  82. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwlocale +1 -0
  83. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwstderr_macros.h +64 -0
  84. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/string_ref +1 -0
  85. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/time +1 -0
  86. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/traits +1 -0
  87. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/tree +1 -0
  88. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/usefacet +1 -0
  89. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/valimp +1 -0
  90. data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/vendor +1 -0
  91. data/share/gccxml-0.9/Borland/5.5/Wrappers/set +7 -0
  92. data/share/gccxml-0.9/Borland/5.5/Wrappers/set.h +7 -0
  93. data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream +7 -0
  94. data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream.h +7 -0
  95. data/share/gccxml-0.9/Borland/5.5/Wrappers/stack +7 -0
  96. data/share/gccxml-0.9/Borland/5.5/Wrappers/stack.h +7 -0
  97. data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept +7 -0
  98. data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept.h +7 -0
  99. data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf +7 -0
  100. data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf.h +7 -0
  101. data/share/gccxml-0.9/Borland/5.5/Wrappers/string +7 -0
  102. data/share/gccxml-0.9/Borland/5.5/Wrappers/string.h +7 -0
  103. data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream +7 -0
  104. data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream.h +7 -0
  105. data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo +7 -0
  106. data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo.h +7 -0
  107. data/share/gccxml-0.9/Borland/5.5/Wrappers/utility +7 -0
  108. data/share/gccxml-0.9/Borland/5.5/Wrappers/utility.h +7 -0
  109. data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray +7 -0
  110. data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray.h +7 -0
  111. data/share/gccxml-0.9/Borland/5.5/Wrappers/vector +7 -0
  112. data/share/gccxml-0.9/Borland/5.5/Wrappers/vector.h +7 -0
  113. data/share/gccxml-0.9/Borland/5.5/except.h +154 -0
  114. data/share/gccxml-0.9/Borland/5.5/gccxml_fstream.h +431 -0
  115. data/share/gccxml-0.9/Borland/5.5/gccxml_new.h +166 -0
  116. data/share/gccxml-0.9/Borland/5.5/gccxml_valarray.h +786 -0
  117. data/share/gccxml-0.9/Borland/5.5/gccxml_vector.h +1457 -0
  118. data/share/gccxml-0.9/Borland/5.5/io.h +352 -0
  119. data/share/gccxml-0.9/Borland/5.5/oaidl.h +7006 -0
  120. data/share/gccxml-0.9/Borland/5.5/propidl.h +1477 -0
  121. data/share/gccxml-0.9/Borland/5.5/rw/locimpl.h +477 -0
  122. data/share/gccxml-0.9/Borland/5.5/rw/rwlocale.h +619 -0
  123. data/share/gccxml-0.9/Borland/5.5/stdarg.h +55 -0
  124. data/share/gccxml-0.9/Borland/5.5/valarray.cc +2883 -0
  125. data/share/gccxml-0.9/GCC/2.95/algorithm +76 -0
  126. data/share/gccxml-0.9/GCC/2.95/bitset +17 -0
  127. data/share/gccxml-0.9/GCC/2.95/cctype +24 -0
  128. data/share/gccxml-0.9/GCC/2.95/clocale +14 -0
  129. data/share/gccxml-0.9/GCC/2.95/cmath +33 -0
  130. data/share/gccxml-0.9/GCC/2.95/complex +38 -0
  131. data/share/gccxml-0.9/GCC/2.95/csetjmp +13 -0
  132. data/share/gccxml-0.9/GCC/2.95/csignal +14 -0
  133. data/share/gccxml-0.9/GCC/2.95/cstdarg +12 -0
  134. data/share/gccxml-0.9/GCC/2.95/cstddef +13 -0
  135. data/share/gccxml-0.9/GCC/2.95/cstdio +55 -0
  136. data/share/gccxml-0.9/GCC/2.95/cstdlib +66 -0
  137. data/share/gccxml-0.9/GCC/2.95/cstring +34 -0
  138. data/share/gccxml-0.9/GCC/2.95/ctime +24 -0
  139. data/share/gccxml-0.9/GCC/2.95/cwchar +65 -0
  140. data/share/gccxml-0.9/GCC/2.95/cwctype +31 -0
  141. data/share/gccxml-0.9/GCC/2.95/deque +19 -0
  142. data/share/gccxml-0.9/GCC/2.95/exception +20 -0
  143. data/share/gccxml-0.9/GCC/2.95/fstream +23 -0
  144. data/share/gccxml-0.9/GCC/2.95/functional +64 -0
  145. data/share/gccxml-0.9/GCC/2.95/gccxml_bitset +1066 -0
  146. data/share/gccxml-0.9/GCC/2.95/iomanip +20 -0
  147. data/share/gccxml-0.9/GCC/2.95/iosfwd +20 -0
  148. data/share/gccxml-0.9/GCC/2.95/iostream +27 -0
  149. data/share/gccxml-0.9/GCC/2.95/iterator +39 -0
  150. data/share/gccxml-0.9/GCC/2.95/list +19 -0
  151. data/share/gccxml-0.9/GCC/2.95/map +20 -0
  152. data/share/gccxml-0.9/GCC/2.95/memory +21 -0
  153. data/share/gccxml-0.9/GCC/2.95/new +13 -0
  154. data/share/gccxml-0.9/GCC/2.95/numeric +15 -0
  155. data/share/gccxml-0.9/GCC/2.95/pthread.h +16 -0
  156. data/share/gccxml-0.9/GCC/2.95/queue +20 -0
  157. data/share/gccxml-0.9/GCC/2.95/set +20 -0
  158. data/share/gccxml-0.9/GCC/2.95/sstream +24 -0
  159. data/share/gccxml-0.9/GCC/2.95/stack +19 -0
  160. data/share/gccxml-0.9/GCC/2.95/std/bastring.cc +524 -0
  161. data/share/gccxml-0.9/GCC/2.95/std/complext.h +397 -0
  162. data/share/gccxml-0.9/GCC/2.95/std/dcomplex.h +92 -0
  163. data/share/gccxml-0.9/GCC/2.95/std/fcomplex.h +88 -0
  164. data/share/gccxml-0.9/GCC/2.95/std/gslice_array.h +170 -0
  165. data/share/gccxml-0.9/GCC/2.95/std/indirect_array.h +157 -0
  166. data/share/gccxml-0.9/GCC/2.95/std/ldcomplex.h +96 -0
  167. data/share/gccxml-0.9/GCC/2.95/std/mask_array.h +154 -0
  168. data/share/gccxml-0.9/GCC/2.95/std/slice_array.h +156 -0
  169. data/share/gccxml-0.9/GCC/2.95/std/std_valarray.h +728 -0
  170. data/share/gccxml-0.9/GCC/2.95/std/straits.h +162 -0
  171. data/share/gccxml-0.9/GCC/2.95/std/valarray_meta.h +1035 -0
  172. data/share/gccxml-0.9/GCC/2.95/stdexcept +17 -0
  173. data/share/gccxml-0.9/GCC/2.95/stl_alloc.h +1057 -0
  174. data/share/gccxml-0.9/GCC/2.95/stl_bvector.h +836 -0
  175. data/share/gccxml-0.9/GCC/2.95/stl_deque.h +1699 -0
  176. data/share/gccxml-0.9/GCC/2.95/stl_list.h +843 -0
  177. data/share/gccxml-0.9/GCC/2.95/stl_tree.h +1331 -0
  178. data/share/gccxml-0.9/GCC/2.95/stl_vector.h +828 -0
  179. data/share/gccxml-0.9/GCC/2.95/string +26 -0
  180. data/share/gccxml-0.9/GCC/2.95/strstream +23 -0
  181. data/share/gccxml-0.9/GCC/2.95/typeinfo +11 -0
  182. data/share/gccxml-0.9/GCC/2.95/utility +25 -0
  183. data/share/gccxml-0.9/GCC/2.95/valarray +52 -0
  184. data/share/gccxml-0.9/GCC/2.95/vector +19 -0
  185. data/share/gccxml-0.9/GCC/2.96/sstream +305 -0
  186. data/share/gccxml-0.9/GCC/3.0/pthread.h +16 -0
  187. data/share/gccxml-0.9/GCC/3.1/pthread.h +16 -0
  188. data/share/gccxml-0.9/GCC/3.2/bits/fstream.tcc +500 -0
  189. data/share/gccxml-0.9/GCC/3.2/bits/gthr-default.h +581 -0
  190. data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +1207 -0
  191. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +1810 -0
  192. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +2397 -0
  193. data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +108 -0
  194. data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +713 -0
  195. data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +241 -0
  196. data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +1682 -0
  197. data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +989 -0
  198. data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +1462 -0
  199. data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +1085 -0
  200. data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +1063 -0
  201. data/share/gccxml-0.9/GCC/3.2/fstream +579 -0
  202. data/share/gccxml-0.9/GCC/3.2/pthread.h +16 -0
  203. data/share/gccxml-0.9/GCC/3.2/sstream +384 -0
  204. data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +530 -0
  205. data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +378 -0
  206. data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +2050 -0
  207. data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +108 -0
  208. data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +243 -0
  209. data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +1603 -0
  210. data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +1167 -0
  211. data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +1462 -0
  212. data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +992 -0
  213. data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +1135 -0
  214. data/share/gccxml-0.9/GCC/3.3/fstream +842 -0
  215. data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +22 -0
  216. data/share/gccxml-0.9/GCC/3.3/sstream +638 -0
  217. data/share/gccxml-0.9/GCC/3.4/bits/gthr-default.h +664 -0
  218. data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +91 -0
  219. data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +128 -0
  220. data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +618 -0
  221. data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +131 -0
  222. data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +131 -0
  223. data/share/gccxml-0.9/GCC/4.3/gccxml_builtins.h +182 -0
  224. data/share/gccxml-0.9/IBM/8.0/adapt_headers.sh +34 -0
  225. data/share/gccxml-0.9/IBM/8.0/stdlib.h.patch +27 -0
  226. data/share/gccxml-0.9/IBM/8.0/xstring.patch +19 -0
  227. data/share/gccxml-0.9/IBM/README +8 -0
  228. data/share/gccxml-0.9/IBM/find_flags +51 -0
  229. data/share/gccxml-0.9/IBM/find_flags_common +48 -0
  230. data/share/gccxml-0.9/Intel/find_flags +56 -0
  231. data/share/gccxml-0.9/Intel/pthread.h +16 -0
  232. data/share/gccxml-0.9/MIPSpro/7.3/exception +9 -0
  233. data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +21 -0
  234. data/share/gccxml-0.9/MIPSpro/7.3/iomanip +161 -0
  235. data/share/gccxml-0.9/MIPSpro/7.3/ostream +9 -0
  236. data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +9 -0
  237. data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +9 -0
  238. data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +17 -0
  239. data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +14 -0
  240. data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +13 -0
  241. data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +11 -0
  242. data/share/gccxml-0.9/MIPSpro/7.3/string +18 -0
  243. data/share/gccxml-0.9/MIPSpro/find_flags +70 -0
  244. data/share/gccxml-0.9/MIPSpro/mipspro_defs.cxx +63 -0
  245. data/share/gccxml-0.9/Sun/5.8/Cstd.patch +156 -0
  246. data/share/gccxml-0.9/Sun/5.8/adapt_headers.sh +32 -0
  247. data/share/gccxml-0.9/Sun/5.8/std-5.10.patch +22 -0
  248. data/share/gccxml-0.9/Sun/README +8 -0
  249. data/share/gccxml-0.9/Sun/find_flags +51 -0
  250. data/share/gccxml-0.9/Sun/find_flags_common +42 -0
  251. data/share/gccxml-0.9/VcInstall/vc6Include.patch +4560 -0
  252. data/share/gccxml-0.9/VcInstall/vc71Include.patch +921 -0
  253. data/share/gccxml-0.9/VcInstall/vc71PlatformSDK.patch +146 -0
  254. data/share/gccxml-0.9/VcInstall/vc7Include.patch +1139 -0
  255. data/share/gccxml-0.9/VcInstall/vc7PlatformSDK.patch +146 -0
  256. data/share/gccxml-0.9/VcInstall/vc8ExpressInclude.patch +1887 -0
  257. data/share/gccxml-0.9/VcInstall/vc8ExpressPlatformSDK.patch +252 -0
  258. data/share/gccxml-0.9/VcInstall/vc8Include.patch +1887 -0
  259. data/share/gccxml-0.9/VcInstall/vc8PlatformSDK.patch +252 -0
  260. data/share/gccxml-0.9/VcInstall/vc8sp1ExpressInclude.patch +1941 -0
  261. data/share/gccxml-0.9/VcInstall/vc8sp1Include.patch +1970 -0
  262. data/share/gccxml-0.9/VcInstall/vc8sp1PlatformSDK.patch +252 -0
  263. data/share/gccxml-0.9/VcInstall/vc9Include.patch +2047 -0
  264. data/share/gccxml-0.9/VcInstall/vc9PlatformSDK.patch +383 -0
  265. data/share/gccxml-0.9/VcInstall/vc9sp1Include.patch +2565 -0
  266. data/share/gccxml-0.9/VcInstall/vcCat.exe +0 -0
  267. data/share/gccxml-0.9/VcInstall/vcCat.readme.txt +3 -0
  268. data/share/gccxml-0.9/VcInstall/vcPatch.exe +0 -0
  269. data/share/gccxml-0.9/VcInstall/vcPatch.readme.txt +27 -0
  270. data/share/gccxml-0.9/VcInstall/vc_helper +1 -0
  271. data/share/gccxml-0.9/gccxml_config +2 -0
  272. data/share/gccxml-0.9/gccxml_identify_compiler.cc +13 -0
  273. data/share/man/man1/gccxml.1 +246 -0
  274. metadata +331 -0
@@ -0,0 +1,581 @@
1
+ /* Threads compatibility routines for libgcc2 and libobjc. */
2
+ /* Compile this one with gcc. */
3
+ /* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
4
+
5
+ This file is part of GCC.
6
+
7
+ GCC is free software; you can redistribute it and/or modify it under
8
+ the terms of the GNU General Public License as published by the Free
9
+ Software Foundation; either version 2, or (at your option) any later
10
+ version.
11
+
12
+ GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
+ for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with GCC; see the file COPYING. If not, write to the Free
19
+ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20
+ 02111-1307, USA. */
21
+
22
+ /* As a special exception, if you link this library with other files,
23
+ some of which are compiled with GCC, to produce an executable,
24
+ this library does not by itself cause the resulting executable
25
+ to be covered by the GNU General Public License.
26
+ This exception does not however invalidate any other reasons why
27
+ the executable file might be covered by the GNU General Public License. */
28
+
29
+ #ifndef _GLIBCPP_GCC_GTHR_POSIX_H
30
+ #define _GLIBCPP_GCC_GTHR_POSIX_H
31
+
32
+ /* POSIX threads specific definitions.
33
+ Easy, since the interface is just one-to-one mapping. */
34
+
35
+ #define __GTHREADS 1
36
+
37
+ #include <pthread.h>
38
+
39
+ typedef pthread_key_t __gthread_key_t;
40
+ typedef pthread_once_t __gthread_once_t;
41
+ typedef pthread_mutex_t __gthread_mutex_t;
42
+
43
+ #define __GTHREAD_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER
44
+ #define __GTHREAD_ONCE_INIT PTHREAD_ONCE_INIT
45
+
46
+ #if _GLIBCPP_SUPPORTS_WEAK && _GLIBCPP_GTHREAD_USE_WEAK && defined __GNUC_RH_RELEASE__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ == 3 && __GNUC_RH_RELEASE__ > 53 && !defined __attribute__
47
+ # define __gthrw(name) \
48
+ extern __typeof(name) __gthrw_ ## name
49
+
50
+ __gthrw(pthread_once);
51
+ __gthrw(pthread_key_create);
52
+ __gthrw(pthread_key_delete);
53
+ __gthrw(pthread_getspecific);
54
+ __gthrw(pthread_setspecific);
55
+ __gthrw(pthread_create);
56
+
57
+ __gthrw(pthread_mutex_lock );
58
+ __gthrw(pthread_mutex_trylock );
59
+ __gthrw(pthread_mutex_unlock );
60
+
61
+ #ifdef _LIBOBJC
62
+ /* Objective C. */
63
+ __gthrw(pthread_cond_broadcast);
64
+ __gthrw(pthread_cond_destroy);
65
+ __gthrw(pthread_cond_init);
66
+ __gthrw(pthread_cond_signal);
67
+ __gthrw(pthread_cond_wait);
68
+ __gthrw(pthread_exit);
69
+ __gthrw(pthread_mutex_init);
70
+ __gthrw(pthread_mutex_destroy);
71
+ __gthrw(pthread_self);
72
+ __gthrw(sched_get_priority_max);
73
+ __gthrw(sched_get_priority_min);
74
+ __gthrw(sched_yield);
75
+ __gthrw(pthread_attr_destroy);
76
+ __gthrw(pthread_attr_init);
77
+ __gthrw(pthread_attr_setdetachstate);
78
+ __gthrw(pthread_getschedparam);
79
+ __gthrw(pthread_setschedparam);
80
+ #endif
81
+ #else
82
+ #if _GLIBCPP_SUPPORTS_WEAK && _GLIBCPP_GTHREAD_USE_WEAK
83
+
84
+ #pragma weak pthread_once
85
+ #pragma weak pthread_key_create
86
+ #pragma weak pthread_key_delete
87
+ #pragma weak pthread_getspecific
88
+ #pragma weak pthread_setspecific
89
+ #pragma weak pthread_create
90
+
91
+ #pragma weak pthread_mutex_lock
92
+ #pragma weak pthread_mutex_trylock
93
+ #pragma weak pthread_mutex_unlock
94
+
95
+ #ifdef _LIBOBJC
96
+ /* Objective C. */
97
+ #pragma weak pthread_cond_broadcast
98
+ #pragma weak pthread_cond_destroy
99
+ #pragma weak pthread_cond_init
100
+ #pragma weak pthread_cond_signal
101
+ #pragma weak pthread_cond_wait
102
+ #pragma weak pthread_exit
103
+ #pragma weak pthread_mutex_init
104
+ #pragma weak pthread_mutex_destroy
105
+ #pragma weak pthread_self
106
+ #pragma weak sched_get_priority_max
107
+ #pragma weak sched_get_priority_min
108
+ #pragma weak sched_yield
109
+ #pragma weak pthread_attr_destroy
110
+ #pragma weak pthread_attr_init
111
+ #pragma weak pthread_attr_setdetachstate
112
+ #pragma weak pthread_getschedparam
113
+ #pragma weak pthread_setschedparam
114
+ #endif
115
+ #endif
116
+
117
+ #define __gthrw_pthread_once pthread_once
118
+ #define __gthrw_pthread_key_create pthread_key_create
119
+ #define __gthrw_pthread_key_delete pthread_key_delete
120
+ #define __gthrw_pthread_getspecific pthread_getspecific
121
+ #define __gthrw_pthread_setspecific pthread_setspecific
122
+ #define __gthrw_pthread_create pthread_create
123
+
124
+ #define __gthrw_pthread_mutex_lock pthread_mutex_lock
125
+ #define __gthrw_pthread_mutex_trylock pthread_mutex_trylock
126
+ #define __gthrw_pthread_mutex_unlock pthread_mutex_unlock
127
+
128
+ #ifdef _LIBOBJC
129
+ /* Objective C. */
130
+ #define __gthrw_pthread_cond_broadcast pthread_cond_broadcast
131
+ #define __gthrw_pthread_cond_destroy pthread_cond_destroy
132
+ #define __gthrw_pthread_cond_init pthread_cond_init
133
+ #define __gthrw_pthread_cond_signal pthread_cond_signal
134
+ #define __gthrw_pthread_cond_wait pthread_cond_wait
135
+ #define __gthrw_pthread_exit pthread_exit
136
+ #define __gthrw_pthread_mutex_init pthread_mutex_init
137
+ #define __gthrw_pthread_mutex_destroy pthread_mutex_destroy
138
+ #define __gthrw_pthread_self pthread_self
139
+ #define __gthrw_sched_get_priority_max sched_get_priority_max
140
+ #define __gthrw_sched_get_priority_min sched_get_priority_min
141
+ #define __gthrw_sched_yield sched_yield
142
+ #define __gthrw_pthread_attr_destroy pthread_attr_destroy
143
+ #define __gthrw_pthread_attr_init pthread_attr_init
144
+ #define __gthrw_pthread_attr_setdetachstate pthread_attr_setdetachstate
145
+ #define __gthrw_pthread_getschedparam pthread_getschedparam
146
+ #define __gthrw_pthread_setschedparam pthread_setschedparam
147
+ #endif
148
+ #endif
149
+
150
+ #if _GLIBCPP_SUPPORTS_WEAK && _GLIBCPP_GTHREAD_USE_WEAK
151
+
152
+ static inline int
153
+ __gthread_active_p (void)
154
+ {
155
+ static void *const __gthread_active_ptr = (void *) &__gthrw_pthread_create;
156
+ return __gthread_active_ptr != 0;
157
+ }
158
+
159
+ #else /* not _GLIBCPP_SUPPORTS_WEAK */
160
+
161
+ static inline int
162
+ __gthread_active_p (void)
163
+ {
164
+ return 1;
165
+ }
166
+
167
+ #endif /* _GLIBCPP_SUPPORTS_WEAK */
168
+
169
+ #ifdef _LIBOBJC
170
+
171
+ /* This is the config.h file in libobjc/ */
172
+ #include <config.h>
173
+
174
+ #ifdef HAVE_SCHED_H
175
+ # include <sched.h>
176
+ #endif
177
+
178
+ /* Key structure for maintaining thread specific storage */
179
+ static pthread_key_t _objc_thread_storage;
180
+ static pthread_attr_t _objc_thread_attribs;
181
+
182
+ /* Thread local storage for a single thread */
183
+ static void *thread_local_storage = NULL;
184
+
185
+ /* Backend initialization functions */
186
+
187
+ /* Initialize the threads subsystem. */
188
+ static inline int
189
+ __gthread_objc_init_thread_system(void)
190
+ {
191
+ if (__gthread_active_p ())
192
+ {
193
+ /* Initialize the thread storage key */
194
+ if (__gthrw_pthread_key_create(&_objc_thread_storage, NULL) == 0)
195
+ {
196
+ /* The normal default detach state for threads is
197
+ * PTHREAD_CREATE_JOINABLE which causes threads to not die
198
+ * when you think they should. */
199
+ if (__gthrw_pthread_attr_init(&_objc_thread_attribs) == 0
200
+ && __gthrw_pthread_attr_setdetachstate(&_objc_thread_attribs,
201
+ PTHREAD_CREATE_DETACHED) == 0)
202
+ return 0;
203
+ }
204
+ }
205
+
206
+ return -1;
207
+ }
208
+
209
+ /* Close the threads subsystem. */
210
+ static inline int
211
+ __gthread_objc_close_thread_system(void)
212
+ {
213
+ if (__gthread_active_p ()
214
+ && __gthrw_pthread_key_delete(_objc_thread_storage) == 0
215
+ && __gthrw_pthread_attr_destroy(&_objc_thread_attribs) == 0)
216
+ return 0;
217
+
218
+ return -1;
219
+ }
220
+
221
+ /* Backend thread functions */
222
+
223
+ /* Create a new thread of execution. */
224
+ static inline objc_thread_t
225
+ __gthread_objc_thread_detach(void (*func)(void *), void *arg)
226
+ {
227
+ objc_thread_t thread_id;
228
+ pthread_t new_thread_handle;
229
+
230
+ if (!__gthread_active_p ())
231
+ return NULL;
232
+
233
+ if ( !(__gthrw_pthread_create(&new_thread_handle, NULL, (void *)func, arg)) )
234
+ thread_id = (objc_thread_t) new_thread_handle;
235
+ else
236
+ thread_id = NULL;
237
+
238
+ return thread_id;
239
+ }
240
+
241
+ /* Set the current thread's priority. */
242
+ static inline int
243
+ __gthread_objc_thread_set_priority(int priority)
244
+ {
245
+ if (!__gthread_active_p())
246
+ return -1;
247
+ else {
248
+ pthread_t thread_id = __gthrw_pthread_self();
249
+ int policy;
250
+ struct sched_param params;
251
+ int priority_min, priority_max;
252
+
253
+ if (__gthrw_pthread_getschedparam(thread_id, &policy, &params) == 0)
254
+ {
255
+ if ((priority_max = __gthrw_sched_get_priority_max(policy)) != 0)
256
+ return -1;
257
+
258
+ if ((priority_min = __gthrw_sched_get_priority_min(policy)) != 0)
259
+ return -1;
260
+
261
+ if (priority > priority_max)
262
+ priority = priority_max;
263
+ else if (priority < priority_min)
264
+ priority = priority_min;
265
+ params.sched_priority = priority;
266
+
267
+ /*
268
+ * The solaris 7 and several other man pages incorrectly state that
269
+ * this should be a pointer to policy but pthread.h is universally
270
+ * at odds with this.
271
+ */
272
+ if (__gthrw_pthread_setschedparam(thread_id, policy, &params) == 0)
273
+ return 0;
274
+ }
275
+ return -1;
276
+ }
277
+ }
278
+
279
+ /* Return the current thread's priority. */
280
+ static inline int
281
+ __gthread_objc_thread_get_priority(void)
282
+ {
283
+ if (__gthread_active_p ())
284
+ {
285
+ int policy;
286
+ struct sched_param params;
287
+
288
+ if (__gthrw_pthread_getschedparam(__gthrw_pthread_self(), &policy, &params) == 0)
289
+ return params.sched_priority;
290
+ else
291
+ return -1;
292
+ }
293
+ else
294
+ return OBJC_THREAD_INTERACTIVE_PRIORITY;
295
+ }
296
+
297
+ /* Yield our process time to another thread. */
298
+ static inline void
299
+ __gthread_objc_thread_yield(void)
300
+ {
301
+ if (__gthread_active_p ())
302
+ __gthrw_sched_yield();
303
+ }
304
+
305
+ /* Terminate the current thread. */
306
+ static inline int
307
+ __gthread_objc_thread_exit(void)
308
+ {
309
+ if (__gthread_active_p ())
310
+ /* exit the thread */
311
+ __gthrw_pthread_exit(&__objc_thread_exit_status);
312
+
313
+ /* Failed if we reached here */
314
+ return -1;
315
+ }
316
+
317
+ /* Returns an integer value which uniquely describes a thread. */
318
+ static inline objc_thread_t
319
+ __gthread_objc_thread_id(void)
320
+ {
321
+ if (__gthread_active_p ())
322
+ return (objc_thread_t) __gthrw_pthread_self();
323
+ else
324
+ return (objc_thread_t) 1;
325
+ }
326
+
327
+ /* Sets the thread's local storage pointer. */
328
+ static inline int
329
+ __gthread_objc_thread_set_data(void *value)
330
+ {
331
+ if (__gthread_active_p ())
332
+ return __gthrw_pthread_setspecific(_objc_thread_storage, value);
333
+ else
334
+ {
335
+ thread_local_storage = value;
336
+ return 0;
337
+ }
338
+ }
339
+
340
+ /* Returns the thread's local storage pointer. */
341
+ static inline void *
342
+ __gthread_objc_thread_get_data(void)
343
+ {
344
+ if (__gthread_active_p ())
345
+ return __gthrw_pthread_getspecific(_objc_thread_storage);
346
+ else
347
+ return thread_local_storage;
348
+ }
349
+
350
+ /* Backend mutex functions */
351
+
352
+ /* Allocate a mutex. */
353
+ static inline int
354
+ __gthread_objc_mutex_allocate(objc_mutex_t mutex)
355
+ {
356
+ if (__gthread_active_p ())
357
+ {
358
+ mutex->backend = objc_malloc(sizeof(pthread_mutex_t));
359
+
360
+ if (__gthrw_pthread_mutex_init((pthread_mutex_t *)mutex->backend, NULL))
361
+ {
362
+ objc_free(mutex->backend);
363
+ mutex->backend = NULL;
364
+ return -1;
365
+ }
366
+ }
367
+
368
+ return 0;
369
+ }
370
+
371
+ /* Deallocate a mutex. */
372
+ static inline int
373
+ __gthread_objc_mutex_deallocate(objc_mutex_t mutex)
374
+ {
375
+ if (__gthread_active_p ())
376
+ {
377
+ int count;
378
+
379
+ /*
380
+ * Posix Threads specifically require that the thread be unlocked
381
+ * for __gthrw_pthread_mutex_destroy to work.
382
+ */
383
+
384
+ do
385
+ {
386
+ count = __gthrw_pthread_mutex_unlock((pthread_mutex_t *)mutex->backend);
387
+ if (count < 0)
388
+ return -1;
389
+ }
390
+ while (count);
391
+
392
+ if (__gthrw_pthread_mutex_destroy((pthread_mutex_t *)mutex->backend))
393
+ return -1;
394
+
395
+ objc_free(mutex->backend);
396
+ mutex->backend = NULL;
397
+ }
398
+ return 0;
399
+ }
400
+
401
+ /* Grab a lock on a mutex. */
402
+ static inline int
403
+ __gthread_objc_mutex_lock(objc_mutex_t mutex)
404
+ {
405
+ if (__gthread_active_p ()
406
+ && __gthrw_pthread_mutex_lock((pthread_mutex_t *)mutex->backend) != 0)
407
+ {
408
+ return -1;
409
+ }
410
+
411
+ return 0;
412
+ }
413
+
414
+ /* Try to grab a lock on a mutex. */
415
+ static inline int
416
+ __gthread_objc_mutex_trylock(objc_mutex_t mutex)
417
+ {
418
+ if (__gthread_active_p ()
419
+ && __gthrw_pthread_mutex_trylock((pthread_mutex_t *)mutex->backend) != 0)
420
+ {
421
+ return -1;
422
+ }
423
+
424
+ return 0;
425
+ }
426
+
427
+ /* Unlock the mutex */
428
+ static inline int
429
+ __gthread_objc_mutex_unlock(objc_mutex_t mutex)
430
+ {
431
+ if (__gthread_active_p ()
432
+ && __gthrw_pthread_mutex_unlock((pthread_mutex_t *)mutex->backend) != 0)
433
+ {
434
+ return -1;
435
+ }
436
+
437
+ return 0;
438
+ }
439
+
440
+ /* Backend condition mutex functions */
441
+
442
+ /* Allocate a condition. */
443
+ static inline int
444
+ __gthread_objc_condition_allocate(objc_condition_t condition)
445
+ {
446
+ if (__gthread_active_p ())
447
+ {
448
+ condition->backend = objc_malloc(sizeof(pthread_cond_t));
449
+
450
+ if (__gthrw_pthread_cond_init((pthread_cond_t *)condition->backend, NULL))
451
+ {
452
+ objc_free(condition->backend);
453
+ condition->backend = NULL;
454
+ return -1;
455
+ }
456
+ }
457
+
458
+ return 0;
459
+ }
460
+
461
+ /* Deallocate a condition. */
462
+ static inline int
463
+ __gthread_objc_condition_deallocate(objc_condition_t condition)
464
+ {
465
+ if (__gthread_active_p ())
466
+ {
467
+ if (__gthrw_pthread_cond_destroy((pthread_cond_t *)condition->backend))
468
+ return -1;
469
+
470
+ objc_free(condition->backend);
471
+ condition->backend = NULL;
472
+ }
473
+ return 0;
474
+ }
475
+
476
+ /* Wait on the condition */
477
+ static inline int
478
+ __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex)
479
+ {
480
+ if (__gthread_active_p ())
481
+ return __gthrw_pthread_cond_wait((pthread_cond_t *)condition->backend,
482
+ (pthread_mutex_t *)mutex->backend);
483
+ else
484
+ return 0;
485
+ }
486
+
487
+ /* Wake up all threads waiting on this condition. */
488
+ static inline int
489
+ __gthread_objc_condition_broadcast(objc_condition_t condition)
490
+ {
491
+ if (__gthread_active_p ())
492
+ return __gthrw_pthread_cond_broadcast((pthread_cond_t *)condition->backend);
493
+ else
494
+ return 0;
495
+ }
496
+
497
+ /* Wake up one thread waiting on this condition. */
498
+ static inline int
499
+ __gthread_objc_condition_signal(objc_condition_t condition)
500
+ {
501
+ if (__gthread_active_p ())
502
+ return __gthrw_pthread_cond_signal((pthread_cond_t *)condition->backend);
503
+ else
504
+ return 0;
505
+ }
506
+
507
+ #else /* _LIBOBJC */
508
+
509
+ static inline int
510
+ __gthread_once (__gthread_once_t *once, void (*func) (void))
511
+ {
512
+ if (__gthread_active_p ())
513
+ return __gthrw_pthread_once (once, func);
514
+ else
515
+ return -1;
516
+ }
517
+
518
+ static inline int
519
+ __gthread_key_create (__gthread_key_t *key, void (*dtor) (void *))
520
+ {
521
+ return __gthrw_pthread_key_create (key, dtor);
522
+ }
523
+
524
+ static inline int
525
+ __gthread_key_dtor (__gthread_key_t key, void *ptr)
526
+ {
527
+ /* Just reset the key value to zero. */
528
+ if (ptr)
529
+ return __gthrw_pthread_setspecific (key, 0);
530
+ else
531
+ return 0;
532
+ }
533
+
534
+ static inline int
535
+ __gthread_key_delete (__gthread_key_t key)
536
+ {
537
+ return __gthrw_pthread_key_delete (key);
538
+ }
539
+
540
+ static inline void *
541
+ __gthread_getspecific (__gthread_key_t key)
542
+ {
543
+ return __gthrw_pthread_getspecific (key);
544
+ }
545
+
546
+ static inline int
547
+ __gthread_setspecific (__gthread_key_t key, const void *ptr)
548
+ {
549
+ return __gthrw_pthread_setspecific (key, ptr);
550
+ }
551
+
552
+ static inline int
553
+ __gthread_mutex_lock (__gthread_mutex_t *mutex)
554
+ {
555
+ if (__gthread_active_p ())
556
+ return __gthrw_pthread_mutex_lock (mutex);
557
+ else
558
+ return 0;
559
+ }
560
+
561
+ static inline int
562
+ __gthread_mutex_trylock (__gthread_mutex_t *mutex)
563
+ {
564
+ if (__gthread_active_p ())
565
+ return __gthrw_pthread_mutex_trylock (mutex);
566
+ else
567
+ return 0;
568
+ }
569
+
570
+ static inline int
571
+ __gthread_mutex_unlock (__gthread_mutex_t *mutex)
572
+ {
573
+ if (__gthread_active_p ())
574
+ return __gthrw_pthread_mutex_unlock (mutex);
575
+ else
576
+ return 0;
577
+ }
578
+
579
+ #endif /* _LIBOBJC */
580
+
581
+ #endif /* ! _GLIBCPP_GCC_GTHR_POSIX_H */