zeroc-ice 3.6b1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. checksums.yaml +7 -0
  2. data/ICE_LICENSE +54 -0
  3. data/LICENSE +339 -0
  4. data/bin/slice2rb +17 -0
  5. data/ext/Communicator.cpp +596 -0
  6. data/ext/Communicator.h +25 -0
  7. data/ext/Config.h +111 -0
  8. data/ext/Connection.cpp +381 -0
  9. data/ext/Connection.h +26 -0
  10. data/ext/Endpoint.cpp +311 -0
  11. data/ext/Endpoint.h +27 -0
  12. data/ext/ImplicitContext.cpp +152 -0
  13. data/ext/ImplicitContext.h +25 -0
  14. data/ext/Init.cpp +52 -0
  15. data/ext/Logger.cpp +151 -0
  16. data/ext/Logger.h +28 -0
  17. data/ext/ObjectFactory.cpp +140 -0
  18. data/ext/ObjectFactory.h +50 -0
  19. data/ext/Operation.cpp +676 -0
  20. data/ext/Operation.h +36 -0
  21. data/ext/Properties.cpp +369 -0
  22. data/ext/Properties.h +25 -0
  23. data/ext/Proxy.cpp +1354 -0
  24. data/ext/Proxy.h +27 -0
  25. data/ext/Slice.cpp +223 -0
  26. data/ext/Slice.h +22 -0
  27. data/ext/Types.cpp +3160 -0
  28. data/ext/Types.h +545 -0
  29. data/ext/Util.cpp +792 -0
  30. data/ext/Util.h +511 -0
  31. data/ext/extconf.rb +118 -0
  32. data/ext/ice/BZIP_LICENSE +42 -0
  33. data/ext/ice/MCPP_LICENSE +36 -0
  34. data/ext/ice/bzip2/blocksort.c +1094 -0
  35. data/ext/ice/bzip2/bzlib.c +1572 -0
  36. data/ext/ice/bzip2/bzlib.h +282 -0
  37. data/ext/ice/bzip2/bzlib_private.h +509 -0
  38. data/ext/ice/bzip2/compress.c +672 -0
  39. data/ext/ice/bzip2/crctable.c +104 -0
  40. data/ext/ice/bzip2/decompress.c +646 -0
  41. data/ext/ice/bzip2/huffman.c +205 -0
  42. data/ext/ice/bzip2/randtable.c +84 -0
  43. data/ext/ice/cpp/include/Ice/ACMF.h +30 -0
  44. data/ext/ice/cpp/include/Ice/Application.h +156 -0
  45. data/ext/ice/cpp/include/Ice/AsyncResult.h +363 -0
  46. data/ext/ice/cpp/include/Ice/AsyncResultF.h +26 -0
  47. data/ext/ice/cpp/include/Ice/BasicStream.h +1315 -0
  48. data/ext/ice/cpp/include/Ice/Buffer.h +159 -0
  49. data/ext/ice/cpp/include/Ice/BuiltinSequences.h +74 -0
  50. data/ext/ice/cpp/include/Ice/Communicator.h +194 -0
  51. data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +115 -0
  52. data/ext/ice/cpp/include/Ice/CommunicatorF.h +60 -0
  53. data/ext/ice/cpp/include/Ice/Config.h +97 -0
  54. data/ext/ice/cpp/include/Ice/Connection.h +495 -0
  55. data/ext/ice/cpp/include/Ice/ConnectionAsync.h +115 -0
  56. data/ext/ice/cpp/include/Ice/ConnectionF.h +72 -0
  57. data/ext/ice/cpp/include/Ice/ConnectionFactoryF.h +30 -0
  58. data/ext/ice/cpp/include/Ice/ConnectionIF.h +37 -0
  59. data/ext/ice/cpp/include/Ice/Current.h +94 -0
  60. data/ext/ice/cpp/include/Ice/DefaultObjectFactory.h +48 -0
  61. data/ext/ice/cpp/include/Ice/DeprecatedStringConverter.h +62 -0
  62. data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +33 -0
  63. data/ext/ice/cpp/include/Ice/Dispatcher.h +51 -0
  64. data/ext/ice/cpp/include/Ice/DynamicLibrary.h +105 -0
  65. data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +29 -0
  66. data/ext/ice/cpp/include/Ice/Endpoint.h +350 -0
  67. data/ext/ice/cpp/include/Ice/EndpointF.h +97 -0
  68. data/ext/ice/cpp/include/Ice/EndpointTypes.h +74 -0
  69. data/ext/ice/cpp/include/Ice/Exception.h +114 -0
  70. data/ext/ice/cpp/include/Ice/FacetMap.h +56 -0
  71. data/ext/ice/cpp/include/Ice/FactoryTable.h +69 -0
  72. data/ext/ice/cpp/include/Ice/FactoryTableInit.h +87 -0
  73. data/ext/ice/cpp/include/Ice/Format.h +39 -0
  74. data/ext/ice/cpp/include/Ice/Functional.h +138 -0
  75. data/ext/ice/cpp/include/Ice/GCObject.h +73 -0
  76. data/ext/ice/cpp/include/Ice/Handle.h +192 -0
  77. data/ext/ice/cpp/include/Ice/Ice.h +54 -0
  78. data/ext/ice/cpp/include/Ice/Identity.h +160 -0
  79. data/ext/ice/cpp/include/Ice/ImplicitContext.h +96 -0
  80. data/ext/ice/cpp/include/Ice/ImplicitContextF.h +60 -0
  81. data/ext/ice/cpp/include/Ice/Incoming.h +131 -0
  82. data/ext/ice/cpp/include/Ice/IncomingAsync.h +108 -0
  83. data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +35 -0
  84. data/ext/ice/cpp/include/Ice/Initialize.h +141 -0
  85. data/ext/ice/cpp/include/Ice/InstanceF.h +26 -0
  86. data/ext/ice/cpp/include/Ice/Instrumentation.h +377 -0
  87. data/ext/ice/cpp/include/Ice/InstrumentationF.h +71 -0
  88. data/ext/ice/cpp/include/Ice/LocalException.h +1022 -0
  89. data/ext/ice/cpp/include/Ice/LocalObject.h +36 -0
  90. data/ext/ice/cpp/include/Ice/LocalObjectF.h +26 -0
  91. data/ext/ice/cpp/include/Ice/Locator.h +2191 -0
  92. data/ext/ice/cpp/include/Ice/LocatorF.h +89 -0
  93. data/ext/ice/cpp/include/Ice/Logger.h +94 -0
  94. data/ext/ice/cpp/include/Ice/LoggerF.h +60 -0
  95. data/ext/ice/cpp/include/Ice/LoggerUtil.h +153 -0
  96. data/ext/ice/cpp/include/Ice/Makefile +26 -0
  97. data/ext/ice/cpp/include/Ice/Metrics.h +2989 -0
  98. data/ext/ice/cpp/include/Ice/MetricsAdminI.h +662 -0
  99. data/ext/ice/cpp/include/Ice/MetricsFunctional.h +144 -0
  100. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +576 -0
  101. data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +55 -0
  102. data/ext/ice/cpp/include/Ice/Object.h +165 -0
  103. data/ext/ice/cpp/include/Ice/ObjectAdapter.h +162 -0
  104. data/ext/ice/cpp/include/Ice/ObjectAdapterF.h +60 -0
  105. data/ext/ice/cpp/include/Ice/ObjectAdapterFactoryF.h +26 -0
  106. data/ext/ice/cpp/include/Ice/ObjectF.h +26 -0
  107. data/ext/ice/cpp/include/Ice/ObjectFactory.h +86 -0
  108. data/ext/ice/cpp/include/Ice/ObjectFactoryF.h +60 -0
  109. data/ext/ice/cpp/include/Ice/ObjectFactoryManagerF.h +26 -0
  110. data/ext/ice/cpp/include/Ice/ObserverHelper.h +177 -0
  111. data/ext/ice/cpp/include/Ice/Outgoing.h +197 -0
  112. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +264 -0
  113. data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +38 -0
  114. data/ext/ice/cpp/include/Ice/Plugin.h +121 -0
  115. data/ext/ice/cpp/include/Ice/PluginF.h +66 -0
  116. data/ext/ice/cpp/include/Ice/Process.h +568 -0
  117. data/ext/ice/cpp/include/Ice/ProcessF.h +77 -0
  118. data/ext/ice/cpp/include/Ice/Properties.h +130 -0
  119. data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +824 -0
  120. data/ext/ice/cpp/include/Ice/PropertiesF.h +83 -0
  121. data/ext/ice/cpp/include/Ice/Protocol.h +242 -0
  122. data/ext/ice/cpp/include/Ice/Proxy.h +2448 -0
  123. data/ext/ice/cpp/include/Ice/ProxyF.h +78 -0
  124. data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +26 -0
  125. data/ext/ice/cpp/include/Ice/ProxyHandle.h +330 -0
  126. data/ext/ice/cpp/include/Ice/ReferenceF.h +34 -0
  127. data/ext/ice/cpp/include/Ice/RemoteLogger.h +1496 -0
  128. data/ext/ice/cpp/include/Ice/RequestHandlerF.h +29 -0
  129. data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +25 -0
  130. data/ext/ice/cpp/include/Ice/Router.h +1155 -0
  131. data/ext/ice/cpp/include/Ice/RouterF.h +77 -0
  132. data/ext/ice/cpp/include/Ice/ServantLocator.h +90 -0
  133. data/ext/ice/cpp/include/Ice/ServantLocatorF.h +60 -0
  134. data/ext/ice/cpp/include/Ice/ServantManagerF.h +26 -0
  135. data/ext/ice/cpp/include/Ice/Service.h +260 -0
  136. data/ext/ice/cpp/include/Ice/SliceChecksumDict.h +56 -0
  137. data/ext/ice/cpp/include/Ice/SliceChecksums.h +34 -0
  138. data/ext/ice/cpp/include/Ice/SlicedData.h +103 -0
  139. data/ext/ice/cpp/include/Ice/SlicedDataF.h +34 -0
  140. data/ext/ice/cpp/include/Ice/Stream.h +449 -0
  141. data/ext/ice/cpp/include/Ice/StreamF.h +30 -0
  142. data/ext/ice/cpp/include/Ice/StreamHelpers.h +877 -0
  143. data/ext/ice/cpp/include/Ice/ThreadPoolF.h +28 -0
  144. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +56 -0
  145. data/ext/ice/cpp/include/Ice/Version.h +254 -0
  146. data/ext/ice/cpp/include/IceSSL/Config.h +23 -0
  147. data/ext/ice/cpp/include/IceSSL/ConnectionInfo.h +119 -0
  148. data/ext/ice/cpp/include/IceSSL/EndpointInfo.h +101 -0
  149. data/ext/ice/cpp/include/IceSSL/IceSSL.h +22 -0
  150. data/ext/ice/cpp/include/IceSSL/Makefile +26 -0
  151. data/ext/ice/cpp/include/IceSSL/Plugin.h +558 -0
  152. data/ext/ice/cpp/include/IceUtil/AbstractMutex.h +119 -0
  153. data/ext/ice/cpp/include/IceUtil/Cache.h +362 -0
  154. data/ext/ice/cpp/include/IceUtil/Cond.h +323 -0
  155. data/ext/ice/cpp/include/IceUtil/Config.h +234 -0
  156. data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +50 -0
  157. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +70 -0
  158. data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +45 -0
  159. data/ext/ice/cpp/include/IceUtil/Exception.h +184 -0
  160. data/ext/ice/cpp/include/IceUtil/Functional.h +389 -0
  161. data/ext/ice/cpp/include/IceUtil/Handle.h +266 -0
  162. data/ext/ice/cpp/include/IceUtil/IceUtil.h +51 -0
  163. data/ext/ice/cpp/include/IceUtil/IconvStringConverter.h +302 -0
  164. data/ext/ice/cpp/include/IceUtil/InputUtil.h +47 -0
  165. data/ext/ice/cpp/include/IceUtil/Iterator.h +36 -0
  166. data/ext/ice/cpp/include/IceUtil/Lock.h +135 -0
  167. data/ext/ice/cpp/include/IceUtil/Makefile +26 -0
  168. data/ext/ice/cpp/include/IceUtil/Monitor.h +249 -0
  169. data/ext/ice/cpp/include/IceUtil/Mutex.h +357 -0
  170. data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +28 -0
  171. data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +83 -0
  172. data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +82 -0
  173. data/ext/ice/cpp/include/IceUtil/Optional.h +322 -0
  174. data/ext/ice/cpp/include/IceUtil/Options.h +141 -0
  175. data/ext/ice/cpp/include/IceUtil/OutputUtil.h +362 -0
  176. data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +19 -0
  177. data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +26 -0
  178. data/ext/ice/cpp/include/IceUtil/Random.h +24 -0
  179. data/ext/ice/cpp/include/IceUtil/RecMutex.h +113 -0
  180. data/ext/ice/cpp/include/IceUtil/SHA1.h +65 -0
  181. data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +44 -0
  182. data/ext/ice/cpp/include/IceUtil/ScopedArray.h +97 -0
  183. data/ext/ice/cpp/include/IceUtil/Shared.h +168 -0
  184. data/ext/ice/cpp/include/IceUtil/StringConverter.h +175 -0
  185. data/ext/ice/cpp/include/IceUtil/StringUtil.h +91 -0
  186. data/ext/ice/cpp/include/IceUtil/Thread.h +181 -0
  187. data/ext/ice/cpp/include/IceUtil/ThreadException.h +108 -0
  188. data/ext/ice/cpp/include/IceUtil/Time.h +209 -0
  189. data/ext/ice/cpp/include/IceUtil/Timer.h +143 -0
  190. data/ext/ice/cpp/include/IceUtil/UUID.h +22 -0
  191. data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +42 -0
  192. data/ext/ice/cpp/include/IceUtil/UniquePtr.h +101 -0
  193. data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +64 -0
  194. data/ext/ice/cpp/include/Slice/Checksum.h +26 -0
  195. data/ext/ice/cpp/include/Slice/CsUtil.h +92 -0
  196. data/ext/ice/cpp/include/Slice/DotNetNames.h +34 -0
  197. data/ext/ice/cpp/include/Slice/FileTracker.h +71 -0
  198. data/ext/ice/cpp/include/Slice/JavaUtil.h +277 -0
  199. data/ext/ice/cpp/include/Slice/Makefile +26 -0
  200. data/ext/ice/cpp/include/Slice/PHPUtil.h +50 -0
  201. data/ext/ice/cpp/include/Slice/Parser.h +1116 -0
  202. data/ext/ice/cpp/include/Slice/Preprocessor.h +68 -0
  203. data/ext/ice/cpp/include/Slice/PythonUtil.h +64 -0
  204. data/ext/ice/cpp/include/Slice/RubyUtil.h +54 -0
  205. data/ext/ice/cpp/include/Slice/Util.h +33 -0
  206. data/ext/ice/cpp/src/Ice/ACM.cpp +343 -0
  207. data/ext/ice/cpp/src/Ice/ACM.h +117 -0
  208. data/ext/ice/cpp/src/Ice/Acceptor.cpp +16 -0
  209. data/ext/ice/cpp/src/Ice/Acceptor.h +41 -0
  210. data/ext/ice/cpp/src/Ice/AcceptorF.h +30 -0
  211. data/ext/ice/cpp/src/Ice/Application.cpp +760 -0
  212. data/ext/ice/cpp/src/Ice/AsyncResult.cpp +599 -0
  213. data/ext/ice/cpp/src/Ice/Base64.cpp +269 -0
  214. data/ext/ice/cpp/src/Ice/Base64.h +36 -0
  215. data/ext/ice/cpp/src/Ice/BasicStream.cpp +3393 -0
  216. data/ext/ice/cpp/src/Ice/Buffer.cpp +98 -0
  217. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +34 -0
  218. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +718 -0
  219. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +106 -0
  220. data/ext/ice/cpp/src/Ice/Communicator.cpp +45 -0
  221. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +38 -0
  222. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +386 -0
  223. data/ext/ice/cpp/src/Ice/CommunicatorI.h +112 -0
  224. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +546 -0
  225. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +97 -0
  226. data/ext/ice/cpp/src/Ice/Connection.cpp +58 -0
  227. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +38 -0
  228. data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +1639 -0
  229. data/ext/ice/cpp/src/Ice/ConnectionFactory.h +236 -0
  230. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +3876 -0
  231. data/ext/ice/cpp/src/Ice/ConnectionI.h +364 -0
  232. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +115 -0
  233. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +50 -0
  234. data/ext/ice/cpp/src/Ice/Connector.cpp +16 -0
  235. data/ext/ice/cpp/src/Ice/Connector.h +36 -0
  236. data/ext/ice/cpp/src/Ice/ConnectorF.h +26 -0
  237. data/ext/ice/cpp/src/Ice/Current.cpp +38 -0
  238. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +168 -0
  239. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +57 -0
  240. data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +26 -0
  241. data/ext/ice/cpp/src/Ice/DeprecatedStringConverter.cpp +60 -0
  242. data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +49 -0
  243. data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +281 -0
  244. data/ext/ice/cpp/src/Ice/Endpoint.cpp +53 -0
  245. data/ext/ice/cpp/src/Ice/EndpointF.cpp +38 -0
  246. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +25 -0
  247. data/ext/ice/cpp/src/Ice/EndpointFactory.h +44 -0
  248. data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +26 -0
  249. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +208 -0
  250. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +46 -0
  251. data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +26 -0
  252. data/ext/ice/cpp/src/Ice/EndpointI.cpp +87 -0
  253. data/ext/ice/cpp/src/Ice/EndpointI.h +165 -0
  254. data/ext/ice/cpp/src/Ice/EndpointIF.h +41 -0
  255. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +38 -0
  256. data/ext/ice/cpp/src/Ice/EventHandler.cpp +35 -0
  257. data/ext/ice/cpp/src/Ice/EventHandler.h +78 -0
  258. data/ext/ice/cpp/src/Ice/EventHandlerF.h +26 -0
  259. data/ext/ice/cpp/src/Ice/EventLoggerMsg.h +53 -0
  260. data/ext/ice/cpp/src/Ice/Exception.cpp +832 -0
  261. data/ext/ice/cpp/src/Ice/FacetMap.cpp +34 -0
  262. data/ext/ice/cpp/src/Ice/FactoryTable.cpp +158 -0
  263. data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +95 -0
  264. data/ext/ice/cpp/src/Ice/GCObject.cpp +444 -0
  265. data/ext/ice/cpp/src/Ice/HashUtil.h +59 -0
  266. data/ext/ice/cpp/src/Ice/HttpParser.cpp +680 -0
  267. data/ext/ice/cpp/src/Ice/HttpParser.h +124 -0
  268. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +733 -0
  269. data/ext/ice/cpp/src/Ice/IPEndpointI.h +157 -0
  270. data/ext/ice/cpp/src/Ice/IPEndpointIF.h +29 -0
  271. data/ext/ice/cpp/src/Ice/Identity.cpp +42 -0
  272. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +41 -0
  273. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +38 -0
  274. data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +639 -0
  275. data/ext/ice/cpp/src/Ice/ImplicitContextI.h +51 -0
  276. data/ext/ice/cpp/src/Ice/Incoming.cpp +757 -0
  277. data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +340 -0
  278. data/ext/ice/cpp/src/Ice/IncomingRequest.h +37 -0
  279. data/ext/ice/cpp/src/Ice/Initialize.cpp +401 -0
  280. data/ext/ice/cpp/src/Ice/Instance.cpp +1928 -0
  281. data/ext/ice/cpp/src/Ice/Instance.h +198 -0
  282. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +68 -0
  283. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +43 -0
  284. data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +1083 -0
  285. data/ext/ice/cpp/src/Ice/InstrumentationI.h +262 -0
  286. data/ext/ice/cpp/src/Ice/LocalException.cpp +2091 -0
  287. data/ext/ice/cpp/src/Ice/LocalObject.cpp +29 -0
  288. data/ext/ice/cpp/src/Ice/Locator.cpp +1946 -0
  289. data/ext/ice/cpp/src/Ice/LocatorF.cpp +39 -0
  290. data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +917 -0
  291. data/ext/ice/cpp/src/Ice/LocatorInfo.h +193 -0
  292. data/ext/ice/cpp/src/Ice/LocatorInfoF.h +34 -0
  293. data/ext/ice/cpp/src/Ice/Logger.cpp +40 -0
  294. data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +862 -0
  295. data/ext/ice/cpp/src/Ice/LoggerAdminI.h +46 -0
  296. data/ext/ice/cpp/src/Ice/LoggerF.cpp +38 -0
  297. data/ext/ice/cpp/src/Ice/LoggerI.cpp +199 -0
  298. data/ext/ice/cpp/src/Ice/LoggerI.h +57 -0
  299. data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +107 -0
  300. data/ext/ice/cpp/src/Ice/Makefile +190 -0
  301. data/ext/ice/cpp/src/Ice/Metrics.cpp +2159 -0
  302. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +669 -0
  303. data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +14 -0
  304. data/ext/ice/cpp/src/Ice/Network.cpp +2694 -0
  305. data/ext/ice/cpp/src/Ice/Network.h +291 -0
  306. data/ext/ice/cpp/src/Ice/NetworkF.h +28 -0
  307. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +325 -0
  308. data/ext/ice/cpp/src/Ice/NetworkProxy.h +74 -0
  309. data/ext/ice/cpp/src/Ice/NetworkProxyF.h +26 -0
  310. data/ext/ice/cpp/src/Ice/Object.cpp +440 -0
  311. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +41 -0
  312. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +38 -0
  313. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +241 -0
  314. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +52 -0
  315. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +1498 -0
  316. data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +155 -0
  317. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +41 -0
  318. data/ext/ice/cpp/src/Ice/ObjectFactoryF.cpp +38 -0
  319. data/ext/ice/cpp/src/Ice/ObjectFactoryManager.cpp +140 -0
  320. data/ext/ice/cpp/src/Ice/ObjectFactoryManager.h +43 -0
  321. data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +84 -0
  322. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +407 -0
  323. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +70 -0
  324. data/ext/ice/cpp/src/Ice/Outgoing.cpp +737 -0
  325. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +874 -0
  326. data/ext/ice/cpp/src/Ice/Plugin.cpp +43 -0
  327. data/ext/ice/cpp/src/Ice/PluginF.cpp +38 -0
  328. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +503 -0
  329. data/ext/ice/cpp/src/Ice/PluginManagerI.h +67 -0
  330. data/ext/ice/cpp/src/Ice/Process.cpp +299 -0
  331. data/ext/ice/cpp/src/Ice/ProcessF.cpp +39 -0
  332. data/ext/ice/cpp/src/Ice/Properties.cpp +45 -0
  333. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +555 -0
  334. data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +207 -0
  335. data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +45 -0
  336. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +39 -0
  337. data/ext/ice/cpp/src/Ice/PropertiesI.cpp +759 -0
  338. data/ext/ice/cpp/src/Ice/PropertiesI.h +78 -0
  339. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +1293 -0
  340. data/ext/ice/cpp/src/Ice/PropertyNames.h +81 -0
  341. data/ext/ice/cpp/src/Ice/Protocol.cpp +137 -0
  342. data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +98 -0
  343. data/ext/ice/cpp/src/Ice/ProtocolInstance.h +91 -0
  344. data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +26 -0
  345. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +51 -0
  346. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +67 -0
  347. data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +26 -0
  348. data/ext/ice/cpp/src/Ice/Proxy.cpp +1810 -0
  349. data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +305 -0
  350. data/ext/ice/cpp/src/Ice/ProxyFactory.h +57 -0
  351. data/ext/ice/cpp/src/Ice/Reference.cpp +1947 -0
  352. data/ext/ice/cpp/src/Ice/Reference.h +305 -0
  353. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +937 -0
  354. data/ext/ice/cpp/src/Ice/ReferenceFactory.h +81 -0
  355. data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +24 -0
  356. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +958 -0
  357. data/ext/ice/cpp/src/Ice/ReplyStatus.h +29 -0
  358. data/ext/ice/cpp/src/Ice/RequestHandler.cpp +40 -0
  359. data/ext/ice/cpp/src/Ice/RequestHandler.h +90 -0
  360. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +70 -0
  361. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +41 -0
  362. data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +20 -0
  363. data/ext/ice/cpp/src/Ice/ResponseHandler.h +39 -0
  364. data/ext/ice/cpp/src/Ice/RetryQueue.cpp +154 -0
  365. data/ext/ice/cpp/src/Ice/RetryQueue.h +69 -0
  366. data/ext/ice/cpp/src/Ice/RetryQueueF.h +24 -0
  367. data/ext/ice/cpp/src/Ice/Router.cpp +849 -0
  368. data/ext/ice/cpp/src/Ice/RouterF.cpp +39 -0
  369. data/ext/ice/cpp/src/Ice/RouterInfo.cpp +381 -0
  370. data/ext/ice/cpp/src/Ice/RouterInfo.h +148 -0
  371. data/ext/ice/cpp/src/Ice/RouterInfoF.h +30 -0
  372. data/ext/ice/cpp/src/Ice/Selector.cpp +926 -0
  373. data/ext/ice/cpp/src/Ice/Selector.h +231 -0
  374. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +41 -0
  375. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +38 -0
  376. data/ext/ice/cpp/src/Ice/ServantManager.cpp +495 -0
  377. data/ext/ice/cpp/src/Ice/ServantManager.h +74 -0
  378. data/ext/ice/cpp/src/Ice/Service.cpp +1897 -0
  379. data/ext/ice/cpp/src/Ice/SharedContext.h +51 -0
  380. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +34 -0
  381. data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +80 -0
  382. data/ext/ice/cpp/src/Ice/SlicedData.cpp +80 -0
  383. data/ext/ice/cpp/src/Ice/Stream.cpp +53 -0
  384. data/ext/ice/cpp/src/Ice/StreamI.cpp +832 -0
  385. data/ext/ice/cpp/src/Ice/StreamI.h +198 -0
  386. data/ext/ice/cpp/src/Ice/StreamSocket.cpp +521 -0
  387. data/ext/ice/cpp/src/Ice/StreamSocket.h +85 -0
  388. data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +145 -0
  389. data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +167 -0
  390. data/ext/ice/cpp/src/Ice/SysLoggerI.h +43 -0
  391. data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +235 -0
  392. data/ext/ice/cpp/src/Ice/TcpAcceptor.h +67 -0
  393. data/ext/ice/cpp/src/Ice/TcpConnector.cpp +133 -0
  394. data/ext/ice/cpp/src/Ice/TcpConnector.h +51 -0
  395. data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +397 -0
  396. data/ext/ice/cpp/src/Ice/TcpEndpointI.h +93 -0
  397. data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +127 -0
  398. data/ext/ice/cpp/src/Ice/TcpTransceiver.h +61 -0
  399. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +1357 -0
  400. data/ext/ice/cpp/src/Ice/ThreadPool.h +399 -0
  401. data/ext/ice/cpp/src/Ice/TraceLevels.cpp +43 -0
  402. data/ext/ice/cpp/src/Ice/TraceLevels.h +50 -0
  403. data/ext/ice/cpp/src/Ice/TraceLevelsF.h +26 -0
  404. data/ext/ice/cpp/src/Ice/TraceUtil.cpp +452 -0
  405. data/ext/ice/cpp/src/Ice/TraceUtil.h +28 -0
  406. data/ext/ice/cpp/src/Ice/Transceiver.cpp +24 -0
  407. data/ext/ice/cpp/src/Ice/Transceiver.h +52 -0
  408. data/ext/ice/cpp/src/Ice/TransceiverF.h +38 -0
  409. data/ext/ice/cpp/src/Ice/UdpConnector.cpp +144 -0
  410. data/ext/ice/cpp/src/Ice/UdpConnector.h +51 -0
  411. data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +483 -0
  412. data/ext/ice/cpp/src/Ice/UdpEndpointI.h +95 -0
  413. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +1156 -0
  414. data/ext/ice/cpp/src/Ice/UdpTransceiver.h +123 -0
  415. data/ext/ice/cpp/src/Ice/Version.cpp +46 -0
  416. data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +103 -0
  417. data/ext/ice/cpp/src/Ice/WSAcceptor.h +61 -0
  418. data/ext/ice/cpp/src/Ice/WSConnector.cpp +113 -0
  419. data/ext/ice/cpp/src/Ice/WSConnector.h +51 -0
  420. data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +441 -0
  421. data/ext/ice/cpp/src/Ice/WSEndpoint.h +97 -0
  422. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +1728 -0
  423. data/ext/ice/cpp/src/Ice/WSTransceiver.h +149 -0
  424. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +594 -0
  425. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +1035 -0
  426. data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +208 -0
  427. data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +78 -0
  428. data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +308 -0
  429. data/ext/ice/cpp/src/IceDiscovery/LookupI.h +183 -0
  430. data/ext/ice/cpp/src/IceDiscovery/Makefile +61 -0
  431. data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +148 -0
  432. data/ext/ice/cpp/src/IceDiscovery/PluginI.h +39 -0
  433. data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +258 -0
  434. data/ext/ice/cpp/src/IceSSL/AcceptorI.h +66 -0
  435. data/ext/ice/cpp/src/IceSSL/Certificate.cpp +1334 -0
  436. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +42 -0
  437. data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +151 -0
  438. data/ext/ice/cpp/src/IceSSL/ConnectorI.h +56 -0
  439. data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +397 -0
  440. data/ext/ice/cpp/src/IceSSL/EndpointI.h +96 -0
  441. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +41 -0
  442. data/ext/ice/cpp/src/IceSSL/Instance.cpp +38 -0
  443. data/ext/ice/cpp/src/IceSSL/Instance.h +42 -0
  444. data/ext/ice/cpp/src/IceSSL/InstanceF.h +34 -0
  445. data/ext/ice/cpp/src/IceSSL/Makefile +82 -0
  446. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +1001 -0
  447. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +607 -0
  448. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +75 -0
  449. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +102 -0
  450. data/ext/ice/cpp/src/IceSSL/PluginI.h +56 -0
  451. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +541 -0
  452. data/ext/ice/cpp/src/IceSSL/RFC2253.h +67 -0
  453. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +729 -0
  454. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +1062 -0
  455. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +130 -0
  456. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +291 -0
  457. data/ext/ice/cpp/src/IceSSL/SSLEngine.h +264 -0
  458. data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +41 -0
  459. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +1514 -0
  460. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +609 -0
  461. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +91 -0
  462. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +246 -0
  463. data/ext/ice/cpp/src/IceSSL/TrustManager.h +51 -0
  464. data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +26 -0
  465. data/ext/ice/cpp/src/IceSSL/Util.cpp +1423 -0
  466. data/ext/ice/cpp/src/IceSSL/Util.h +136 -0
  467. data/ext/ice/cpp/src/IceUtil/ArgVector.cpp +65 -0
  468. data/ext/ice/cpp/src/IceUtil/ArgVector.h +41 -0
  469. data/ext/ice/cpp/src/IceUtil/Cond.cpp +386 -0
  470. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +477 -0
  471. data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +144 -0
  472. data/ext/ice/cpp/src/IceUtil/CountDownLatch.cpp +184 -0
  473. data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +273 -0
  474. data/ext/ice/cpp/src/IceUtil/Exception.cpp +782 -0
  475. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +532 -0
  476. data/ext/ice/cpp/src/IceUtil/FileUtil.h +159 -0
  477. data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +41 -0
  478. data/ext/ice/cpp/src/IceUtil/Makefile +68 -0
  479. data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +24 -0
  480. data/ext/ice/cpp/src/IceUtil/Options.cpp +1049 -0
  481. data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +591 -0
  482. data/ext/ice/cpp/src/IceUtil/Random.cpp +185 -0
  483. data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +257 -0
  484. data/ext/ice/cpp/src/IceUtil/SHA1.cpp +126 -0
  485. data/ext/ice/cpp/src/IceUtil/Shared.cpp +200 -0
  486. data/ext/ice/cpp/src/IceUtil/StopWatch.h +54 -0
  487. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +450 -0
  488. data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +842 -0
  489. data/ext/ice/cpp/src/IceUtil/Thread.cpp +809 -0
  490. data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +172 -0
  491. data/ext/ice/cpp/src/IceUtil/Time.cpp +306 -0
  492. data/ext/ice/cpp/src/IceUtil/Timer.cpp +251 -0
  493. data/ext/ice/cpp/src/IceUtil/UUID.cpp +174 -0
  494. data/ext/ice/cpp/src/IceUtil/Unicode.cpp +131 -0
  495. data/ext/ice/cpp/src/IceUtil/Unicode.h +49 -0
  496. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +1139 -0
  497. data/ext/ice/cpp/src/Slice/Checksum.cpp +452 -0
  498. data/ext/ice/cpp/src/Slice/CsUtil.cpp +2650 -0
  499. data/ext/ice/cpp/src/Slice/DotNetNames.cpp +146 -0
  500. data/ext/ice/cpp/src/Slice/FileTracker.cpp +203 -0
  501. data/ext/ice/cpp/src/Slice/Grammar.cpp +4755 -0
  502. data/ext/ice/cpp/src/Slice/Grammar.h +98 -0
  503. data/ext/ice/cpp/src/Slice/GrammarUtil.h +234 -0
  504. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +4376 -0
  505. data/ext/ice/cpp/src/Slice/MD5.cpp +57 -0
  506. data/ext/ice/cpp/src/Slice/MD5.h +44 -0
  507. data/ext/ice/cpp/src/Slice/MD5I.cpp +385 -0
  508. data/ext/ice/cpp/src/Slice/MD5I.h +91 -0
  509. data/ext/ice/cpp/src/Slice/Makefile +65 -0
  510. data/ext/ice/cpp/src/Slice/PHPUtil.cpp +156 -0
  511. data/ext/ice/cpp/src/Slice/Parser.cpp +6386 -0
  512. data/ext/ice/cpp/src/Slice/Preprocessor.cpp +686 -0
  513. data/ext/ice/cpp/src/Slice/Python.cpp +675 -0
  514. data/ext/ice/cpp/src/Slice/PythonUtil.cpp +2614 -0
  515. data/ext/ice/cpp/src/Slice/Ruby.cpp +317 -0
  516. data/ext/ice/cpp/src/Slice/RubyUtil.cpp +1774 -0
  517. data/ext/ice/cpp/src/Slice/Scanner.cpp +2426 -0
  518. data/ext/ice/cpp/src/Slice/Util.cpp +325 -0
  519. data/ext/ice/mcpp/config.h.Darwin +227 -0
  520. data/ext/ice/mcpp/config.h.Linux +227 -0
  521. data/ext/ice/mcpp/config.h.MINGW +7 -0
  522. data/ext/ice/mcpp/configed.H +382 -0
  523. data/ext/ice/mcpp/directive.c +1699 -0
  524. data/ext/ice/mcpp/eval.c +1673 -0
  525. data/ext/ice/mcpp/expand.c +2980 -0
  526. data/ext/ice/mcpp/internal.H +564 -0
  527. data/ext/ice/mcpp/main.c +1131 -0
  528. data/ext/ice/mcpp/mbchar.c +869 -0
  529. data/ext/ice/mcpp/mcpp_lib.h +31 -0
  530. data/ext/ice/mcpp/mcpp_out.h +13 -0
  531. data/ext/ice/mcpp/support.c +2811 -0
  532. data/ext/ice/mcpp/system.H +396 -0
  533. data/ext/ice/mcpp/system.c +4940 -0
  534. data/ice.gemspec +41 -0
  535. data/lib/Glacier2.rb +12 -0
  536. data/lib/Glacier2/Metrics.rb +99 -0
  537. data/lib/Glacier2/PermissionsVerifier.rb +168 -0
  538. data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
  539. data/lib/Glacier2/Router.rb +141 -0
  540. data/lib/Glacier2/RouterF.rb +29 -0
  541. data/lib/Glacier2/SSLInfo.rb +79 -0
  542. data/lib/Glacier2/Session.rb +470 -0
  543. data/lib/Ice.rb +659 -0
  544. data/lib/Ice/BuiltinSequences.rb +64 -0
  545. data/lib/Ice/Communicator.rb +93 -0
  546. data/lib/Ice/CommunicatorF.rb +28 -0
  547. data/lib/Ice/Connection.rb +414 -0
  548. data/lib/Ice/ConnectionF.rb +36 -0
  549. data/lib/Ice/Current.rb +152 -0
  550. data/lib/Ice/Endpoint.rb +265 -0
  551. data/lib/Ice/EndpointF.rb +52 -0
  552. data/lib/Ice/EndpointTypes.rb +77 -0
  553. data/lib/Ice/FacetMap.rb +28 -0
  554. data/lib/Ice/Identity.rb +70 -0
  555. data/lib/Ice/ImplicitContext.rb +59 -0
  556. data/lib/Ice/ImplicitContextF.rb +28 -0
  557. data/lib/Ice/Instrumentation.rb +425 -0
  558. data/lib/Ice/InstrumentationF.rb +35 -0
  559. data/lib/Ice/LocalException.rb +1081 -0
  560. data/lib/Ice/Locator.rb +314 -0
  561. data/lib/Ice/LocatorF.rb +34 -0
  562. data/lib/Ice/Logger.rb +57 -0
  563. data/lib/Ice/LoggerF.rb +28 -0
  564. data/lib/Ice/Metrics.rb +696 -0
  565. data/lib/Ice/ObjectAdapterF.rb +28 -0
  566. data/lib/Ice/ObjectFactory.rb +53 -0
  567. data/lib/Ice/ObjectFactoryF.rb +28 -0
  568. data/lib/Ice/Plugin.rb +87 -0
  569. data/lib/Ice/PluginF.rb +32 -0
  570. data/lib/Ice/Process.rb +93 -0
  571. data/lib/Ice/ProcessF.rb +29 -0
  572. data/lib/Ice/Properties.rb +65 -0
  573. data/lib/Ice/PropertiesAdmin.rb +104 -0
  574. data/lib/Ice/PropertiesF.rb +33 -0
  575. data/lib/Ice/Router.rb +163 -0
  576. data/lib/Ice/RouterF.rb +29 -0
  577. data/lib/Ice/SliceChecksumDict.rb +28 -0
  578. data/lib/Ice/Version.rb +100 -0
  579. data/lib/IceBox.rb +10 -0
  580. data/lib/IceBox/IceBox.rb +272 -0
  581. data/lib/IceGrid.rb +17 -0
  582. data/lib/IceGrid/Admin.rb +1076 -0
  583. data/lib/IceGrid/Descriptor.rb +1505 -0
  584. data/lib/IceGrid/Exception.rb +401 -0
  585. data/lib/IceGrid/FileParser.rb +105 -0
  586. data/lib/IceGrid/Locator.rb +105 -0
  587. data/lib/IceGrid/Observer.rb +571 -0
  588. data/lib/IceGrid/Query.rb +168 -0
  589. data/lib/IceGrid/Registry.rb +120 -0
  590. data/lib/IceGrid/Session.rb +114 -0
  591. data/lib/IceGrid/UserAccountMapper.rb +101 -0
  592. data/lib/IcePatch2.rb +10 -0
  593. data/lib/IcePatch2/FileInfo.rb +75 -0
  594. data/lib/IcePatch2/FileServer.rb +141 -0
  595. data/lib/IceStorm.rb +11 -0
  596. data/lib/IceStorm/IceStorm.rb +463 -0
  597. data/lib/IceStorm/Metrics.rb +155 -0
  598. data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
  599. data/slice/Freeze/CatalogData.ice +49 -0
  600. data/slice/Freeze/Connection.ice +111 -0
  601. data/slice/Freeze/ConnectionF.ice +20 -0
  602. data/slice/Freeze/DB.ice +37 -0
  603. data/slice/Freeze/Evictor.ice +339 -0
  604. data/slice/Freeze/EvictorF.ice +22 -0
  605. data/slice/Freeze/EvictorStorage.ice +72 -0
  606. data/slice/Freeze/Exception.ice +100 -0
  607. data/slice/Freeze/Transaction.ice +57 -0
  608. data/slice/Freeze/TransactionalEvictor.ice +50 -0
  609. data/slice/Glacier2/Metrics.ice +77 -0
  610. data/slice/Glacier2/PermissionsVerifier.ice +105 -0
  611. data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
  612. data/slice/Glacier2/Router.ice +178 -0
  613. data/slice/Glacier2/RouterF.ice +20 -0
  614. data/slice/Glacier2/SSLInfo.ice +50 -0
  615. data/slice/Glacier2/Session.ice +273 -0
  616. data/slice/Ice/BuiltinSequences.ice +48 -0
  617. data/slice/Ice/Communicator.ice +567 -0
  618. data/slice/Ice/CommunicatorF.ice +20 -0
  619. data/slice/Ice/Connection.ice +323 -0
  620. data/slice/Ice/ConnectionF.ice +22 -0
  621. data/slice/Ice/Current.ice +160 -0
  622. data/slice/Ice/Endpoint.ice +227 -0
  623. data/slice/Ice/EndpointF.ice +32 -0
  624. data/slice/Ice/EndpointTypes.ice +38 -0
  625. data/slice/Ice/FacetMap.ice +25 -0
  626. data/slice/Ice/Identity.ice +59 -0
  627. data/slice/Ice/ImplicitContext.ice +109 -0
  628. data/slice/Ice/ImplicitContextF.ice +20 -0
  629. data/slice/Ice/Instrumentation.ice +499 -0
  630. data/slice/Ice/InstrumentationF.ice +26 -0
  631. data/slice/Ice/LocalException.ice +1015 -0
  632. data/slice/Ice/Locator.ice +227 -0
  633. data/slice/Ice/LocatorF.ice +21 -0
  634. data/slice/Ice/Logger.ice +86 -0
  635. data/slice/Ice/LoggerF.ice +20 -0
  636. data/slice/Ice/Metrics.ice +422 -0
  637. data/slice/Ice/ObjectAdapter.ice +673 -0
  638. data/slice/Ice/ObjectAdapterF.ice +20 -0
  639. data/slice/Ice/ObjectFactory.ice +60 -0
  640. data/slice/Ice/ObjectFactoryF.ice +20 -0
  641. data/slice/Ice/Plugin.ice +117 -0
  642. data/slice/Ice/PluginF.ice +21 -0
  643. data/slice/Ice/Process.ice +54 -0
  644. data/slice/Ice/ProcessF.ice +20 -0
  645. data/slice/Ice/Properties.ice +228 -0
  646. data/slice/Ice/PropertiesAdmin.ice +75 -0
  647. data/slice/Ice/PropertiesF.ice +21 -0
  648. data/slice/Ice/RemoteLogger.ice +232 -0
  649. data/slice/Ice/Router.ice +83 -0
  650. data/slice/Ice/RouterF.ice +20 -0
  651. data/slice/Ice/ServantLocator.ice +117 -0
  652. data/slice/Ice/ServantLocatorF.ice +20 -0
  653. data/slice/Ice/SliceChecksumDict.ice +25 -0
  654. data/slice/Ice/Version.ice +39 -0
  655. data/slice/IceBox/IceBox.ice +194 -0
  656. data/slice/IceDiscovery/IceDiscovery.ice +32 -0
  657. data/slice/IceGrid/Admin.ice +1578 -0
  658. data/slice/IceGrid/Descriptor.ice +1079 -0
  659. data/slice/IceGrid/Discovery.ice +73 -0
  660. data/slice/IceGrid/Exception.ice +383 -0
  661. data/slice/IceGrid/FileParser.ice +61 -0
  662. data/slice/IceGrid/Locator.ice +56 -0
  663. data/slice/IceGrid/Observer.ice +394 -0
  664. data/slice/IceGrid/PluginFacade.ice +316 -0
  665. data/slice/IceGrid/Query.ice +130 -0
  666. data/slice/IceGrid/Registry.ice +138 -0
  667. data/slice/IceGrid/Session.ice +124 -0
  668. data/slice/IceGrid/UserAccountMapper.ice +58 -0
  669. data/slice/IcePatch2/FileInfo.ice +49 -0
  670. data/slice/IcePatch2/FileServer.ice +129 -0
  671. data/slice/IceSSL/ConnectionInfo.ice +34 -0
  672. data/slice/IceSSL/EndpointInfo.ice +41 -0
  673. data/slice/IceStorm/IceStorm.ice +405 -0
  674. data/slice/IceStorm/Metrics.ice +71 -0
  675. metadata +737 -0
@@ -0,0 +1,2426 @@
1
+ #include <IceUtil/ScannerConfig.h>
2
+ #line 2 "lex.yy.c"
3
+
4
+ #line 4 "lex.yy.c"
5
+
6
+ #define YY_INT_ALIGNED short int
7
+
8
+ /* A lexical scanner generated by flex */
9
+
10
+ #define yy_create_buffer slice__create_buffer
11
+ #define yy_delete_buffer slice__delete_buffer
12
+ #define yy_flex_debug slice__flex_debug
13
+ #define yy_init_buffer slice__init_buffer
14
+ #define yy_flush_buffer slice__flush_buffer
15
+ #define yy_load_buffer_state slice__load_buffer_state
16
+ #define yy_switch_to_buffer slice__switch_to_buffer
17
+ #define yyin slice_in
18
+ #define yyleng slice_leng
19
+ #define yylex slice_lex
20
+ #define yylineno slice_lineno
21
+ #define yyout slice_out
22
+ #define yyrestart slice_restart
23
+ #define yytext slice_text
24
+ #define yywrap slice_wrap
25
+ #define yyalloc slice_alloc
26
+ #define yyrealloc slice_realloc
27
+ #define yyfree slice_free
28
+
29
+ #define FLEX_SCANNER
30
+ #define YY_FLEX_MAJOR_VERSION 2
31
+ #define YY_FLEX_MINOR_VERSION 5
32
+ #define YY_FLEX_SUBMINOR_VERSION 35
33
+ #if YY_FLEX_SUBMINOR_VERSION > 0
34
+ #define FLEX_BETA
35
+ #endif
36
+
37
+ /* First, we deal with platform-specific or compiler-specific issues. */
38
+
39
+ /* begin standard C headers. */
40
+ #include <stdio.h>
41
+ #include <string.h>
42
+ #include <errno.h>
43
+ #include <stdlib.h>
44
+
45
+ /* end standard C headers. */
46
+
47
+ /* flex integer type definitions */
48
+
49
+ #ifndef FLEXINT_H
50
+ #define FLEXINT_H
51
+
52
+ /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
53
+
54
+ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
55
+
56
+ /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
57
+ * if you want the limit (max/min) macros for int types.
58
+ */
59
+ #ifndef __STDC_LIMIT_MACROS
60
+ #define __STDC_LIMIT_MACROS 1
61
+ #endif
62
+
63
+ #include <inttypes.h>
64
+ typedef int8_t flex_int8_t;
65
+ typedef uint8_t flex_uint8_t;
66
+ typedef int16_t flex_int16_t;
67
+ typedef uint16_t flex_uint16_t;
68
+ typedef int32_t flex_int32_t;
69
+ typedef uint32_t flex_uint32_t;
70
+ #else
71
+ typedef signed char flex_int8_t;
72
+ typedef short int flex_int16_t;
73
+ typedef int flex_int32_t;
74
+ typedef unsigned char flex_uint8_t;
75
+ typedef unsigned short int flex_uint16_t;
76
+ typedef unsigned int flex_uint32_t;
77
+ #endif /* ! C99 */
78
+
79
+ /* Limits of integral types. */
80
+ #ifndef INT8_MIN
81
+ #define INT8_MIN (-128)
82
+ #endif
83
+ #ifndef INT16_MIN
84
+ #define INT16_MIN (-32767-1)
85
+ #endif
86
+ #ifndef INT32_MIN
87
+ #define INT32_MIN (-2147483647-1)
88
+ #endif
89
+ #ifndef INT8_MAX
90
+ #define INT8_MAX (127)
91
+ #endif
92
+ #ifndef INT16_MAX
93
+ #define INT16_MAX (32767)
94
+ #endif
95
+ #ifndef INT32_MAX
96
+ #define INT32_MAX (2147483647)
97
+ #endif
98
+ #ifndef UINT8_MAX
99
+ #define UINT8_MAX (255U)
100
+ #endif
101
+ #ifndef UINT16_MAX
102
+ #define UINT16_MAX (65535U)
103
+ #endif
104
+ #ifndef UINT32_MAX
105
+ #define UINT32_MAX (4294967295U)
106
+ #endif
107
+
108
+ #endif /* ! FLEXINT_H */
109
+
110
+ #ifdef __cplusplus
111
+
112
+ /* The "const" storage-class-modifier is valid. */
113
+ #define YY_USE_CONST
114
+
115
+ #else /* ! __cplusplus */
116
+
117
+ /* C99 requires __STDC__ to be defined as 1. */
118
+ #if defined (__STDC__)
119
+
120
+ #define YY_USE_CONST
121
+
122
+ #endif /* defined (__STDC__) */
123
+ #endif /* ! __cplusplus */
124
+
125
+ #ifdef YY_USE_CONST
126
+ #define yyconst const
127
+ #else
128
+ #define yyconst
129
+ #endif
130
+
131
+ /* Returned upon end-of-file. */
132
+ #define YY_NULL 0
133
+
134
+ /* Promotes a possibly negative, possibly signed char to an unsigned
135
+ * integer for use as an array index. If the signed char is negative,
136
+ * we want to instead treat it as an 8-bit unsigned char, hence the
137
+ * double cast.
138
+ */
139
+ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
140
+
141
+ /* Enter a start condition. This macro really ought to take a parameter,
142
+ * but we do it the disgusting crufty way forced on us by the ()-less
143
+ * definition of BEGIN.
144
+ */
145
+ #define BEGIN (yy_start) = 1 + 2 *
146
+
147
+ /* Translate the current start state into a value that can be later handed
148
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
149
+ * compatibility.
150
+ */
151
+ #define YY_START (((yy_start) - 1) / 2)
152
+ #define YYSTATE YY_START
153
+
154
+ /* Action number for EOF rule of a given start state. */
155
+ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
156
+
157
+ /* Special action meaning "start processing a new file". */
158
+ #define YY_NEW_FILE slice_restart(slice_in )
159
+
160
+ #define YY_END_OF_BUFFER_CHAR 0
161
+
162
+ /* Size of default input buffer. */
163
+ #ifndef YY_BUF_SIZE
164
+ #define YY_BUF_SIZE 16384
165
+ #endif
166
+
167
+ /* The state buf must be large enough to hold one state per character in the main buffer.
168
+ */
169
+ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
170
+
171
+ #ifndef YY_TYPEDEF_YY_BUFFER_STATE
172
+ #define YY_TYPEDEF_YY_BUFFER_STATE
173
+ typedef struct yy_buffer_state *YY_BUFFER_STATE;
174
+ #endif
175
+
176
+ extern int slice_leng;
177
+
178
+ extern FILE *slice_in, *slice_out;
179
+
180
+ #define EOB_ACT_CONTINUE_SCAN 0
181
+ #define EOB_ACT_END_OF_FILE 1
182
+ #define EOB_ACT_LAST_MATCH 2
183
+
184
+ #define YY_LESS_LINENO(n)
185
+
186
+ /* Return all but the first "n" matched characters back to the input stream. */
187
+ #define yyless(n) \
188
+ do \
189
+ { \
190
+ /* Undo effects of setting up slice_text. */ \
191
+ int yyless_macro_arg = (n); \
192
+ YY_LESS_LINENO(yyless_macro_arg);\
193
+ *yy_cp = (yy_hold_char); \
194
+ YY_RESTORE_YY_MORE_OFFSET \
195
+ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
196
+ YY_DO_BEFORE_ACTION; /* set up slice_text again */ \
197
+ } \
198
+ while ( 0 )
199
+
200
+ #define unput(c) yyunput( c, (yytext_ptr) )
201
+
202
+ #ifndef YY_TYPEDEF_YY_SIZE_T
203
+ #define YY_TYPEDEF_YY_SIZE_T
204
+ typedef size_t yy_size_t;
205
+ #endif
206
+
207
+ #ifndef YY_STRUCT_YY_BUFFER_STATE
208
+ #define YY_STRUCT_YY_BUFFER_STATE
209
+ struct yy_buffer_state
210
+ {
211
+ FILE *yy_input_file;
212
+
213
+ char *yy_ch_buf; /* input buffer */
214
+ char *yy_buf_pos; /* current position in input buffer */
215
+
216
+ /* Size of input buffer in bytes, not including room for EOB
217
+ * characters.
218
+ */
219
+ yy_size_t yy_buf_size;
220
+
221
+ /* Number of characters read into yy_ch_buf, not including EOB
222
+ * characters.
223
+ */
224
+ int yy_n_chars;
225
+
226
+ /* Whether we "own" the buffer - i.e., we know we created it,
227
+ * and can realloc() it to grow it, and should free() it to
228
+ * delete it.
229
+ */
230
+ int yy_is_our_buffer;
231
+
232
+ /* Whether this is an "interactive" input source; if so, and
233
+ * if we're using stdio for input, then we want to use getc()
234
+ * instead of fread(), to make sure we stop fetching input after
235
+ * each newline.
236
+ */
237
+ int yy_is_interactive;
238
+
239
+ /* Whether we're considered to be at the beginning of a line.
240
+ * If so, '^' rules will be active on the next match, otherwise
241
+ * not.
242
+ */
243
+ int yy_at_bol;
244
+
245
+ int yy_bs_lineno; /**< The line count. */
246
+ int yy_bs_column; /**< The column count. */
247
+
248
+ /* Whether to try to fill the input buffer when we reach the
249
+ * end of it.
250
+ */
251
+ int yy_fill_buffer;
252
+
253
+ int yy_buffer_status;
254
+
255
+ #define YY_BUFFER_NEW 0
256
+ #define YY_BUFFER_NORMAL 1
257
+ /* When an EOF's been seen but there's still some text to process
258
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
259
+ * shouldn't try reading from the input source any more. We might
260
+ * still have a bunch of tokens to match, though, because of
261
+ * possible backing-up.
262
+ *
263
+ * When we actually see the EOF, we change the status to "new"
264
+ * (via slice_restart()), so that the user can continue scanning by
265
+ * just pointing slice_in at a new input file.
266
+ */
267
+ #define YY_BUFFER_EOF_PENDING 2
268
+
269
+ };
270
+ #endif /* !YY_STRUCT_YY_BUFFER_STATE */
271
+
272
+ /* Stack of input buffers. */
273
+ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
274
+ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
275
+ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
276
+
277
+ /* We provide macros for accessing buffer states in case in the
278
+ * future we want to put the buffer states in a more general
279
+ * "scanner state".
280
+ *
281
+ * Returns the top of the stack, or NULL.
282
+ */
283
+ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
284
+ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
285
+ : NULL)
286
+
287
+ /* Same as previous macro, but useful when we know that the buffer stack is not
288
+ * NULL or when we need an lvalue. For internal use only.
289
+ */
290
+ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
291
+
292
+ /* yy_hold_char holds the character lost when slice_text is formed. */
293
+ static char yy_hold_char;
294
+ static int yy_n_chars; /* number of characters read into yy_ch_buf */
295
+ int slice_leng;
296
+
297
+ /* Points to current character in buffer. */
298
+ static char *yy_c_buf_p = (char *) 0;
299
+ static int yy_init = 0; /* whether we need to initialize */
300
+ static int yy_start = 0; /* start state number */
301
+
302
+ /* Flag which is used to allow slice_wrap()'s to do buffer switches
303
+ * instead of setting up a fresh slice_in. A bit of a hack ...
304
+ */
305
+ static int yy_did_buffer_switch_on_eof;
306
+
307
+ void slice_restart (FILE *input_file );
308
+ void slice__switch_to_buffer (YY_BUFFER_STATE new_buffer );
309
+ YY_BUFFER_STATE slice__create_buffer (FILE *file,int size );
310
+ void slice__delete_buffer (YY_BUFFER_STATE b );
311
+ void slice__flush_buffer (YY_BUFFER_STATE b );
312
+ void slice_push_buffer_state (YY_BUFFER_STATE new_buffer );
313
+ void slice_pop_buffer_state (void );
314
+
315
+ static void slice_ensure_buffer_stack (void );
316
+ static void slice__load_buffer_state (void );
317
+ static void slice__init_buffer (YY_BUFFER_STATE b,FILE *file );
318
+
319
+ #define YY_FLUSH_BUFFER slice__flush_buffer(YY_CURRENT_BUFFER )
320
+
321
+ YY_BUFFER_STATE slice__scan_buffer (char *base,yy_size_t size );
322
+ YY_BUFFER_STATE slice__scan_string (yyconst char *yy_str );
323
+ YY_BUFFER_STATE slice__scan_bytes (yyconst char *bytes,int len );
324
+
325
+ void *slice_alloc (yy_size_t );
326
+ void *slice_realloc (void *,yy_size_t );
327
+ void slice_free (void * );
328
+
329
+ #define yy_new_buffer slice__create_buffer
330
+
331
+ #define yy_set_interactive(is_interactive) \
332
+ { \
333
+ if ( ! YY_CURRENT_BUFFER ){ \
334
+ slice_ensure_buffer_stack (); \
335
+ YY_CURRENT_BUFFER_LVALUE = \
336
+ slice__create_buffer(slice_in,YY_BUF_SIZE ); \
337
+ } \
338
+ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
339
+ }
340
+
341
+ #define yy_set_bol(at_bol) \
342
+ { \
343
+ if ( ! YY_CURRENT_BUFFER ){\
344
+ slice_ensure_buffer_stack (); \
345
+ YY_CURRENT_BUFFER_LVALUE = \
346
+ slice__create_buffer(slice_in,YY_BUF_SIZE ); \
347
+ } \
348
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
349
+ }
350
+
351
+ #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
352
+
353
+ /* Begin user sect3 */
354
+
355
+ #define slice_wrap(n) 1
356
+ #define YY_SKIP_YYWRAP
357
+
358
+ typedef unsigned char YY_CHAR;
359
+
360
+ FILE *slice_in = (FILE *) 0, *slice_out = (FILE *) 0;
361
+
362
+ typedef int yy_state_type;
363
+
364
+ extern int slice_lineno;
365
+
366
+ int slice_lineno = 1;
367
+
368
+ extern char *slice_text;
369
+ #define yytext_ptr slice_text
370
+
371
+ static yy_state_type yy_get_previous_state (void );
372
+ static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
373
+ static int yy_get_next_buffer (void );
374
+ static void yy_fatal_error (yyconst char msg[] );
375
+
376
+ /* Done after the current pattern has been matched and before the
377
+ * corresponding action - sets up slice_text.
378
+ */
379
+ #define YY_DO_BEFORE_ACTION \
380
+ (yytext_ptr) = yy_bp; \
381
+ slice_leng = (size_t) (yy_cp - yy_bp); \
382
+ (yy_hold_char) = *yy_cp; \
383
+ *yy_cp = '\0'; \
384
+ (yy_c_buf_p) = yy_cp;
385
+
386
+ #define YY_NUM_RULES 20
387
+ #define YY_END_OF_BUFFER 21
388
+ /* This struct is not used in this scanner,
389
+ but its presence is necessary. */
390
+ struct yy_trans_info
391
+ {
392
+ flex_int32_t yy_verify;
393
+ flex_int32_t yy_nxt;
394
+ };
395
+ static yyconst flex_int16_t yy_accept[73] =
396
+ { 0,
397
+ 0, 0, 0, 0, 0, 0, 21, 19, 17, 17,
398
+ 14, 19, 19, 19, 15, 15, 19, 13, 8, 19,
399
+ 9, 19, 19, 0, 15, 15, 16, 6, 5, 16,
400
+ 15, 0, 0, 7, 0, 12, 13, 10, 13, 11,
401
+ 0, 0, 0, 0, 0, 16, 0, 16, 15, 0,
402
+ 1, 0, 18, 0, 16, 0, 0, 0, 0, 0,
403
+ 0, 2, 0, 0, 0, 3, 0, 0, 0, 0,
404
+ 4, 0
405
+ } ;
406
+
407
+ static yyconst flex_int32_t yy_ec[256] =
408
+ { 0,
409
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
410
+ 4, 4, 4, 1, 1, 1, 1, 1, 1, 1,
411
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412
+ 1, 2, 1, 5, 6, 1, 1, 1, 1, 7,
413
+ 1, 8, 9, 1, 10, 11, 12, 13, 14, 14,
414
+ 14, 14, 14, 14, 14, 15, 15, 16, 1, 1,
415
+ 1, 1, 1, 1, 17, 17, 17, 17, 18, 19,
416
+ 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
417
+ 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
418
+ 21, 22, 23, 1, 20, 1, 17, 17, 17, 17,
419
+
420
+ 24, 19, 20, 20, 25, 20, 20, 26, 20, 27,
421
+ 20, 20, 20, 20, 20, 20, 20, 20, 20, 28,
422
+ 20, 20, 1, 1, 1, 1, 1, 1, 1, 1,
423
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
424
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
425
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428
+ 1, 1, 1, 1, 1, 1, 29, 1, 1, 1,
429
+ 30, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430
+
431
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434
+ 1, 1, 1, 1, 1, 1, 1, 1, 31, 1,
435
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436
+ 1, 1, 1, 1, 1
437
+ } ;
438
+
439
+ static yyconst flex_int32_t yy_meta[32] =
440
+ { 0,
441
+ 1, 2, 3, 4, 1, 1, 4, 1, 5, 5,
442
+ 1, 1, 6, 6, 6, 1, 7, 7, 7, 8,
443
+ 1, 1, 1, 7, 8, 9, 8, 8, 1, 1,
444
+ 1
445
+ } ;
446
+
447
+ static yyconst flex_int16_t yy_base[85] =
448
+ { 0,
449
+ 0, 185, 0, 26, 0, 184, 189, 192, 192, 192,
450
+ 192, 22, 25, 33, 47, 35, 153, 40, 147, 0,
451
+ 121, 44, 114, 37, 0, 0, 63, 192, 192, 0,
452
+ 107, 44, 0, 192, 65, 192, 81, 192, 0, 192,
453
+ 53, 71, 109, 102, 80, 192, 78, 81, 0, 96,
454
+ 192, 104, 192, 89, 92, 125, 97, 111, 83, 78,
455
+ 63, 192, 95, 110, 112, 192, 59, 54, 53, 31,
456
+ 192, 192, 116, 119, 127, 132, 133, 139, 141, 147,
457
+ 156, 164, 170, 179
458
+ } ;
459
+
460
+ static yyconst flex_int16_t yy_def[85] =
461
+ { 0,
462
+ 72, 1, 1, 1, 1, 1, 72, 72, 72, 72,
463
+ 72, 72, 72, 72, 72, 15, 72, 73, 72, 74,
464
+ 72, 75, 72, 72, 15, 16, 72, 72, 72, 27,
465
+ 15, 76, 77, 72, 72, 72, 73, 72, 37, 72,
466
+ 75, 78, 72, 72, 79, 72, 72, 72, 77, 72,
467
+ 72, 72, 72, 72, 72, 80, 72, 80, 81, 72,
468
+ 81, 72, 72, 82, 72, 72, 83, 83, 84, 84,
469
+ 72, 0, 72, 72, 72, 72, 72, 72, 72, 72,
470
+ 72, 72, 72, 72
471
+ } ;
472
+
473
+ static yyconst flex_int16_t yy_nxt[224] =
474
+ { 0,
475
+ 8, 9, 10, 9, 11, 8, 8, 8, 12, 12,
476
+ 13, 14, 15, 16, 16, 17, 18, 18, 18, 18,
477
+ 19, 20, 21, 18, 18, 18, 18, 18, 8, 8,
478
+ 8, 22, 24, 71, 25, 26, 26, 27, 27, 27,
479
+ 28, 35, 35, 35, 29, 41, 36, 26, 26, 27,
480
+ 27, 27, 47, 47, 41, 71, 23, 30, 69, 31,
481
+ 31, 26, 72, 69, 32, 62, 35, 35, 35, 43,
482
+ 32, 36, 50, 51, 33, 27, 27, 27, 43, 63,
483
+ 45, 46, 35, 35, 35, 62, 45, 36, 54, 54,
484
+ 48, 48, 48, 48, 48, 48, 63, 50, 51, 46,
485
+
486
+ 56, 55, 55, 55, 55, 55, 55, 64, 64, 64,
487
+ 46, 65, 66, 65, 66, 59, 67, 37, 37, 37,
488
+ 60, 37, 37, 37, 37, 39, 39, 39, 42, 59,
489
+ 57, 53, 42, 52, 72, 42, 48, 48, 49, 49,
490
+ 42, 42, 44, 40, 42, 55, 55, 58, 58, 58,
491
+ 58, 58, 58, 58, 58, 58, 61, 61, 61, 61,
492
+ 61, 61, 61, 61, 61, 64, 64, 38, 34, 64,
493
+ 68, 68, 68, 68, 68, 68, 68, 68, 68, 70,
494
+ 70, 70, 70, 70, 70, 70, 70, 70, 72, 22,
495
+ 22, 7, 72, 72, 72, 72, 72, 72, 72, 72,
496
+
497
+ 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
498
+ 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
499
+ 72, 72, 72
500
+ } ;
501
+
502
+ static yyconst flex_int16_t yy_chk[224] =
503
+ { 0,
504
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
505
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
506
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
507
+ 1, 4, 12, 70, 12, 12, 12, 13, 13, 13,
508
+ 14, 18, 18, 18, 14, 22, 18, 16, 16, 24,
509
+ 24, 24, 32, 32, 41, 69, 4, 15, 68, 15,
510
+ 15, 15, 16, 67, 15, 61, 35, 35, 35, 22,
511
+ 15, 35, 42, 42, 15, 27, 27, 27, 41, 60,
512
+ 27, 27, 37, 37, 37, 59, 27, 37, 45, 45,
513
+ 47, 47, 47, 48, 48, 48, 63, 50, 50, 48,
514
+
515
+ 50, 54, 54, 54, 55, 55, 55, 63, 63, 63,
516
+ 55, 64, 64, 65, 65, 58, 65, 73, 73, 73,
517
+ 57, 73, 73, 73, 73, 74, 74, 74, 75, 56,
518
+ 52, 44, 75, 43, 31, 75, 76, 76, 77, 77,
519
+ 78, 78, 23, 21, 78, 79, 79, 80, 80, 80,
520
+ 80, 80, 80, 80, 80, 80, 81, 81, 81, 81,
521
+ 81, 81, 81, 81, 81, 82, 82, 19, 17, 82,
522
+ 83, 83, 83, 83, 83, 83, 83, 83, 83, 84,
523
+ 84, 84, 84, 84, 84, 84, 84, 84, 7, 6,
524
+ 2, 72, 72, 72, 72, 72, 72, 72, 72, 72,
525
+
526
+ 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
527
+ 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
528
+ 72, 72, 72
529
+ } ;
530
+
531
+ static yy_state_type yy_last_accepting_state;
532
+ static char *yy_last_accepting_cpos;
533
+
534
+ extern int slice__flex_debug;
535
+ int slice__flex_debug = 0;
536
+
537
+ /* The intent behind this definition is that it'll catch
538
+ * any uses of REJECT which flex missed.
539
+ */
540
+ #define REJECT reject_used_but_not_detected
541
+ #define yymore() yymore_used_but_not_detected
542
+ #define YY_MORE_ADJ 0
543
+ #define YY_RESTORE_YY_MORE_OFFSET
544
+ char *slice_text;
545
+ #line 1 "Scanner.l"
546
+ #line 2 "Scanner.l"
547
+
548
+ // **********************************************************************
549
+ //
550
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
551
+ //
552
+ // This copy of Ice is licensed to you under the terms described in the
553
+ // ICE_LICENSE file included in this distribution.
554
+ //
555
+ // **********************************************************************
556
+
557
+ #include <Slice/GrammarUtil.h> // Before Grammer.h, so that YYSTYPE is defined
558
+ #include <Slice/Grammar.h>
559
+ #include <IceUtil/InputUtil.h>
560
+
561
+ #include <stdlib.h>
562
+ #include <math.h>
563
+
564
+ #if defined(_MSC_VER) && defined(ICE_64)
565
+ //
566
+ // '=' : conversion from 'size_t' to 'int', possible loss of data
567
+ // The result of fread() is a size_t and gets inserted into an int
568
+ //
569
+ # pragma warning( 4 : 4267 )
570
+ //
571
+ // 'initializing' : conversion from '__int64' to 'int', possible loss of data
572
+ // Puts a pointer-difference into an int
573
+ //
574
+ # pragma warning( 4 : 4244 )
575
+ #endif
576
+
577
+ #if defined(_MSC_VER) && defined(ICE_32)
578
+ //
579
+ // '<' : signed/unsigned mismatch
580
+ //
581
+ # pragma warning( 4 : 4018 )
582
+ #endif
583
+
584
+ #ifdef _MSC_VER
585
+ # ifdef slice_wrap
586
+ # undef slice_wrap
587
+ # define slice_wrap() 1
588
+ # endif
589
+ # define YY_NO_UNISTD_H
590
+ #endif
591
+
592
+ #ifdef __SUNPRO_CC
593
+ # ifdef slice_wrap
594
+ # undef slice_wrap
595
+ # define slice_wrap() 1
596
+ # endif
597
+ # ifdef ICE_64
598
+ # pragma error_messages(off,truncwarn)
599
+ # endif
600
+ #endif
601
+
602
+ using namespace std;
603
+ using namespace Slice;
604
+
605
+ namespace Slice
606
+ {
607
+
608
+ //
609
+ // Definitions for the case-insensitive keyword-token map.
610
+ //
611
+ typedef std::map<std::string, int, Slice::CICompare> StringTokenMap;
612
+ static StringTokenMap keywordMap;
613
+
614
+ void initScanner();
615
+ int checkKeyword(string&);
616
+
617
+ }
618
+
619
+ #define YY_USER_INIT initScanner();
620
+
621
+
622
+
623
+ #line 623 "lex.yy.c"
624
+
625
+ #define INITIAL 0
626
+ #define BOMSCAN 1
627
+ #define MAINSCAN 2
628
+
629
+ #ifndef YY_NO_UNISTD_H
630
+ /* Special case for "unistd.h", since it is non-ANSI. We include it way
631
+ * down here because we want the user's section 1 to have been scanned first.
632
+ * The user has a chance to override it with an option.
633
+ */
634
+ #include <unistd.h>
635
+ #endif
636
+
637
+ #ifndef YY_EXTRA_TYPE
638
+ #define YY_EXTRA_TYPE void *
639
+ #endif
640
+
641
+ static int yy_init_globals (void );
642
+
643
+ /* Accessor methods to globals.
644
+ These are made visible to non-reentrant scanners for convenience. */
645
+
646
+ int slice_lex_destroy (void );
647
+
648
+ int slice_get_debug (void );
649
+
650
+ void slice_set_debug (int debug_flag );
651
+
652
+ YY_EXTRA_TYPE slice_get_extra (void );
653
+
654
+ void slice_set_extra (YY_EXTRA_TYPE user_defined );
655
+
656
+ FILE *slice_get_in (void );
657
+
658
+ void slice_set_in (FILE * in_str );
659
+
660
+ FILE *slice_get_out (void );
661
+
662
+ void slice_set_out (FILE * out_str );
663
+
664
+ int slice_get_leng (void );
665
+
666
+ char *slice_get_text (void );
667
+
668
+ int slice_get_lineno (void );
669
+
670
+ void slice_set_lineno (int line_number );
671
+
672
+ /* Macros after this point can all be overridden by user definitions in
673
+ * section 1.
674
+ */
675
+
676
+ #ifndef YY_SKIP_YYWRAP
677
+ #ifdef __cplusplus
678
+ extern "C" int slice_wrap (void );
679
+ #else
680
+ extern int slice_wrap (void );
681
+ #endif
682
+ #endif
683
+
684
+ static void yyunput (int c,char *buf_ptr );
685
+
686
+ #ifndef yytext_ptr
687
+ static void yy_flex_strncpy (char *,yyconst char *,int );
688
+ #endif
689
+
690
+ #ifdef YY_NEED_STRLEN
691
+ static int yy_flex_strlen (yyconst char * );
692
+ #endif
693
+
694
+ #ifndef YY_NO_INPUT
695
+
696
+ #ifdef __cplusplus
697
+ static int yyinput (void );
698
+ #else
699
+ static int input (void );
700
+ #endif
701
+
702
+ #endif
703
+
704
+ /* Amount of stuff to slurp up with each read. */
705
+ #ifndef YY_READ_BUF_SIZE
706
+ #define YY_READ_BUF_SIZE 8192
707
+ #endif
708
+
709
+ /* Copy whatever the last rule matched to the standard output. */
710
+ #ifndef ECHO
711
+ /* This used to be an fputs(), but since the string might contain NUL's,
712
+ * we now use fwrite().
713
+ */
714
+ #define ECHO do { if (fwrite( slice_text, slice_leng, 1, slice_out )) {} } while (0)
715
+ #endif
716
+
717
+ /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
718
+ * is returned in "result".
719
+ */
720
+ #ifndef YY_INPUT
721
+ #define YY_INPUT(buf,result,max_size) \
722
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
723
+ { \
724
+ int c = '*'; \
725
+ unsigned n; \
726
+ for ( n = 0; n < max_size && \
727
+ (c = getc( slice_in )) != EOF && c != '\n'; ++n ) \
728
+ buf[n] = (char) c; \
729
+ if ( c == '\n' ) \
730
+ buf[n++] = (char) c; \
731
+ if ( c == EOF && ferror( slice_in ) ) \
732
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
733
+ result = n; \
734
+ } \
735
+ else \
736
+ { \
737
+ errno=0; \
738
+ while ( (result = fread(buf, 1, max_size, slice_in))==0 && ferror(slice_in)) \
739
+ { \
740
+ if( errno != EINTR) \
741
+ { \
742
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
743
+ break; \
744
+ } \
745
+ errno=0; \
746
+ clearerr(slice_in); \
747
+ } \
748
+ }\
749
+ \
750
+
751
+ #endif
752
+
753
+ /* No semi-colon after return; correct usage is to write "yyterminate();" -
754
+ * we don't want an extra ';' after the "return" because that will cause
755
+ * some compilers to complain about unreachable statements.
756
+ */
757
+ #ifndef yyterminate
758
+ #define yyterminate() return YY_NULL
759
+ #endif
760
+
761
+ /* Number of entries by which start-condition stack grows. */
762
+ #ifndef YY_START_STACK_INCR
763
+ #define YY_START_STACK_INCR 25
764
+ #endif
765
+
766
+ /* Report a fatal error. */
767
+ #ifndef YY_FATAL_ERROR
768
+ #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
769
+ #endif
770
+
771
+ /* end tables serialization structures and prototypes */
772
+
773
+ /* Default declaration of generated scanner - a define so the user can
774
+ * easily add parameters.
775
+ */
776
+ #ifndef YY_DECL
777
+ #define YY_DECL_IS_OURS 1
778
+
779
+ extern int slice_lex (void);
780
+
781
+ #define YY_DECL int slice_lex (void)
782
+ #endif /* !YY_DECL */
783
+
784
+ /* Code executed at the beginning of each rule, after slice_text and slice_leng
785
+ * have been set up.
786
+ */
787
+ #ifndef YY_USER_ACTION
788
+ #define YY_USER_ACTION
789
+ #endif
790
+
791
+ /* Code executed at the end of each rule. */
792
+ #ifndef YY_BREAK
793
+ #define YY_BREAK break;
794
+ #endif
795
+
796
+ #define YY_RULE_SETUP \
797
+ if ( slice_leng > 0 ) \
798
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
799
+ (slice_text[slice_leng - 1] == '\n'); \
800
+ YY_USER_ACTION
801
+
802
+ /** The main scanner function which does all the work.
803
+ */
804
+ YY_DECL
805
+ {
806
+ register yy_state_type yy_current_state;
807
+ register char *yy_cp, *yy_bp;
808
+ register int yy_act;
809
+
810
+ #line 92 "Scanner.l"
811
+
812
+
813
+ #line 813 "lex.yy.c"
814
+
815
+ if ( !(yy_init) )
816
+ {
817
+ (yy_init) = 1;
818
+
819
+ #ifdef YY_USER_INIT
820
+ YY_USER_INIT;
821
+ #endif
822
+
823
+ if ( ! (yy_start) )
824
+ (yy_start) = 1; /* first start state */
825
+
826
+ if ( ! slice_in )
827
+ slice_in = stdin;
828
+
829
+ if ( ! slice_out )
830
+ slice_out = stdout;
831
+
832
+ if ( ! YY_CURRENT_BUFFER ) {
833
+ slice_ensure_buffer_stack ();
834
+ YY_CURRENT_BUFFER_LVALUE =
835
+ slice__create_buffer(slice_in,YY_BUF_SIZE );
836
+ }
837
+
838
+ slice__load_buffer_state( );
839
+ }
840
+
841
+ while ( 1 ) /* loops until end-of-file is reached */
842
+ {
843
+ yy_cp = (yy_c_buf_p);
844
+
845
+ /* Support of slice_text. */
846
+ *yy_cp = (yy_hold_char);
847
+
848
+ /* yy_bp points to the position in yy_ch_buf of the start of
849
+ * the current run.
850
+ */
851
+ yy_bp = yy_cp;
852
+
853
+ yy_current_state = (yy_start);
854
+ yy_current_state += YY_AT_BOL();
855
+ yy_match:
856
+ do
857
+ {
858
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
859
+ if ( yy_accept[yy_current_state] )
860
+ {
861
+ (yy_last_accepting_state) = yy_current_state;
862
+ (yy_last_accepting_cpos) = yy_cp;
863
+ }
864
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
865
+ {
866
+ yy_current_state = (int) yy_def[yy_current_state];
867
+ if ( yy_current_state >= 73 )
868
+ yy_c = yy_meta[(unsigned int) yy_c];
869
+ }
870
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
871
+ ++yy_cp;
872
+ }
873
+ while ( yy_current_state != 72 );
874
+ yy_cp = (yy_last_accepting_cpos);
875
+ yy_current_state = (yy_last_accepting_state);
876
+
877
+ yy_find_action:
878
+ yy_act = yy_accept[yy_current_state];
879
+
880
+ YY_DO_BEFORE_ACTION;
881
+
882
+ do_action: /* This label is used only to access EOF actions. */
883
+
884
+ switch ( yy_act )
885
+ { /* beginning of action switch */
886
+ case 0: /* must back up */
887
+ /* undo the effects of YY_DO_BEFORE_ACTION */
888
+ *yy_cp = (yy_hold_char);
889
+ yy_cp = (yy_last_accepting_cpos);
890
+ yy_current_state = (yy_last_accepting_state);
891
+ goto yy_find_action;
892
+
893
+ case 1:
894
+ *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
895
+ (yy_c_buf_p) = yy_cp -= 1;
896
+ YY_DO_BEFORE_ACTION; /* set up slice_text again */
897
+ YY_RULE_SETUP
898
+ #line 94 "Scanner.l"
899
+ {
900
+ if(unit->scanPosition(slice_text))
901
+ {
902
+ BEGIN(BOMSCAN);
903
+ }
904
+ }
905
+ YY_BREAK
906
+ case 2:
907
+ /* rule 2 can match eol */
908
+ *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
909
+ (yy_c_buf_p) = yy_cp -= 1;
910
+ YY_DO_BEFORE_ACTION; /* set up slice_text again */
911
+ YY_RULE_SETUP
912
+ #line 101 "Scanner.l"
913
+ {
914
+ if(unit->scanPosition(slice_text))
915
+ {
916
+ BEGIN(BOMSCAN);
917
+ }
918
+ }
919
+ YY_BREAK
920
+ case 3:
921
+ *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
922
+ (yy_c_buf_p) = yy_cp -= 1;
923
+ YY_DO_BEFORE_ACTION; /* set up slice_text again */
924
+ YY_RULE_SETUP
925
+ #line 108 "Scanner.l"
926
+ {
927
+ if(unit->scanPosition(slice_text))
928
+ {
929
+ BEGIN(BOMSCAN);
930
+ }
931
+ }
932
+ YY_BREAK
933
+ case 4:
934
+ /* rule 4 can match eol */
935
+ *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
936
+ (yy_c_buf_p) = yy_cp -= 1;
937
+ YY_DO_BEFORE_ACTION; /* set up slice_text again */
938
+ YY_RULE_SETUP
939
+ #line 115 "Scanner.l"
940
+ {
941
+ if(unit->scanPosition(slice_text))
942
+ {
943
+ BEGIN(BOMSCAN);
944
+ }
945
+ }
946
+ YY_BREAK
947
+ case 5:
948
+ YY_RULE_SETUP
949
+ #line 122 "Scanner.l"
950
+ {
951
+ // C++-style comment
952
+ BEGIN(MAINSCAN);
953
+ int c;
954
+ do
955
+ {
956
+ c = yyinput();
957
+ if(c == '\n')
958
+ {
959
+ unit->nextLine();
960
+ }
961
+ }
962
+ while(c != '\n' && c != EOF);
963
+ }
964
+ YY_BREAK
965
+ case 6:
966
+ YY_RULE_SETUP
967
+ #line 137 "Scanner.l"
968
+ {
969
+ // C-style comment
970
+ BEGIN(MAINSCAN);
971
+ string comment = slice_text + 2;
972
+ while(true)
973
+ {
974
+ int c = yyinput();
975
+ if(c == '\n')
976
+ {
977
+ comment += static_cast<char>(c);
978
+ unit->nextLine();
979
+ }
980
+ else if(c == '*')
981
+ {
982
+ int next = yyinput();
983
+ if(next == '/')
984
+ {
985
+ break;
986
+ }
987
+ else
988
+ {
989
+ comment += static_cast<char>(c);
990
+ unput(next);
991
+ }
992
+ }
993
+ else if(c == EOF)
994
+ {
995
+ unit->warning("EOF in comment");
996
+ break;
997
+ }
998
+ else
999
+ {
1000
+ comment += static_cast<char>(c);
1001
+ }
1002
+ }
1003
+ if(!comment.empty() && comment[0] == '*')
1004
+ {
1005
+ unit->setComment(comment);
1006
+ }
1007
+ }
1008
+ YY_BREAK
1009
+ case 7:
1010
+ YY_RULE_SETUP
1011
+ #line 178 "Scanner.l"
1012
+ {
1013
+ BEGIN(MAINSCAN);
1014
+ return ICE_SCOPE_DELIMITER;
1015
+ }
1016
+ YY_BREAK
1017
+ case 8:
1018
+ YY_RULE_SETUP
1019
+ #line 183 "Scanner.l"
1020
+ {
1021
+ BEGIN(MAINSCAN);
1022
+ return ICE_METADATA_OPEN;
1023
+ }
1024
+ YY_BREAK
1025
+ case 9:
1026
+ YY_RULE_SETUP
1027
+ #line 188 "Scanner.l"
1028
+ {
1029
+ BEGIN(MAINSCAN);
1030
+ return ICE_METADATA_CLOSE;
1031
+ }
1032
+ YY_BREAK
1033
+ case 10:
1034
+ YY_RULE_SETUP
1035
+ #line 193 "Scanner.l"
1036
+ {
1037
+ BEGIN(MAINSCAN);
1038
+ return ICE_GLOBAL_METADATA_OPEN;
1039
+ }
1040
+ YY_BREAK
1041
+ case 11:
1042
+ YY_RULE_SETUP
1043
+ #line 198 "Scanner.l"
1044
+ {
1045
+ BEGIN(MAINSCAN);
1046
+ return ICE_GLOBAL_METADATA_CLOSE;
1047
+ }
1048
+ YY_BREAK
1049
+ case 12:
1050
+ /* rule 12 can match eol */
1051
+ YY_RULE_SETUP
1052
+ #line 203 "Scanner.l"
1053
+ {
1054
+ BEGIN(MAINSCAN);
1055
+ StringTokPtr ident = new StringTok;
1056
+ ident->v = *slice_text == '\\' ? slice_text + 1 : slice_text;
1057
+ ident->v.erase(ident->v.find_first_of(" \t\v\n\r\f("));
1058
+ *yylvalp = ident;
1059
+ if(*slice_text == '\\')
1060
+ {
1061
+ return ICE_IDENT_OP;
1062
+ }
1063
+ int st = checkKeyword(ident->v);
1064
+ if(st == ICE_IDENTIFIER)
1065
+ {
1066
+ return ICE_IDENT_OP;
1067
+ }
1068
+ else if(st == ICE_OPTIONAL)
1069
+ {
1070
+ return ICE_OPTIONAL_OP;
1071
+ }
1072
+ else
1073
+ {
1074
+ return ICE_KEYWORD_OP;
1075
+ }
1076
+ }
1077
+ YY_BREAK
1078
+ case 13:
1079
+ YY_RULE_SETUP
1080
+ #line 228 "Scanner.l"
1081
+ {
1082
+ BEGIN(MAINSCAN);
1083
+ StringTokPtr ident = new StringTok;
1084
+ ident->v = *slice_text == '\\' ? slice_text + 1 : slice_text;
1085
+ *yylvalp = ident;
1086
+ return *slice_text == '\\' ? ICE_IDENTIFIER : checkKeyword(ident->v);
1087
+ }
1088
+ YY_BREAK
1089
+ case 14:
1090
+ YY_RULE_SETUP
1091
+ #line 236 "Scanner.l"
1092
+ {
1093
+ BEGIN(MAINSCAN);
1094
+ StringTokPtr str = new StringTok;
1095
+ str->literal = "\"";
1096
+ while(true)
1097
+ {
1098
+ char c = static_cast<char>(yyinput());
1099
+ str->literal += c;
1100
+ if(c == '"')
1101
+ {
1102
+ break;
1103
+ }
1104
+ else if(c == EOF)
1105
+ {
1106
+ unit->error("EOF in string");
1107
+ break;
1108
+ }
1109
+ else if(c == '\n')
1110
+ {
1111
+ unit->error("newline in string");
1112
+ }
1113
+ else if(c == '\\')
1114
+ {
1115
+ char next = static_cast<char>(yyinput());
1116
+ str->literal += next;
1117
+ switch(next)
1118
+ {
1119
+ case '\\':
1120
+ case '"':
1121
+ case '\'':
1122
+ {
1123
+ str->v += next;
1124
+ break;
1125
+ }
1126
+
1127
+ case 'n':
1128
+ {
1129
+ str->v += '\n';
1130
+ break;
1131
+ }
1132
+
1133
+ case 'r':
1134
+ {
1135
+ str->v += '\r';
1136
+ break;
1137
+ }
1138
+
1139
+ case 't':
1140
+ {
1141
+ str->v += '\t';
1142
+ break;
1143
+ }
1144
+
1145
+ case 'v':
1146
+ {
1147
+ str->v += '\v';
1148
+ break;
1149
+ }
1150
+
1151
+ case 'f':
1152
+ {
1153
+ str->v += '\f';
1154
+ break;
1155
+ }
1156
+
1157
+ case 'a':
1158
+ {
1159
+ str->v += '\a';
1160
+ break;
1161
+ }
1162
+
1163
+ case 'b':
1164
+ {
1165
+ str->v += '\b';
1166
+ break;
1167
+ }
1168
+
1169
+ case '?':
1170
+ {
1171
+ str->v += '\?';
1172
+ break;
1173
+ }
1174
+
1175
+ case '0':
1176
+ case '1':
1177
+ case '2':
1178
+ case '3':
1179
+ {
1180
+ static string octalDigits = "01234567";
1181
+ unsigned short us = next - '0';
1182
+ if(octalDigits.find_first_of(next = static_cast<char>(yyinput())) != string::npos)
1183
+ {
1184
+ str->literal += next;
1185
+ us = us * 8 + next - '0';
1186
+ if(octalDigits.find_first_of(next = static_cast<char>(yyinput())) != string::npos)
1187
+ {
1188
+ us = us * 8 + next - '0';
1189
+ }
1190
+ else
1191
+ {
1192
+ unput(next);
1193
+ }
1194
+ }
1195
+ else
1196
+ {
1197
+ unput(next);
1198
+ }
1199
+ if(us == 0)
1200
+ {
1201
+ unit->error("illegal NUL character in string constant");
1202
+ }
1203
+ str->v += static_cast<char>(us);
1204
+ break;
1205
+ }
1206
+ case 'x':
1207
+ {
1208
+ IceUtil::Int64 ull = 0;
1209
+ while(isxdigit(static_cast<unsigned char>(next = static_cast<char>(yyinput()))))
1210
+ {
1211
+ str->literal += next;
1212
+ ull *= 16;
1213
+ if(isdigit(static_cast<unsigned char>(next)))
1214
+ {
1215
+ ull += next - '0';
1216
+ }
1217
+ else if(islower(static_cast<unsigned char>(next)))
1218
+ {
1219
+ ull += next - 'a' + 10;
1220
+ }
1221
+ else
1222
+ {
1223
+ ull += next - 'A' + 10;
1224
+ }
1225
+ }
1226
+ unput(next);
1227
+ if(ull == 0)
1228
+ {
1229
+ unit->error("illegal NUL character in string constant");
1230
+ }
1231
+ str->v += static_cast<char>(ull);
1232
+ break;
1233
+ }
1234
+
1235
+ // TODO: add universal character names
1236
+
1237
+ default:
1238
+ {
1239
+ str->v += c;
1240
+ unput(next);
1241
+ }
1242
+ }
1243
+ }
1244
+ else
1245
+ {
1246
+ str->v += c;
1247
+ }
1248
+ }
1249
+ *yylvalp = str;
1250
+ return ICE_STRING_LITERAL;
1251
+ }
1252
+ YY_BREAK
1253
+ case 15:
1254
+ YY_RULE_SETUP
1255
+ #line 397 "Scanner.l"
1256
+ {
1257
+ BEGIN(MAINSCAN);
1258
+ IntegerTokPtr itp = new IntegerTok;
1259
+ itp->literal = string(slice_text);
1260
+ *yylvalp = itp;
1261
+ if(!IceUtilInternal::stringToInt64(string(slice_text), itp->v))
1262
+ {
1263
+ assert(itp->v != 0);
1264
+ string msg = "integer constant `";
1265
+ msg += slice_text;
1266
+ msg += "' out of range";
1267
+ unit->error(msg);
1268
+ }
1269
+ return ICE_INTEGER_LITERAL;
1270
+ }
1271
+ YY_BREAK
1272
+ case 16:
1273
+ YY_RULE_SETUP
1274
+ #line 413 "Scanner.l"
1275
+ {
1276
+ BEGIN(MAINSCAN);
1277
+ errno = 0;
1278
+ FloatingTokPtr ftp = new FloatingTok;
1279
+ *yylvalp = ftp;
1280
+ string literal(slice_text);
1281
+ ftp->literal = literal;
1282
+ char lastChar = literal[literal.size() - 1];
1283
+ if(lastChar == 'f' || lastChar == 'F')
1284
+ {
1285
+ literal = literal.substr(0, literal.size() - 1); // Clobber trailing 'f' or 'F' suffix
1286
+ }
1287
+ ftp->v = strtod(literal.c_str(), 0);
1288
+ if((ftp->v == HUGE_VAL || ftp->v == -HUGE_VAL) && errno == ERANGE)
1289
+ {
1290
+ string msg = "floating-point constant `";
1291
+ msg += slice_text;
1292
+ msg += "' too large (overflow)";
1293
+ unit->error(msg);
1294
+ }
1295
+ else if(ftp->v == 0 && errno == ERANGE)
1296
+ {
1297
+ string msg = "floating-point constant `";
1298
+ msg += slice_text;
1299
+ msg += "' too small (underflow)";
1300
+ unit->error(msg);
1301
+ }
1302
+ return ICE_FLOATING_POINT_LITERAL;
1303
+ }
1304
+ YY_BREAK
1305
+ case 17:
1306
+ /* rule 17 can match eol */
1307
+ YY_RULE_SETUP
1308
+ #line 443 "Scanner.l"
1309
+ {
1310
+ // Ignore white-space
1311
+
1312
+ if(unit->currentLine() != 0)
1313
+ {
1314
+ BEGIN(MAINSCAN);
1315
+ }
1316
+ if(slice_text[0] == '\n')
1317
+ {
1318
+ unit->nextLine();
1319
+ }
1320
+ }
1321
+ YY_BREAK
1322
+ case 18:
1323
+ YY_RULE_SETUP
1324
+ #line 456 "Scanner.l"
1325
+ {
1326
+ // Ignore UTF-8 BOM, rule only active when parsing start of file.
1327
+
1328
+ BEGIN(MAINSCAN);
1329
+ }
1330
+ YY_BREAK
1331
+ case 19:
1332
+ YY_RULE_SETUP
1333
+ #line 462 "Scanner.l"
1334
+ {
1335
+ BEGIN(MAINSCAN);
1336
+ if(slice_text[0] < 32 || slice_text[0] > 126)
1337
+ {
1338
+ stringstream s;
1339
+ s << "illegal input character: '\\";
1340
+ s.width(3);
1341
+ s.fill('0');
1342
+ s << oct << static_cast<int>(static_cast<unsigned char>(slice_text[0]));
1343
+ s << "'";
1344
+ unit->error(s.str());
1345
+ return BAD_CHAR;
1346
+ }
1347
+ return slice_text[0];
1348
+ }
1349
+ YY_BREAK
1350
+ case 20:
1351
+ YY_RULE_SETUP
1352
+ #line 478 "Scanner.l"
1353
+ ECHO;
1354
+ YY_BREAK
1355
+ #line 1355 "lex.yy.c"
1356
+ case YY_STATE_EOF(INITIAL):
1357
+ case YY_STATE_EOF(BOMSCAN):
1358
+ case YY_STATE_EOF(MAINSCAN):
1359
+ yyterminate();
1360
+
1361
+ case YY_END_OF_BUFFER:
1362
+ {
1363
+ /* Amount of text matched not including the EOB char. */
1364
+ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1365
+
1366
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
1367
+ *yy_cp = (yy_hold_char);
1368
+ YY_RESTORE_YY_MORE_OFFSET
1369
+
1370
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1371
+ {
1372
+ /* We're scanning a new file or input source. It's
1373
+ * possible that this happened because the user
1374
+ * just pointed slice_in at a new source and called
1375
+ * slice_lex(). If so, then we have to assure
1376
+ * consistency between YY_CURRENT_BUFFER and our
1377
+ * globals. Here is the right place to do so, because
1378
+ * this is the first action (other than possibly a
1379
+ * back-up) that will match for the new input source.
1380
+ */
1381
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1382
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = slice_in;
1383
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1384
+ }
1385
+
1386
+ /* Note that here we test for yy_c_buf_p "<=" to the position
1387
+ * of the first EOB in the buffer, since yy_c_buf_p will
1388
+ * already have been incremented past the NUL character
1389
+ * (since all states make transitions on EOB to the
1390
+ * end-of-buffer state). Contrast this with the test
1391
+ * in input().
1392
+ */
1393
+ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1394
+ { /* This was really a NUL. */
1395
+ yy_state_type yy_next_state;
1396
+
1397
+ (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1398
+
1399
+ yy_current_state = yy_get_previous_state( );
1400
+
1401
+ /* Okay, we're now positioned to make the NUL
1402
+ * transition. We couldn't have
1403
+ * yy_get_previous_state() go ahead and do it
1404
+ * for us because it doesn't know how to deal
1405
+ * with the possibility of jamming (and we don't
1406
+ * want to build jamming into it because then it
1407
+ * will run more slowly).
1408
+ */
1409
+
1410
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
1411
+
1412
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1413
+
1414
+ if ( yy_next_state )
1415
+ {
1416
+ /* Consume the NUL. */
1417
+ yy_cp = ++(yy_c_buf_p);
1418
+ yy_current_state = yy_next_state;
1419
+ goto yy_match;
1420
+ }
1421
+
1422
+ else
1423
+ {
1424
+ yy_cp = (yy_last_accepting_cpos);
1425
+ yy_current_state = (yy_last_accepting_state);
1426
+ goto yy_find_action;
1427
+ }
1428
+ }
1429
+
1430
+ else switch ( yy_get_next_buffer( ) )
1431
+ {
1432
+ case EOB_ACT_END_OF_FILE:
1433
+ {
1434
+ (yy_did_buffer_switch_on_eof) = 0;
1435
+
1436
+ if ( slice_wrap( ) )
1437
+ {
1438
+ /* Note: because we've taken care in
1439
+ * yy_get_next_buffer() to have set up
1440
+ * slice_text, we can now set up
1441
+ * yy_c_buf_p so that if some total
1442
+ * hoser (like flex itself) wants to
1443
+ * call the scanner after we return the
1444
+ * YY_NULL, it'll still work - another
1445
+ * YY_NULL will get returned.
1446
+ */
1447
+ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1448
+
1449
+ yy_act = YY_STATE_EOF(YY_START);
1450
+ goto do_action;
1451
+ }
1452
+
1453
+ else
1454
+ {
1455
+ if ( ! (yy_did_buffer_switch_on_eof) )
1456
+ YY_NEW_FILE;
1457
+ }
1458
+ break;
1459
+ }
1460
+
1461
+ case EOB_ACT_CONTINUE_SCAN:
1462
+ (yy_c_buf_p) =
1463
+ (yytext_ptr) + yy_amount_of_matched_text;
1464
+
1465
+ yy_current_state = yy_get_previous_state( );
1466
+
1467
+ yy_cp = (yy_c_buf_p);
1468
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1469
+ goto yy_match;
1470
+
1471
+ case EOB_ACT_LAST_MATCH:
1472
+ (yy_c_buf_p) =
1473
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1474
+
1475
+ yy_current_state = yy_get_previous_state( );
1476
+
1477
+ yy_cp = (yy_c_buf_p);
1478
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1479
+ goto yy_find_action;
1480
+ }
1481
+ break;
1482
+ }
1483
+
1484
+ default:
1485
+ YY_FATAL_ERROR(
1486
+ "fatal flex scanner internal error--no action found" );
1487
+ } /* end of action switch */
1488
+ } /* end of scanning one token */
1489
+ } /* end of slice_lex */
1490
+
1491
+ /* yy_get_next_buffer - try to read in a new buffer
1492
+ *
1493
+ * Returns a code representing an action:
1494
+ * EOB_ACT_LAST_MATCH -
1495
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1496
+ * EOB_ACT_END_OF_FILE - end of file
1497
+ */
1498
+ static int yy_get_next_buffer (void)
1499
+ {
1500
+ register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1501
+ register char *source = (yytext_ptr);
1502
+ register int number_to_move, i;
1503
+ int ret_val;
1504
+
1505
+ if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1506
+ YY_FATAL_ERROR(
1507
+ "fatal flex scanner internal error--end of buffer missed" );
1508
+
1509
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1510
+ { /* Don't try to fill the buffer, so this is an EOF. */
1511
+ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1512
+ {
1513
+ /* We matched a single character, the EOB, so
1514
+ * treat this as a final EOF.
1515
+ */
1516
+ return EOB_ACT_END_OF_FILE;
1517
+ }
1518
+
1519
+ else
1520
+ {
1521
+ /* We matched some text prior to the EOB, first
1522
+ * process it.
1523
+ */
1524
+ return EOB_ACT_LAST_MATCH;
1525
+ }
1526
+ }
1527
+
1528
+ /* Try to read more data. */
1529
+
1530
+ /* First move last chars to start of buffer. */
1531
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1532
+
1533
+ for ( i = 0; i < number_to_move; ++i )
1534
+ *(dest++) = *(source++);
1535
+
1536
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1537
+ /* don't do the read, it's not guaranteed to return an EOF,
1538
+ * just force an EOF
1539
+ */
1540
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1541
+
1542
+ else
1543
+ {
1544
+ int num_to_read =
1545
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1546
+
1547
+ while ( num_to_read <= 0 )
1548
+ { /* Not enough room in the buffer - grow it. */
1549
+
1550
+ /* just a shorter name for the current buffer */
1551
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1552
+
1553
+ int yy_c_buf_p_offset =
1554
+ (int) ((yy_c_buf_p) - b->yy_ch_buf);
1555
+
1556
+ if ( b->yy_is_our_buffer )
1557
+ {
1558
+ int new_size = b->yy_buf_size * 2;
1559
+
1560
+ if ( new_size <= 0 )
1561
+ b->yy_buf_size += b->yy_buf_size / 8;
1562
+ else
1563
+ b->yy_buf_size *= 2;
1564
+
1565
+ b->yy_ch_buf = (char *)
1566
+ /* Include room in for 2 EOB chars. */
1567
+ slice_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1568
+ }
1569
+ else
1570
+ /* Can't grow it, we don't own it. */
1571
+ b->yy_ch_buf = 0;
1572
+
1573
+ if ( ! b->yy_ch_buf )
1574
+ YY_FATAL_ERROR(
1575
+ "fatal error - scanner input buffer overflow" );
1576
+
1577
+ (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1578
+
1579
+ num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1580
+ number_to_move - 1;
1581
+
1582
+ }
1583
+
1584
+ if ( num_to_read > YY_READ_BUF_SIZE )
1585
+ num_to_read = YY_READ_BUF_SIZE;
1586
+
1587
+ /* Read in more data. */
1588
+ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1589
+ (yy_n_chars), (size_t) num_to_read );
1590
+
1591
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1592
+ }
1593
+
1594
+ if ( (yy_n_chars) == 0 )
1595
+ {
1596
+ if ( number_to_move == YY_MORE_ADJ )
1597
+ {
1598
+ ret_val = EOB_ACT_END_OF_FILE;
1599
+ slice_restart(slice_in );
1600
+ }
1601
+
1602
+ else
1603
+ {
1604
+ ret_val = EOB_ACT_LAST_MATCH;
1605
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1606
+ YY_BUFFER_EOF_PENDING;
1607
+ }
1608
+ }
1609
+
1610
+ else
1611
+ ret_val = EOB_ACT_CONTINUE_SCAN;
1612
+
1613
+ if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1614
+ /* Extend the array by 50%, plus the number we really need. */
1615
+ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1616
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) slice_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1617
+ if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1618
+ YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1619
+ }
1620
+
1621
+ (yy_n_chars) += number_to_move;
1622
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1623
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1624
+
1625
+ (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1626
+
1627
+ return ret_val;
1628
+ }
1629
+
1630
+ /* yy_get_previous_state - get the state just before the EOB char was reached */
1631
+
1632
+ static yy_state_type yy_get_previous_state (void)
1633
+ {
1634
+ register yy_state_type yy_current_state;
1635
+ register char *yy_cp;
1636
+
1637
+ yy_current_state = (yy_start);
1638
+ yy_current_state += YY_AT_BOL();
1639
+
1640
+ for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1641
+ {
1642
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1643
+ if ( yy_accept[yy_current_state] )
1644
+ {
1645
+ (yy_last_accepting_state) = yy_current_state;
1646
+ (yy_last_accepting_cpos) = yy_cp;
1647
+ }
1648
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1649
+ {
1650
+ yy_current_state = (int) yy_def[yy_current_state];
1651
+ if ( yy_current_state >= 73 )
1652
+ yy_c = yy_meta[(unsigned int) yy_c];
1653
+ }
1654
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1655
+ }
1656
+
1657
+ return yy_current_state;
1658
+ }
1659
+
1660
+ /* yy_try_NUL_trans - try to make a transition on the NUL character
1661
+ *
1662
+ * synopsis
1663
+ * next_state = yy_try_NUL_trans( current_state );
1664
+ */
1665
+ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1666
+ {
1667
+ register int yy_is_jam;
1668
+ register char *yy_cp = (yy_c_buf_p);
1669
+
1670
+ register YY_CHAR yy_c = 1;
1671
+ if ( yy_accept[yy_current_state] )
1672
+ {
1673
+ (yy_last_accepting_state) = yy_current_state;
1674
+ (yy_last_accepting_cpos) = yy_cp;
1675
+ }
1676
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1677
+ {
1678
+ yy_current_state = (int) yy_def[yy_current_state];
1679
+ if ( yy_current_state >= 73 )
1680
+ yy_c = yy_meta[(unsigned int) yy_c];
1681
+ }
1682
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1683
+ yy_is_jam = (yy_current_state == 72);
1684
+
1685
+ return yy_is_jam ? 0 : yy_current_state;
1686
+ }
1687
+
1688
+ static void yyunput (int c, register char * yy_bp )
1689
+ {
1690
+ register char *yy_cp;
1691
+
1692
+ yy_cp = (yy_c_buf_p);
1693
+
1694
+ /* undo effects of setting up slice_text */
1695
+ *yy_cp = (yy_hold_char);
1696
+
1697
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1698
+ { /* need to shift things up to make room */
1699
+ /* +2 for EOB chars. */
1700
+ register int number_to_move = (yy_n_chars) + 2;
1701
+ register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1702
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1703
+ register char *source =
1704
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1705
+
1706
+ while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1707
+ *--dest = *--source;
1708
+
1709
+ yy_cp += (int) (dest - source);
1710
+ yy_bp += (int) (dest - source);
1711
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1712
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1713
+
1714
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1715
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
1716
+ }
1717
+
1718
+ *--yy_cp = (char) c;
1719
+
1720
+ (yytext_ptr) = yy_bp;
1721
+ (yy_hold_char) = *yy_cp;
1722
+ (yy_c_buf_p) = yy_cp;
1723
+ }
1724
+
1725
+ #ifndef YY_NO_INPUT
1726
+ #ifdef __cplusplus
1727
+ static int yyinput (void)
1728
+ #else
1729
+ static int input (void)
1730
+ #endif
1731
+
1732
+ {
1733
+ int c;
1734
+
1735
+ *(yy_c_buf_p) = (yy_hold_char);
1736
+
1737
+ if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1738
+ {
1739
+ /* yy_c_buf_p now points to the character we want to return.
1740
+ * If this occurs *before* the EOB characters, then it's a
1741
+ * valid NUL; if not, then we've hit the end of the buffer.
1742
+ */
1743
+ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1744
+ /* This was really a NUL. */
1745
+ *(yy_c_buf_p) = '\0';
1746
+
1747
+ else
1748
+ { /* need more input */
1749
+ int offset = (yy_c_buf_p) - (yytext_ptr);
1750
+ ++(yy_c_buf_p);
1751
+
1752
+ switch ( yy_get_next_buffer( ) )
1753
+ {
1754
+ case EOB_ACT_LAST_MATCH:
1755
+ /* This happens because yy_g_n_b()
1756
+ * sees that we've accumulated a
1757
+ * token and flags that we need to
1758
+ * try matching the token before
1759
+ * proceeding. But for input(),
1760
+ * there's no matching to consider.
1761
+ * So convert the EOB_ACT_LAST_MATCH
1762
+ * to EOB_ACT_END_OF_FILE.
1763
+ */
1764
+
1765
+ /* Reset buffer status. */
1766
+ slice_restart(slice_in );
1767
+
1768
+ /*FALLTHROUGH*/
1769
+
1770
+ case EOB_ACT_END_OF_FILE:
1771
+ {
1772
+ if ( slice_wrap( ) )
1773
+ return EOF;
1774
+
1775
+ if ( ! (yy_did_buffer_switch_on_eof) )
1776
+ YY_NEW_FILE;
1777
+ #ifdef __cplusplus
1778
+ return yyinput();
1779
+ #else
1780
+ return input();
1781
+ #endif
1782
+ }
1783
+
1784
+ case EOB_ACT_CONTINUE_SCAN:
1785
+ (yy_c_buf_p) = (yytext_ptr) + offset;
1786
+ break;
1787
+ }
1788
+ }
1789
+ }
1790
+
1791
+ c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1792
+ *(yy_c_buf_p) = '\0'; /* preserve slice_text */
1793
+ (yy_hold_char) = *++(yy_c_buf_p);
1794
+
1795
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
1796
+
1797
+ return c;
1798
+ }
1799
+ #endif /* ifndef YY_NO_INPUT */
1800
+
1801
+ /** Immediately switch to a different input stream.
1802
+ * @param input_file A readable stream.
1803
+ *
1804
+ * @note This function does not reset the start condition to @c INITIAL .
1805
+ */
1806
+ void slice_restart (FILE * input_file )
1807
+ {
1808
+
1809
+ if ( ! YY_CURRENT_BUFFER ){
1810
+ slice_ensure_buffer_stack ();
1811
+ YY_CURRENT_BUFFER_LVALUE =
1812
+ slice__create_buffer(slice_in,YY_BUF_SIZE );
1813
+ }
1814
+
1815
+ slice__init_buffer(YY_CURRENT_BUFFER,input_file );
1816
+ slice__load_buffer_state( );
1817
+ }
1818
+
1819
+ /** Switch to a different input buffer.
1820
+ * @param new_buffer The new input buffer.
1821
+ *
1822
+ */
1823
+ void slice__switch_to_buffer (YY_BUFFER_STATE new_buffer )
1824
+ {
1825
+
1826
+ /* TODO. We should be able to replace this entire function body
1827
+ * with
1828
+ * slice_pop_buffer_state();
1829
+ * slice_push_buffer_state(new_buffer);
1830
+ */
1831
+ slice_ensure_buffer_stack ();
1832
+ if ( YY_CURRENT_BUFFER == new_buffer )
1833
+ return;
1834
+
1835
+ if ( YY_CURRENT_BUFFER )
1836
+ {
1837
+ /* Flush out information for old buffer. */
1838
+ *(yy_c_buf_p) = (yy_hold_char);
1839
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1840
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1841
+ }
1842
+
1843
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
1844
+ slice__load_buffer_state( );
1845
+
1846
+ /* We don't actually know whether we did this switch during
1847
+ * EOF (slice_wrap()) processing, but the only time this flag
1848
+ * is looked at is after slice_wrap() is called, so it's safe
1849
+ * to go ahead and always set it.
1850
+ */
1851
+ (yy_did_buffer_switch_on_eof) = 1;
1852
+ }
1853
+
1854
+ static void slice__load_buffer_state (void)
1855
+ {
1856
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1857
+ (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1858
+ slice_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1859
+ (yy_hold_char) = *(yy_c_buf_p);
1860
+ }
1861
+
1862
+ /** Allocate and initialize an input buffer state.
1863
+ * @param file A readable stream.
1864
+ * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1865
+ *
1866
+ * @return the allocated buffer state.
1867
+ */
1868
+ YY_BUFFER_STATE slice__create_buffer (FILE * file, int size )
1869
+ {
1870
+ YY_BUFFER_STATE b;
1871
+
1872
+ b = (YY_BUFFER_STATE) slice_alloc(sizeof( struct yy_buffer_state ) );
1873
+ if ( ! b )
1874
+ YY_FATAL_ERROR( "out of dynamic memory in slice__create_buffer()" );
1875
+
1876
+ b->yy_buf_size = size;
1877
+
1878
+ /* yy_ch_buf has to be 2 characters longer than the size given because
1879
+ * we need to put in 2 end-of-buffer characters.
1880
+ */
1881
+ b->yy_ch_buf = (char *) slice_alloc(b->yy_buf_size + 2 );
1882
+ if ( ! b->yy_ch_buf )
1883
+ YY_FATAL_ERROR( "out of dynamic memory in slice__create_buffer()" );
1884
+
1885
+ b->yy_is_our_buffer = 1;
1886
+
1887
+ slice__init_buffer(b,file );
1888
+
1889
+ return b;
1890
+ }
1891
+
1892
+ /** Destroy the buffer.
1893
+ * @param b a buffer created with slice__create_buffer()
1894
+ *
1895
+ */
1896
+ void slice__delete_buffer (YY_BUFFER_STATE b )
1897
+ {
1898
+
1899
+ if ( ! b )
1900
+ return;
1901
+
1902
+ if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1903
+ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1904
+
1905
+ if ( b->yy_is_our_buffer )
1906
+ slice_free((void *) b->yy_ch_buf );
1907
+
1908
+ slice_free((void *) b );
1909
+ }
1910
+
1911
+ /* Initializes or reinitializes a buffer.
1912
+ * This function is sometimes called more than once on the same buffer,
1913
+ * such as during a slice_restart() or at EOF.
1914
+ */
1915
+ static void slice__init_buffer (YY_BUFFER_STATE b, FILE * file )
1916
+
1917
+ {
1918
+ int oerrno = errno;
1919
+
1920
+ slice__flush_buffer(b );
1921
+
1922
+ b->yy_input_file = file;
1923
+ b->yy_fill_buffer = 1;
1924
+
1925
+ /* If b is the current buffer, then slice__init_buffer was _probably_
1926
+ * called from slice_restart() or through yy_get_next_buffer.
1927
+ * In that case, we don't want to reset the lineno or column.
1928
+ */
1929
+ if (b != YY_CURRENT_BUFFER){
1930
+ b->yy_bs_lineno = 1;
1931
+ b->yy_bs_column = 0;
1932
+ }
1933
+
1934
+ b->yy_is_interactive = 0;
1935
+
1936
+ errno = oerrno;
1937
+ }
1938
+
1939
+ /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1940
+ * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1941
+ *
1942
+ */
1943
+ void slice__flush_buffer (YY_BUFFER_STATE b )
1944
+ {
1945
+ if ( ! b )
1946
+ return;
1947
+
1948
+ b->yy_n_chars = 0;
1949
+
1950
+ /* We always need two end-of-buffer characters. The first causes
1951
+ * a transition to the end-of-buffer state. The second causes
1952
+ * a jam in that state.
1953
+ */
1954
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1955
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1956
+
1957
+ b->yy_buf_pos = &b->yy_ch_buf[0];
1958
+
1959
+ b->yy_at_bol = 1;
1960
+ b->yy_buffer_status = YY_BUFFER_NEW;
1961
+
1962
+ if ( b == YY_CURRENT_BUFFER )
1963
+ slice__load_buffer_state( );
1964
+ }
1965
+
1966
+ /** Pushes the new state onto the stack. The new state becomes
1967
+ * the current state. This function will allocate the stack
1968
+ * if necessary.
1969
+ * @param new_buffer The new state.
1970
+ *
1971
+ */
1972
+ void slice_push_buffer_state (YY_BUFFER_STATE new_buffer )
1973
+ {
1974
+ if (new_buffer == NULL)
1975
+ return;
1976
+
1977
+ slice_ensure_buffer_stack();
1978
+
1979
+ /* This block is copied from slice__switch_to_buffer. */
1980
+ if ( YY_CURRENT_BUFFER )
1981
+ {
1982
+ /* Flush out information for old buffer. */
1983
+ *(yy_c_buf_p) = (yy_hold_char);
1984
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1985
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1986
+ }
1987
+
1988
+ /* Only push if top exists. Otherwise, replace top. */
1989
+ if (YY_CURRENT_BUFFER)
1990
+ (yy_buffer_stack_top)++;
1991
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
1992
+
1993
+ /* copied from slice__switch_to_buffer. */
1994
+ slice__load_buffer_state( );
1995
+ (yy_did_buffer_switch_on_eof) = 1;
1996
+ }
1997
+
1998
+ /** Removes and deletes the top of the stack, if present.
1999
+ * The next element becomes the new top.
2000
+ *
2001
+ */
2002
+ void slice_pop_buffer_state (void)
2003
+ {
2004
+ if (!YY_CURRENT_BUFFER)
2005
+ return;
2006
+
2007
+ slice__delete_buffer(YY_CURRENT_BUFFER );
2008
+ YY_CURRENT_BUFFER_LVALUE = NULL;
2009
+ if ((yy_buffer_stack_top) > 0)
2010
+ --(yy_buffer_stack_top);
2011
+
2012
+ if (YY_CURRENT_BUFFER) {
2013
+ slice__load_buffer_state( );
2014
+ (yy_did_buffer_switch_on_eof) = 1;
2015
+ }
2016
+ }
2017
+
2018
+ /* Allocates the stack if it does not exist.
2019
+ * Guarantees space for at least one push.
2020
+ */
2021
+ static void slice_ensure_buffer_stack (void)
2022
+ {
2023
+ int num_to_alloc;
2024
+
2025
+ if (!(yy_buffer_stack)) {
2026
+
2027
+ /* First allocation is just for 2 elements, since we don't know if this
2028
+ * scanner will even need a stack. We use 2 instead of 1 to avoid an
2029
+ * immediate realloc on the next call.
2030
+ */
2031
+ num_to_alloc = 1;
2032
+ (yy_buffer_stack) = (struct yy_buffer_state**)slice_alloc
2033
+ (num_to_alloc * sizeof(struct yy_buffer_state*)
2034
+ );
2035
+ if ( ! (yy_buffer_stack) )
2036
+ YY_FATAL_ERROR( "out of dynamic memory in slice_ensure_buffer_stack()" );
2037
+
2038
+ memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2039
+
2040
+ (yy_buffer_stack_max) = num_to_alloc;
2041
+ (yy_buffer_stack_top) = 0;
2042
+ return;
2043
+ }
2044
+
2045
+ if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2046
+
2047
+ /* Increase the buffer to prepare for a possible push. */
2048
+ int grow_size = 8 /* arbitrary grow size */;
2049
+
2050
+ num_to_alloc = (yy_buffer_stack_max) + grow_size;
2051
+ (yy_buffer_stack) = (struct yy_buffer_state**)slice_realloc
2052
+ ((yy_buffer_stack),
2053
+ num_to_alloc * sizeof(struct yy_buffer_state*)
2054
+ );
2055
+ if ( ! (yy_buffer_stack) )
2056
+ YY_FATAL_ERROR( "out of dynamic memory in slice_ensure_buffer_stack()" );
2057
+
2058
+ /* zero only the new slots.*/
2059
+ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2060
+ (yy_buffer_stack_max) = num_to_alloc;
2061
+ }
2062
+ }
2063
+
2064
+ /** Setup the input buffer state to scan directly from a user-specified character buffer.
2065
+ * @param base the character buffer
2066
+ * @param size the size in bytes of the character buffer
2067
+ *
2068
+ * @return the newly allocated buffer state object.
2069
+ */
2070
+ YY_BUFFER_STATE slice__scan_buffer (char * base, yy_size_t size )
2071
+ {
2072
+ YY_BUFFER_STATE b;
2073
+
2074
+ if ( size < 2 ||
2075
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
2076
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
2077
+ /* They forgot to leave room for the EOB's. */
2078
+ return 0;
2079
+
2080
+ b = (YY_BUFFER_STATE) slice_alloc(sizeof( struct yy_buffer_state ) );
2081
+ if ( ! b )
2082
+ YY_FATAL_ERROR( "out of dynamic memory in slice__scan_buffer()" );
2083
+
2084
+ b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2085
+ b->yy_buf_pos = b->yy_ch_buf = base;
2086
+ b->yy_is_our_buffer = 0;
2087
+ b->yy_input_file = 0;
2088
+ b->yy_n_chars = b->yy_buf_size;
2089
+ b->yy_is_interactive = 0;
2090
+ b->yy_at_bol = 1;
2091
+ b->yy_fill_buffer = 0;
2092
+ b->yy_buffer_status = YY_BUFFER_NEW;
2093
+
2094
+ slice__switch_to_buffer(b );
2095
+
2096
+ return b;
2097
+ }
2098
+
2099
+ /** Setup the input buffer state to scan a string. The next call to slice_lex() will
2100
+ * scan from a @e copy of @a str.
2101
+ * @param yystr a NUL-terminated string to scan
2102
+ *
2103
+ * @return the newly allocated buffer state object.
2104
+ * @note If you want to scan bytes that may contain NUL values, then use
2105
+ * slice__scan_bytes() instead.
2106
+ */
2107
+ YY_BUFFER_STATE slice__scan_string (yyconst char * yystr )
2108
+ {
2109
+
2110
+ return slice__scan_bytes(yystr,strlen(yystr) );
2111
+ }
2112
+
2113
+ /** Setup the input buffer state to scan the given bytes. The next call to slice_lex() will
2114
+ * scan from a @e copy of @a bytes.
2115
+ * @param bytes the byte buffer to scan
2116
+ * @param len the number of bytes in the buffer pointed to by @a bytes.
2117
+ *
2118
+ * @return the newly allocated buffer state object.
2119
+ */
2120
+ YY_BUFFER_STATE slice__scan_bytes (yyconst char * yybytes, int _yybytes_len )
2121
+ {
2122
+ YY_BUFFER_STATE b;
2123
+ char *buf;
2124
+ yy_size_t n;
2125
+ int i;
2126
+
2127
+ /* Get memory for full buffer, including space for trailing EOB's. */
2128
+ n = _yybytes_len + 2;
2129
+ buf = (char *) slice_alloc(n );
2130
+ if ( ! buf )
2131
+ YY_FATAL_ERROR( "out of dynamic memory in slice__scan_bytes()" );
2132
+
2133
+ for ( i = 0; i < _yybytes_len; ++i )
2134
+ buf[i] = yybytes[i];
2135
+
2136
+ buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2137
+
2138
+ b = slice__scan_buffer(buf,n );
2139
+ if ( ! b )
2140
+ YY_FATAL_ERROR( "bad buffer in slice__scan_bytes()" );
2141
+
2142
+ /* It's okay to grow etc. this buffer, and we should throw it
2143
+ * away when we're done.
2144
+ */
2145
+ b->yy_is_our_buffer = 1;
2146
+
2147
+ return b;
2148
+ }
2149
+
2150
+ #ifndef YY_EXIT_FAILURE
2151
+ #define YY_EXIT_FAILURE 2
2152
+ #endif
2153
+
2154
+ static void yy_fatal_error (yyconst char* msg )
2155
+ {
2156
+ (void) fprintf( stderr, "%s\n", msg );
2157
+ exit( YY_EXIT_FAILURE );
2158
+ }
2159
+
2160
+ /* Redefine yyless() so it works in section 3 code. */
2161
+
2162
+ #undef yyless
2163
+ #define yyless(n) \
2164
+ do \
2165
+ { \
2166
+ /* Undo effects of setting up slice_text. */ \
2167
+ int yyless_macro_arg = (n); \
2168
+ YY_LESS_LINENO(yyless_macro_arg);\
2169
+ slice_text[slice_leng] = (yy_hold_char); \
2170
+ (yy_c_buf_p) = slice_text + yyless_macro_arg; \
2171
+ (yy_hold_char) = *(yy_c_buf_p); \
2172
+ *(yy_c_buf_p) = '\0'; \
2173
+ slice_leng = yyless_macro_arg; \
2174
+ } \
2175
+ while ( 0 )
2176
+
2177
+ /* Accessor methods (get/set functions) to struct members. */
2178
+
2179
+ /** Get the current line number.
2180
+ *
2181
+ */
2182
+ int slice_get_lineno (void)
2183
+ {
2184
+
2185
+ return slice_lineno;
2186
+ }
2187
+
2188
+ /** Get the input stream.
2189
+ *
2190
+ */
2191
+ FILE *slice_get_in (void)
2192
+ {
2193
+ return slice_in;
2194
+ }
2195
+
2196
+ /** Get the output stream.
2197
+ *
2198
+ */
2199
+ FILE *slice_get_out (void)
2200
+ {
2201
+ return slice_out;
2202
+ }
2203
+
2204
+ /** Get the length of the current token.
2205
+ *
2206
+ */
2207
+ int slice_get_leng (void)
2208
+ {
2209
+ return slice_leng;
2210
+ }
2211
+
2212
+ /** Get the current token.
2213
+ *
2214
+ */
2215
+
2216
+ char *slice_get_text (void)
2217
+ {
2218
+ return slice_text;
2219
+ }
2220
+
2221
+ /** Set the current line number.
2222
+ * @param line_number
2223
+ *
2224
+ */
2225
+ void slice_set_lineno (int line_number )
2226
+ {
2227
+
2228
+ slice_lineno = line_number;
2229
+ }
2230
+
2231
+ /** Set the input stream. This does not discard the current
2232
+ * input buffer.
2233
+ * @param in_str A readable stream.
2234
+ *
2235
+ * @see slice__switch_to_buffer
2236
+ */
2237
+ void slice_set_in (FILE * in_str )
2238
+ {
2239
+ slice_in = in_str ;
2240
+ }
2241
+
2242
+ void slice_set_out (FILE * out_str )
2243
+ {
2244
+ slice_out = out_str ;
2245
+ }
2246
+
2247
+ int slice_get_debug (void)
2248
+ {
2249
+ return slice__flex_debug;
2250
+ }
2251
+
2252
+ void slice_set_debug (int bdebug )
2253
+ {
2254
+ slice__flex_debug = bdebug ;
2255
+ }
2256
+
2257
+ static int yy_init_globals (void)
2258
+ {
2259
+ /* Initialization is the same as for the non-reentrant scanner.
2260
+ * This function is called from slice_lex_destroy(), so don't allocate here.
2261
+ */
2262
+
2263
+ (yy_buffer_stack) = 0;
2264
+ (yy_buffer_stack_top) = 0;
2265
+ (yy_buffer_stack_max) = 0;
2266
+ (yy_c_buf_p) = (char *) 0;
2267
+ (yy_init) = 0;
2268
+ (yy_start) = 0;
2269
+
2270
+ /* Defined in main.c */
2271
+ #ifdef YY_STDINIT
2272
+ slice_in = stdin;
2273
+ slice_out = stdout;
2274
+ #else
2275
+ slice_in = (FILE *) 0;
2276
+ slice_out = (FILE *) 0;
2277
+ #endif
2278
+
2279
+ /* For future reference: Set errno on error, since we are called by
2280
+ * slice_lex_init()
2281
+ */
2282
+ return 0;
2283
+ }
2284
+
2285
+ /* slice_lex_destroy is for both reentrant and non-reentrant scanners. */
2286
+ int slice_lex_destroy (void)
2287
+ {
2288
+
2289
+ /* Pop the buffer stack, destroying each element. */
2290
+ while(YY_CURRENT_BUFFER){
2291
+ slice__delete_buffer(YY_CURRENT_BUFFER );
2292
+ YY_CURRENT_BUFFER_LVALUE = NULL;
2293
+ slice_pop_buffer_state();
2294
+ }
2295
+
2296
+ /* Destroy the stack itself. */
2297
+ slice_free((yy_buffer_stack) );
2298
+ (yy_buffer_stack) = NULL;
2299
+
2300
+ /* Reset the globals. This is important in a non-reentrant scanner so the next time
2301
+ * slice_lex() is called, initialization will occur. */
2302
+ yy_init_globals( );
2303
+
2304
+ return 0;
2305
+ }
2306
+
2307
+ /*
2308
+ * Internal utility routines.
2309
+ */
2310
+
2311
+ #ifndef yytext_ptr
2312
+ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
2313
+ {
2314
+ register int i;
2315
+ for ( i = 0; i < n; ++i )
2316
+ s1[i] = s2[i];
2317
+ }
2318
+ #endif
2319
+
2320
+ #ifdef YY_NEED_STRLEN
2321
+ static int yy_flex_strlen (yyconst char * s )
2322
+ {
2323
+ register int n;
2324
+ for ( n = 0; s[n]; ++n )
2325
+ ;
2326
+
2327
+ return n;
2328
+ }
2329
+ #endif
2330
+
2331
+ void *slice_alloc (yy_size_t size )
2332
+ {
2333
+ return (void *) malloc( size );
2334
+ }
2335
+
2336
+ void *slice_realloc (void * ptr, yy_size_t size )
2337
+ {
2338
+ /* The cast to (char *) in the following accommodates both
2339
+ * implementations that use char* generic pointers, and those
2340
+ * that use void* generic pointers. It works with the latter
2341
+ * because both ANSI C and C++ allow castless assignment from
2342
+ * any pointer type to void*, and deal with argument conversions
2343
+ * as though doing an assignment.
2344
+ */
2345
+ return (void *) realloc( (char *) ptr, size );
2346
+ }
2347
+
2348
+ void slice_free (void * ptr )
2349
+ {
2350
+ free( (char *) ptr ); /* see slice_realloc() for (char *) cast */
2351
+ }
2352
+
2353
+ #define YYTABLES_NAME "yytables"
2354
+
2355
+ #line 478 "Scanner.l"
2356
+
2357
+
2358
+
2359
+ namespace Slice {
2360
+
2361
+ //
2362
+ // initScanner() fills the keyword map with all keyword-token pairs.
2363
+ //
2364
+
2365
+ void
2366
+ initScanner()
2367
+ {
2368
+ keywordMap["module"] = ICE_MODULE;
2369
+ keywordMap["class"] = ICE_CLASS;
2370
+ keywordMap["interface"] = ICE_INTERFACE;
2371
+ keywordMap["exception"] = ICE_EXCEPTION;
2372
+ keywordMap["struct"] = ICE_STRUCT;
2373
+ keywordMap["sequence"] = ICE_SEQUENCE;
2374
+ keywordMap["dictionary"] = ICE_DICTIONARY;
2375
+ keywordMap["enum"] = ICE_ENUM;
2376
+ keywordMap["out"] = ICE_OUT;
2377
+ keywordMap["extends"] = ICE_EXTENDS;
2378
+ keywordMap["implements"] = ICE_IMPLEMENTS;
2379
+ keywordMap["throws"] = ICE_THROWS;
2380
+ keywordMap["void"] = ICE_VOID;
2381
+ keywordMap["byte"] = ICE_BYTE;
2382
+ keywordMap["bool"] = ICE_BOOL;
2383
+ keywordMap["short"] = ICE_SHORT;
2384
+ keywordMap["int"] = ICE_INT;
2385
+ keywordMap["long"] = ICE_LONG;
2386
+ keywordMap["float"] = ICE_FLOAT;
2387
+ keywordMap["double"] = ICE_DOUBLE;
2388
+ keywordMap["string"] = ICE_STRING;
2389
+ keywordMap["Object"] = ICE_OBJECT;
2390
+ keywordMap["LocalObject"] = ICE_LOCAL_OBJECT;
2391
+ keywordMap["local"] = ICE_LOCAL;
2392
+ keywordMap["const"] = ICE_CONST;
2393
+ keywordMap["false"] = ICE_FALSE;
2394
+ keywordMap["true"] = ICE_TRUE;
2395
+ keywordMap["idempotent"] = ICE_IDEMPOTENT;
2396
+ keywordMap["optional"] = ICE_OPTIONAL;
2397
+ }
2398
+
2399
+ //
2400
+ // Check if an identifier looks like a keyword.
2401
+ // If the identifier is a keyword, return the
2402
+ // corresponding keyword token; otherwise, return
2403
+ // an identifier token.
2404
+ //
2405
+
2406
+ int
2407
+ checkKeyword(string& id)
2408
+ {
2409
+ StringTokenMap::const_iterator pos = keywordMap.find(id);
2410
+ if(pos != keywordMap.end())
2411
+ {
2412
+ if(pos->first != id)
2413
+ {
2414
+ string msg;
2415
+ msg = "illegal identifier: `" + id + "' differs from keyword `";
2416
+ msg += pos->first + "' only in capitalization";
2417
+ unit->error(msg);
2418
+ id = pos->first;
2419
+ }
2420
+ return pos->second;
2421
+ }
2422
+ return ICE_IDENTIFIER;
2423
+ }
2424
+
2425
+ }
2426
+