zeroc-ice 3.7.9.1 → 3.8.0

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 (1215) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +575 -0
  3. data/dist/IceRuby/Communicator.h +19 -0
  4. data/dist/IceRuby/Config.h +77 -0
  5. data/dist/IceRuby/Connection.cpp +428 -0
  6. data/dist/IceRuby/Connection.h +20 -0
  7. data/dist/IceRuby/DefaultSliceLoader.cpp +45 -0
  8. data/dist/IceRuby/DefaultSliceLoader.h +25 -0
  9. data/dist/IceRuby/Endpoint.cpp +342 -0
  10. data/dist/IceRuby/Endpoint.h +18 -0
  11. data/dist/IceRuby/ImplicitContext.cpp +143 -0
  12. data/dist/IceRuby/ImplicitContext.h +16 -0
  13. data/dist/IceRuby/Init.cpp +36 -0
  14. data/dist/IceRuby/Logger.cpp +146 -0
  15. data/dist/IceRuby/Logger.h +19 -0
  16. data/dist/IceRuby/Operation.cpp +623 -0
  17. data/dist/IceRuby/Operation.h +28 -0
  18. data/dist/IceRuby/Properties.cpp +413 -0
  19. data/dist/IceRuby/Properties.h +16 -0
  20. data/dist/IceRuby/Proxy.cpp +926 -0
  21. data/dist/IceRuby/Proxy.h +21 -0
  22. data/dist/IceRuby/RubySliceLoader.cpp +39 -0
  23. data/dist/IceRuby/RubySliceLoader.h +27 -0
  24. data/dist/IceRuby/Slice.cpp +199 -0
  25. data/dist/IceRuby/Slice.h +13 -0
  26. data/dist/IceRuby/Types.cpp +3133 -0
  27. data/dist/IceRuby/Types.h +533 -0
  28. data/dist/IceRuby/Util.cpp +553 -0
  29. data/dist/IceRuby/Util.h +485 -0
  30. data/dist/ice/cpp/include/Ice/AsyncResponseHandler.h +85 -0
  31. data/dist/ice/cpp/include/Ice/BatchRequest.h +39 -0
  32. data/dist/ice/cpp/include/Ice/BatchRequestQueueF.h +14 -0
  33. data/dist/ice/cpp/include/Ice/Buffer.h +159 -0
  34. data/dist/ice/cpp/include/Ice/Communicator.h +411 -0
  35. data/dist/ice/cpp/include/Ice/CommunicatorF.h +16 -0
  36. data/dist/ice/cpp/include/Ice/Config.h +60 -0
  37. data/dist/ice/cpp/include/Ice/Connection.h +410 -0
  38. data/dist/ice/cpp/include/Ice/ConnectionF.h +36 -0
  39. data/dist/ice/cpp/include/Ice/ConnectionIF.h +16 -0
  40. data/dist/ice/cpp/include/Ice/CtrlCHandler.h +56 -0
  41. data/dist/ice/cpp/include/Ice/Current.h +60 -0
  42. data/dist/ice/cpp/include/Ice/DefaultSliceLoader.h +160 -0
  43. data/dist/ice/cpp/include/Ice/Demangle.h +17 -0
  44. data/dist/ice/cpp/include/Ice/Endpoint.h +298 -0
  45. data/dist/ice/cpp/include/Ice/EndpointF.h +44 -0
  46. data/dist/ice/cpp/include/Ice/EndpointSelectionType.h +21 -0
  47. data/dist/ice/cpp/include/Ice/Exception.h +56 -0
  48. data/dist/ice/cpp/include/Ice/FacetMap.h +16 -0
  49. data/dist/ice/cpp/include/Ice/Format.h +22 -0
  50. data/dist/ice/cpp/include/Ice/Ice.h +60 -0
  51. data/dist/ice/cpp/include/Ice/IconvStringConverter.h +216 -0
  52. data/dist/ice/cpp/include/Ice/ImplicitContext.h +76 -0
  53. data/dist/ice/cpp/include/Ice/IncomingRequest.h +75 -0
  54. data/dist/ice/cpp/include/Ice/Initialize.h +143 -0
  55. data/dist/ice/cpp/include/Ice/InputStream.h +942 -0
  56. data/dist/ice/cpp/include/Ice/InstanceF.h +14 -0
  57. data/dist/ice/cpp/include/Ice/Instrumentation.h +319 -0
  58. data/dist/ice/cpp/include/Ice/LocalException.h +58 -0
  59. data/dist/ice/cpp/include/Ice/LocalExceptions.h +870 -0
  60. data/dist/ice/cpp/include/Ice/Logger.h +62 -0
  61. data/dist/ice/cpp/include/Ice/LoggerUtil.h +162 -0
  62. data/dist/ice/cpp/include/Ice/MarshaledResult.h +50 -0
  63. data/dist/ice/cpp/include/Ice/NativePropertiesAdmin.h +54 -0
  64. data/dist/ice/cpp/include/Ice/Object.h +168 -0
  65. data/dist/ice/cpp/include/Ice/ObjectAdapter.h +324 -0
  66. data/dist/ice/cpp/include/Ice/ObjectAdapterF.h +16 -0
  67. data/dist/ice/cpp/include/Ice/ObjectF.h +16 -0
  68. data/dist/ice/cpp/include/Ice/ObserverHelper.h +164 -0
  69. data/dist/ice/cpp/include/Ice/OutgoingAsync.h +512 -0
  70. data/dist/ice/cpp/include/Ice/OutgoingResponse.h +129 -0
  71. data/dist/ice/cpp/include/Ice/OutputStream.h +872 -0
  72. data/dist/ice/cpp/include/Ice/Plugin.h +73 -0
  73. data/dist/ice/cpp/include/Ice/PluginFactory.h +77 -0
  74. data/dist/ice/cpp/include/Ice/PopDisableWarnings.h +16 -0
  75. data/dist/ice/cpp/include/Ice/Properties.h +307 -0
  76. data/dist/ice/cpp/include/Ice/PropertiesF.h +19 -0
  77. data/dist/ice/cpp/include/Ice/Proxy.h +742 -0
  78. data/dist/ice/cpp/include/Ice/ProxyF.h +11 -0
  79. data/dist/ice/cpp/include/Ice/ProxyFunctions.h +209 -0
  80. data/dist/ice/cpp/include/Ice/PushDisableWarnings.h +29 -0
  81. data/dist/ice/cpp/include/Ice/ReferenceF.h +14 -0
  82. data/dist/ice/cpp/include/Ice/RequestHandlerF.h +20 -0
  83. data/dist/ice/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +268 -0
  84. data/dist/ice/cpp/include/Ice/SSL/Config.h +54 -0
  85. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfo.h +107 -0
  86. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfoF.h +39 -0
  87. data/dist/ice/cpp/include/Ice/SSL/EndpointInfo.h +40 -0
  88. data/dist/ice/cpp/include/Ice/SSL/SSLException.h +32 -0
  89. data/dist/ice/cpp/include/Ice/SSL/ServerAuthenticationOptions.h +278 -0
  90. data/dist/ice/cpp/include/Ice/ServantLocator.h +51 -0
  91. data/dist/ice/cpp/include/Ice/Service.h +219 -0
  92. data/dist/ice/cpp/include/Ice/SliceLoader.h +67 -0
  93. data/dist/ice/cpp/include/Ice/SlicedData.h +125 -0
  94. data/dist/ice/cpp/include/Ice/SlicedDataF.h +30 -0
  95. data/dist/ice/cpp/include/Ice/StreamHelpers.h +652 -0
  96. data/dist/ice/cpp/include/Ice/StreamableTraits.h +291 -0
  97. data/dist/ice/cpp/include/Ice/StringConverter.h +167 -0
  98. data/dist/ice/cpp/include/Ice/StringUtil.h +114 -0
  99. data/dist/ice/cpp/include/Ice/TimerTask.h +24 -0
  100. data/dist/ice/cpp/include/Ice/TupleCompare.h +103 -0
  101. data/dist/ice/cpp/include/Ice/UUID.h +16 -0
  102. data/dist/ice/cpp/include/Ice/UserException.h +46 -0
  103. data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +15 -0
  104. data/dist/ice/cpp/include/Ice/Value.h +127 -0
  105. data/dist/ice/cpp/include/Ice/ValueF.h +16 -0
  106. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +28 -0
  107. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +28 -0
  108. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +70 -0
  109. data/dist/ice/cpp/include/generated/Ice/Context.h +40 -0
  110. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +74 -0
  111. data/dist/ice/cpp/include/generated/Ice/Identity.h +108 -0
  112. data/dist/ice/cpp/include/generated/Ice/Locator.h +542 -0
  113. data/dist/ice/cpp/include/generated/Ice/LocatorRegistry.h +443 -0
  114. data/dist/ice/cpp/include/generated/Ice/Metrics.h +1103 -0
  115. data/dist/ice/cpp/include/generated/Ice/OperationMode.h +73 -0
  116. data/dist/ice/cpp/include/generated/Ice/Process.h +245 -0
  117. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +314 -0
  118. data/dist/ice/cpp/include/generated/Ice/PropertyDict.h +39 -0
  119. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +724 -0
  120. data/dist/ice/cpp/include/generated/Ice/ReplyStatus.h +94 -0
  121. data/dist/ice/cpp/include/generated/Ice/Router.h +496 -0
  122. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +37 -0
  123. data/dist/ice/cpp/include/generated/Ice/Version.h +112 -0
  124. data/dist/ice/cpp/include/generated/IceDiscovery/Lookup.h +498 -0
  125. data/dist/ice/cpp/include/generated/IceLocatorDiscovery/Lookup.h +387 -0
  126. data/dist/ice/cpp/src/Ice/Acceptor.h +41 -0
  127. data/dist/ice/cpp/src/Ice/AcceptorF.h +17 -0
  128. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories.h +16 -0
  129. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_all.cpp +43 -0
  130. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_min.cpp +17 -0
  131. data/dist/ice/cpp/src/Ice/ArgVector.cpp +58 -0
  132. data/dist/ice/cpp/src/Ice/ArgVector.h +30 -0
  133. data/dist/ice/cpp/src/Ice/Base64.cpp +263 -0
  134. data/dist/ice/cpp/src/Ice/Base64.h +26 -0
  135. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +199 -0
  136. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +49 -0
  137. data/dist/ice/cpp/src/Ice/Buffer.cpp +187 -0
  138. data/dist/ice/cpp/src/Ice/CheckIdentity.h +21 -0
  139. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +373 -0
  140. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.h +65 -0
  141. data/dist/ice/cpp/src/Ice/Communicator.cpp +399 -0
  142. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.cpp +140 -0
  143. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.h +39 -0
  144. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.cpp +227 -0
  145. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.h +51 -0
  146. data/dist/ice/cpp/src/Ice/ConnectRequestHandlerF.h +14 -0
  147. data/dist/ice/cpp/src/Ice/Connection.cpp +44 -0
  148. data/dist/ice/cpp/src/Ice/ConnectionFactory.cpp +1758 -0
  149. data/dist/ice/cpp/src/Ice/ConnectionFactory.h +264 -0
  150. data/dist/ice/cpp/src/Ice/ConnectionFactoryF.h +17 -0
  151. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +3563 -0
  152. data/dist/ice/cpp/src/Ice/ConnectionI.h +429 -0
  153. data/dist/ice/cpp/src/Ice/ConnectionOptions.h +22 -0
  154. data/dist/ice/cpp/src/Ice/Connector.h +38 -0
  155. data/dist/ice/cpp/src/Ice/ConnectorF.h +14 -0
  156. data/dist/ice/cpp/src/Ice/ConsoleUtil.cpp +136 -0
  157. data/dist/ice/cpp/src/Ice/ConsoleUtil.h +79 -0
  158. data/dist/ice/cpp/src/Ice/CtrlCHandler.cpp +189 -0
  159. data/dist/ice/cpp/src/Ice/Current.cpp +29 -0
  160. data/dist/ice/cpp/src/Ice/DLLMain.cpp +40 -0
  161. data/dist/ice/cpp/src/Ice/DefaultSliceLoader.cpp +39 -0
  162. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +81 -0
  163. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.h +38 -0
  164. data/dist/ice/cpp/src/Ice/DefaultsAndOverridesF.h +14 -0
  165. data/dist/ice/cpp/src/Ice/Demangle.cpp +25 -0
  166. data/dist/ice/cpp/src/Ice/DisableWarnings.h +31 -0
  167. data/dist/ice/cpp/src/Ice/DynamicLibrary.cpp +216 -0
  168. data/dist/ice/cpp/src/Ice/DynamicLibrary.h +91 -0
  169. data/dist/ice/cpp/src/Ice/Endian.h +40 -0
  170. data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +165 -0
  171. data/dist/ice/cpp/src/Ice/EndpointFactory.h +96 -0
  172. data/dist/ice/cpp/src/Ice/EndpointFactoryF.h +14 -0
  173. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.cpp +180 -0
  174. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.h +42 -0
  175. data/dist/ice/cpp/src/Ice/EndpointFactoryManagerF.h +14 -0
  176. data/dist/ice/cpp/src/Ice/EndpointI.cpp +128 -0
  177. data/dist/ice/cpp/src/Ice/EndpointI.h +150 -0
  178. data/dist/ice/cpp/src/Ice/EndpointIF.h +21 -0
  179. data/dist/ice/cpp/src/Ice/EventHandler.cpp +9 -0
  180. data/dist/ice/cpp/src/Ice/EventHandler.h +71 -0
  181. data/dist/ice/cpp/src/Ice/EventHandlerF.h +14 -0
  182. data/dist/ice/cpp/src/Ice/Exception.cpp +5 -0
  183. data/dist/ice/cpp/src/Ice/FileUtil.cpp +476 -0
  184. data/dist/ice/cpp/src/Ice/FileUtil.h +152 -0
  185. data/dist/ice/cpp/src/Ice/FixedRequestHandler.cpp +34 -0
  186. data/dist/ice/cpp/src/Ice/FixedRequestHandler.h +29 -0
  187. data/dist/ice/cpp/src/Ice/HashUtil.h +67 -0
  188. data/dist/ice/cpp/src/Ice/HttpParser.cpp +684 -0
  189. data/dist/ice/cpp/src/Ice/HttpParser.h +112 -0
  190. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +593 -0
  191. data/dist/ice/cpp/src/Ice/IPEndpointI.h +106 -0
  192. data/dist/ice/cpp/src/Ice/IPEndpointIF.h +17 -0
  193. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.cpp +172 -0
  194. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.h +89 -0
  195. data/dist/ice/cpp/src/Ice/ImplicitContext.cpp +109 -0
  196. data/dist/ice/cpp/src/Ice/IncomingRequest.cpp +66 -0
  197. data/dist/ice/cpp/src/Ice/Initialize.cpp +160 -0
  198. data/dist/ice/cpp/src/Ice/InputStream.cpp +2206 -0
  199. data/dist/ice/cpp/src/Ice/Instance.cpp +1956 -0
  200. data/dist/ice/cpp/src/Ice/Instance.h +225 -0
  201. data/dist/ice/cpp/src/Ice/InstrumentationI.cpp +959 -0
  202. data/dist/ice/cpp/src/Ice/InstrumentationI.h +235 -0
  203. data/dist/ice/cpp/src/Ice/LocalException.cpp +518 -0
  204. data/dist/ice/cpp/src/Ice/LocalExceptions.cpp +577 -0
  205. data/dist/ice/cpp/src/Ice/LocatorInfo.cpp +851 -0
  206. data/dist/ice/cpp/src/Ice/LocatorInfo.h +176 -0
  207. data/dist/ice/cpp/src/Ice/LocatorInfoF.h +20 -0
  208. data/dist/ice/cpp/src/Ice/LoggerAdminI.cpp +774 -0
  209. data/dist/ice/cpp/src/Ice/LoggerAdminI.h +31 -0
  210. data/dist/ice/cpp/src/Ice/LoggerI.cpp +234 -0
  211. data/dist/ice/cpp/src/Ice/LoggerI.h +47 -0
  212. data/dist/ice/cpp/src/Ice/LoggerMiddleware.cpp +176 -0
  213. data/dist/ice/cpp/src/Ice/LoggerMiddleware.h +42 -0
  214. data/dist/ice/cpp/src/Ice/LoggerUtil.cpp +76 -0
  215. data/dist/ice/cpp/src/Ice/MarshaledResult.cpp +20 -0
  216. data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +608 -0
  217. data/dist/ice/cpp/src/Ice/MetricsAdminI.h +600 -0
  218. data/dist/ice/cpp/src/Ice/MetricsFunctional.h +92 -0
  219. data/dist/ice/cpp/src/Ice/MetricsObserverI.h +587 -0
  220. data/dist/ice/cpp/src/Ice/NativePropertiesAdmin.cpp +185 -0
  221. data/dist/ice/cpp/src/Ice/Network.cpp +1927 -0
  222. data/dist/ice/cpp/src/Ice/Network.h +265 -0
  223. data/dist/ice/cpp/src/Ice/NetworkF.h +11 -0
  224. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +306 -0
  225. data/dist/ice/cpp/src/Ice/NetworkProxy.h +67 -0
  226. data/dist/ice/cpp/src/Ice/NetworkProxyF.h +14 -0
  227. data/dist/ice/cpp/src/Ice/OSLogLoggerI.cpp +55 -0
  228. data/dist/ice/cpp/src/Ice/OSLogLoggerI.h +35 -0
  229. data/dist/ice/cpp/src/Ice/Object.cpp +249 -0
  230. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +348 -0
  231. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.h +53 -0
  232. data/dist/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +14 -0
  233. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +1383 -0
  234. data/dist/ice/cpp/src/Ice/ObjectAdapterI.h +163 -0
  235. data/dist/ice/cpp/src/Ice/ObserverHelper.cpp +75 -0
  236. data/dist/ice/cpp/src/Ice/ObserverMiddleware.cpp +96 -0
  237. data/dist/ice/cpp/src/Ice/ObserverMiddleware.h +25 -0
  238. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.cpp +368 -0
  239. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.h +66 -0
  240. data/dist/ice/cpp/src/Ice/Options.cpp +980 -0
  241. data/dist/ice/cpp/src/Ice/Options.h +119 -0
  242. data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +1106 -0
  243. data/dist/ice/cpp/src/Ice/OutgoingResponse.cpp +276 -0
  244. data/dist/ice/cpp/src/Ice/OutputStream.cpp +1454 -0
  245. data/dist/ice/cpp/src/Ice/OutputUtil.cpp +344 -0
  246. data/dist/ice/cpp/src/Ice/OutputUtil.h +173 -0
  247. data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +344 -0
  248. data/dist/ice/cpp/src/Ice/PluginManagerI.h +54 -0
  249. data/dist/ice/cpp/src/Ice/Properties.cpp +931 -0
  250. data/dist/ice/cpp/src/Ice/PropertyNames.cpp +606 -0
  251. data/dist/ice/cpp/src/Ice/PropertyNames.h +63 -0
  252. data/dist/ice/cpp/src/Ice/PropertyUtil.cpp +103 -0
  253. data/dist/ice/cpp/src/Ice/PropertyUtil.h +31 -0
  254. data/dist/ice/cpp/src/Ice/Protocol.cpp +159 -0
  255. data/dist/ice/cpp/src/Ice/Protocol.h +116 -0
  256. data/dist/ice/cpp/src/Ice/ProtocolInstance.cpp +186 -0
  257. data/dist/ice/cpp/src/Ice/ProtocolInstance.h +74 -0
  258. data/dist/ice/cpp/src/Ice/ProtocolInstanceF.h +14 -0
  259. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +29 -0
  260. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.h +35 -0
  261. data/dist/ice/cpp/src/Ice/Proxy.cpp +541 -0
  262. data/dist/ice/cpp/src/Ice/ProxyAsync.cpp +684 -0
  263. data/dist/ice/cpp/src/Ice/ProxyFunctions.cpp +90 -0
  264. data/dist/ice/cpp/src/Ice/PushDisableDeprecatedWarnings.h +15 -0
  265. data/dist/ice/cpp/src/Ice/Random.cpp +29 -0
  266. data/dist/ice/cpp/src/Ice/Random.h +23 -0
  267. data/dist/ice/cpp/src/Ice/Reference.cpp +1584 -0
  268. data/dist/ice/cpp/src/Ice/Reference.h +339 -0
  269. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +830 -0
  270. data/dist/ice/cpp/src/Ice/ReferenceFactory.h +58 -0
  271. data/dist/ice/cpp/src/Ice/ReferenceFactoryF.h +14 -0
  272. data/dist/ice/cpp/src/Ice/RequestHandler.cpp +28 -0
  273. data/dist/ice/cpp/src/Ice/RequestHandler.h +53 -0
  274. data/dist/ice/cpp/src/Ice/RequestHandlerCache.cpp +76 -0
  275. data/dist/ice/cpp/src/Ice/RequestHandlerCache.h +33 -0
  276. data/dist/ice/cpp/src/Ice/ResourceConfig.h +27 -0
  277. data/dist/ice/cpp/src/Ice/RetryQueue.cpp +151 -0
  278. data/dist/ice/cpp/src/Ice/RetryQueue.h +59 -0
  279. data/dist/ice/cpp/src/Ice/RetryQueueF.h +14 -0
  280. data/dist/ice/cpp/src/Ice/RouterInfo.cpp +275 -0
  281. data/dist/ice/cpp/src/Ice/RouterInfo.h +95 -0
  282. data/dist/ice/cpp/src/Ice/RouterInfoF.h +17 -0
  283. data/dist/ice/cpp/src/Ice/SHA1.cpp +195 -0
  284. data/dist/ice/cpp/src/Ice/SHA1.h +35 -0
  285. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.cpp +89 -0
  286. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.h +87 -0
  287. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.cpp +513 -0
  288. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.h +40 -0
  289. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngineF.h +13 -0
  290. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp +635 -0
  291. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.h +80 -0
  292. data/dist/ice/cpp/src/Ice/SSL/RFC2253.cpp +487 -0
  293. data/dist/ice/cpp/src/Ice/SSL/RFC2253.h +58 -0
  294. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.cpp +124 -0
  295. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.h +52 -0
  296. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.cpp +92 -0
  297. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.h +38 -0
  298. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.cpp +377 -0
  299. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.h +84 -0
  300. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.cpp +115 -0
  301. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.h +72 -0
  302. data/dist/ice/cpp/src/Ice/SSL/SSLEngineF.h +14 -0
  303. data/dist/ice/cpp/src/Ice/SSL/SSLException.cpp +18 -0
  304. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.cpp +27 -0
  305. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.h +26 -0
  306. data/dist/ice/cpp/src/Ice/SSL/SSLInstanceF.h +19 -0
  307. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.cpp +654 -0
  308. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.h +104 -0
  309. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.cpp +1437 -0
  310. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.h +58 -0
  311. data/dist/ice/cpp/src/Ice/SSL/SchannelEngineF.h +18 -0
  312. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.cpp +1085 -0
  313. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.h +118 -0
  314. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.cpp +822 -0
  315. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.h +44 -0
  316. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngineF.h +18 -0
  317. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp +621 -0
  318. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.h +91 -0
  319. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.cpp +1061 -0
  320. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.h +40 -0
  321. data/dist/ice/cpp/src/Ice/SSL/TrustManager.cpp +222 -0
  322. data/dist/ice/cpp/src/Ice/SSL/TrustManager.h +42 -0
  323. data/dist/ice/cpp/src/Ice/SSL/TrustManagerF.h +14 -0
  324. data/dist/ice/cpp/src/Ice/ScannerConfig.h +35 -0
  325. data/dist/ice/cpp/src/Ice/Selector.cpp +1270 -0
  326. data/dist/ice/cpp/src/Ice/Selector.h +235 -0
  327. data/dist/ice/cpp/src/Ice/ServantManager.cpp +547 -0
  328. data/dist/ice/cpp/src/Ice/ServantManager.h +66 -0
  329. data/dist/ice/cpp/src/Ice/ServantManagerF.h +14 -0
  330. data/dist/ice/cpp/src/Ice/Service.cpp +1790 -0
  331. data/dist/ice/cpp/src/Ice/SharedContext.h +33 -0
  332. data/dist/ice/cpp/src/Ice/SliceLoader.cpp +53 -0
  333. data/dist/ice/cpp/src/Ice/SlicedData.cpp +48 -0
  334. data/dist/ice/cpp/src/Ice/StreamSocket.cpp +472 -0
  335. data/dist/ice/cpp/src/Ice/StreamSocket.h +73 -0
  336. data/dist/ice/cpp/src/Ice/StringConverter.cpp +582 -0
  337. data/dist/ice/cpp/src/Ice/StringUtil.cpp +1137 -0
  338. data/dist/ice/cpp/src/Ice/SysLoggerI.cpp +160 -0
  339. data/dist/ice/cpp/src/Ice/SysLoggerI.h +34 -0
  340. data/dist/ice/cpp/src/Ice/SystemdJournalI.cpp +65 -0
  341. data/dist/ice/cpp/src/Ice/SystemdJournalI.h +33 -0
  342. data/dist/ice/cpp/src/Ice/TargetCompare.h +96 -0
  343. data/dist/ice/cpp/src/Ice/TcpAcceptor.cpp +213 -0
  344. data/dist/ice/cpp/src/Ice/TcpAcceptor.h +55 -0
  345. data/dist/ice/cpp/src/Ice/TcpConnector.cpp +128 -0
  346. data/dist/ice/cpp/src/Ice/TcpConnector.h +36 -0
  347. data/dist/ice/cpp/src/Ice/TcpEndpointI.cpp +411 -0
  348. data/dist/ice/cpp/src/Ice/TcpEndpointI.h +86 -0
  349. data/dist/ice/cpp/src/Ice/TcpTransceiver.cpp +147 -0
  350. data/dist/ice/cpp/src/Ice/TcpTransceiver.h +53 -0
  351. data/dist/ice/cpp/src/Ice/ThreadPool.cpp +1110 -0
  352. data/dist/ice/cpp/src/Ice/ThreadPool.h +305 -0
  353. data/dist/ice/cpp/src/Ice/ThreadPoolF.h +14 -0
  354. data/dist/ice/cpp/src/Ice/TimeUtil.cpp +47 -0
  355. data/dist/ice/cpp/src/Ice/TimeUtil.h +21 -0
  356. data/dist/ice/cpp/src/Ice/Timer.cpp +169 -0
  357. data/dist/ice/cpp/src/Ice/Timer.h +212 -0
  358. data/dist/ice/cpp/src/Ice/TraceLevels.cpp +20 -0
  359. data/dist/ice/cpp/src/Ice/TraceLevels.h +39 -0
  360. data/dist/ice/cpp/src/Ice/TraceLevelsF.h +14 -0
  361. data/dist/ice/cpp/src/Ice/TraceUtil.cpp +399 -0
  362. data/dist/ice/cpp/src/Ice/TraceUtil.h +41 -0
  363. data/dist/ice/cpp/src/Ice/Transceiver.cpp +14 -0
  364. data/dist/ice/cpp/src/Ice/Transceiver.h +52 -0
  365. data/dist/ice/cpp/src/Ice/TransceiverF.h +23 -0
  366. data/dist/ice/cpp/src/Ice/UUID.cpp +79 -0
  367. data/dist/ice/cpp/src/Ice/UdpConnector.cpp +131 -0
  368. data/dist/ice/cpp/src/Ice/UdpConnector.h +36 -0
  369. data/dist/ice/cpp/src/Ice/UdpEndpointI.cpp +480 -0
  370. data/dist/ice/cpp/src/Ice/UdpEndpointI.h +92 -0
  371. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +786 -0
  372. data/dist/ice/cpp/src/Ice/UdpTransceiver.h +90 -0
  373. data/dist/ice/cpp/src/Ice/UndefSysMacros.h +37 -0
  374. data/dist/ice/cpp/src/Ice/UniqueRef.h +77 -0
  375. data/dist/ice/cpp/src/Ice/UserException.cpp +58 -0
  376. data/dist/ice/cpp/src/Ice/Value.cpp +145 -0
  377. data/dist/ice/cpp/src/Ice/WSAcceptor.cpp +87 -0
  378. data/dist/ice/cpp/src/Ice/WSAcceptor.h +46 -0
  379. data/dist/ice/cpp/src/Ice/WSConnector.cpp +87 -0
  380. data/dist/ice/cpp/src/Ice/WSConnector.h +36 -0
  381. data/dist/ice/cpp/src/Ice/WSEndpoint.cpp +455 -0
  382. data/dist/ice/cpp/src/Ice/WSEndpoint.h +82 -0
  383. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +1715 -0
  384. data/dist/ice/cpp/src/Ice/WSTransceiver.h +135 -0
  385. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +40 -0
  386. data/dist/ice/cpp/src/Ice/generated/Context.cpp +40 -0
  387. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +40 -0
  388. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +47 -0
  389. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +752 -0
  390. data/dist/ice/cpp/src/Ice/generated/LocatorRegistry.cpp +577 -0
  391. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +1205 -0
  392. data/dist/ice/cpp/src/Ice/generated/OperationMode.cpp +56 -0
  393. data/dist/ice/cpp/src/Ice/generated/Process.cpp +330 -0
  394. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +443 -0
  395. data/dist/ice/cpp/src/Ice/generated/PropertyDict.cpp +40 -0
  396. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +851 -0
  397. data/dist/ice/cpp/src/Ice/generated/ReplyStatus.cpp +70 -0
  398. data/dist/ice/cpp/src/Ice/generated/Router.cpp +660 -0
  399. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +39 -0
  400. data/dist/ice/cpp/src/Ice/generated/Version.cpp +54 -0
  401. data/dist/ice/cpp/src/IceDiscovery/LocatorI.cpp +202 -0
  402. data/dist/ice/cpp/src/IceDiscovery/LocatorI.h +68 -0
  403. data/dist/ice/cpp/src/IceDiscovery/LookupI.cpp +494 -0
  404. data/dist/ice/cpp/src/IceDiscovery/LookupI.h +168 -0
  405. data/dist/ice/cpp/src/IceDiscovery/PluginI.cpp +155 -0
  406. data/dist/ice/cpp/src/IceDiscovery/PluginI.h +31 -0
  407. data/dist/ice/cpp/src/IceDiscovery/generated/Lookup.cpp +638 -0
  408. data/dist/ice/cpp/src/IceLocatorDiscovery/Plugin.h +24 -0
  409. data/dist/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +822 -0
  410. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/Lookup.cpp +468 -0
  411. data/dist/ice/cpp/src/Slice/DeprecationReporter.cpp +172 -0
  412. data/dist/ice/cpp/src/Slice/DeprecationReporter.h +14 -0
  413. data/dist/ice/cpp/src/Slice/DocCommentParser.cpp +736 -0
  414. data/dist/ice/cpp/src/Slice/DocCommentParser.h +61 -0
  415. data/dist/ice/cpp/src/Slice/FileTracker.cpp +96 -0
  416. data/dist/ice/cpp/src/Slice/FileTracker.h +44 -0
  417. data/dist/ice/cpp/src/Slice/Grammar.cpp +4125 -0
  418. data/dist/ice/cpp/src/Slice/Grammar.h +138 -0
  419. data/dist/ice/cpp/src/Slice/GrammarUtil.h +128 -0
  420. data/dist/ice/cpp/src/Slice/MetadataValidation.cpp +473 -0
  421. data/dist/ice/cpp/src/Slice/MetadataValidation.h +106 -0
  422. data/dist/ice/cpp/src/Slice/Parser.cpp +4906 -0
  423. data/dist/ice/cpp/src/Slice/Parser.h +1175 -0
  424. data/dist/ice/cpp/src/Slice/Preprocessor.cpp +295 -0
  425. data/dist/ice/cpp/src/Slice/Preprocessor.h +44 -0
  426. data/dist/ice/cpp/src/Slice/Scanner.cpp +3445 -0
  427. data/dist/ice/cpp/src/Slice/SliceUtil.cpp +790 -0
  428. data/dist/ice/cpp/src/Slice/StringLiteralUtil.cpp +448 -0
  429. data/dist/ice/cpp/src/Slice/Util.h +134 -0
  430. data/dist/ice/cpp/src/slice2rb/Main.cpp +33 -0
  431. data/dist/ice/cpp/src/slice2rb/Ruby.cpp +250 -0
  432. data/dist/ice/cpp/src/slice2rb/RubyUtil.cpp +1197 -0
  433. data/dist/ice/cpp/src/slice2rb/RubyUtil.h +56 -0
  434. data/dist/ice/mcpp/internal.H +530 -0
  435. data/dist/ice/slice/Glacier2/Metrics.ice +47 -0
  436. data/dist/ice/slice/Glacier2/PermissionsVerifier.ice +55 -0
  437. data/dist/ice/slice/Glacier2/Router.ice +93 -0
  438. data/dist/ice/slice/Glacier2/SSLInfo.ice +42 -0
  439. data/dist/ice/slice/Glacier2/Session.ice +133 -0
  440. data/dist/ice/slice/Ice/BuiltinSequences.ice +54 -0
  441. data/dist/ice/slice/Ice/Context.ice +24 -0
  442. data/dist/ice/slice/Ice/EndpointTypes.ice +50 -0
  443. data/dist/ice/slice/Ice/Identity.ice +36 -0
  444. data/dist/ice/slice/Ice/Locator.ice +74 -0
  445. data/dist/ice/slice/Ice/LocatorRegistry.ice +77 -0
  446. data/dist/ice/slice/Ice/Metrics.ice +201 -0
  447. data/dist/ice/slice/Ice/OperationMode.ice +38 -0
  448. data/dist/ice/slice/Ice/Process.ice +28 -0
  449. data/dist/ice/slice/Ice/PropertiesAdmin.ice +37 -0
  450. data/dist/ice/slice/Ice/PropertyDict.ice +23 -0
  451. data/dist/ice/slice/Ice/RemoteLogger.ice +126 -0
  452. data/dist/ice/slice/Ice/ReplyStatus.ice +65 -0
  453. data/dist/ice/slice/Ice/Router.ice +54 -0
  454. data/dist/ice/slice/Ice/SliceChecksumDict.ice +18 -0
  455. data/dist/ice/slice/Ice/Version.ice +43 -0
  456. data/dist/ice/slice/IceBox/ServiceManager.ice +79 -0
  457. data/dist/ice/slice/IceGrid/Admin.ice +981 -0
  458. data/dist/ice/slice/IceGrid/Descriptor.ice +519 -0
  459. data/dist/ice/slice/IceGrid/Exception.ice +98 -0
  460. data/dist/ice/slice/IceGrid/FileParser.ice +36 -0
  461. data/dist/ice/slice/IceGrid/Registry.ice +130 -0
  462. data/dist/ice/slice/IceGrid/Session.ice +64 -0
  463. data/dist/ice/slice/IceGrid/UserAccountMapper.ice +34 -0
  464. data/dist/ice/slice/IceStorm/IceStorm.ice +186 -0
  465. data/dist/ice/slice/IceStorm/Metrics.ice +41 -0
  466. data/dist/lib/Glacier2/Metrics.rb +41 -0
  467. data/dist/lib/Glacier2/PermissionsVerifier.rb +61 -0
  468. data/dist/lib/Glacier2/Router.rb +73 -0
  469. data/dist/lib/Glacier2/SSLInfo.rb +64 -0
  470. data/dist/lib/Glacier2/Session.rb +187 -0
  471. data/dist/lib/Glacier2.rb +7 -0
  472. data/dist/lib/Ice/BuiltinSequences.rb +48 -0
  473. data/dist/lib/Ice/CompressBatch.rb +50 -0
  474. data/dist/lib/Ice/Context.rb +12 -0
  475. data/dist/lib/Ice/EndpointSelectionType.rb +49 -0
  476. data/dist/lib/Ice/EndpointTypes.rb +28 -0
  477. data/dist/lib/Ice/Exception.rb +20 -0
  478. data/dist/lib/Ice/Identity.rb +47 -0
  479. data/dist/lib/Ice/IdentitySpaceship.rb +16 -0
  480. data/dist/lib/Ice/InitializationData.rb +12 -0
  481. data/dist/lib/Ice/LocalExceptions.rb +168 -0
  482. data/dist/lib/Ice/Locator.rb +83 -0
  483. data/dist/lib/Ice/LocatorRegistry.rb +73 -0
  484. data/dist/lib/Ice/Metrics.rb +290 -0
  485. data/dist/lib/Ice/OperationMode.rb +58 -0
  486. data/dist/lib/Ice/Process.rb +34 -0
  487. data/dist/lib/Ice/PropertiesAdmin.rb +39 -0
  488. data/dist/lib/Ice/PropertyDict.rb +12 -0
  489. data/dist/lib/Ice/Proxy.rb +85 -0
  490. data/dist/lib/Ice/ProxyFunctions.rb +69 -0
  491. data/dist/lib/Ice/RemoteLogger.rb +176 -0
  492. data/dist/lib/Ice/ReplyStatus.rb +65 -0
  493. data/dist/lib/Ice/Router.rb +59 -0
  494. data/dist/lib/Ice/SliceChecksumDict.rb +12 -0
  495. data/dist/lib/Ice/SliceUtil.rb +41 -0
  496. data/dist/lib/Ice/Struct.rb +11 -0
  497. data/dist/lib/Ice/ToStringMode.rb +50 -0
  498. data/dist/lib/Ice/Value.rb +93 -0
  499. data/dist/lib/Ice/Version.rb +78 -0
  500. data/dist/lib/Ice.rb +37 -0
  501. data/dist/lib/IceBox/ServiceManager.rb +104 -0
  502. data/dist/lib/IceBox.rb +3 -0
  503. data/dist/lib/IceGrid/Admin.rb +1208 -0
  504. data/dist/lib/IceGrid/Descriptor.rb +989 -0
  505. data/dist/lib/IceGrid/Exception.rb +145 -0
  506. data/dist/lib/IceGrid/FileParser.rb +41 -0
  507. data/dist/lib/IceGrid/Registry.rb +168 -0
  508. data/dist/lib/IceGrid/Session.rb +56 -0
  509. data/dist/lib/IceGrid/UserAccountMapper.rb +38 -0
  510. data/dist/lib/IceGrid.rb +9 -0
  511. data/dist/lib/IceStorm/IceStorm.rb +251 -0
  512. data/dist/lib/IceStorm/Metrics.rb +55 -0
  513. data/dist/lib/IceStorm.rb +4 -0
  514. data/extconf.rb +89 -0
  515. data/ice.gemspec +22 -17
  516. data/scripts/slice2rb +10 -0
  517. metadata +536 -712
  518. data/ICE_LICENSE +0 -48
  519. data/LICENSE +0 -340
  520. data/MCPP_LICENSE +0 -29
  521. data/bin/slice2rb +0 -12
  522. data/ext/Communicator.cpp +0 -792
  523. data/ext/Communicator.h +0 -20
  524. data/ext/Config.h +0 -143
  525. data/ext/Connection.cpp +0 -532
  526. data/ext/Connection.h +0 -24
  527. data/ext/Endpoint.cpp +0 -340
  528. data/ext/Endpoint.h +0 -22
  529. data/ext/ImplicitContext.cpp +0 -144
  530. data/ext/ImplicitContext.h +0 -20
  531. data/ext/Init.cpp +0 -49
  532. data/ext/Logger.cpp +0 -147
  533. data/ext/Logger.h +0 -23
  534. data/ext/Operation.cpp +0 -661
  535. data/ext/Operation.h +0 -31
  536. data/ext/Properties.cpp +0 -365
  537. data/ext/Properties.h +0 -20
  538. data/ext/Proxy.cpp +0 -1396
  539. data/ext/Proxy.h +0 -22
  540. data/ext/Slice.cpp +0 -205
  541. data/ext/Slice.h +0 -17
  542. data/ext/Types.cpp +0 -3325
  543. data/ext/Types.h +0 -595
  544. data/ext/Util.cpp +0 -812
  545. data/ext/Util.h +0 -586
  546. data/ext/ValueFactoryManager.cpp +0 -441
  547. data/ext/ValueFactoryManager.h +0 -95
  548. data/ext/extconf.rb +0 -97
  549. data/ext/ice/cpp/include/Ice/Application.h +0 -326
  550. data/ext/ice/cpp/include/Ice/AsyncResult.h +0 -155
  551. data/ext/ice/cpp/include/Ice/AsyncResultF.h +0 -23
  552. data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -75
  553. data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +0 -20
  554. data/ext/ice/cpp/include/Ice/Buffer.h +0 -154
  555. data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +0 -154
  556. data/ext/ice/cpp/include/Ice/Comparable.h +0 -205
  557. data/ext/ice/cpp/include/Ice/Config.h +0 -78
  558. data/ext/ice/cpp/include/Ice/ConnectionAsync.h +0 -302
  559. data/ext/ice/cpp/include/Ice/ConnectionIF.h +0 -38
  560. data/ext/ice/cpp/include/Ice/ConsoleUtil.h +0 -23
  561. data/ext/ice/cpp/include/Ice/DefaultValueFactory.h +0 -57
  562. data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +0 -41
  563. data/ext/ice/cpp/include/Ice/Dispatcher.h +0 -67
  564. data/ext/ice/cpp/include/Ice/DynamicLibrary.h +0 -102
  565. data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +0 -24
  566. data/ext/ice/cpp/include/Ice/Exception.h +0 -161
  567. data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
  568. data/ext/ice/cpp/include/Ice/FactoryTable.h +0 -73
  569. data/ext/ice/cpp/include/Ice/FactoryTableInit.h +0 -84
  570. data/ext/ice/cpp/include/Ice/Format.h +0 -38
  571. data/ext/ice/cpp/include/Ice/Functional.h +0 -140
  572. data/ext/ice/cpp/include/Ice/GCObject.h +0 -76
  573. data/ext/ice/cpp/include/Ice/Handle.h +0 -182
  574. data/ext/ice/cpp/include/Ice/Ice.h +0 -55
  575. data/ext/ice/cpp/include/Ice/IconvStringConverter.h +0 -377
  576. data/ext/ice/cpp/include/Ice/Incoming.h +0 -225
  577. data/ext/ice/cpp/include/Ice/IncomingAsync.h +0 -186
  578. data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +0 -36
  579. data/ext/ice/cpp/include/Ice/Initialize.h +0 -957
  580. data/ext/ice/cpp/include/Ice/InputStream.h +0 -1514
  581. data/ext/ice/cpp/include/Ice/InstanceF.h +0 -20
  582. data/ext/ice/cpp/include/Ice/InterfaceByValue.h +0 -57
  583. data/ext/ice/cpp/include/Ice/LocalObject.h +0 -35
  584. data/ext/ice/cpp/include/Ice/LocalObjectF.h +0 -21
  585. data/ext/ice/cpp/include/Ice/LoggerUtil.h +0 -185
  586. data/ext/ice/cpp/include/Ice/MetricsAdminI.h +0 -715
  587. data/ext/ice/cpp/include/Ice/MetricsFunctional.h +0 -159
  588. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
  589. data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +0 -86
  590. data/ext/ice/cpp/include/Ice/Object.h +0 -507
  591. data/ext/ice/cpp/include/Ice/ObjectF.h +0 -30
  592. data/ext/ice/cpp/include/Ice/ObserverHelper.h +0 -182
  593. data/ext/ice/cpp/include/Ice/Optional.h +0 -1114
  594. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +0 -856
  595. data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -39
  596. data/ext/ice/cpp/include/Ice/OutputStream.h +0 -1092
  597. data/ext/ice/cpp/include/Ice/Protocol.h +0 -274
  598. data/ext/ice/cpp/include/Ice/Proxy.h +0 -5154
  599. data/ext/ice/cpp/include/Ice/ProxyF.h +0 -53
  600. data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +0 -21
  601. data/ext/ice/cpp/include/Ice/ProxyHandle.h +0 -318
  602. data/ext/ice/cpp/include/Ice/ReferenceF.h +0 -29
  603. data/ext/ice/cpp/include/Ice/RegisterPlugins.h +0 -127
  604. data/ext/ice/cpp/include/Ice/RequestHandlerF.h +0 -30
  605. data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +0 -25
  606. data/ext/ice/cpp/include/Ice/SHA1.h +0 -42
  607. data/ext/ice/cpp/include/Ice/ServantManagerF.h +0 -21
  608. data/ext/ice/cpp/include/Ice/Service.h +0 -379
  609. data/ext/ice/cpp/include/Ice/SliceChecksums.h +0 -33
  610. data/ext/ice/cpp/include/Ice/SlicedData.h +0 -172
  611. data/ext/ice/cpp/include/Ice/SlicedDataF.h +0 -40
  612. data/ext/ice/cpp/include/Ice/StreamHelpers.h +0 -1190
  613. data/ext/ice/cpp/include/Ice/StringConverter.h +0 -78
  614. data/ext/ice/cpp/include/Ice/ThreadPoolF.h +0 -23
  615. data/ext/ice/cpp/include/Ice/UUID.h +0 -19
  616. data/ext/ice/cpp/include/Ice/UniquePtr.h +0 -95
  617. data/ext/ice/cpp/include/Ice/UniqueRef.h +0 -97
  618. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +0 -88
  619. data/ext/ice/cpp/include/Ice/Value.h +0 -139
  620. data/ext/ice/cpp/include/Ice/ValueF.h +0 -21
  621. data/ext/ice/cpp/include/IceSSL/Config.h +0 -21
  622. data/ext/ice/cpp/include/IceSSL/IceSSL.h +0 -28
  623. data/ext/ice/cpp/include/IceSSL/OpenSSL.h +0 -147
  624. data/ext/ice/cpp/include/IceSSL/Plugin.h +0 -712
  625. data/ext/ice/cpp/include/IceSSL/SChannel.h +0 -72
  626. data/ext/ice/cpp/include/IceSSL/SecureTransport.h +0 -72
  627. data/ext/ice/cpp/include/IceSSL/UWP.h +0 -62
  628. data/ext/ice/cpp/include/IceUtil/Atomic.h +0 -179
  629. data/ext/ice/cpp/include/IceUtil/Cond.h +0 -317
  630. data/ext/ice/cpp/include/IceUtil/Config.h +0 -424
  631. data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -92
  632. data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +0 -45
  633. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -92
  634. data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +0 -44
  635. data/ext/ice/cpp/include/IceUtil/Exception.h +0 -394
  636. data/ext/ice/cpp/include/IceUtil/FileUtil.h +0 -143
  637. data/ext/ice/cpp/include/IceUtil/Functional.h +0 -389
  638. data/ext/ice/cpp/include/IceUtil/Handle.h +0 -261
  639. data/ext/ice/cpp/include/IceUtil/IceUtil.h +0 -40
  640. data/ext/ice/cpp/include/IceUtil/InputUtil.h +0 -42
  641. data/ext/ice/cpp/include/IceUtil/Iterator.h +0 -31
  642. data/ext/ice/cpp/include/IceUtil/Lock.h +0 -128
  643. data/ext/ice/cpp/include/IceUtil/Monitor.h +0 -243
  644. data/ext/ice/cpp/include/IceUtil/Mutex.h +0 -353
  645. data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +0 -23
  646. data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -78
  647. data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -77
  648. data/ext/ice/cpp/include/IceUtil/Optional.h +0 -433
  649. data/ext/ice/cpp/include/IceUtil/Options.h +0 -135
  650. data/ext/ice/cpp/include/IceUtil/OutputUtil.h +0 -383
  651. data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +0 -14
  652. data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -33
  653. data/ext/ice/cpp/include/IceUtil/Random.h +0 -55
  654. data/ext/ice/cpp/include/IceUtil/RecMutex.h +0 -107
  655. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +0 -53
  656. data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +0 -40
  657. data/ext/ice/cpp/include/IceUtil/ScopedArray.h +0 -98
  658. data/ext/ice/cpp/include/IceUtil/Shared.h +0 -127
  659. data/ext/ice/cpp/include/IceUtil/StopWatch.h +0 -49
  660. data/ext/ice/cpp/include/IceUtil/StringConverter.h +0 -195
  661. data/ext/ice/cpp/include/IceUtil/StringUtil.h +0 -97
  662. data/ext/ice/cpp/include/IceUtil/Thread.h +0 -174
  663. data/ext/ice/cpp/include/IceUtil/ThreadException.h +0 -94
  664. data/ext/ice/cpp/include/IceUtil/Time.h +0 -205
  665. data/ext/ice/cpp/include/IceUtil/Timer.h +0 -143
  666. data/ext/ice/cpp/include/IceUtil/UUID.h +0 -21
  667. data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +0 -37
  668. data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +0 -170
  669. data/ext/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
  670. data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
  671. data/ext/ice/cpp/include/generated/Ice/Connection.h +0 -1703
  672. data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
  673. data/ext/ice/cpp/include/generated/Ice/Current.h +0 -322
  674. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
  675. data/ext/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
  676. data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +0 -118
  677. data/ext/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
  678. data/ext/ice/cpp/include/generated/Ice/Identity.h +0 -264
  679. data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
  680. data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
  681. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
  682. data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
  683. data/ext/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
  684. data/ext/ice/cpp/include/generated/Ice/Locator.h +0 -3898
  685. data/ext/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
  686. data/ext/ice/cpp/include/generated/Ice/Logger.h +0 -237
  687. data/ext/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
  688. data/ext/ice/cpp/include/generated/Ice/Metrics.h +0 -4769
  689. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
  690. data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
  691. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
  692. data/ext/ice/cpp/include/generated/Ice/Plugin.h +0 -318
  693. data/ext/ice/cpp/include/generated/Ice/PluginF.h +0 -110
  694. data/ext/ice/cpp/include/generated/Ice/Process.h +0 -977
  695. data/ext/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
  696. data/ext/ice/cpp/include/generated/Ice/Properties.h +0 -452
  697. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +0 -1366
  698. data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
  699. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +0 -2707
  700. data/ext/ice/cpp/include/generated/Ice/Router.h +0 -1850
  701. data/ext/ice/cpp/include/generated/Ice/RouterF.h +0 -125
  702. data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
  703. data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
  704. data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +0 -84
  705. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
  706. data/ext/ice/cpp/include/generated/Ice/Version.h +0 -357
  707. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
  708. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
  709. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
  710. data/ext/ice/cpp/src/Ice/ACM.cpp +0 -380
  711. data/ext/ice/cpp/src/Ice/ACM.h +0 -119
  712. data/ext/ice/cpp/src/Ice/ACMF.h +0 -30
  713. data/ext/ice/cpp/src/Ice/Acceptor.cpp +0 -16
  714. data/ext/ice/cpp/src/Ice/Acceptor.h +0 -37
  715. data/ext/ice/cpp/src/Ice/AcceptorF.h +0 -25
  716. data/ext/ice/cpp/src/Ice/ArgVector.cpp +0 -59
  717. data/ext/ice/cpp/src/Ice/ArgVector.h +0 -36
  718. data/ext/ice/cpp/src/Ice/AsyncResult.cpp +0 -70
  719. data/ext/ice/cpp/src/Ice/Base64.cpp +0 -263
  720. data/ext/ice/cpp/src/Ice/Base64.h +0 -31
  721. data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +0 -250
  722. data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +0 -59
  723. data/ext/ice/cpp/src/Ice/Buffer.cpp +0 -155
  724. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +0 -49
  725. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +0 -407
  726. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +0 -87
  727. data/ext/ice/cpp/src/Ice/Communicator.cpp +0 -79
  728. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +0 -61
  729. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
  730. data/ext/ice/cpp/src/Ice/CommunicatorI.h +0 -167
  731. data/ext/ice/cpp/src/Ice/Cond.cpp +0 -381
  732. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +0 -348
  733. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +0 -72
  734. data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +0 -24
  735. data/ext/ice/cpp/src/Ice/Connection.cpp +0 -155
  736. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +0 -61
  737. data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +0 -1972
  738. data/ext/ice/cpp/src/Ice/ConnectionFactory.h +0 -264
  739. data/ext/ice/cpp/src/Ice/ConnectionFactoryF.h +0 -30
  740. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +0 -3670
  741. data/ext/ice/cpp/src/Ice/ConnectionI.h +0 -391
  742. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -73
  743. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -41
  744. data/ext/ice/cpp/src/Ice/Connector.cpp +0 -16
  745. data/ext/ice/cpp/src/Ice/Connector.h +0 -32
  746. data/ext/ice/cpp/src/Ice/ConnectorF.h +0 -21
  747. data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +0 -179
  748. data/ext/ice/cpp/src/Ice/Current.cpp +0 -62
  749. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +0 -161
  750. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +0 -52
  751. data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +0 -21
  752. data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -37
  753. data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +0 -291
  754. data/ext/ice/cpp/src/Ice/Endpoint.cpp +0 -147
  755. data/ext/ice/cpp/src/Ice/EndpointF.cpp +0 -61
  756. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +0 -189
  757. data/ext/ice/cpp/src/Ice/EndpointFactory.h +0 -117
  758. data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +0 -21
  759. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +0 -213
  760. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +0 -47
  761. data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +0 -21
  762. data/ext/ice/cpp/src/Ice/EndpointI.cpp +0 -98
  763. data/ext/ice/cpp/src/Ice/EndpointI.h +0 -218
  764. data/ext/ice/cpp/src/Ice/EndpointIF.h +0 -49
  765. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +0 -51
  766. data/ext/ice/cpp/src/Ice/EventHandler.cpp +0 -32
  767. data/ext/ice/cpp/src/Ice/EventHandler.h +0 -81
  768. data/ext/ice/cpp/src/Ice/EventHandlerF.h +0 -24
  769. data/ext/ice/cpp/src/Ice/Exception.cpp +0 -845
  770. data/ext/ice/cpp/src/Ice/FacetMap.cpp +0 -49
  771. data/ext/ice/cpp/src/Ice/FactoryTable.cpp +0 -162
  772. data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -88
  773. data/ext/ice/cpp/src/Ice/GCObject.cpp +0 -442
  774. data/ext/ice/cpp/src/Ice/HashUtil.h +0 -53
  775. data/ext/ice/cpp/src/Ice/HttpParser.cpp +0 -684
  776. data/ext/ice/cpp/src/Ice/HttpParser.h +0 -117
  777. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +0 -756
  778. data/ext/ice/cpp/src/Ice/IPEndpointI.h +0 -162
  779. data/ext/ice/cpp/src/Ice/IPEndpointIF.h +0 -28
  780. data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -51
  781. data/ext/ice/cpp/src/Ice/Identity.cpp +0 -57
  782. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +0 -75
  783. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +0 -61
  784. data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -655
  785. data/ext/ice/cpp/src/Ice/ImplicitContextI.h +0 -48
  786. data/ext/ice/cpp/src/Ice/Incoming.cpp +0 -795
  787. data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +0 -230
  788. data/ext/ice/cpp/src/Ice/IncomingRequest.h +0 -33
  789. data/ext/ice/cpp/src/Ice/Initialize.cpp +0 -654
  790. data/ext/ice/cpp/src/Ice/InputStream.cpp +0 -2741
  791. data/ext/ice/cpp/src/Ice/Instance.cpp +0 -1971
  792. data/ext/ice/cpp/src/Ice/Instance.h +0 -235
  793. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +0 -188
  794. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +0 -66
  795. data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +0 -1094
  796. data/ext/ice/cpp/src/Ice/InstrumentationI.h +0 -256
  797. data/ext/ice/cpp/src/Ice/LocalException.cpp +0 -3262
  798. data/ext/ice/cpp/src/Ice/LocalObject.cpp +0 -23
  799. data/ext/ice/cpp/src/Ice/Locator.cpp +0 -2042
  800. data/ext/ice/cpp/src/Ice/LocatorF.cpp +0 -63
  801. data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +0 -889
  802. data/ext/ice/cpp/src/Ice/LocatorInfo.h +0 -189
  803. data/ext/ice/cpp/src/Ice/LocatorInfoF.h +0 -29
  804. data/ext/ice/cpp/src/Ice/Logger.cpp +0 -73
  805. data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +0 -956
  806. data/ext/ice/cpp/src/Ice/LoggerAdminI.h +0 -41
  807. data/ext/ice/cpp/src/Ice/LoggerF.cpp +0 -61
  808. data/ext/ice/cpp/src/Ice/LoggerI.cpp +0 -261
  809. data/ext/ice/cpp/src/Ice/LoggerI.h +0 -52
  810. data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +0 -100
  811. data/ext/ice/cpp/src/Ice/Metrics.cpp +0 -2352
  812. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +0 -694
  813. data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -8
  814. data/ext/ice/cpp/src/Ice/Network.cpp +0 -3075
  815. data/ext/ice/cpp/src/Ice/Network.h +0 -371
  816. data/ext/ice/cpp/src/Ice/NetworkF.h +0 -23
  817. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +0 -324
  818. data/ext/ice/cpp/src/Ice/NetworkProxy.h +0 -72
  819. data/ext/ice/cpp/src/Ice/NetworkProxyF.h +0 -21
  820. data/ext/ice/cpp/src/Ice/OSLogLoggerI.cpp +0 -57
  821. data/ext/ice/cpp/src/Ice/OSLogLoggerI.h +0 -40
  822. data/ext/ice/cpp/src/Ice/Object.cpp +0 -435
  823. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +0 -79
  824. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +0 -61
  825. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +0 -291
  826. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +0 -53
  827. data/ext/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +0 -25
  828. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +0 -1530
  829. data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +0 -159
  830. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +0 -75
  831. data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +0 -56
  832. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +0 -408
  833. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +0 -74
  834. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +0 -1322
  835. data/ext/ice/cpp/src/Ice/OutputStream.cpp +0 -1367
  836. data/ext/ice/cpp/src/Ice/Plugin.cpp +0 -87
  837. data/ext/ice/cpp/src/Ice/PluginF.cpp +0 -61
  838. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +0 -503
  839. data/ext/ice/cpp/src/Ice/PluginManagerI.h +0 -61
  840. data/ext/ice/cpp/src/Ice/Process.cpp +0 -471
  841. data/ext/ice/cpp/src/Ice/ProcessF.cpp +0 -63
  842. data/ext/ice/cpp/src/Ice/Properties.cpp +0 -78
  843. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +0 -603
  844. data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -265
  845. data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +0 -64
  846. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +0 -63
  847. data/ext/ice/cpp/src/Ice/PropertiesI.cpp +0 -747
  848. data/ext/ice/cpp/src/Ice/PropertiesI.h +0 -70
  849. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +0 -1429
  850. data/ext/ice/cpp/src/Ice/PropertyNames.h +0 -78
  851. data/ext/ice/cpp/src/Ice/Protocol.cpp +0 -124
  852. data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +0 -131
  853. data/ext/ice/cpp/src/Ice/ProtocolInstance.h +0 -93
  854. data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +0 -21
  855. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +0 -51
  856. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +0 -64
  857. data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -21
  858. data/ext/ice/cpp/src/Ice/Proxy.cpp +0 -1601
  859. data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +0 -300
  860. data/ext/ice/cpp/src/Ice/ProxyFactory.h +0 -57
  861. data/ext/ice/cpp/src/Ice/Reference.cpp +0 -2046
  862. data/ext/ice/cpp/src/Ice/Reference.h +0 -323
  863. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +0 -888
  864. data/ext/ice/cpp/src/Ice/ReferenceFactory.h +0 -76
  865. data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +0 -19
  866. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -38
  867. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -20
  868. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +0 -1171
  869. data/ext/ice/cpp/src/Ice/ReplyStatus.h +0 -24
  870. data/ext/ice/cpp/src/Ice/RequestHandler.cpp +0 -37
  871. data/ext/ice/cpp/src/Ice/RequestHandler.h +0 -78
  872. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -77
  873. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -37
  874. data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +0 -12
  875. data/ext/ice/cpp/src/Ice/ResponseHandler.h +0 -43
  876. data/ext/ice/cpp/src/Ice/RetryQueue.cpp +0 -157
  877. data/ext/ice/cpp/src/Ice/RetryQueue.h +0 -66
  878. data/ext/ice/cpp/src/Ice/RetryQueueF.h +0 -19
  879. data/ext/ice/cpp/src/Ice/Router.cpp +0 -977
  880. data/ext/ice/cpp/src/Ice/RouterF.cpp +0 -63
  881. data/ext/ice/cpp/src/Ice/RouterInfo.cpp +0 -379
  882. data/ext/ice/cpp/src/Ice/RouterInfo.h +0 -152
  883. data/ext/ice/cpp/src/Ice/RouterInfoF.h +0 -25
  884. data/ext/ice/cpp/src/Ice/SHA1.cpp +0 -185
  885. data/ext/ice/cpp/src/Ice/Selector.cpp +0 -1537
  886. data/ext/ice/cpp/src/Ice/Selector.h +0 -308
  887. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +0 -75
  888. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +0 -61
  889. data/ext/ice/cpp/src/Ice/ServantManager.cpp +0 -480
  890. data/ext/ice/cpp/src/Ice/ServantManager.h +0 -69
  891. data/ext/ice/cpp/src/Ice/SharedContext.h +0 -46
  892. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +0 -49
  893. data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +0 -75
  894. data/ext/ice/cpp/src/Ice/SlicedData.cpp +0 -127
  895. data/ext/ice/cpp/src/Ice/StreamSocket.cpp +0 -682
  896. data/ext/ice/cpp/src/Ice/StreamSocket.h +0 -92
  897. data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -192
  898. data/ext/ice/cpp/src/Ice/StringUtil.h +0 -30
  899. data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +0 -166
  900. data/ext/ice/cpp/src/Ice/SysLoggerI.h +0 -37
  901. data/ext/ice/cpp/src/Ice/SystemdJournalI.cpp +0 -66
  902. data/ext/ice/cpp/src/Ice/SystemdJournalI.h +0 -39
  903. data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +0 -355
  904. data/ext/ice/cpp/src/Ice/TcpAcceptor.h +0 -69
  905. data/ext/ice/cpp/src/Ice/TcpConnector.cpp +0 -127
  906. data/ext/ice/cpp/src/Ice/TcpConnector.h +0 -45
  907. data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +0 -385
  908. data/ext/ice/cpp/src/Ice/TcpEndpointI.h +0 -90
  909. data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +0 -135
  910. data/ext/ice/cpp/src/Ice/TcpTransceiver.h +0 -58
  911. data/ext/ice/cpp/src/Ice/Thread.cpp +0 -811
  912. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +0 -1328
  913. data/ext/ice/cpp/src/Ice/ThreadPool.h +0 -393
  914. data/ext/ice/cpp/src/Ice/Timer.cpp +0 -263
  915. data/ext/ice/cpp/src/Ice/TraceLevels.cpp +0 -38
  916. data/ext/ice/cpp/src/Ice/TraceLevels.h +0 -45
  917. data/ext/ice/cpp/src/Ice/TraceLevelsF.h +0 -21
  918. data/ext/ice/cpp/src/Ice/TraceUtil.cpp +0 -478
  919. data/ext/ice/cpp/src/Ice/TraceUtil.h +0 -30
  920. data/ext/ice/cpp/src/Ice/Transceiver.cpp +0 -18
  921. data/ext/ice/cpp/src/Ice/Transceiver.h +0 -49
  922. data/ext/ice/cpp/src/Ice/TransceiverF.h +0 -33
  923. data/ext/ice/cpp/src/Ice/UdpConnector.cpp +0 -136
  924. data/ext/ice/cpp/src/Ice/UdpConnector.h +0 -45
  925. data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +0 -515
  926. data/ext/ice/cpp/src/Ice/UdpEndpointI.h +0 -95
  927. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +0 -1153
  928. data/ext/ice/cpp/src/Ice/UdpTransceiver.h +0 -117
  929. data/ext/ice/cpp/src/Ice/Value.cpp +0 -76
  930. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +0 -83
  931. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -61
  932. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -37
  933. data/ext/ice/cpp/src/Ice/Version.cpp +0 -57
  934. data/ext/ice/cpp/src/Ice/VirtualShared.h +0 -38
  935. data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +0 -92
  936. data/ext/ice/cpp/src/Ice/WSAcceptor.h +0 -52
  937. data/ext/ice/cpp/src/Ice/WSConnector.cpp +0 -102
  938. data/ext/ice/cpp/src/Ice/WSConnector.h +0 -43
  939. data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +0 -508
  940. data/ext/ice/cpp/src/Ice/WSEndpoint.h +0 -93
  941. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +0 -1747
  942. data/ext/ice/cpp/src/Ice/WSTransceiver.h +0 -141
  943. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +0 -915
  944. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +0 -1889
  945. data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +0 -265
  946. data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +0 -109
  947. data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +0 -608
  948. data/ext/ice/cpp/src/IceDiscovery/LookupI.h +0 -228
  949. data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +0 -176
  950. data/ext/ice/cpp/src/IceDiscovery/PluginI.h +0 -36
  951. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +0 -730
  952. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
  953. data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +0 -47
  954. data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +0 -1048
  955. data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -105
  956. data/ext/ice/cpp/src/IceSSL/AcceptorI.h +0 -52
  957. data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +0 -301
  958. data/ext/ice/cpp/src/IceSSL/CertificateI.h +0 -64
  959. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +0 -75
  960. data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +0 -61
  961. data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -102
  962. data/ext/ice/cpp/src/IceSSL/ConnectorI.h +0 -44
  963. data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +0 -372
  964. data/ext/ice/cpp/src/IceSSL/EndpointI.h +0 -100
  965. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +0 -75
  966. data/ext/ice/cpp/src/IceSSL/Instance.cpp +0 -28
  967. data/ext/ice/cpp/src/IceSSL/Instance.h +0 -37
  968. data/ext/ice/cpp/src/IceSSL/InstanceF.h +0 -33
  969. data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -688
  970. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
  971. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -59
  972. data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -27
  973. data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -127
  974. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
  975. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -90
  976. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
  977. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -58
  978. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
  979. data/ext/ice/cpp/src/IceSSL/PluginI.h +0 -67
  980. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +0 -490
  981. data/ext/ice/cpp/src/IceSSL/RFC2253.h +0 -62
  982. data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -721
  983. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
  984. data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +0 -123
  985. data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -31
  986. data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -73
  987. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
  988. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -133
  989. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
  990. data/ext/ice/cpp/src/IceSSL/SSLEngine.h +0 -100
  991. data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +0 -21
  992. data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -999
  993. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
  994. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
  995. data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -29
  996. data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -75
  997. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
  998. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -92
  999. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
  1000. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -45
  1001. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
  1002. data/ext/ice/cpp/src/IceSSL/TrustManager.h +0 -46
  1003. data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +0 -21
  1004. data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +0 -266
  1005. data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +0 -338
  1006. data/ext/ice/cpp/src/IceSSL/UWPEngine.h +0 -41
  1007. data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +0 -26
  1008. data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +0 -89
  1009. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +0 -383
  1010. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +0 -71
  1011. data/ext/ice/cpp/src/IceSSL/Util.cpp +0 -192
  1012. data/ext/ice/cpp/src/IceSSL/Util.h +0 -99
  1013. data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +0 -157
  1014. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
  1015. data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +0 -147
  1016. data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -259
  1017. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +0 -484
  1018. data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +0 -36
  1019. data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -19
  1020. data/ext/ice/cpp/src/IceUtil/Options.cpp +0 -1051
  1021. data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -609
  1022. data/ext/ice/cpp/src/IceUtil/Random.cpp +0 -180
  1023. data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +0 -242
  1024. data/ext/ice/cpp/src/IceUtil/Shared.cpp +0 -71
  1025. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
  1026. data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +0 -1180
  1027. data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +0 -130
  1028. data/ext/ice/cpp/src/IceUtil/Time.cpp +0 -307
  1029. data/ext/ice/cpp/src/IceUtil/UUID.cpp +0 -169
  1030. data/ext/ice/cpp/src/IceUtil/Unicode.cpp +0 -183
  1031. data/ext/ice/cpp/src/IceUtil/Unicode.h +0 -43
  1032. data/ext/ice/cpp/src/IceUtil/UtilException.cpp +0 -839
  1033. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -1810
  1034. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -72
  1035. data/ext/ice/cpp/src/Slice/Checksum.cpp +0 -447
  1036. data/ext/ice/cpp/src/Slice/Checksum.h +0 -21
  1037. data/ext/ice/cpp/src/Slice/FileTracker.cpp +0 -146
  1038. data/ext/ice/cpp/src/Slice/FileTracker.h +0 -66
  1039. data/ext/ice/cpp/src/Slice/Grammar.cpp +0 -4793
  1040. data/ext/ice/cpp/src/Slice/Grammar.h +0 -118
  1041. data/ext/ice/cpp/src/Slice/GrammarUtil.h +0 -228
  1042. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +0 -5154
  1043. data/ext/ice/cpp/src/Slice/JavaUtil.h +0 -398
  1044. data/ext/ice/cpp/src/Slice/MD5.cpp +0 -52
  1045. data/ext/ice/cpp/src/Slice/MD5.h +0 -39
  1046. data/ext/ice/cpp/src/Slice/MD5I.cpp +0 -393
  1047. data/ext/ice/cpp/src/Slice/MD5I.h +0 -91
  1048. data/ext/ice/cpp/src/Slice/PHPUtil.cpp +0 -157
  1049. data/ext/ice/cpp/src/Slice/PHPUtil.h +0 -36
  1050. data/ext/ice/cpp/src/Slice/Parser.cpp +0 -7058
  1051. data/ext/ice/cpp/src/Slice/Parser.h +0 -1174
  1052. data/ext/ice/cpp/src/Slice/Preprocessor.cpp +0 -797
  1053. data/ext/ice/cpp/src/Slice/Preprocessor.h +0 -60
  1054. data/ext/ice/cpp/src/Slice/Python.cpp +0 -830
  1055. data/ext/ice/cpp/src/Slice/PythonUtil.cpp +0 -3439
  1056. data/ext/ice/cpp/src/Slice/PythonUtil.h +0 -70
  1057. data/ext/ice/cpp/src/Slice/Ruby.cpp +0 -350
  1058. data/ext/ice/cpp/src/Slice/RubyUtil.cpp +0 -1571
  1059. data/ext/ice/cpp/src/Slice/RubyUtil.h +0 -49
  1060. data/ext/ice/cpp/src/Slice/Scanner.cpp +0 -2807
  1061. data/ext/ice/cpp/src/Slice/SliceUtil.cpp +0 -424
  1062. data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +0 -456
  1063. data/ext/ice/cpp/src/Slice/Util.h +0 -50
  1064. data/ext/ice/mcpp/CMakeLists.txt +0 -80
  1065. data/ext/ice/mcpp/LICENSE +0 -29
  1066. data/ext/ice/mcpp/Makefile +0 -63
  1067. data/ext/ice/mcpp/README.md +0 -32
  1068. data/ext/ice/mcpp/internal.H +0 -530
  1069. data/ext/ice/mcpp/mcpp.gyp +0 -88
  1070. data/lib/Glacier2/Metrics.rb +0 -56
  1071. data/lib/Glacier2/PermissionsVerifier.rb +0 -93
  1072. data/lib/Glacier2/PermissionsVerifierF.rb +0 -30
  1073. data/lib/Glacier2/Router.rb +0 -95
  1074. data/lib/Glacier2/RouterF.rb +0 -25
  1075. data/lib/Glacier2/SSLInfo.rb +0 -72
  1076. data/lib/Glacier2/Session.rb +0 -247
  1077. data/lib/Glacier2.rb +0 -7
  1078. data/lib/Ice/BuiltinSequences.rb +0 -60
  1079. data/lib/Ice/Communicator.rb +0 -87
  1080. data/lib/Ice/CommunicatorF.rb +0 -24
  1081. data/lib/Ice/Connection.rb +0 -413
  1082. data/lib/Ice/ConnectionF.rb +0 -32
  1083. data/lib/Ice/Current.rb +0 -141
  1084. data/lib/Ice/Endpoint.rb +0 -187
  1085. data/lib/Ice/EndpointF.rb +0 -48
  1086. data/lib/Ice/EndpointTypes.rb +0 -69
  1087. data/lib/Ice/FacetMap.rb +0 -24
  1088. data/lib/Ice/Identity.rb +0 -63
  1089. data/lib/Ice/ImplicitContext.rb +0 -26
  1090. data/lib/Ice/ImplicitContextF.rb +0 -24
  1091. data/lib/Ice/Instrumentation.rb +0 -169
  1092. data/lib/Ice/InstrumentationF.rb +0 -31
  1093. data/lib/Ice/LocalException.rb +0 -1031
  1094. data/lib/Ice/Locator.rb +0 -196
  1095. data/lib/Ice/LocatorF.rb +0 -30
  1096. data/lib/Ice/Logger.rb +0 -24
  1097. data/lib/Ice/LoggerF.rb +0 -24
  1098. data/lib/Ice/Metrics.rb +0 -337
  1099. data/lib/Ice/ObjectAdapter.rb +0 -29
  1100. data/lib/Ice/ObjectAdapterF.rb +0 -24
  1101. data/lib/Ice/ObjectFactory.rb +0 -24
  1102. data/lib/Ice/Plugin.rb +0 -30
  1103. data/lib/Ice/PluginF.rb +0 -28
  1104. data/lib/Ice/Process.rb +0 -53
  1105. data/lib/Ice/ProcessF.rb +0 -25
  1106. data/lib/Ice/Properties.rb +0 -25
  1107. data/lib/Ice/PropertiesAdmin.rb +0 -63
  1108. data/lib/Ice/PropertiesF.rb +0 -29
  1109. data/lib/Ice/RemoteLogger.rb +0 -207
  1110. data/lib/Ice/Router.rb +0 -87
  1111. data/lib/Ice/RouterF.rb +0 -25
  1112. data/lib/Ice/ServantLocator.rb +0 -26
  1113. data/lib/Ice/ServantLocatorF.rb +0 -24
  1114. data/lib/Ice/SliceChecksumDict.rb +0 -24
  1115. data/lib/Ice/ValueFactory.rb +0 -28
  1116. data/lib/Ice/Version.rb +0 -90
  1117. data/lib/Ice.rb +0 -673
  1118. data/lib/IceBox/IceBox.rb +0 -164
  1119. data/lib/IceBox.rb +0 -5
  1120. data/lib/IceGrid/Admin.rb +0 -1196
  1121. data/lib/IceGrid/Descriptor.rb +0 -1034
  1122. data/lib/IceGrid/Exception.rb +0 -376
  1123. data/lib/IceGrid/FileParser.rb +0 -65
  1124. data/lib/IceGrid/PluginFacade.rb +0 -35
  1125. data/lib/IceGrid/Registry.rb +0 -209
  1126. data/lib/IceGrid/Session.rb +0 -71
  1127. data/lib/IceGrid/UserAccountMapper.rb +0 -61
  1128. data/lib/IceGrid.rb +0 -9
  1129. data/lib/IcePatch2/FileInfo.rb +0 -115
  1130. data/lib/IcePatch2/FileServer.rb +0 -123
  1131. data/lib/IcePatch2.rb +0 -5
  1132. data/lib/IceStorm/IceStorm.rb +0 -332
  1133. data/lib/IceStorm/Metrics.rb +0 -73
  1134. data/lib/IceStorm.rb +0 -6
  1135. data/slice/Glacier2/Metrics.ice +0 -88
  1136. data/slice/Glacier2/PermissionsVerifier.ice +0 -111
  1137. data/slice/Glacier2/PermissionsVerifierF.ice +0 -30
  1138. data/slice/Glacier2/Router.ice +0 -186
  1139. data/slice/Glacier2/RouterF.ice +0 -29
  1140. data/slice/Glacier2/SSLInfo.ice +0 -59
  1141. data/slice/Glacier2/Session.ice +0 -274
  1142. data/slice/Ice/BuiltinSequences.ice +0 -59
  1143. data/slice/Ice/Communicator.ice +0 -676
  1144. data/slice/Ice/CommunicatorF.ice +0 -31
  1145. data/slice/Ice/Connection.ice +0 -516
  1146. data/slice/Ice/ConnectionF.ice +0 -33
  1147. data/slice/Ice/Current.ice +0 -170
  1148. data/slice/Ice/Endpoint.ice +0 -291
  1149. data/slice/Ice/EndpointF.ice +0 -43
  1150. data/slice/Ice/EndpointTypes.ice +0 -48
  1151. data/slice/Ice/FacetMap.ice +0 -36
  1152. data/slice/Ice/Identity.ice +0 -75
  1153. data/slice/Ice/ImplicitContext.ice +0 -119
  1154. data/slice/Ice/ImplicitContextF.ice +0 -30
  1155. data/slice/Ice/Instrumentation.ice +0 -509
  1156. data/slice/Ice/InstrumentationF.ice +0 -38
  1157. data/slice/Ice/LocalException.ice +0 -1040
  1158. data/slice/Ice/Locator.ice +0 -239
  1159. data/slice/Ice/LocatorF.ice +0 -32
  1160. data/slice/Ice/Logger.ice +0 -99
  1161. data/slice/Ice/LoggerF.ice +0 -31
  1162. data/slice/Ice/Metrics.ice +0 -436
  1163. data/slice/Ice/ObjectAdapter.ice +0 -710
  1164. data/slice/Ice/ObjectAdapterF.ice +0 -31
  1165. data/slice/Ice/ObjectFactory.ice +0 -71
  1166. data/slice/Ice/Plugin.ice +0 -131
  1167. data/slice/Ice/PluginF.ice +0 -36
  1168. data/slice/Ice/Process.ice +0 -64
  1169. data/slice/Ice/ProcessF.ice +0 -31
  1170. data/slice/Ice/Properties.ice +0 -244
  1171. data/slice/Ice/PropertiesAdmin.ice +0 -87
  1172. data/slice/Ice/PropertiesF.ice +0 -32
  1173. data/slice/Ice/RemoteLogger.ice +0 -226
  1174. data/slice/Ice/Router.ice +0 -103
  1175. data/slice/Ice/RouterF.ice +0 -31
  1176. data/slice/Ice/ServantLocator.ice +0 -136
  1177. data/slice/Ice/ServantLocatorF.ice +0 -31
  1178. data/slice/Ice/SliceChecksumDict.ice +0 -36
  1179. data/slice/Ice/ValueFactory.ice +0 -133
  1180. data/slice/Ice/Version.ice +0 -51
  1181. data/slice/IceBT/ConnectionInfo.ice +0 -59
  1182. data/slice/IceBT/EndpointInfo.ice +0 -57
  1183. data/slice/IceBT/Types.ice +0 -45
  1184. data/slice/IceBox/IceBox.ice +0 -216
  1185. data/slice/IceDiscovery/IceDiscovery.ice +0 -98
  1186. data/slice/IceGrid/Admin.ice +0 -1957
  1187. data/slice/IceGrid/Descriptor.ice +0 -1094
  1188. data/slice/IceGrid/Exception.ice +0 -396
  1189. data/slice/IceGrid/FileParser.ice +0 -72
  1190. data/slice/IceGrid/PluginFacade.ice +0 -329
  1191. data/slice/IceGrid/Registry.ice +0 -269
  1192. data/slice/IceGrid/Session.ice +0 -128
  1193. data/slice/IceGrid/UserAccountMapper.ice +0 -69
  1194. data/slice/IceIAP/ConnectionInfo.ice +0 -74
  1195. data/slice/IceIAP/EndpointInfo.ice +0 -68
  1196. data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +0 -83
  1197. data/slice/IcePatch2/FileInfo.ice +0 -85
  1198. data/slice/IcePatch2/FileServer.ice +0 -191
  1199. data/slice/IceSSL/ConnectionInfo.ice +0 -54
  1200. data/slice/IceSSL/ConnectionInfoF.ice +0 -31
  1201. data/slice/IceSSL/EndpointInfo.ice +0 -45
  1202. data/slice/IceStorm/IceStorm.ice +0 -414
  1203. data/slice/IceStorm/Metrics.ice +0 -83
  1204. /data/{ext → dist}/ice/mcpp/config.h +0 -0
  1205. /data/{ext → dist}/ice/mcpp/configed.H +0 -0
  1206. /data/{ext → dist}/ice/mcpp/directive.c +0 -0
  1207. /data/{ext → dist}/ice/mcpp/eval.c +0 -0
  1208. /data/{ext → dist}/ice/mcpp/expand.c +0 -0
  1209. /data/{ext → dist}/ice/mcpp/mbchar.c +0 -0
  1210. /data/{ext → dist}/ice/mcpp/mcpp_lib.h +0 -0
  1211. /data/{ext/ice/mcpp/main.c → dist/ice/mcpp/mcpp_main.c} +0 -0
  1212. /data/{ext → dist}/ice/mcpp/mcpp_out.h +0 -0
  1213. /data/{ext → dist}/ice/mcpp/support.c +0 -0
  1214. /data/{ext → dist}/ice/mcpp/system.H +0 -0
  1215. /data/{ext → dist}/ice/mcpp/system.c +0 -0
@@ -0,0 +1,3445 @@
1
+ #line 1 "src/Slice/Scanner.cpp"
2
+ // Copyright (c) ZeroC, Inc.
3
+
4
+ #include "../Ice/ScannerConfig.h"
5
+ #include <cstdint>
6
+
7
+ // Clang detects unreachable code in the generated scanner, so we disable the warning.
8
+ #if defined(__clang__)
9
+ # pragma clang diagnostic ignored "-Wunreachable-code"
10
+ #endif
11
+
12
+ // NOLINTBEGIN
13
+
14
+ #line 14 "src/Slice/Scanner.cpp"
15
+
16
+ #define YY_INT_ALIGNED long int
17
+
18
+ /* A lexical scanner generated by flex */
19
+
20
+ /* %not-for-header */
21
+ /* %if-c-only */
22
+ /* %if-not-reentrant */
23
+ #define yy_create_buffer slice__create_buffer
24
+ #define yy_delete_buffer slice__delete_buffer
25
+ #define yy_scan_buffer slice__scan_buffer
26
+ #define yy_scan_string slice__scan_string
27
+ #define yy_scan_bytes slice__scan_bytes
28
+ #define yy_init_buffer slice__init_buffer
29
+ #define yy_flush_buffer slice__flush_buffer
30
+ #define yy_load_buffer_state slice__load_buffer_state
31
+ #define yy_switch_to_buffer slice__switch_to_buffer
32
+ #define yypush_buffer_state slice_push_buffer_state
33
+ #define yypop_buffer_state slice_pop_buffer_state
34
+ #define yyensure_buffer_stack slice_ensure_buffer_stack
35
+ #define yy_flex_debug slice__flex_debug
36
+ #define yyin slice_in
37
+ #define yyleng slice_leng
38
+ #define yylex slice_lex
39
+ #define yylineno slice_lineno
40
+ #define yyout slice_out
41
+ #define yyrestart slice_restart
42
+ #define yytext slice_text
43
+ #define yywrap slice_wrap
44
+ #define yyalloc slice_alloc
45
+ #define yyrealloc slice_realloc
46
+ #define yyfree slice_free
47
+
48
+ /* %endif */
49
+ /* %endif */
50
+ /* %ok-for-header */
51
+
52
+ #define FLEX_SCANNER
53
+ #define YY_FLEX_MAJOR_VERSION 2
54
+ #define YY_FLEX_MINOR_VERSION 6
55
+ #define YY_FLEX_SUBMINOR_VERSION 4
56
+ #if YY_FLEX_SUBMINOR_VERSION > 0
57
+ #define FLEX_BETA
58
+ #endif
59
+
60
+ /* %if-c++-only */
61
+ /* %endif */
62
+
63
+ /* %if-c-only */
64
+ #ifdef yy_create_buffer
65
+ #define slice__create_buffer_ALREADY_DEFINED
66
+ #else
67
+ #define yy_create_buffer slice__create_buffer
68
+ #endif
69
+
70
+ #ifdef yy_delete_buffer
71
+ #define slice__delete_buffer_ALREADY_DEFINED
72
+ #else
73
+ #define yy_delete_buffer slice__delete_buffer
74
+ #endif
75
+
76
+ #ifdef yy_scan_buffer
77
+ #define slice__scan_buffer_ALREADY_DEFINED
78
+ #else
79
+ #define yy_scan_buffer slice__scan_buffer
80
+ #endif
81
+
82
+ #ifdef yy_scan_string
83
+ #define slice__scan_string_ALREADY_DEFINED
84
+ #else
85
+ #define yy_scan_string slice__scan_string
86
+ #endif
87
+
88
+ #ifdef yy_scan_bytes
89
+ #define slice__scan_bytes_ALREADY_DEFINED
90
+ #else
91
+ #define yy_scan_bytes slice__scan_bytes
92
+ #endif
93
+
94
+ #ifdef yy_init_buffer
95
+ #define slice__init_buffer_ALREADY_DEFINED
96
+ #else
97
+ #define yy_init_buffer slice__init_buffer
98
+ #endif
99
+
100
+ #ifdef yy_flush_buffer
101
+ #define slice__flush_buffer_ALREADY_DEFINED
102
+ #else
103
+ #define yy_flush_buffer slice__flush_buffer
104
+ #endif
105
+
106
+ #ifdef yy_load_buffer_state
107
+ #define slice__load_buffer_state_ALREADY_DEFINED
108
+ #else
109
+ #define yy_load_buffer_state slice__load_buffer_state
110
+ #endif
111
+
112
+ #ifdef yy_switch_to_buffer
113
+ #define slice__switch_to_buffer_ALREADY_DEFINED
114
+ #else
115
+ #define yy_switch_to_buffer slice__switch_to_buffer
116
+ #endif
117
+
118
+ #ifdef yypush_buffer_state
119
+ #define slice_push_buffer_state_ALREADY_DEFINED
120
+ #else
121
+ #define yypush_buffer_state slice_push_buffer_state
122
+ #endif
123
+
124
+ #ifdef yypop_buffer_state
125
+ #define slice_pop_buffer_state_ALREADY_DEFINED
126
+ #else
127
+ #define yypop_buffer_state slice_pop_buffer_state
128
+ #endif
129
+
130
+ #ifdef yyensure_buffer_stack
131
+ #define slice_ensure_buffer_stack_ALREADY_DEFINED
132
+ #else
133
+ #define yyensure_buffer_stack slice_ensure_buffer_stack
134
+ #endif
135
+
136
+ #ifdef yylex
137
+ #define slice_lex_ALREADY_DEFINED
138
+ #else
139
+ #define yylex slice_lex
140
+ #endif
141
+
142
+ #ifdef yyrestart
143
+ #define slice_restart_ALREADY_DEFINED
144
+ #else
145
+ #define yyrestart slice_restart
146
+ #endif
147
+
148
+ #ifdef yylex_init
149
+ #define slice_lex_init_ALREADY_DEFINED
150
+ #else
151
+ #define yylex_init slice_lex_init
152
+ #endif
153
+
154
+ #ifdef yylex_init_extra
155
+ #define slice_lex_init_extra_ALREADY_DEFINED
156
+ #else
157
+ #define yylex_init_extra slice_lex_init_extra
158
+ #endif
159
+
160
+ #ifdef yylex_destroy
161
+ #define slice_lex_destroy_ALREADY_DEFINED
162
+ #else
163
+ #define yylex_destroy slice_lex_destroy
164
+ #endif
165
+
166
+ #ifdef yyget_debug
167
+ #define slice_get_debug_ALREADY_DEFINED
168
+ #else
169
+ #define yyget_debug slice_get_debug
170
+ #endif
171
+
172
+ #ifdef yyset_debug
173
+ #define slice_set_debug_ALREADY_DEFINED
174
+ #else
175
+ #define yyset_debug slice_set_debug
176
+ #endif
177
+
178
+ #ifdef yyget_extra
179
+ #define slice_get_extra_ALREADY_DEFINED
180
+ #else
181
+ #define yyget_extra slice_get_extra
182
+ #endif
183
+
184
+ #ifdef yyset_extra
185
+ #define slice_set_extra_ALREADY_DEFINED
186
+ #else
187
+ #define yyset_extra slice_set_extra
188
+ #endif
189
+
190
+ #ifdef yyget_in
191
+ #define slice_get_in_ALREADY_DEFINED
192
+ #else
193
+ #define yyget_in slice_get_in
194
+ #endif
195
+
196
+ #ifdef yyset_in
197
+ #define slice_set_in_ALREADY_DEFINED
198
+ #else
199
+ #define yyset_in slice_set_in
200
+ #endif
201
+
202
+ #ifdef yyget_out
203
+ #define slice_get_out_ALREADY_DEFINED
204
+ #else
205
+ #define yyget_out slice_get_out
206
+ #endif
207
+
208
+ #ifdef yyset_out
209
+ #define slice_set_out_ALREADY_DEFINED
210
+ #else
211
+ #define yyset_out slice_set_out
212
+ #endif
213
+
214
+ #ifdef yyget_leng
215
+ #define slice_get_leng_ALREADY_DEFINED
216
+ #else
217
+ #define yyget_leng slice_get_leng
218
+ #endif
219
+
220
+ #ifdef yyget_text
221
+ #define slice_get_text_ALREADY_DEFINED
222
+ #else
223
+ #define yyget_text slice_get_text
224
+ #endif
225
+
226
+ #ifdef yyget_lineno
227
+ #define slice_get_lineno_ALREADY_DEFINED
228
+ #else
229
+ #define yyget_lineno slice_get_lineno
230
+ #endif
231
+
232
+ #ifdef yyset_lineno
233
+ #define slice_set_lineno_ALREADY_DEFINED
234
+ #else
235
+ #define yyset_lineno slice_set_lineno
236
+ #endif
237
+
238
+ #ifdef yywrap
239
+ #define slice_wrap_ALREADY_DEFINED
240
+ #else
241
+ #define yywrap slice_wrap
242
+ #endif
243
+
244
+ /* %endif */
245
+
246
+ #ifdef yyget_lval
247
+ #define slice_get_lval_ALREADY_DEFINED
248
+ #else
249
+ #define yyget_lval slice_get_lval
250
+ #endif
251
+
252
+ #ifdef yyset_lval
253
+ #define slice_set_lval_ALREADY_DEFINED
254
+ #else
255
+ #define yyset_lval slice_set_lval
256
+ #endif
257
+
258
+ #ifdef yyget_lloc
259
+ #define slice_get_lloc_ALREADY_DEFINED
260
+ #else
261
+ #define yyget_lloc slice_get_lloc
262
+ #endif
263
+
264
+ #ifdef yyset_lloc
265
+ #define slice_set_lloc_ALREADY_DEFINED
266
+ #else
267
+ #define yyset_lloc slice_set_lloc
268
+ #endif
269
+
270
+ #ifdef yyalloc
271
+ #define slice_alloc_ALREADY_DEFINED
272
+ #else
273
+ #define yyalloc slice_alloc
274
+ #endif
275
+
276
+ #ifdef yyrealloc
277
+ #define slice_realloc_ALREADY_DEFINED
278
+ #else
279
+ #define yyrealloc slice_realloc
280
+ #endif
281
+
282
+ #ifdef yyfree
283
+ #define slice_free_ALREADY_DEFINED
284
+ #else
285
+ #define yyfree slice_free
286
+ #endif
287
+
288
+ /* %if-c-only */
289
+
290
+ #ifdef yytext
291
+ #define slice_text_ALREADY_DEFINED
292
+ #else
293
+ #define yytext slice_text
294
+ #endif
295
+
296
+ #ifdef yyleng
297
+ #define slice_leng_ALREADY_DEFINED
298
+ #else
299
+ #define yyleng slice_leng
300
+ #endif
301
+
302
+ #ifdef yyin
303
+ #define slice_in_ALREADY_DEFINED
304
+ #else
305
+ #define yyin slice_in
306
+ #endif
307
+
308
+ #ifdef yyout
309
+ #define slice_out_ALREADY_DEFINED
310
+ #else
311
+ #define yyout slice_out
312
+ #endif
313
+
314
+ #ifdef yy_flex_debug
315
+ #define slice__flex_debug_ALREADY_DEFINED
316
+ #else
317
+ #define yy_flex_debug slice__flex_debug
318
+ #endif
319
+
320
+ #ifdef yylineno
321
+ #define slice_lineno_ALREADY_DEFINED
322
+ #else
323
+ #define yylineno slice_lineno
324
+ #endif
325
+
326
+ /* %endif */
327
+
328
+ /* First, we deal with platform-specific or compiler-specific issues. */
329
+
330
+ /* begin standard C headers. */
331
+ /* %if-c-only */
332
+ #include <stdio.h>
333
+ #include <string.h>
334
+ #include <errno.h>
335
+ #include <stdlib.h>
336
+ /* %endif */
337
+
338
+ /* %if-tables-serialization */
339
+ /* %endif */
340
+ /* end standard C headers. */
341
+
342
+ /* %if-c-or-c++ */
343
+ /* flex integer type definitions */
344
+
345
+ #ifndef FLEXINT_H
346
+ #define FLEXINT_H
347
+
348
+ /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
349
+
350
+ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
351
+
352
+ /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
353
+ * if you want the limit (max/min) macros for int types.
354
+ */
355
+ #ifndef __STDC_LIMIT_MACROS
356
+ #define __STDC_LIMIT_MACROS 1
357
+ #endif
358
+
359
+ #include <inttypes.h>
360
+ typedef int8_t flex_int8_t;
361
+ typedef uint8_t flex_uint8_t;
362
+ typedef int16_t flex_int16_t;
363
+ typedef uint16_t flex_uint16_t;
364
+ typedef int32_t flex_int32_t;
365
+ typedef uint32_t flex_uint32_t;
366
+ #else
367
+ typedef signed char flex_int8_t;
368
+ typedef short int flex_int16_t;
369
+ typedef int flex_int32_t;
370
+ typedef unsigned char flex_uint8_t;
371
+ typedef unsigned short int flex_uint16_t;
372
+ typedef unsigned int flex_uint32_t;
373
+
374
+ /* Limits of integral types. */
375
+ #ifndef INT8_MIN
376
+ #define INT8_MIN (-128)
377
+ #endif
378
+ #ifndef INT16_MIN
379
+ #define INT16_MIN (-32767-1)
380
+ #endif
381
+ #ifndef INT32_MIN
382
+ #define INT32_MIN (-2147483647-1)
383
+ #endif
384
+ #ifndef INT8_MAX
385
+ #define INT8_MAX (127)
386
+ #endif
387
+ #ifndef INT16_MAX
388
+ #define INT16_MAX (32767)
389
+ #endif
390
+ #ifndef INT32_MAX
391
+ #define INT32_MAX (2147483647)
392
+ #endif
393
+ #ifndef UINT8_MAX
394
+ #define UINT8_MAX (255U)
395
+ #endif
396
+ #ifndef UINT16_MAX
397
+ #define UINT16_MAX (65535U)
398
+ #endif
399
+ #ifndef UINT32_MAX
400
+ #define UINT32_MAX (4294967295U)
401
+ #endif
402
+
403
+ #ifndef SIZE_MAX
404
+ #define SIZE_MAX (~(size_t)0)
405
+ #endif
406
+
407
+ #endif /* ! C99 */
408
+
409
+ #endif /* ! FLEXINT_H */
410
+
411
+ /* %endif */
412
+
413
+ /* begin standard C++ headers. */
414
+ /* %if-c++-only */
415
+ /* %endif */
416
+
417
+ /* TODO: this is always defined, so inline it */
418
+ #define yyconst const
419
+
420
+ #if defined(__GNUC__) && __GNUC__ >= 3
421
+ #define yynoreturn __attribute__((__noreturn__))
422
+ #else
423
+ #define yynoreturn
424
+ #endif
425
+
426
+ /* %not-for-header */
427
+ /* Returned upon end-of-file. */
428
+ #define YY_NULL 0
429
+ /* %ok-for-header */
430
+
431
+ /* %not-for-header */
432
+ /* Promotes a possibly negative, possibly signed char to an
433
+ * integer in range [0..255] for use as an array index.
434
+ */
435
+ #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
436
+ /* %ok-for-header */
437
+
438
+ /* %if-reentrant */
439
+ /* %endif */
440
+
441
+ /* %if-not-reentrant */
442
+
443
+ /* %endif */
444
+
445
+ /* Enter a start condition. This macro really ought to take a parameter,
446
+ * but we do it the disgusting crufty way forced on us by the ()-less
447
+ * definition of BEGIN.
448
+ */
449
+ #define BEGIN (yy_start) = 1 + 2 *
450
+ /* Translate the current start state into a value that can be later handed
451
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
452
+ * compatibility.
453
+ */
454
+ #define YY_START (((yy_start) - 1) / 2)
455
+ #define YYSTATE YY_START
456
+ /* Action number for EOF rule of a given start state. */
457
+ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
458
+ /* Special action meaning "start processing a new file". */
459
+ #define YY_NEW_FILE yyrestart( yyin )
460
+ #define YY_END_OF_BUFFER_CHAR 0
461
+
462
+ /* Size of default input buffer. */
463
+ #ifndef YY_BUF_SIZE
464
+ #ifdef __ia64__
465
+ /* On IA-64, the buffer size is 16k, not 8k.
466
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
467
+ * Ditto for the __ia64__ case accordingly.
468
+ */
469
+ #define YY_BUF_SIZE 32768
470
+ #else
471
+ #define YY_BUF_SIZE 16384
472
+ #endif /* __ia64__ */
473
+ #endif
474
+
475
+ /* The state buf must be large enough to hold one state per character in the main buffer.
476
+ */
477
+ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
478
+
479
+ #ifndef YY_TYPEDEF_YY_BUFFER_STATE
480
+ #define YY_TYPEDEF_YY_BUFFER_STATE
481
+ typedef struct yy_buffer_state *YY_BUFFER_STATE;
482
+ #endif
483
+
484
+ #ifndef YY_TYPEDEF_YY_SIZE_T
485
+ #define YY_TYPEDEF_YY_SIZE_T
486
+ typedef size_t yy_size_t;
487
+ #endif
488
+
489
+ /* %if-not-reentrant */
490
+ extern int yyleng;
491
+ /* %endif */
492
+
493
+ /* %if-c-only */
494
+ /* %if-not-reentrant */
495
+ extern FILE *yyin, *yyout;
496
+ /* %endif */
497
+ /* %endif */
498
+
499
+ #define EOB_ACT_CONTINUE_SCAN 0
500
+ #define EOB_ACT_END_OF_FILE 1
501
+ #define EOB_ACT_LAST_MATCH 2
502
+
503
+ #define YY_LESS_LINENO(n)
504
+ #define YY_LINENO_REWIND_TO(ptr)
505
+
506
+ /* Return all but the first "n" matched characters back to the input stream. */
507
+ #define yyless(n) \
508
+ do \
509
+ { \
510
+ /* Undo effects of setting up yytext. */ \
511
+ int yyless_macro_arg = (n); \
512
+ YY_LESS_LINENO(yyless_macro_arg);\
513
+ *yy_cp = (yy_hold_char); \
514
+ YY_RESTORE_YY_MORE_OFFSET \
515
+ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
516
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
517
+ } \
518
+ while ( 0 )
519
+ #define unput(c) yyunput( c, (yytext_ptr) )
520
+
521
+ #ifndef YY_STRUCT_YY_BUFFER_STATE
522
+ #define YY_STRUCT_YY_BUFFER_STATE
523
+ struct yy_buffer_state
524
+ {
525
+ /* %if-c-only */
526
+ FILE *yy_input_file;
527
+ /* %endif */
528
+
529
+ /* %if-c++-only */
530
+ /* %endif */
531
+
532
+ char *yy_ch_buf; /* input buffer */
533
+ char *yy_buf_pos; /* current position in input buffer */
534
+
535
+ /* Size of input buffer in bytes, not including room for EOB
536
+ * characters.
537
+ */
538
+ int yy_buf_size;
539
+
540
+ /* Number of characters read into yy_ch_buf, not including EOB
541
+ * characters.
542
+ */
543
+ int yy_n_chars;
544
+
545
+ /* Whether we "own" the buffer - i.e., we know we created it,
546
+ * and can realloc() it to grow it, and should free() it to
547
+ * delete it.
548
+ */
549
+ int yy_is_our_buffer;
550
+
551
+ /* Whether this is an "interactive" input source; if so, and
552
+ * if we're using stdio for input, then we want to use getc()
553
+ * instead of fread(), to make sure we stop fetching input after
554
+ * each newline.
555
+ */
556
+ int yy_is_interactive;
557
+
558
+ /* Whether we're considered to be at the beginning of a line.
559
+ * If so, '^' rules will be active on the next match, otherwise
560
+ * not.
561
+ */
562
+ int yy_at_bol;
563
+
564
+ int yy_bs_lineno; /**< The line count. */
565
+ int yy_bs_column; /**< The column count. */
566
+
567
+ /* Whether to try to fill the input buffer when we reach the
568
+ * end of it.
569
+ */
570
+ int yy_fill_buffer;
571
+
572
+ int yy_buffer_status;
573
+
574
+ #define YY_BUFFER_NEW 0
575
+ #define YY_BUFFER_NORMAL 1
576
+ /* When an EOF's been seen but there's still some text to process
577
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
578
+ * shouldn't try reading from the input source any more. We might
579
+ * still have a bunch of tokens to match, though, because of
580
+ * possible backing-up.
581
+ *
582
+ * When we actually see the EOF, we change the status to "new"
583
+ * (via yyrestart()), so that the user can continue scanning by
584
+ * just pointing yyin at a new input file.
585
+ */
586
+ #define YY_BUFFER_EOF_PENDING 2
587
+
588
+ };
589
+ #endif /* !YY_STRUCT_YY_BUFFER_STATE */
590
+
591
+ /* %if-c-only Standard (non-C++) definition */
592
+ /* %not-for-header */
593
+ /* %if-not-reentrant */
594
+
595
+ /* Stack of input buffers. */
596
+ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
597
+ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
598
+ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
599
+ /* %endif */
600
+ /* %ok-for-header */
601
+
602
+ /* %endif */
603
+
604
+ /* We provide macros for accessing buffer states in case in the
605
+ * future we want to put the buffer states in a more general
606
+ * "scanner state".
607
+ *
608
+ * Returns the top of the stack, or NULL.
609
+ */
610
+ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
611
+ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
612
+ : NULL)
613
+ /* Same as previous macro, but useful when we know that the buffer stack is not
614
+ * NULL or when we need an lvalue. For internal use only.
615
+ */
616
+ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
617
+
618
+ /* %if-c-only Standard (non-C++) definition */
619
+
620
+ /* %if-not-reentrant */
621
+ /* %not-for-header */
622
+ /* yy_hold_char holds the character lost when yytext is formed. */
623
+ static char yy_hold_char;
624
+ static int yy_n_chars; /* number of characters read into yy_ch_buf */
625
+ int yyleng;
626
+
627
+ /* Points to current character in buffer. */
628
+ static char *yy_c_buf_p = NULL;
629
+ static int yy_init = 0; /* whether we need to initialize */
630
+ static int yy_start = 0; /* start state number */
631
+
632
+ /* Flag which is used to allow yywrap()'s to do buffer switches
633
+ * instead of setting up a fresh yyin. A bit of a hack ...
634
+ */
635
+ static int yy_did_buffer_switch_on_eof;
636
+ /* %ok-for-header */
637
+
638
+ /* %endif */
639
+
640
+ void yyrestart ( FILE *input_file );
641
+ void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
642
+ YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
643
+ void yy_delete_buffer ( YY_BUFFER_STATE b );
644
+ void yy_flush_buffer ( YY_BUFFER_STATE b );
645
+ void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
646
+ void yypop_buffer_state ( void );
647
+
648
+ static void yyensure_buffer_stack ( void );
649
+ static void yy_load_buffer_state ( void );
650
+ static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
651
+ #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
652
+
653
+ YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
654
+ YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
655
+ YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
656
+
657
+ /* %endif */
658
+
659
+ void *yyalloc ( yy_size_t );
660
+ void *yyrealloc ( void *, yy_size_t );
661
+ void yyfree ( void * );
662
+
663
+ #define yy_new_buffer yy_create_buffer
664
+ #define yy_set_interactive(is_interactive) \
665
+ { \
666
+ if ( ! YY_CURRENT_BUFFER ){ \
667
+ yyensure_buffer_stack (); \
668
+ YY_CURRENT_BUFFER_LVALUE = \
669
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
670
+ } \
671
+ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
672
+ }
673
+ #define yy_set_bol(at_bol) \
674
+ { \
675
+ if ( ! YY_CURRENT_BUFFER ){\
676
+ yyensure_buffer_stack (); \
677
+ YY_CURRENT_BUFFER_LVALUE = \
678
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
679
+ } \
680
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
681
+ }
682
+ #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
683
+
684
+ /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
685
+ /* Begin user sect3 */
686
+
687
+ #define slice_wrap() (/*CONSTCOND*/1)
688
+ #define YY_SKIP_YYWRAP
689
+
690
+ #define FLEX_DEBUG
691
+ typedef flex_uint8_t YY_CHAR;
692
+
693
+ FILE *yyin = NULL, *yyout = NULL;
694
+
695
+ typedef int yy_state_type;
696
+
697
+ extern int yylineno;
698
+ int yylineno = 1;
699
+
700
+ extern char *yytext;
701
+ #ifdef yytext_ptr
702
+ #undef yytext_ptr
703
+ #endif
704
+ #define yytext_ptr yytext
705
+
706
+ /* %% [1.5] DFA */
707
+
708
+ /* %if-c-only Standard (non-C++) definition */
709
+
710
+ static yy_state_type yy_get_previous_state ( void );
711
+ static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
712
+ static int yy_get_next_buffer ( void );
713
+ static void yynoreturn yy_fatal_error ( const char* msg );
714
+
715
+ /* %endif */
716
+
717
+ /* Done after the current pattern has been matched and before the
718
+ * corresponding action - sets up yytext.
719
+ */
720
+ #define YY_DO_BEFORE_ACTION \
721
+ (yytext_ptr) = yy_bp; \
722
+ /* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
723
+ (yytext_ptr) -= (yy_more_len); \
724
+ yyleng = (int) (yy_cp - (yytext_ptr)); \
725
+ (yy_hold_char) = *yy_cp; \
726
+ *yy_cp = '\0'; \
727
+ /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
728
+ (yy_c_buf_p) = yy_cp;
729
+ /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
730
+ #define YY_NUM_RULES 51
731
+ #define YY_END_OF_BUFFER 52
732
+ /* This struct is not used in this scanner,
733
+ but its presence is necessary. */
734
+ struct yy_trans_info
735
+ {
736
+ flex_int32_t yy_verify;
737
+ flex_int32_t yy_nxt;
738
+ };
739
+ static const flex_int32_t yy_accept[220] =
740
+ { 0,
741
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
742
+ 0, 0, 0, 0, 52, 49, 45, 46, 45, 50,
743
+ 1, 50, 50, 50, 19, 19, 50, 44, 35, 50,
744
+ 49, 45, 45, 29, 26, 26, 27, 25, 26, 26,
745
+ 26, 49, 33, 45, 34, 33, 33, 45, 29, 42,
746
+ 39, 37, 38, 42, 40, 42, 29, 51, 15, 3,
747
+ 3, 18, 3, 17, 3, 3, 45, 46, 0, 19,
748
+ 19, 20, 24, 22, 20, 19, 0, 0, 0, 0,
749
+ 43, 44, 0, 44, 0, 36, 44, 0, 45, 29,
750
+ 29, 31, 0, 26, 26, 27, 28, 22, 26, 26,
751
+
752
+ 26, 26, 26, 0, 33, 24, 22, 33, 31, 33,
753
+ 42, 39, 24, 22, 41, 42, 31, 42, 3, 3,
754
+ 3, 3, 16, 4, 5, 8, 6, 14, 2, 7,
755
+ 13, 10, 3, 3, 3, 3, 3, 0, 20, 0,
756
+ 22, 21, 0, 20, 19, 47, 0, 0, 22, 21,
757
+ 26, 26, 48, 33, 22, 21, 33, 33, 42, 22,
758
+ 21, 42, 42, 3, 3, 3, 8, 14, 14, 0,
759
+ 13, 13, 9, 3, 3, 0, 20, 23, 21, 0,
760
+ 0, 21, 26, 26, 23, 21, 33, 23, 21, 42,
761
+ 3, 3, 8, 14, 2, 13, 9, 3, 0, 32,
762
+
763
+ 30, 26, 26, 26, 30, 30, 14, 13, 3, 0,
764
+ 26, 14, 11, 3, 14, 14, 14, 12, 0
765
+ } ;
766
+
767
+ static const YY_CHAR yy_ec[256] =
768
+ { 0,
769
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
770
+ 4, 4, 4, 1, 1, 1, 1, 1, 1, 1,
771
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
772
+ 1, 5, 6, 7, 8, 6, 6, 6, 9, 10,
773
+ 6, 11, 12, 13, 14, 15, 16, 17, 18, 18,
774
+ 18, 18, 18, 18, 18, 19, 19, 20, 6, 6,
775
+ 6, 6, 21, 6, 22, 22, 22, 22, 23, 24,
776
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
777
+ 25, 25, 25, 25, 26, 25, 25, 25, 25, 25,
778
+ 27, 28, 29, 6, 30, 6, 31, 31, 22, 22,
779
+
780
+ 32, 33, 25, 25, 34, 25, 25, 35, 25, 36,
781
+ 25, 25, 25, 37, 25, 37, 38, 37, 25, 39,
782
+ 25, 25, 6, 6, 6, 6, 40, 41, 41, 41,
783
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
784
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
785
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
786
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
787
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
788
+ 41, 41, 41, 41, 41, 41, 42, 41, 41, 41,
789
+ 43, 41, 41, 41, 41, 41, 41, 41, 41, 41,
790
+
791
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
792
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
793
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
794
+ 41, 41, 41, 41, 41, 41, 41, 41, 44, 41,
795
+ 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
796
+ 41, 41, 41, 41, 41
797
+ } ;
798
+
799
+ static const YY_CHAR yy_meta[45] =
800
+ { 0,
801
+ 1, 2, 3, 2, 2, 4, 5, 4, 4, 6,
802
+ 7, 4, 8, 4, 4, 9, 10, 10, 10, 6,
803
+ 4, 11, 11, 11, 12, 12, 4, 13, 8, 14,
804
+ 11, 11, 11, 12, 12, 12, 12, 12, 12, 1,
805
+ 4, 4, 4, 4
806
+ } ;
807
+
808
+ static const flex_int32_t yy_base[252] =
809
+ { 0,
810
+ 0, 43, 50, 65, 75, 90, 501, 55, 80, 123,
811
+ 166, 209, 253, 293, 544, 1343, 45, 536, 54, 1343,
812
+ 1343, 85, 70, 94, 319, 97, 513, 357, 496, 0,
813
+ 480, 128, 133, 140, 0, 60, 518, 500, 97, 142,
814
+ 146, 463, 0, 70, 1343, 106, 462, 172, 183, 0,
815
+ 500, 1343, 1343, 107, 469, 451, 188, 1343, 1343, 150,
816
+ 105, 1343, 187, 379, 222, 417, 182, 480, 143, 0,
817
+ 214, 436, 465, 450, 0, 244, 222, 0, 435, 240,
818
+ 1343, 468, 438, 0, 0, 1343, 0, 414, 266, 247,
819
+ 270, 297, 417, 0, 192, 399, 1343, 167, 275, 305,
820
+
821
+ 330, 301, 364, 347, 0, 361, 323, 321, 351, 320,
822
+ 0, 327, 306, 495, 1343, 269, 361, 270, 339, 117,
823
+ 217, 524, 1343, 1343, 1343, 191, 1343, 548, 250, 1343,
824
+ 571, 0, 379, 609, 643, 409, 348, 425, 1343, 0,
825
+ 0, 0, 267, 375, 0, 1343, 306, 237, 240, 224,
826
+ 324, 184, 1343, 445, 399, 427, 0, 179, 677, 477,
827
+ 505, 0, 168, 706, 473, 513, 230, 730, 0, 171,
828
+ 753, 0, 0, 460, 353, 273, 518, 1343, 0, 185,
829
+ 140, 155, 142, 124, 0, 436, 102, 0, 525, 79,
830
+ 369, 614, 1343, 776, 69, 799, 1343, 487, 83, 1343,
831
+
832
+ 138, 384, 0, 404, 418, 428, 822, 845, 490, 541,
833
+ 615, 868, 1343, 620, 891, 914, 937, 1343, 1343, 976,
834
+ 990, 1004, 1018, 1031, 1035, 1049, 1063, 1077, 1090, 1104,
835
+ 1118, 335, 1132, 1146, 1160, 1174, 414, 1188, 1202, 1216,
836
+ 1230, 1244, 1258, 1272, 1286, 1300, 59, 34, 435, 1314,
837
+ 1328
838
+ } ;
839
+
840
+ static const flex_int32_t yy_def[252] =
841
+ { 0,
842
+ 219, 1, 220, 220, 220, 220, 1, 1, 221, 221,
843
+ 222, 222, 223, 223, 219, 219, 219, 219, 219, 219,
844
+ 219, 219, 219, 219, 219, 219, 219, 224, 219, 225,
845
+ 219, 219, 219, 219, 226, 226, 219, 219, 226, 226,
846
+ 226, 219, 227, 219, 219, 227, 227, 219, 227, 228,
847
+ 219, 219, 219, 228, 219, 228, 228, 219, 219, 229,
848
+ 229, 219, 229, 230, 229, 229, 219, 219, 219, 25,
849
+ 219, 219, 219, 231, 72, 219, 219, 232, 225, 219,
850
+ 219, 224, 219, 82, 225, 219, 82, 219, 219, 219,
851
+ 219, 219, 219, 226, 226, 219, 219, 233, 226, 226,
852
+
853
+ 226, 226, 226, 219, 227, 227, 234, 227, 227, 227,
854
+ 228, 219, 228, 235, 219, 228, 228, 228, 229, 229,
855
+ 229, 236, 219, 219, 219, 219, 219, 219, 219, 219,
856
+ 219, 237, 229, 229, 229, 229, 229, 219, 219, 238,
857
+ 231, 239, 219, 219, 232, 219, 219, 219, 233, 240,
858
+ 226, 226, 219, 241, 234, 242, 227, 227, 243, 235,
859
+ 244, 228, 228, 245, 236, 246, 219, 219, 247, 219,
860
+ 219, 248, 249, 229, 229, 219, 219, 219, 239, 250,
861
+ 219, 240, 251, 226, 227, 242, 227, 228, 244, 228,
862
+ 229, 246, 219, 219, 219, 219, 219, 229, 250, 219,
863
+
864
+ 219, 251, 226, 226, 227, 228, 219, 219, 229, 219,
865
+ 226, 219, 219, 229, 219, 219, 219, 219, 0, 219,
866
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
867
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
868
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
869
+ 219
870
+ } ;
871
+
872
+ static const flex_int32_t yy_nxt[1388] =
873
+ { 0,
874
+ 16, 17, 18, 17, 19, 20, 21, 20, 20, 20,
875
+ 20, 22, 20, 22, 23, 24, 25, 26, 26, 27,
876
+ 20, 28, 28, 28, 28, 28, 29, 30, 20, 28,
877
+ 28, 28, 28, 28, 28, 28, 28, 28, 28, 20,
878
+ 16, 16, 16, 31, 32, 172, 67, 33, 67, 67,
879
+ 34, 36, 37, 36, 36, 67, 32, 67, 67, 33,
880
+ 38, 95, 34, 95, 95, 39, 40, 37, 36, 40,
881
+ 169, 67, 41, 67, 67, 38, 36, 37, 36, 36,
882
+ 39, 44, 45, 44, 44, 38, 72, 72, 72, 200,
883
+ 39, 40, 37, 36, 40, 46, 170, 41, 42, 69,
884
+
885
+ 38, 70, 71, 71, 73, 39, 219, 73, 219, 74,
886
+ 206, 75, 98, 71, 71, 71, 106, 113, 219, 77,
887
+ 219, 107, 114, 47, 48, 45, 44, 48, 77, 89,
888
+ 49, 67, 89, 205, 89, 90, 67, 89, 46, 210,
889
+ 90, 91, 210, 99, 91, 95, 99, 101, 203, 100,
890
+ 101, 67, 199, 67, 119, 204, 92, 92, 92, 72,
891
+ 72, 72, 102, 102, 102, 179, 47, 44, 51, 44,
892
+ 44, 201, 52, 89, 93, 67, 89, 141, 53, 90,
893
+ 103, 54, 150, 67, 91, 67, 67, 91, 219, 91,
894
+ 219, 200, 91, 95, 55, 95, 95, 121, 195, 109,
895
+
896
+ 109, 109, 122, 190, 117, 117, 117, 167, 167, 56,
897
+ 48, 51, 44, 48, 187, 52, 57, 110, 219, 184,
898
+ 219, 53, 118, 89, 54, 67, 133, 164, 75, 134,
899
+ 71, 71, 71, 143, 179, 143, 77, 55, 144, 144,
900
+ 144, 80, 80, 80, 80, 77, 193, 193, 91, 81,
901
+ 141, 91, 56, 58, 44, 59, 44, 60, 75, 62,
902
+ 76, 76, 71, 92, 92, 92, 77, 89, 63, 67,
903
+ 89, 91, 181, 90, 91, 77, 99, 170, 95, 99,
904
+ 64, 93, 100, 144, 144, 144, 92, 92, 92, 177,
905
+ 177, 177, 58, 58, 48, 59, 44, 65, 147, 62,
906
+
907
+ 66, 147, 151, 163, 93, 151, 101, 147, 63, 101,
908
+ 147, 162, 180, 92, 92, 92, 159, 102, 102, 102,
909
+ 64, 102, 102, 102, 141, 151, 141, 141, 151, 112,
910
+ 183, 101, 58, 75, 101, 76, 76, 71, 156, 103,
911
+ 67, 77, 67, 119, 145, 145, 102, 102, 102, 219,
912
+ 77, 219, 147, 158, 219, 147, 219, 78, 80, 80,
913
+ 80, 80, 147, 157, 103, 147, 81, 109, 109, 109,
914
+ 219, 154, 219, 82, 82, 82, 83, 117, 117, 117,
915
+ 89, 175, 67, 133, 85, 124, 134, 125, 198, 153,
916
+ 203, 144, 144, 144, 199, 126, 126, 152, 139, 127,
917
+
918
+ 141, 96, 141, 141, 128, 211, 129, 139, 211, 130,
919
+ 147, 130, 219, 174, 130, 130, 131, 132, 91, 210,
920
+ 219, 135, 210, 173, 173, 136, 136, 136, 179, 210,
921
+ 179, 179, 210, 136, 136, 136, 176, 179, 176, 179,
922
+ 179, 177, 177, 177, 197, 197, 178, 178, 178, 178,
923
+ 148, 137, 72, 72, 72, 105, 146, 79, 138, 139,
924
+ 105, 147, 85, 219, 174, 142, 180, 138, 139, 80,
925
+ 80, 80, 80, 141, 141, 140, 141, 81, 141, 141,
926
+ 141, 141, 68, 141, 82, 82, 82, 83, 219, 141,
927
+ 219, 210, 116, 219, 214, 85, 141, 115, 141, 141,
928
+
929
+ 141, 141, 112, 108, 104, 141, 179, 141, 179, 179,
930
+ 161, 179, 141, 179, 179, 97, 179, 179, 209, 179,
931
+ 96, 88, 86, 141, 141, 141, 179, 141, 179, 179,
932
+ 141, 179, 79, 179, 177, 177, 177, 179, 68, 166,
933
+ 179, 139, 210, 219, 42, 210, 219, 219, 219, 219,
934
+ 139, 141, 179, 179, 219, 219, 219, 92, 92, 92,
935
+ 219, 219, 219, 141, 168, 168, 168, 219, 219, 168,
936
+ 168, 168, 169, 169, 219, 219, 219, 219, 168, 168,
937
+ 168, 169, 169, 169, 169, 169, 169, 171, 171, 171,
938
+ 219, 219, 171, 171, 171, 172, 172, 219, 219, 219,
939
+
940
+ 219, 171, 171, 171, 172, 172, 172, 172, 172, 172,
941
+ 91, 219, 219, 135, 179, 179, 211, 179, 219, 211,
942
+ 179, 210, 219, 219, 214, 136, 136, 136, 219, 219,
943
+ 219, 102, 102, 102, 219, 219, 136, 136, 136, 219,
944
+ 219, 179, 219, 137, 91, 219, 219, 135, 219, 219,
945
+ 219, 219, 219, 179, 219, 219, 219, 219, 219, 136,
946
+ 136, 136, 219, 219, 219, 219, 219, 219, 219, 219,
947
+ 219, 219, 219, 219, 219, 219, 219, 137, 178, 178,
948
+ 178, 178, 219, 178, 219, 219, 219, 111, 219, 178,
949
+ 219, 219, 111, 219, 219, 219, 219, 219, 219, 219,
950
+
951
+ 219, 219, 219, 219, 219, 178, 178, 178, 178, 178,
952
+ 219, 219, 178, 219, 219, 219, 120, 219, 219, 219,
953
+ 219, 120, 219, 219, 219, 219, 219, 219, 219, 219,
954
+ 219, 219, 219, 178, 219, 219, 219, 219, 219, 219,
955
+ 219, 219, 219, 219, 219, 178, 194, 194, 194, 219,
956
+ 219, 194, 194, 194, 169, 169, 219, 219, 219, 219,
957
+ 194, 194, 194, 169, 169, 169, 169, 169, 169, 196,
958
+ 196, 196, 219, 219, 196, 196, 196, 172, 172, 219,
959
+ 219, 219, 219, 196, 196, 196, 172, 172, 172, 172,
960
+ 172, 172, 207, 207, 207, 219, 219, 207, 207, 207,
961
+
962
+ 169, 169, 219, 219, 219, 219, 207, 207, 207, 169,
963
+ 169, 169, 169, 169, 169, 208, 208, 208, 219, 219,
964
+ 208, 208, 208, 172, 172, 219, 219, 219, 219, 208,
965
+ 208, 208, 172, 172, 172, 172, 172, 172, 212, 212,
966
+ 212, 219, 219, 212, 212, 212, 169, 169, 219, 219,
967
+ 219, 219, 212, 212, 212, 169, 169, 169, 169, 169,
968
+ 169, 213, 213, 213, 219, 219, 213, 213, 213, 172,
969
+ 172, 219, 219, 219, 219, 213, 213, 213, 172, 172,
970
+ 172, 172, 172, 172, 215, 215, 215, 219, 219, 215,
971
+ 215, 215, 169, 169, 219, 219, 219, 219, 215, 215,
972
+
973
+ 215, 169, 169, 169, 169, 169, 169, 216, 216, 216,
974
+ 219, 219, 216, 216, 216, 169, 169, 219, 219, 219,
975
+ 219, 216, 216, 216, 169, 169, 169, 169, 169, 169,
976
+ 217, 217, 217, 219, 219, 217, 217, 217, 169, 169,
977
+ 219, 219, 219, 219, 217, 217, 217, 169, 169, 169,
978
+ 169, 169, 169, 218, 218, 218, 219, 219, 218, 218,
979
+ 218, 169, 169, 219, 219, 219, 219, 218, 218, 218,
980
+ 169, 169, 169, 169, 169, 169, 35, 35, 35, 35,
981
+ 35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
982
+ 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
983
+
984
+ 43, 43, 43, 43, 50, 50, 50, 50, 50, 50,
985
+ 50, 50, 50, 50, 50, 50, 50, 50, 61, 61,
986
+ 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
987
+ 61, 61, 84, 84, 219, 219, 84, 219, 219, 219,
988
+ 84, 84, 84, 84, 84, 87, 87, 219, 87, 94,
989
+ 94, 219, 94, 94, 94, 219, 94, 94, 94, 94,
990
+ 94, 94, 94, 105, 219, 219, 105, 105, 105, 105,
991
+ 105, 105, 105, 105, 105, 105, 105, 111, 219, 219,
992
+ 111, 219, 111, 111, 219, 111, 111, 111, 111, 111,
993
+ 111, 120, 219, 120, 219, 120, 120, 120, 120, 120,
994
+
995
+ 120, 120, 219, 120, 123, 123, 219, 123, 123, 123,
996
+ 123, 123, 123, 123, 123, 123, 123, 123, 141, 141,
997
+ 219, 141, 141, 141, 141, 141, 141, 141, 141, 141,
998
+ 141, 141, 149, 149, 219, 149, 149, 149, 149, 149,
999
+ 149, 149, 149, 149, 149, 149, 155, 155, 219, 155,
1000
+ 155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
1001
+ 160, 160, 219, 160, 160, 160, 160, 160, 160, 160,
1002
+ 160, 160, 160, 160, 165, 165, 219, 165, 165, 165,
1003
+ 165, 165, 165, 165, 165, 165, 165, 165, 178, 178,
1004
+ 178, 178, 178, 178, 219, 178, 219, 178, 178, 178,
1005
+
1006
+ 178, 178, 179, 179, 219, 179, 179, 179, 179, 179,
1007
+ 179, 179, 179, 179, 179, 179, 182, 182, 219, 182,
1008
+ 182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
1009
+ 185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
1010
+ 185, 185, 185, 185, 186, 186, 219, 186, 186, 186,
1011
+ 186, 186, 186, 186, 186, 186, 186, 186, 188, 188,
1012
+ 188, 188, 188, 188, 188, 188, 188, 188, 188, 188,
1013
+ 188, 188, 189, 189, 219, 189, 189, 189, 189, 189,
1014
+ 189, 189, 189, 189, 189, 189, 191, 191, 191, 191,
1015
+ 191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
1016
+
1017
+ 192, 192, 219, 192, 192, 192, 192, 192, 192, 192,
1018
+ 192, 192, 192, 192, 199, 199, 219, 199, 199, 199,
1019
+ 199, 199, 199, 199, 199, 199, 199, 199, 202, 202,
1020
+ 219, 202, 202, 202, 202, 202, 202, 202, 202, 202,
1021
+ 202, 202, 15, 219, 219, 219, 219, 219, 219, 219,
1022
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
1023
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
1024
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
1025
+ 219, 219, 219, 219, 219, 219, 219
1026
+ } ;
1027
+
1028
+ static const flex_int32_t yy_chk[1388] =
1029
+ { 0,
1030
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1031
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1032
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1033
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1034
+ 1, 1, 1, 1, 2, 248, 17, 2, 17, 17,
1035
+ 2, 3, 3, 3, 3, 19, 8, 19, 19, 8,
1036
+ 3, 36, 8, 36, 36, 3, 4, 4, 4, 4,
1037
+ 247, 44, 4, 44, 44, 4, 5, 5, 5, 5,
1038
+ 4, 9, 9, 9, 9, 5, 23, 23, 23, 199,
1039
+ 5, 6, 6, 6, 6, 9, 195, 6, 8, 22,
1040
+
1041
+ 6, 22, 22, 22, 24, 6, 61, 39, 61, 24,
1042
+ 190, 26, 39, 26, 26, 26, 46, 54, 120, 26,
1043
+ 120, 46, 54, 9, 10, 10, 10, 10, 26, 32,
1044
+ 10, 32, 32, 187, 33, 32, 33, 33, 10, 201,
1045
+ 33, 34, 201, 40, 34, 40, 40, 41, 183, 40,
1046
+ 41, 60, 183, 60, 60, 184, 34, 34, 34, 69,
1047
+ 69, 69, 41, 41, 41, 182, 10, 11, 11, 11,
1048
+ 11, 181, 11, 48, 34, 48, 48, 98, 11, 48,
1049
+ 41, 11, 98, 67, 49, 67, 67, 49, 63, 57,
1050
+ 63, 180, 57, 95, 11, 95, 95, 63, 170, 49,
1051
+
1052
+ 49, 49, 63, 163, 57, 57, 57, 126, 126, 11,
1053
+ 12, 12, 12, 12, 158, 12, 12, 49, 121, 152,
1054
+ 121, 12, 57, 65, 12, 65, 65, 121, 71, 65,
1055
+ 71, 71, 71, 77, 150, 77, 71, 12, 77, 77,
1056
+ 77, 80, 80, 80, 80, 71, 167, 167, 90, 80,
1057
+ 149, 90, 12, 13, 13, 13, 13, 13, 76, 13,
1058
+ 76, 76, 76, 90, 90, 90, 76, 89, 13, 89,
1059
+ 89, 91, 148, 89, 91, 76, 99, 129, 99, 99,
1060
+ 13, 90, 99, 143, 143, 143, 91, 91, 91, 176,
1061
+ 176, 176, 13, 14, 14, 14, 14, 14, 92, 14,
1062
+
1063
+ 14, 92, 102, 118, 91, 102, 100, 147, 14, 100,
1064
+ 147, 116, 147, 92, 92, 92, 113, 102, 102, 102,
1065
+ 14, 100, 100, 100, 107, 151, 107, 107, 151, 112,
1066
+ 151, 101, 14, 25, 101, 25, 25, 25, 107, 100,
1067
+ 119, 25, 119, 119, 232, 232, 101, 101, 101, 137,
1068
+ 25, 137, 109, 110, 175, 109, 175, 25, 28, 28,
1069
+ 28, 28, 117, 108, 101, 117, 28, 109, 109, 109,
1070
+ 191, 106, 191, 28, 28, 28, 28, 117, 117, 117,
1071
+ 133, 137, 133, 133, 28, 64, 133, 64, 175, 104,
1072
+ 202, 144, 144, 144, 202, 64, 64, 103, 144, 64,
1073
+
1074
+ 155, 96, 155, 155, 64, 204, 64, 144, 204, 64,
1075
+ 136, 64, 136, 136, 64, 64, 64, 64, 66, 205,
1076
+ 66, 66, 205, 237, 237, 136, 136, 136, 156, 206,
1077
+ 156, 156, 206, 66, 66, 66, 138, 186, 138, 186,
1078
+ 186, 138, 138, 138, 249, 249, 154, 154, 154, 154,
1079
+ 93, 66, 72, 72, 72, 154, 88, 83, 72, 72,
1080
+ 154, 174, 79, 174, 174, 74, 174, 72, 72, 82,
1081
+ 82, 82, 82, 165, 165, 73, 165, 82, 160, 165,
1082
+ 160, 160, 68, 160, 82, 82, 82, 82, 198, 160,
1083
+ 198, 209, 56, 209, 209, 82, 114, 55, 114, 114,
1084
+
1085
+ 165, 114, 51, 47, 42, 160, 161, 114, 161, 161,
1086
+ 114, 161, 165, 166, 166, 38, 166, 161, 198, 166,
1087
+ 37, 31, 29, 114, 122, 122, 189, 122, 189, 189,
1088
+ 122, 189, 27, 161, 177, 177, 177, 189, 18, 122,
1089
+ 166, 177, 210, 15, 7, 210, 0, 0, 0, 0,
1090
+ 177, 122, 166, 189, 0, 0, 0, 210, 210, 210,
1091
+ 0, 0, 0, 122, 128, 128, 128, 0, 0, 128,
1092
+ 128, 128, 128, 128, 0, 0, 0, 0, 128, 128,
1093
+ 128, 128, 128, 128, 128, 128, 128, 131, 131, 131,
1094
+ 0, 0, 131, 131, 131, 131, 131, 0, 0, 0,
1095
+
1096
+ 0, 131, 131, 131, 131, 131, 131, 131, 131, 131,
1097
+ 134, 0, 134, 134, 192, 192, 211, 192, 0, 211,
1098
+ 192, 214, 0, 214, 214, 134, 134, 134, 0, 0,
1099
+ 0, 211, 211, 211, 0, 0, 214, 214, 214, 0,
1100
+ 0, 192, 0, 134, 135, 0, 135, 135, 0, 0,
1101
+ 0, 0, 0, 192, 0, 0, 0, 0, 0, 135,
1102
+ 135, 135, 0, 0, 0, 0, 0, 0, 0, 0,
1103
+ 0, 0, 0, 0, 0, 0, 0, 135, 159, 159,
1104
+ 159, 159, 0, 159, 0, 0, 0, 159, 0, 159,
1105
+ 0, 0, 159, 0, 0, 0, 0, 0, 0, 0,
1106
+
1107
+ 0, 0, 0, 0, 0, 159, 164, 164, 164, 164,
1108
+ 0, 0, 164, 0, 0, 0, 164, 0, 0, 0,
1109
+ 0, 164, 0, 0, 0, 0, 0, 0, 0, 0,
1110
+ 0, 0, 0, 164, 0, 0, 0, 0, 0, 0,
1111
+ 0, 0, 0, 0, 0, 164, 168, 168, 168, 0,
1112
+ 0, 168, 168, 168, 168, 168, 0, 0, 0, 0,
1113
+ 168, 168, 168, 168, 168, 168, 168, 168, 168, 171,
1114
+ 171, 171, 0, 0, 171, 171, 171, 171, 171, 0,
1115
+ 0, 0, 0, 171, 171, 171, 171, 171, 171, 171,
1116
+ 171, 171, 194, 194, 194, 0, 0, 194, 194, 194,
1117
+
1118
+ 194, 194, 0, 0, 0, 0, 194, 194, 194, 194,
1119
+ 194, 194, 194, 194, 194, 196, 196, 196, 0, 0,
1120
+ 196, 196, 196, 196, 196, 0, 0, 0, 0, 196,
1121
+ 196, 196, 196, 196, 196, 196, 196, 196, 207, 207,
1122
+ 207, 0, 0, 207, 207, 207, 207, 207, 0, 0,
1123
+ 0, 0, 207, 207, 207, 207, 207, 207, 207, 207,
1124
+ 207, 208, 208, 208, 0, 0, 208, 208, 208, 208,
1125
+ 208, 0, 0, 0, 0, 208, 208, 208, 208, 208,
1126
+ 208, 208, 208, 208, 212, 212, 212, 0, 0, 212,
1127
+ 212, 212, 212, 212, 0, 0, 0, 0, 212, 212,
1128
+
1129
+ 212, 212, 212, 212, 212, 212, 212, 215, 215, 215,
1130
+ 0, 0, 215, 215, 215, 215, 215, 0, 0, 0,
1131
+ 0, 215, 215, 215, 215, 215, 215, 215, 215, 215,
1132
+ 216, 216, 216, 0, 0, 216, 216, 216, 216, 216,
1133
+ 0, 0, 0, 0, 216, 216, 216, 216, 216, 216,
1134
+ 216, 216, 216, 217, 217, 217, 0, 0, 217, 217,
1135
+ 217, 217, 217, 0, 0, 0, 0, 217, 217, 217,
1136
+ 217, 217, 217, 217, 217, 217, 220, 220, 220, 220,
1137
+ 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
1138
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
1139
+
1140
+ 221, 221, 221, 221, 222, 222, 222, 222, 222, 222,
1141
+ 222, 222, 222, 222, 222, 222, 222, 222, 223, 223,
1142
+ 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
1143
+ 223, 223, 224, 224, 0, 0, 224, 0, 0, 0,
1144
+ 224, 224, 224, 224, 224, 225, 225, 0, 225, 226,
1145
+ 226, 0, 226, 226, 226, 0, 226, 226, 226, 226,
1146
+ 226, 226, 226, 227, 0, 0, 227, 227, 227, 227,
1147
+ 227, 227, 227, 227, 227, 227, 227, 228, 0, 0,
1148
+ 228, 0, 228, 228, 0, 228, 228, 228, 228, 228,
1149
+ 228, 229, 0, 229, 0, 229, 229, 229, 229, 229,
1150
+
1151
+ 229, 229, 0, 229, 230, 230, 0, 230, 230, 230,
1152
+ 230, 230, 230, 230, 230, 230, 230, 230, 231, 231,
1153
+ 0, 231, 231, 231, 231, 231, 231, 231, 231, 231,
1154
+ 231, 231, 233, 233, 0, 233, 233, 233, 233, 233,
1155
+ 233, 233, 233, 233, 233, 233, 234, 234, 0, 234,
1156
+ 234, 234, 234, 234, 234, 234, 234, 234, 234, 234,
1157
+ 235, 235, 0, 235, 235, 235, 235, 235, 235, 235,
1158
+ 235, 235, 235, 235, 236, 236, 0, 236, 236, 236,
1159
+ 236, 236, 236, 236, 236, 236, 236, 236, 238, 238,
1160
+ 238, 238, 238, 238, 0, 238, 0, 238, 238, 238,
1161
+
1162
+ 238, 238, 239, 239, 0, 239, 239, 239, 239, 239,
1163
+ 239, 239, 239, 239, 239, 239, 240, 240, 0, 240,
1164
+ 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
1165
+ 241, 241, 241, 241, 241, 241, 241, 241, 241, 241,
1166
+ 241, 241, 241, 241, 242, 242, 0, 242, 242, 242,
1167
+ 242, 242, 242, 242, 242, 242, 242, 242, 243, 243,
1168
+ 243, 243, 243, 243, 243, 243, 243, 243, 243, 243,
1169
+ 243, 243, 244, 244, 0, 244, 244, 244, 244, 244,
1170
+ 244, 244, 244, 244, 244, 244, 245, 245, 245, 245,
1171
+ 245, 245, 245, 245, 245, 245, 245, 245, 245, 245,
1172
+
1173
+ 246, 246, 0, 246, 246, 246, 246, 246, 246, 246,
1174
+ 246, 246, 246, 246, 250, 250, 0, 250, 250, 250,
1175
+ 250, 250, 250, 250, 250, 250, 250, 250, 251, 251,
1176
+ 0, 251, 251, 251, 251, 251, 251, 251, 251, 251,
1177
+ 251, 251, 219, 219, 219, 219, 219, 219, 219, 219,
1178
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
1179
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
1180
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
1181
+ 219, 219, 219, 219, 219, 219, 219
1182
+ } ;
1183
+
1184
+ static yy_state_type yy_last_accepting_state;
1185
+ static char *yy_last_accepting_cpos;
1186
+
1187
+ extern int yy_flex_debug;
1188
+ int yy_flex_debug = 1;
1189
+
1190
+ static const flex_int32_t yy_rule_linenum[51] =
1191
+ { 0,
1192
+ 130, 144, 145, 152, 153, 154, 161, 180, 193, 203,
1193
+ 210, 211, 223, 224, 232, 243, 253, 261, 279, 302,
1194
+ 330, 335, 339, 344, 350, 351, 356, 362, 387, 392,
1195
+ 398, 399, 414, 419, 427, 432, 438, 448, 453, 457,
1196
+ 462, 468, 481, 514, 524, 527, 541, 542, 548, 562
1197
+ } ;
1198
+
1199
+ /* The intent behind this definition is that it'll catch
1200
+ * any uses of REJECT which flex missed.
1201
+ */
1202
+ #define REJECT reject_used_but_not_detected
1203
+ static int yy_more_flag = 0;
1204
+ static int yy_more_len = 0;
1205
+ #define yymore() ((yy_more_flag) = 1)
1206
+ #define YY_MORE_ADJ (yy_more_len)
1207
+ #define YY_RESTORE_YY_MORE_OFFSET
1208
+ char *yytext;
1209
+ #line 1 "src/Slice/Scanner.l"
1210
+
1211
+ #line 17 "src/Slice/Scanner.l"
1212
+
1213
+ #include "GrammarUtil.h"
1214
+ #include "Grammar.h"
1215
+
1216
+ #include <iostream>
1217
+ #include <cstdlib>
1218
+ #include <cmath>
1219
+
1220
+ using namespace std;
1221
+ using namespace Slice;
1222
+
1223
+ namespace Slice
1224
+ {
1225
+ // Definitions for the case-insensitive keyword-token map.
1226
+ using StringTokenMap = map<string, int>;
1227
+ StringTokenMap keywordMap;
1228
+
1229
+ int checkKeyword(string& identifier);
1230
+ int checkIsScoped(const string& identifier);
1231
+ }
1232
+
1233
+ // Stores the scanner's current column position. Flex also automatically
1234
+ // generates 'yylineno', which stores the scanner's current line number.
1235
+ int yycolno = 0;
1236
+ // Stores a copy of the filename that the scanner is currently scanning.
1237
+ string yyfilename;
1238
+
1239
+ namespace
1240
+ {
1241
+ void nextLine(int count = 1);
1242
+ int scanPosition(const char* s);
1243
+ void setLocation(TokenContext* location);
1244
+ void startLocation(TokenContext* location);
1245
+ void endLocation(TokenContext* location);
1246
+
1247
+ void initScanner();
1248
+ void preAction();
1249
+ void pushState(int newState);
1250
+ void popState();
1251
+
1252
+ void yynoreturn fatalError(const char* msg);
1253
+ }
1254
+
1255
+ // Override some of the functions flex auto-generates with our own implementations.
1256
+ #define YY_USER_INIT initScanner();
1257
+ #define YY_USER_ACTION preAction();
1258
+ #define YY_FATAL_ERROR(msg) fatalError(msg);
1259
+
1260
+ #line 1260 "src/Slice/Scanner.cpp"
1261
+ #line 68 "src/Slice/Scanner.l"
1262
+ /* Changes the default prefix of 'yy' to 'slice_' for functions and variables in the generated code. */
1263
+ /* Instructs flex to not suppress any warnings when generating the scanner. */
1264
+ /* Instructs flex to generate a scanner that supports verbose outputting (debug mode). */
1265
+ /* By default flex will 'default match' any text it encounters that doesn't match any specified rules. This
1266
+ * option disables default-matching (it throws 'scanner jammed' instead) to make grammar holes more obvious. */
1267
+ /* Directs flex to generate a scanner tailored for use by bison, and that supports bison's token location mechanism.
1268
+ * These options change the signature of the main lexing function, which must match the one declared in Grammar.y */
1269
+ /* Enables the use of flex's built in start-condition state stack. */
1270
+ /* Ensures flex generates a scanner that supports reading 8-bit characters. */
1271
+ /* Directs flex to generate lookup tables that are better aligned in memory to
1272
+ * improve access speeds, even if this means allocating larger tables. */
1273
+ /* Enables batching for improved performance. */
1274
+ /* Directs flex to store matched text as 'char *' instead of char arrays, for improved performance. */
1275
+ /* Disables the scanner's interactive modes for improved performance. */
1276
+ /* Disables the generation of functions we don't use to reduce clutter, and possibly improve performance. */
1277
+ #define YY_NO_INPUT 1
1278
+ /* List of start-condition states the scanner can be in. This lets the scanning be context dependent. */
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+ /* The scanner also has a built in 'INITIAL' start-condition state, which is the state the scanner is initialized in.
1286
+ * We use it solely to check for and consume any BOMs at the start of files. See Bug 3140. */
1287
+ #line 1287 "src/Slice/Scanner.cpp"
1288
+
1289
+ #define INITIAL 0
1290
+ #define C_COMMENT 1
1291
+ #define C_DOC_COMMENT 2
1292
+ #define SLICE 3
1293
+ #define PREPROCESS 4
1294
+ #define METADATA 5
1295
+ #define STRING_LITERAL 6
1296
+
1297
+ #ifndef YY_NO_UNISTD_H
1298
+ /* Special case for "unistd.h", since it is non-ANSI. We include it way
1299
+ * down here because we want the user's section 1 to have been scanned first.
1300
+ * The user has a chance to override it with an option.
1301
+ */
1302
+ /* %if-c-only */
1303
+ #include <unistd.h>
1304
+ /* %endif */
1305
+ /* %if-c++-only */
1306
+ /* %endif */
1307
+ #endif
1308
+
1309
+ #ifndef YY_EXTRA_TYPE
1310
+ #define YY_EXTRA_TYPE void *
1311
+ #endif
1312
+
1313
+ /* %if-c-only Reentrant structure and macros (non-C++). */
1314
+ /* %if-reentrant */
1315
+ /* %if-c-only */
1316
+
1317
+ static int yy_init_globals ( void );
1318
+
1319
+ /* %endif */
1320
+ /* %if-reentrant */
1321
+ /* %endif */
1322
+ /* %endif End reentrant structures and macros. */
1323
+
1324
+ /* Accessor methods to globals.
1325
+ These are made visible to non-reentrant scanners for convenience. */
1326
+
1327
+ int yylex_destroy ( void );
1328
+
1329
+ /* %if-bison-bridge */
1330
+
1331
+ void yyset_lval ( YYSTYPE * yylval_param );
1332
+
1333
+ /* %endif */
1334
+
1335
+ /* Macros after this point can all be overridden by user definitions in
1336
+ * section 1.
1337
+ */
1338
+
1339
+ #ifndef YY_SKIP_YYWRAP
1340
+ #ifdef __cplusplus
1341
+ extern "C" int yywrap ( void );
1342
+ #else
1343
+ extern int yywrap ( void );
1344
+ #endif
1345
+ #endif
1346
+
1347
+ /* %not-for-header */
1348
+ #ifndef YY_NO_UNPUT
1349
+
1350
+ #endif
1351
+ /* %ok-for-header */
1352
+
1353
+ /* %endif */
1354
+
1355
+ #ifndef yytext_ptr
1356
+ static void yy_flex_strncpy ( char *, const char *, int );
1357
+ #endif
1358
+
1359
+ #ifdef YY_NEED_STRLEN
1360
+ static int yy_flex_strlen ( const char * );
1361
+ #endif
1362
+
1363
+ #ifndef YY_NO_INPUT
1364
+ /* %if-c-only Standard (non-C++) definition */
1365
+ /* %not-for-header */
1366
+ #ifdef __cplusplus
1367
+ static int yyinput ( void );
1368
+ #else
1369
+ static int input ( void );
1370
+ #endif
1371
+ /* %ok-for-header */
1372
+
1373
+ /* %endif */
1374
+ #endif
1375
+
1376
+ /* %if-c-only */
1377
+
1378
+ static int yy_start_stack_ptr = 0;
1379
+ static int yy_start_stack_depth = 0;
1380
+ static int *yy_start_stack = NULL;
1381
+
1382
+ static void yy_push_state ( int _new_state );
1383
+
1384
+ static void yy_pop_state ( void );
1385
+
1386
+ static int yy_top_state ( void );
1387
+
1388
+ /* %endif */
1389
+
1390
+ /* Amount of stuff to slurp up with each read. */
1391
+ #ifndef YY_READ_BUF_SIZE
1392
+ #ifdef __ia64__
1393
+ /* On IA-64, the buffer size is 16k, not 8k */
1394
+ #define YY_READ_BUF_SIZE 16384
1395
+ #else
1396
+ #define YY_READ_BUF_SIZE 8192
1397
+ #endif /* __ia64__ */
1398
+ #endif
1399
+
1400
+ /* Copy whatever the last rule matched to the standard output. */
1401
+ #ifndef ECHO
1402
+ /* %if-c-only Standard (non-C++) definition */
1403
+ /* This used to be an fputs(), but since the string might contain NUL's,
1404
+ * we now use fwrite().
1405
+ */
1406
+ #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1407
+ /* %endif */
1408
+ /* %if-c++-only C++ definition */
1409
+ /* %endif */
1410
+ #endif
1411
+
1412
+ /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1413
+ * is returned in "result".
1414
+ */
1415
+ #ifndef YY_INPUT
1416
+ #define YY_INPUT(buf,result,max_size) \
1417
+ /* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
1418
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1419
+ { \
1420
+ int c = '*'; \
1421
+ int n; \
1422
+ for ( n = 0; n < max_size && \
1423
+ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1424
+ buf[n] = (char) c; \
1425
+ if ( c == '\n' ) \
1426
+ buf[n++] = (char) c; \
1427
+ if ( c == EOF && ferror( yyin ) ) \
1428
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
1429
+ result = n; \
1430
+ } \
1431
+ else \
1432
+ { \
1433
+ errno=0; \
1434
+ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1435
+ { \
1436
+ if( errno != EINTR) \
1437
+ { \
1438
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
1439
+ break; \
1440
+ } \
1441
+ errno=0; \
1442
+ clearerr(yyin); \
1443
+ } \
1444
+ }\
1445
+ \
1446
+ /* %if-c++-only C++ definition \ */\
1447
+ /* %endif */
1448
+
1449
+ #endif
1450
+
1451
+ /* No semi-colon after return; correct usage is to write "yyterminate();" -
1452
+ * we don't want an extra ';' after the "return" because that will cause
1453
+ * some compilers to complain about unreachable statements.
1454
+ */
1455
+ #ifndef yyterminate
1456
+ #define yyterminate() return YY_NULL
1457
+ #endif
1458
+
1459
+ /* Number of entries by which start-condition stack grows. */
1460
+ #ifndef YY_START_STACK_INCR
1461
+ #define YY_START_STACK_INCR 25
1462
+ #endif
1463
+
1464
+ /* Report a fatal error. */
1465
+ #ifndef YY_FATAL_ERROR
1466
+ /* %if-c-only */
1467
+ #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1468
+ /* %endif */
1469
+ /* %if-c++-only */
1470
+ /* %endif */
1471
+ #endif
1472
+
1473
+ /* %if-tables-serialization structures and prototypes */
1474
+ /* %not-for-header */
1475
+ /* %ok-for-header */
1476
+
1477
+ /* %not-for-header */
1478
+ /* %tables-yydmap generated elements */
1479
+ /* %endif */
1480
+ /* end tables serialization structures and prototypes */
1481
+
1482
+ /* %ok-for-header */
1483
+
1484
+ /* Default declaration of generated scanner - a define so the user can
1485
+ * easily add parameters.
1486
+ */
1487
+ #ifndef YY_DECL
1488
+ #define YY_DECL_IS_OURS 1
1489
+ /* %if-c-only Standard (non-C++) definition */
1490
+
1491
+ extern int yylex \
1492
+ (YYSTYPE * yylval_param, YYLTYPE * yylloc_param );
1493
+
1494
+ #define YY_DECL int yylex \
1495
+ (YYSTYPE * yylval_param, YYLTYPE * yylloc_param )
1496
+ /* %endif */
1497
+ /* %if-c++-only C++ definition */
1498
+ /* %endif */
1499
+ #endif /* !YY_DECL */
1500
+
1501
+ /* Code executed at the beginning of each rule, after yytext and yyleng
1502
+ * have been set up.
1503
+ */
1504
+ #ifndef YY_USER_ACTION
1505
+ #define YY_USER_ACTION
1506
+ #endif
1507
+
1508
+ /* Code executed at the end of each rule. */
1509
+ #ifndef YY_BREAK
1510
+ #define YY_BREAK /*LINTED*/break;
1511
+ #endif
1512
+
1513
+ /* %% [6.0] YY_RULE_SETUP definition goes here */
1514
+ #define YY_RULE_SETUP \
1515
+ if ( yyleng > 0 ) \
1516
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1517
+ (yytext[yyleng - 1] == '\n'); \
1518
+ YY_USER_ACTION
1519
+
1520
+ /* %not-for-header */
1521
+ /** The main scanner function which does all the work.
1522
+ */
1523
+ YY_DECL
1524
+ {
1525
+ yy_state_type yy_current_state;
1526
+ char *yy_cp, *yy_bp;
1527
+ int yy_act;
1528
+
1529
+ YYSTYPE * yylval;
1530
+
1531
+ YYLTYPE * yylloc;
1532
+
1533
+ yylval = yylval_param;
1534
+
1535
+ yylloc = yylloc_param;
1536
+
1537
+ if ( !(yy_init) )
1538
+ {
1539
+ (yy_init) = 1;
1540
+
1541
+ #ifdef YY_USER_INIT
1542
+ YY_USER_INIT;
1543
+ #endif
1544
+
1545
+ if ( ! (yy_start) )
1546
+ (yy_start) = 1; /* first start state */
1547
+
1548
+ if ( ! yyin )
1549
+ /* %if-c-only */
1550
+ yyin = stdin;
1551
+ /* %endif */
1552
+ /* %if-c++-only */
1553
+ /* %endif */
1554
+
1555
+ if ( ! yyout )
1556
+ /* %if-c-only */
1557
+ yyout = stdout;
1558
+ /* %endif */
1559
+ /* %if-c++-only */
1560
+ /* %endif */
1561
+
1562
+ if ( ! YY_CURRENT_BUFFER ) {
1563
+ yyensure_buffer_stack ();
1564
+ YY_CURRENT_BUFFER_LVALUE =
1565
+ yy_create_buffer( yyin, YY_BUF_SIZE );
1566
+ }
1567
+
1568
+ yy_load_buffer_state( );
1569
+ }
1570
+
1571
+ {
1572
+ /* %% [7.0] user's declarations go here */
1573
+ #line 126 "src/Slice/Scanner.l"
1574
+
1575
+
1576
+ /* ========== Literals ========== */
1577
+ /* Matches the start of a double-quoted string literal. */
1578
+ #line 1578 "src/Slice/Scanner.cpp"
1579
+
1580
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
1581
+ {
1582
+ /* %% [8.0] yymore()-related code goes here */
1583
+ (yy_more_len) = 0;
1584
+ if ( (yy_more_flag) )
1585
+ {
1586
+ (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
1587
+ (yy_more_flag) = 0;
1588
+ }
1589
+ yy_cp = (yy_c_buf_p);
1590
+
1591
+ /* Support of yytext. */
1592
+ *yy_cp = (yy_hold_char);
1593
+
1594
+ /* yy_bp points to the position in yy_ch_buf of the start of
1595
+ * the current run.
1596
+ */
1597
+ yy_bp = yy_cp;
1598
+
1599
+ /* %% [9.0] code to set up and find next match goes here */
1600
+ yy_current_state = (yy_start);
1601
+ yy_current_state += YY_AT_BOL();
1602
+ yy_match:
1603
+ do
1604
+ {
1605
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1606
+ if ( yy_accept[yy_current_state] )
1607
+ {
1608
+ (yy_last_accepting_state) = yy_current_state;
1609
+ (yy_last_accepting_cpos) = yy_cp;
1610
+ }
1611
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1612
+ {
1613
+ yy_current_state = (int) yy_def[yy_current_state];
1614
+ if ( yy_current_state >= 220 )
1615
+ yy_c = yy_meta[yy_c];
1616
+ }
1617
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1618
+ ++yy_cp;
1619
+ }
1620
+ while ( yy_current_state != 219 );
1621
+ yy_cp = (yy_last_accepting_cpos);
1622
+ yy_current_state = (yy_last_accepting_state);
1623
+
1624
+ yy_find_action:
1625
+ /* %% [10.0] code to find the action number goes here */
1626
+ yy_act = yy_accept[yy_current_state];
1627
+
1628
+ YY_DO_BEFORE_ACTION;
1629
+
1630
+ /* %% [11.0] code for yylineno update goes here */
1631
+
1632
+ do_action: /* This label is used only to access EOF actions. */
1633
+
1634
+ /* %% [12.0] debug code goes here */
1635
+ if ( yy_flex_debug )
1636
+ {
1637
+ if ( yy_act == 0 )
1638
+ fprintf( stderr, "--scanner backing up\n" );
1639
+ else if ( yy_act < 51 )
1640
+ fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
1641
+ (long)yy_rule_linenum[yy_act], yytext );
1642
+ else if ( yy_act == 51 )
1643
+ fprintf( stderr, "--accepting default rule (\"%s\")\n",
1644
+ yytext );
1645
+ else if ( yy_act == 52 )
1646
+ fprintf( stderr, "--(end of buffer or a NUL)\n" );
1647
+ else
1648
+ fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
1649
+ }
1650
+
1651
+ switch ( yy_act )
1652
+ { /* beginning of action switch */
1653
+ /* %% [13.0] actions go here */
1654
+ case 0: /* must back up */
1655
+ /* undo the effects of YY_DO_BEFORE_ACTION */
1656
+ *yy_cp = (yy_hold_char);
1657
+ yy_cp = (yy_last_accepting_cpos);
1658
+ yy_current_state = (yy_last_accepting_state);
1659
+ goto yy_find_action;
1660
+
1661
+ case 1:
1662
+ YY_RULE_SETUP
1663
+ #line 130 "src/Slice/Scanner.l"
1664
+ {
1665
+ pushState(STRING_LITERAL);
1666
+ startLocation(yylloc);
1667
+
1668
+ StringTokPtr str = make_shared<StringTok>();
1669
+ str->literal = "\"";
1670
+ *yylval = str;
1671
+ }
1672
+ YY_BREAK
1673
+ /* Matches a single escaped backslash, or as many characters as it can,
1674
+ * except backslashes, new-lines, double quotes, and non-printable ASCII characters. */
1675
+ /* Matches Escaped backslashes and any other valid string characters. Invalid characters are
1676
+ * new-lines, non-printable ASCII characters, and double-quotes. */
1677
+ case 2:
1678
+ #line 145 "src/Slice/Scanner.l"
1679
+ case 3:
1680
+ YY_RULE_SETUP
1681
+ #line 145 "src/Slice/Scanner.l"
1682
+ {
1683
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1684
+ str->literal += yytext;
1685
+ str->v += yytext;
1686
+ }
1687
+ YY_BREAK
1688
+ /* Matches an escaped double-quote, single-quote, or question mark. */
1689
+ case 4:
1690
+ #line 153 "src/Slice/Scanner.l"
1691
+ case 5:
1692
+ #line 154 "src/Slice/Scanner.l"
1693
+ case 6:
1694
+ YY_RULE_SETUP
1695
+ #line 154 "src/Slice/Scanner.l"
1696
+ {
1697
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1698
+ str->literal += yytext;
1699
+ str->v += yytext[1];
1700
+ }
1701
+ YY_BREAK
1702
+ /* Matches an ANSI-C escape code pattern. */
1703
+ case 7:
1704
+ YY_RULE_SETUP
1705
+ #line 161 "src/Slice/Scanner.l"
1706
+ {
1707
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1708
+ char ansiCode;
1709
+ switch(yytext[1])
1710
+ {
1711
+ case 'a': ansiCode = '\a'; break;
1712
+ case 'b': ansiCode = '\b'; break;
1713
+ case 'f': ansiCode = '\f'; break;
1714
+ case 'n': ansiCode = '\n'; break;
1715
+ case 'r': ansiCode = '\r'; break;
1716
+ case 't': ansiCode = '\t'; break;
1717
+ case 'v': ansiCode = '\v'; break;
1718
+ default: ansiCode = '\0'; assert(false);
1719
+ }
1720
+ str->literal += yytext;
1721
+ str->v += ansiCode;
1722
+ }
1723
+ YY_BREAK
1724
+ /* Matches an escaped octal value. Octal literals are limited to a max of 3 digits. */
1725
+ case 8:
1726
+ YY_RULE_SETUP
1727
+ #line 180 "src/Slice/Scanner.l"
1728
+ {
1729
+ int64_t value = std::stoll((yytext + 1), nullptr, 8);
1730
+ if (value > 255)
1731
+ {
1732
+ currentUnit->error("octal escape sequence out of range: '\\" + string(yytext + 1) + "'");
1733
+ }
1734
+
1735
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1736
+ str->literal += yytext;
1737
+ str->v += static_cast<char>(value);
1738
+ }
1739
+ YY_BREAK
1740
+ /* Matches an escaped hexadecimal value. Hexadecimal literals are limited to a max of 2 digits. */
1741
+ case 9:
1742
+ YY_RULE_SETUP
1743
+ #line 193 "src/Slice/Scanner.l"
1744
+ {
1745
+ int64_t value = std::stoll((yytext + 2), nullptr, 16);
1746
+ assert(value <= 255);
1747
+
1748
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1749
+ str->literal += yytext;
1750
+ str->v += static_cast<char>(value);
1751
+ }
1752
+ YY_BREAK
1753
+ /* Matches an empty hexadecimal escape value. */
1754
+ case 10:
1755
+ YY_RULE_SETUP
1756
+ #line 203 "src/Slice/Scanner.l"
1757
+ {
1758
+ currentUnit->error("no hex digit in hex escape sequence");
1759
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1760
+ str->literal += yytext;
1761
+ }
1762
+ YY_BREAK
1763
+ /* Matches a 4-char or 8-char size universal character code. */
1764
+ case 11:
1765
+ #line 211 "src/Slice/Scanner.l"
1766
+ case 12:
1767
+ YY_RULE_SETUP
1768
+ #line 211 "src/Slice/Scanner.l"
1769
+ {
1770
+ int64_t codePoint = std::stoll((yytext + 2), nullptr, 16);
1771
+ if (codePoint <= 0xdfff && codePoint >= 0xd800)
1772
+ {
1773
+ currentUnit->error("a universal character name cannot designate a surrogate: '" + string(yytext) + "'");
1774
+ }
1775
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1776
+ str->literal += yytext;
1777
+ str->v += yytext;
1778
+ }
1779
+ YY_BREAK
1780
+ /* Matches a universal character code that isn't the correct size, or uses incorrect characters. */
1781
+ case 13:
1782
+ #line 224 "src/Slice/Scanner.l"
1783
+ case 14:
1784
+ YY_RULE_SETUP
1785
+ #line 224 "src/Slice/Scanner.l"
1786
+ {
1787
+ currentUnit->error("unknown escape sequence in string literal: '" + string(yytext) + "'");
1788
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1789
+ str->literal += yytext;
1790
+ str->v += yytext;
1791
+ }
1792
+ YY_BREAK
1793
+ /* Matches an unescaped newline in a string literal, and issues an error. */
1794
+ case 15:
1795
+ /* rule 15 can match eol */
1796
+ YY_RULE_SETUP
1797
+ #line 232 "src/Slice/Scanner.l"
1798
+ {
1799
+ popState();
1800
+ endLocation(yylloc);
1801
+ nextLine();
1802
+
1803
+ currentUnit->error("encountered un-escaped EOL while scanning a string literal.");
1804
+ return ICE_STRING_LITERAL;
1805
+ }
1806
+ YY_BREAK
1807
+ /* Matches an unknown escape value. This rule has a lower priority than all the other escape rules because
1808
+ * it only matches 2 characters (the lowest any match), and it's beneath the others. */
1809
+ case 16:
1810
+ YY_RULE_SETUP
1811
+ #line 243 "src/Slice/Scanner.l"
1812
+ {
1813
+ currentUnit->warning(All, "unknown escape sequence in string literal: '" + string{yytext} + "'");
1814
+
1815
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1816
+ // Escape the entire sequence.
1817
+ str->literal += yytext;
1818
+ str->v += "\\" + string(yytext);
1819
+ }
1820
+ YY_BREAK
1821
+ /* Matches a dangling backslash, with nothing to escape. This rule is mostly included for grammar completeness. */
1822
+ case 17:
1823
+ YY_RULE_SETUP
1824
+ #line 253 "src/Slice/Scanner.l"
1825
+ {
1826
+ currentUnit->warning(All, "dangling backslash in string literal");
1827
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1828
+ str->literal += yytext;
1829
+ }
1830
+ YY_BREAK
1831
+ /* Matches the end of a double-quoted string literal, but only while scanning a string literal. Flex always prefers
1832
+ * to match the longest string it can, so quotes preceeded with a literal '\' will match the rules above this one. */
1833
+ case 18:
1834
+ YY_RULE_SETUP
1835
+ #line 261 "src/Slice/Scanner.l"
1836
+ {
1837
+ popState();
1838
+ endLocation(yylloc);
1839
+
1840
+ StringTokPtr str = dynamic_pointer_cast<StringTok>(*yylval);
1841
+ str->literal += yytext;
1842
+ return ICE_STRING_LITERAL;
1843
+ }
1844
+ YY_BREAK
1845
+ /* Matches EOF, but only while scanning a string literal. */
1846
+ case YY_STATE_EOF(STRING_LITERAL):
1847
+ #line 271 "src/Slice/Scanner.l"
1848
+ {
1849
+ popState();
1850
+ endLocation(yylloc);
1851
+
1852
+ currentUnit->error("encountered EOF while scanning a string literal");
1853
+ return ICE_STRING_LITERAL;
1854
+ }
1855
+ YY_BREAK
1856
+ case 19:
1857
+ YY_RULE_SETUP
1858
+ #line 279 "src/Slice/Scanner.l"
1859
+ {
1860
+ setLocation(yylloc);
1861
+
1862
+ IntegerTokPtr itp = make_shared<IntegerTok>();
1863
+ itp->literal = string(yytext);
1864
+ *yylval = itp;
1865
+ try
1866
+ {
1867
+ itp->v = std::stoll(string(yytext), nullptr, 0);
1868
+ }
1869
+ catch (const std::out_of_range&)
1870
+ {
1871
+ currentUnit->error("integer constant '" + string(yytext) + "' out of range");
1872
+ itp->v = INT64_MAX;
1873
+ }
1874
+ catch (const std::invalid_argument&)
1875
+ {
1876
+ currentUnit->error("invalid integer constant '" + string(yytext) + "'");
1877
+ itp->v = INT64_MAX;
1878
+ }
1879
+ return ICE_INTEGER_LITERAL;
1880
+ }
1881
+ YY_BREAK
1882
+ case 20:
1883
+ YY_RULE_SETUP
1884
+ #line 302 "src/Slice/Scanner.l"
1885
+ {
1886
+ setLocation(yylloc);
1887
+
1888
+ errno = 0;
1889
+ FloatingTokPtr ftp = make_shared<FloatingTok>();
1890
+ *yylval = ftp;
1891
+ string literal(yytext);
1892
+ ftp->literal = literal;
1893
+ char lastChar = literal[literal.size() - 1];
1894
+ if (lastChar == 'f' || lastChar == 'F')
1895
+ {
1896
+ literal = literal.substr(0, literal.size() - 1); // Clobber trailing 'f' or 'F' suffix
1897
+ }
1898
+ ftp->v = strtod(literal.c_str(), 0);
1899
+ if ((ftp->v == HUGE_VAL || ftp->v == -HUGE_VAL) && errno == ERANGE)
1900
+ {
1901
+ currentUnit->error("floating-point constant '" + string{yytext} + "' too large (overflow)");
1902
+ }
1903
+ else if (ftp->v == 0 && errno == ERANGE)
1904
+ {
1905
+ currentUnit->error("floating-point constant '" + string{yytext} + "' too small (underflow)");
1906
+ }
1907
+ return ICE_FLOATING_POINT_LITERAL;
1908
+ }
1909
+ YY_BREAK
1910
+ /* ========== Comments ========== */
1911
+ /* Matches and records a triple-slash style doc-comment. */
1912
+ case 21:
1913
+ YY_RULE_SETUP
1914
+ #line 330 "src/Slice/Scanner.l"
1915
+ {
1916
+ currentUnit->appendToDocComment(yytext + 3);
1917
+ }
1918
+ YY_BREAK
1919
+ /* Matches and consumes a C++ style comment. */
1920
+ case 22:
1921
+ YY_RULE_SETUP
1922
+ #line 335 "src/Slice/Scanner.l"
1923
+ {}
1924
+ YY_BREAK
1925
+ /* Matches the start of a C style doc-comment, and switches the scanner to the C_DOC_COMMENT state.
1926
+ * Specifically we match a forward slash and 2 stars when they are _not_ followed by either a '/' or '*' character. */
1927
+ case 23:
1928
+ /* rule 23 can match eol */
1929
+ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1930
+ YY_LINENO_REWIND_TO(yy_bp + 3);
1931
+ (yy_c_buf_p) = yy_cp = yy_bp + 3;
1932
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
1933
+ YY_RULE_SETUP
1934
+ #line 339 "src/Slice/Scanner.l"
1935
+ {
1936
+ pushState(C_DOC_COMMENT);
1937
+ }
1938
+ YY_BREAK
1939
+ /* Matches the start of a C style comment, and switches the scanner to the C_COMMENT state. */
1940
+ case 24:
1941
+ YY_RULE_SETUP
1942
+ #line 344 "src/Slice/Scanner.l"
1943
+ {
1944
+ pushState(C_COMMENT);
1945
+ }
1946
+ YY_BREAK
1947
+ /* Matches any character except for newlines and adds them to the comments. '*' are matched one at a time to ensure
1948
+ * Flex scans '* /' correctly. Flex prioritizes longer matches over shorter ones, so '* /' will match before '*'. */
1949
+ case 25:
1950
+ #line 351 "src/Slice/Scanner.l"
1951
+ case 26:
1952
+ YY_RULE_SETUP
1953
+ #line 351 "src/Slice/Scanner.l"
1954
+ {
1955
+ yymore();
1956
+ }
1957
+ YY_BREAK
1958
+ /* Matches as many newlines as are available and adds them to the comment, after incrementing the line count. */
1959
+ case 27:
1960
+ /* rule 27 can match eol */
1961
+ YY_RULE_SETUP
1962
+ #line 356 "src/Slice/Scanner.l"
1963
+ {
1964
+ nextLine(yyleng);
1965
+ yymore();
1966
+ }
1967
+ YY_BREAK
1968
+ /* Matches the end of a C style comment, and reverts the scanner state to what it previously was. */
1969
+ case 28:
1970
+ YY_RULE_SETUP
1971
+ #line 362 "src/Slice/Scanner.l"
1972
+ {
1973
+ string comment(yytext);
1974
+ // The last 2 characters are the '*/' matched by this rule.
1975
+ if (YY_START == C_DOC_COMMENT)
1976
+ {
1977
+ currentUnit->setDocComment(comment.substr(0, yyleng - 2));
1978
+ }
1979
+
1980
+ popState();
1981
+ }
1982
+ YY_BREAK
1983
+ /* Handles reaching EOF while scanning a C style comment by issuing a warning but continuing normally. */
1984
+ case YY_STATE_EOF(C_COMMENT):
1985
+ case YY_STATE_EOF(C_DOC_COMMENT):
1986
+ #line 374 "src/Slice/Scanner.l"
1987
+ {
1988
+ currentUnit->error("encountered EOF while scanning a comment");
1989
+ if (YY_START == C_DOC_COMMENT)
1990
+ {
1991
+ currentUnit->setDocComment(yytext);
1992
+ }
1993
+
1994
+ popState();
1995
+ }
1996
+ YY_BREAK
1997
+ /* ========== Preprocessor Statements ========== */
1998
+ /* Matches the empty preprocessor directive. */
1999
+ case 29:
2000
+ YY_RULE_SETUP
2001
+ #line 387 "src/Slice/Scanner.l"
2002
+ {
2003
+ pushState(PREPROCESS);
2004
+ }
2005
+ YY_BREAK
2006
+ /* Matches a line preprocessor directive, but missing a line number. */
2007
+ case 30:
2008
+ YY_RULE_SETUP
2009
+ #line 392 "src/Slice/Scanner.l"
2010
+ {
2011
+ pushState(PREPROCESS);
2012
+ currentUnit->error("missing line number in line preprocessor directive");
2013
+ }
2014
+ YY_BREAK
2015
+ /* Matches a line preprocessor directive (optionally with a file specified afterwards). */
2016
+ case 31:
2017
+ #line 399 "src/Slice/Scanner.l"
2018
+ case 32:
2019
+ YY_RULE_SETUP
2020
+ #line 399 "src/Slice/Scanner.l"
2021
+ {
2022
+ int includeAction = scanPosition(yytext);
2023
+ if (yylineno == 0 || includeAction == 1) // Push: Indicated the scanner has started scanning a new file.
2024
+ {
2025
+ pushState(INITIAL);
2026
+ }
2027
+ else if (includeAction == 2) // Pop: Indicates the scanner has completed scanning a file.
2028
+ {
2029
+ popState();
2030
+ }
2031
+ pushState(PREPROCESS);
2032
+ }
2033
+ YY_BREAK
2034
+ /* Matches any non white-space character. This is a catch-all to report any invalid characters
2035
+ * found while scanning a preprocessor directive. */
2036
+ case 33:
2037
+ YY_RULE_SETUP
2038
+ #line 414 "src/Slice/Scanner.l"
2039
+ {
2040
+ currentUnit->error("encountered unexpected token while scanning preprocessor directive: '" + string(yytext) + "'");
2041
+ }
2042
+ YY_BREAK
2043
+ /* Matches a new-line character or EOF. This signals the end of the preprocessor statement. */
2044
+ case 34:
2045
+ /* rule 34 can match eol */
2046
+ #line 420 "src/Slice/Scanner.l"
2047
+ YY_RULE_SETUP
2048
+ case YY_STATE_EOF(PREPROCESS):
2049
+ #line 420 "src/Slice/Scanner.l"
2050
+ {
2051
+ popState();
2052
+ nextLine();
2053
+ }
2054
+ YY_BREAK
2055
+ /* ========== Metadata ========== */
2056
+ case 35:
2057
+ YY_RULE_SETUP
2058
+ #line 427 "src/Slice/Scanner.l"
2059
+ {
2060
+ pushState(METADATA);
2061
+ return ICE_METADATA_OPEN;
2062
+ }
2063
+ YY_BREAK
2064
+ case 36:
2065
+ YY_RULE_SETUP
2066
+ #line 432 "src/Slice/Scanner.l"
2067
+ {
2068
+ pushState(METADATA);
2069
+ return ICE_FILE_METADATA_OPEN;
2070
+ }
2071
+ YY_BREAK
2072
+ /* Matches the start of a metadata string, then switches the scanner into STRING_LITERAL mode. */
2073
+ case 37:
2074
+ YY_RULE_SETUP
2075
+ #line 438 "src/Slice/Scanner.l"
2076
+ {
2077
+ pushState(STRING_LITERAL);
2078
+ startLocation(yylloc);
2079
+
2080
+ StringTokPtr str = make_shared<StringTok>();
2081
+ str->literal = "\"";
2082
+ *yylval = str;
2083
+ }
2084
+ YY_BREAK
2085
+ /* Matches commas between string literals in quoted metadata and forwards them to the parser. */
2086
+ case 38:
2087
+ YY_RULE_SETUP
2088
+ #line 448 "src/Slice/Scanner.l"
2089
+ {
2090
+ return yytext[0];
2091
+ }
2092
+ YY_BREAK
2093
+ /* Matches and consumes newlines in between metadata after incrementing the line count. */
2094
+ case 39:
2095
+ /* rule 39 can match eol */
2096
+ YY_RULE_SETUP
2097
+ #line 453 "src/Slice/Scanner.l"
2098
+ {
2099
+ nextLine(yyleng);
2100
+ }
2101
+ YY_BREAK
2102
+ case 40:
2103
+ YY_RULE_SETUP
2104
+ #line 457 "src/Slice/Scanner.l"
2105
+ {
2106
+ popState();
2107
+ return ICE_METADATA_CLOSE;
2108
+ }
2109
+ YY_BREAK
2110
+ case 41:
2111
+ YY_RULE_SETUP
2112
+ #line 462 "src/Slice/Scanner.l"
2113
+ {
2114
+ popState();
2115
+ return ICE_FILE_METADATA_CLOSE;
2116
+ }
2117
+ YY_BREAK
2118
+ /* Matches any characters not matched by another metadata rule (except whitespace), and reports an error. */
2119
+ case 42:
2120
+ YY_RULE_SETUP
2121
+ #line 468 "src/Slice/Scanner.l"
2122
+ {
2123
+ ostringstream msg;
2124
+ msg << "invalid tokens in metadata: '" << yytext << "' (maybe you forgot to wrap it in quotes?)";
2125
+ currentUnit->error(msg.str());
2126
+
2127
+ StringTokPtr str = make_shared<StringTok>();
2128
+ str->literal = yytext;
2129
+ *yylval = str;
2130
+ return ICE_STRING_LITERAL;
2131
+ }
2132
+ YY_BREAK
2133
+ /* ========== Identifiers and Keywords ========== */
2134
+ case 43:
2135
+ /* rule 43 can match eol */
2136
+ YY_RULE_SETUP
2137
+ #line 481 "src/Slice/Scanner.l"
2138
+ {
2139
+ StringTokPtr ident = make_shared<StringTok>();
2140
+ ident->v = *yytext == '\\' ? yytext + 1 : yytext;
2141
+ ident->v.erase(ident->v.find_first_of(" \t\v\n\r\f("));
2142
+ *yylval = ident;
2143
+ if (*yytext == '\\')
2144
+ {
2145
+ if (checkIsScoped(ident->v) == ICE_SCOPED_IDENTIFIER)
2146
+ {
2147
+ currentUnit->error("Operation identifiers cannot be scoped: '" + (ident->v) + "'");
2148
+ }
2149
+ return ICE_IDENT_OPEN;
2150
+ }
2151
+ int st = checkKeyword(ident->v);
2152
+ if (st == ICE_IDENTIFIER)
2153
+ {
2154
+ return ICE_IDENT_OPEN;
2155
+ }
2156
+ else if (st == ICE_SCOPED_IDENTIFIER)
2157
+ {
2158
+ currentUnit->error("Operation identifiers cannot be scoped: '" + (ident->v) + "'");
2159
+ return ICE_IDENT_OPEN;
2160
+ }
2161
+ else if (st == ICE_OPTIONAL)
2162
+ {
2163
+ return ICE_OPTIONAL_OPEN;
2164
+ }
2165
+ else
2166
+ {
2167
+ return ICE_KEYWORD_OPEN;
2168
+ }
2169
+ }
2170
+ YY_BREAK
2171
+ case 44:
2172
+ YY_RULE_SETUP
2173
+ #line 514 "src/Slice/Scanner.l"
2174
+ {
2175
+ StringTokPtr ident = make_shared<StringTok>();
2176
+ ident->v = *yytext == '\\' ? yytext + 1 : yytext;
2177
+ *yylval = ident;
2178
+ return *yytext == '\\' ? checkIsScoped(ident->v) : checkKeyword(ident->v);
2179
+ }
2180
+ YY_BREAK
2181
+ /* ========== Whitespace ========== */
2182
+ /* Matches and consumes any whitespace, except for newlines. */
2183
+ case 45:
2184
+ YY_RULE_SETUP
2185
+ #line 524 "src/Slice/Scanner.l"
2186
+ {}
2187
+ YY_BREAK
2188
+ /* Matches and consumes newlines, but only when the scanner isn't in a sub-scanner. */
2189
+ case 46:
2190
+ /* rule 46 can match eol */
2191
+ YY_RULE_SETUP
2192
+ #line 527 "src/Slice/Scanner.l"
2193
+ {
2194
+ nextLine(yyleng);
2195
+ }
2196
+ YY_BREAK
2197
+ /* ========== Others ========== */
2198
+ /* Handles UTF-8 BOMs.
2199
+ * The scanner has a special 'INITIAL' state, which it enters whenever it hits the start of a file.
2200
+ * This occurs when parsing initially begins, but also when we see the start of an '#include'd file.
2201
+ * As soon as the scanner sees a token, it will transition into a more specific state: SLICE, METADATA, etc.
2202
+ * depending on what token it sees.
2203
+ *
2204
+ * Since BOMs are only allowed at the beginning of files, we only allow them in this 'INITIAL' state.
2205
+ * If we see a BOM in any other state, we emit an error and throw it away. */
2206
+ case 47:
2207
+ YY_RULE_SETUP
2208
+ #line 541 "src/Slice/Scanner.l"
2209
+ { /* do nothing */ }
2210
+ YY_BREAK
2211
+ case 48:
2212
+ YY_RULE_SETUP
2213
+ #line 542 "src/Slice/Scanner.l"
2214
+ {
2215
+ currentUnit->error("encountered unexpected UTF-8 BOM in input; BOMs can only appear at the beginning of files");
2216
+ }
2217
+ YY_BREAK
2218
+ /* Matches invalid characters, one at a time to make this the 2nd lowest priority rule. All printable ASCII
2219
+ * characters are valid (those between 32 and 127 inclusively), anything outside this range is invalid. */
2220
+ case 49:
2221
+ /* rule 49 can match eol */
2222
+ YY_RULE_SETUP
2223
+ #line 548 "src/Slice/Scanner.l"
2224
+ {
2225
+ stringstream s;
2226
+ s << "illegal input character: '\\";
2227
+ s.width(3);
2228
+ s.fill('0');
2229
+ s << oct << static_cast<int>(static_cast<unsigned char>(yytext[0]));
2230
+ s << "'";
2231
+
2232
+ currentUnit->error(s.str());
2233
+ return BAD_TOKEN;
2234
+ }
2235
+ YY_BREAK
2236
+ /* Matches any valid character (except newlines) not matched by another rule and fowards it to the parser.
2237
+ * This is the lowest priority rule in the scanner, and is only active while not in a sub-scanner. */
2238
+ case 50:
2239
+ YY_RULE_SETUP
2240
+ #line 562 "src/Slice/Scanner.l"
2241
+ {
2242
+ setLocation(yylloc);
2243
+ return yytext[0];
2244
+ }
2245
+ YY_BREAK
2246
+ case 51:
2247
+ YY_RULE_SETUP
2248
+ #line 567 "src/Slice/Scanner.l"
2249
+ YY_FATAL_ERROR( "flex scanner jammed" );
2250
+ YY_BREAK
2251
+ #line 2251 "src/Slice/Scanner.cpp"
2252
+ case YY_STATE_EOF(INITIAL):
2253
+ case YY_STATE_EOF(SLICE):
2254
+ case YY_STATE_EOF(METADATA):
2255
+ yyterminate();
2256
+
2257
+ case YY_END_OF_BUFFER:
2258
+ {
2259
+ /* Amount of text matched not including the EOB char. */
2260
+ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
2261
+
2262
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
2263
+ *yy_cp = (yy_hold_char);
2264
+ YY_RESTORE_YY_MORE_OFFSET
2265
+
2266
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
2267
+ {
2268
+ /* We're scanning a new file or input source. It's
2269
+ * possible that this happened because the user
2270
+ * just pointed yyin at a new source and called
2271
+ * yylex(). If so, then we have to assure
2272
+ * consistency between YY_CURRENT_BUFFER and our
2273
+ * globals. Here is the right place to do so, because
2274
+ * this is the first action (other than possibly a
2275
+ * back-up) that will match for the new input source.
2276
+ */
2277
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2278
+ /* %if-c-only */
2279
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
2280
+ /* %endif */
2281
+ /* %if-c++-only */
2282
+ /* %endif */
2283
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
2284
+ }
2285
+
2286
+ /* Note that here we test for yy_c_buf_p "<=" to the position
2287
+ * of the first EOB in the buffer, since yy_c_buf_p will
2288
+ * already have been incremented past the NUL character
2289
+ * (since all states make transitions on EOB to the
2290
+ * end-of-buffer state). Contrast this with the test
2291
+ * in input().
2292
+ */
2293
+ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2294
+ { /* This was really a NUL. */
2295
+ yy_state_type yy_next_state;
2296
+
2297
+ (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2298
+
2299
+ yy_current_state = yy_get_previous_state( );
2300
+
2301
+ /* Okay, we're now positioned to make the NUL
2302
+ * transition. We couldn't have
2303
+ * yy_get_previous_state() go ahead and do it
2304
+ * for us because it doesn't know how to deal
2305
+ * with the possibility of jamming (and we don't
2306
+ * want to build jamming into it because then it
2307
+ * will run more slowly).
2308
+ */
2309
+
2310
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
2311
+
2312
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2313
+
2314
+ if ( yy_next_state )
2315
+ {
2316
+ /* Consume the NUL. */
2317
+ yy_cp = ++(yy_c_buf_p);
2318
+ yy_current_state = yy_next_state;
2319
+ goto yy_match;
2320
+ }
2321
+
2322
+ else
2323
+ {
2324
+ /* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
2325
+ yy_cp = (yy_last_accepting_cpos);
2326
+ yy_current_state = (yy_last_accepting_state);
2327
+ goto yy_find_action;
2328
+ }
2329
+ }
2330
+
2331
+ else switch ( yy_get_next_buffer( ) )
2332
+ {
2333
+ case EOB_ACT_END_OF_FILE:
2334
+ {
2335
+ (yy_did_buffer_switch_on_eof) = 0;
2336
+
2337
+ if ( yywrap( ) )
2338
+ {
2339
+ /* Note: because we've taken care in
2340
+ * yy_get_next_buffer() to have set up
2341
+ * yytext, we can now set up
2342
+ * yy_c_buf_p so that if some total
2343
+ * hoser (like flex itself) wants to
2344
+ * call the scanner after we return the
2345
+ * YY_NULL, it'll still work - another
2346
+ * YY_NULL will get returned.
2347
+ */
2348
+ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2349
+
2350
+ yy_act = YY_STATE_EOF(YY_START);
2351
+ goto do_action;
2352
+ }
2353
+
2354
+ else
2355
+ {
2356
+ if ( ! (yy_did_buffer_switch_on_eof) )
2357
+ YY_NEW_FILE;
2358
+ }
2359
+ break;
2360
+ }
2361
+
2362
+ case EOB_ACT_CONTINUE_SCAN:
2363
+ (yy_c_buf_p) =
2364
+ (yytext_ptr) + yy_amount_of_matched_text;
2365
+
2366
+ yy_current_state = yy_get_previous_state( );
2367
+
2368
+ yy_cp = (yy_c_buf_p);
2369
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2370
+ goto yy_match;
2371
+
2372
+ case EOB_ACT_LAST_MATCH:
2373
+ (yy_c_buf_p) =
2374
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2375
+
2376
+ yy_current_state = yy_get_previous_state( );
2377
+
2378
+ yy_cp = (yy_c_buf_p);
2379
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2380
+ goto yy_find_action;
2381
+ }
2382
+ break;
2383
+ }
2384
+
2385
+ default:
2386
+ YY_FATAL_ERROR(
2387
+ "fatal flex scanner internal error--no action found" );
2388
+ } /* end of action switch */
2389
+ } /* end of scanning one token */
2390
+ } /* end of user's declarations */
2391
+ } /* end of yylex */
2392
+ /* %ok-for-header */
2393
+
2394
+ /* %if-c++-only */
2395
+ /* %not-for-header */
2396
+ /* %ok-for-header */
2397
+
2398
+ /* %endif */
2399
+
2400
+ /* yy_get_next_buffer - try to read in a new buffer
2401
+ *
2402
+ * Returns a code representing an action:
2403
+ * EOB_ACT_LAST_MATCH -
2404
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2405
+ * EOB_ACT_END_OF_FILE - end of file
2406
+ */
2407
+ /* %if-c-only */
2408
+ static int yy_get_next_buffer (void)
2409
+ /* %endif */
2410
+ /* %if-c++-only */
2411
+ /* %endif */
2412
+ {
2413
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2414
+ char *source = (yytext_ptr);
2415
+ int number_to_move, i;
2416
+ int ret_val;
2417
+
2418
+ if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2419
+ YY_FATAL_ERROR(
2420
+ "fatal flex scanner internal error--end of buffer missed" );
2421
+
2422
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2423
+ { /* Don't try to fill the buffer, so this is an EOF. */
2424
+ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2425
+ {
2426
+ /* We matched a single character, the EOB, so
2427
+ * treat this as a final EOF.
2428
+ */
2429
+ return EOB_ACT_END_OF_FILE;
2430
+ }
2431
+
2432
+ else
2433
+ {
2434
+ /* We matched some text prior to the EOB, first
2435
+ * process it.
2436
+ */
2437
+ return EOB_ACT_LAST_MATCH;
2438
+ }
2439
+ }
2440
+
2441
+ /* Try to read more data. */
2442
+
2443
+ /* First move last chars to start of buffer. */
2444
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
2445
+
2446
+ for ( i = 0; i < number_to_move; ++i )
2447
+ *(dest++) = *(source++);
2448
+
2449
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2450
+ /* don't do the read, it's not guaranteed to return an EOF,
2451
+ * just force an EOF
2452
+ */
2453
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2454
+
2455
+ else
2456
+ {
2457
+ int num_to_read =
2458
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2459
+
2460
+ while ( num_to_read <= 0 )
2461
+ { /* Not enough room in the buffer - grow it. */
2462
+
2463
+ /* just a shorter name for the current buffer */
2464
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
2465
+
2466
+ int yy_c_buf_p_offset =
2467
+ (int) ((yy_c_buf_p) - b->yy_ch_buf);
2468
+
2469
+ if ( b->yy_is_our_buffer )
2470
+ {
2471
+ int new_size = b->yy_buf_size * 2;
2472
+
2473
+ if ( new_size <= 0 )
2474
+ b->yy_buf_size += b->yy_buf_size / 8;
2475
+ else
2476
+ b->yy_buf_size *= 2;
2477
+
2478
+ b->yy_ch_buf = (char *)
2479
+ /* Include room in for 2 EOB chars. */
2480
+ yyrealloc( (void *) b->yy_ch_buf,
2481
+ (yy_size_t) (b->yy_buf_size + 2) );
2482
+ }
2483
+ else
2484
+ /* Can't grow it, we don't own it. */
2485
+ b->yy_ch_buf = NULL;
2486
+
2487
+ if ( ! b->yy_ch_buf )
2488
+ YY_FATAL_ERROR(
2489
+ "fatal error - scanner input buffer overflow" );
2490
+
2491
+ (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2492
+
2493
+ num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2494
+ number_to_move - 1;
2495
+
2496
+ }
2497
+
2498
+ if ( num_to_read > YY_READ_BUF_SIZE )
2499
+ num_to_read = YY_READ_BUF_SIZE;
2500
+
2501
+ /* Read in more data. */
2502
+ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2503
+ (yy_n_chars), num_to_read );
2504
+
2505
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2506
+ }
2507
+
2508
+ if ( (yy_n_chars) == 0 )
2509
+ {
2510
+ if ( number_to_move == YY_MORE_ADJ )
2511
+ {
2512
+ ret_val = EOB_ACT_END_OF_FILE;
2513
+ yyrestart( yyin );
2514
+ }
2515
+
2516
+ else
2517
+ {
2518
+ ret_val = EOB_ACT_LAST_MATCH;
2519
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2520
+ YY_BUFFER_EOF_PENDING;
2521
+ }
2522
+ }
2523
+
2524
+ else
2525
+ ret_val = EOB_ACT_CONTINUE_SCAN;
2526
+
2527
+ if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2528
+ /* Extend the array by 50%, plus the number we really need. */
2529
+ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2530
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
2531
+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
2532
+ if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2533
+ YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2534
+ /* "- 2" to take care of EOB's */
2535
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
2536
+ }
2537
+
2538
+ (yy_n_chars) += number_to_move;
2539
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2540
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2541
+
2542
+ (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2543
+
2544
+ return ret_val;
2545
+ }
2546
+
2547
+ /* yy_get_previous_state - get the state just before the EOB char was reached */
2548
+
2549
+ /* %if-c-only */
2550
+ /* %not-for-header */
2551
+ static yy_state_type yy_get_previous_state (void)
2552
+ /* %endif */
2553
+ /* %if-c++-only */
2554
+ /* %endif */
2555
+ {
2556
+ yy_state_type yy_current_state;
2557
+ char *yy_cp;
2558
+
2559
+ /* %% [15.0] code to get the start state into yy_current_state goes here */
2560
+ yy_current_state = (yy_start);
2561
+ yy_current_state += YY_AT_BOL();
2562
+
2563
+ for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2564
+ {
2565
+ /* %% [16.0] code to find the next state goes here */
2566
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2567
+ if ( yy_accept[yy_current_state] )
2568
+ {
2569
+ (yy_last_accepting_state) = yy_current_state;
2570
+ (yy_last_accepting_cpos) = yy_cp;
2571
+ }
2572
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2573
+ {
2574
+ yy_current_state = (int) yy_def[yy_current_state];
2575
+ if ( yy_current_state >= 220 )
2576
+ yy_c = yy_meta[yy_c];
2577
+ }
2578
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2579
+ }
2580
+
2581
+ return yy_current_state;
2582
+ }
2583
+
2584
+ /* yy_try_NUL_trans - try to make a transition on the NUL character
2585
+ *
2586
+ * synopsis
2587
+ * next_state = yy_try_NUL_trans( current_state );
2588
+ */
2589
+ /* %if-c-only */
2590
+ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2591
+ /* %endif */
2592
+ /* %if-c++-only */
2593
+ /* %endif */
2594
+ {
2595
+ int yy_is_jam;
2596
+ /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
2597
+ char *yy_cp = (yy_c_buf_p);
2598
+
2599
+ YY_CHAR yy_c = 1;
2600
+ if ( yy_accept[yy_current_state] )
2601
+ {
2602
+ (yy_last_accepting_state) = yy_current_state;
2603
+ (yy_last_accepting_cpos) = yy_cp;
2604
+ }
2605
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2606
+ {
2607
+ yy_current_state = (int) yy_def[yy_current_state];
2608
+ if ( yy_current_state >= 220 )
2609
+ yy_c = yy_meta[yy_c];
2610
+ }
2611
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2612
+ yy_is_jam = (yy_current_state == 219);
2613
+
2614
+ return yy_is_jam ? 0 : yy_current_state;
2615
+ }
2616
+
2617
+ #ifndef YY_NO_UNPUT
2618
+ /* %if-c-only */
2619
+
2620
+ /* %endif */
2621
+ #endif
2622
+
2623
+ /* %if-c-only */
2624
+ #ifndef YY_NO_INPUT
2625
+ #ifdef __cplusplus
2626
+ static int yyinput (void)
2627
+ #else
2628
+ static int input (void)
2629
+ #endif
2630
+
2631
+ /* %endif */
2632
+ /* %if-c++-only */
2633
+ /* %endif */
2634
+ {
2635
+ int c;
2636
+
2637
+ *(yy_c_buf_p) = (yy_hold_char);
2638
+
2639
+ if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2640
+ {
2641
+ /* yy_c_buf_p now points to the character we want to return.
2642
+ * If this occurs *before* the EOB characters, then it's a
2643
+ * valid NUL; if not, then we've hit the end of the buffer.
2644
+ */
2645
+ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2646
+ /* This was really a NUL. */
2647
+ *(yy_c_buf_p) = '\0';
2648
+
2649
+ else
2650
+ { /* need more input */
2651
+ int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
2652
+ ++(yy_c_buf_p);
2653
+
2654
+ switch ( yy_get_next_buffer( ) )
2655
+ {
2656
+ case EOB_ACT_LAST_MATCH:
2657
+ /* This happens because yy_g_n_b()
2658
+ * sees that we've accumulated a
2659
+ * token and flags that we need to
2660
+ * try matching the token before
2661
+ * proceeding. But for input(),
2662
+ * there's no matching to consider.
2663
+ * So convert the EOB_ACT_LAST_MATCH
2664
+ * to EOB_ACT_END_OF_FILE.
2665
+ */
2666
+
2667
+ /* Reset buffer status. */
2668
+ yyrestart( yyin );
2669
+
2670
+ /*FALLTHROUGH*/
2671
+
2672
+ case EOB_ACT_END_OF_FILE:
2673
+ {
2674
+ if ( yywrap( ) )
2675
+ return 0;
2676
+
2677
+ if ( ! (yy_did_buffer_switch_on_eof) )
2678
+ YY_NEW_FILE;
2679
+ #ifdef __cplusplus
2680
+ return yyinput();
2681
+ #else
2682
+ return input();
2683
+ #endif
2684
+ }
2685
+
2686
+ case EOB_ACT_CONTINUE_SCAN:
2687
+ (yy_c_buf_p) = (yytext_ptr) + offset;
2688
+ break;
2689
+ }
2690
+ }
2691
+ }
2692
+
2693
+ c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2694
+ *(yy_c_buf_p) = '\0'; /* preserve yytext */
2695
+ (yy_hold_char) = *++(yy_c_buf_p);
2696
+
2697
+ /* %% [19.0] update BOL and yylineno */
2698
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2699
+
2700
+ return c;
2701
+ }
2702
+ /* %if-c-only */
2703
+ #endif /* ifndef YY_NO_INPUT */
2704
+ /* %endif */
2705
+
2706
+ /** Immediately switch to a different input stream.
2707
+ * @param input_file A readable stream.
2708
+ *
2709
+ * @note This function does not reset the start condition to @c INITIAL .
2710
+ */
2711
+ /* %if-c-only */
2712
+ void yyrestart (FILE * input_file )
2713
+ /* %endif */
2714
+ /* %if-c++-only */
2715
+ /* %endif */
2716
+ {
2717
+
2718
+ if ( ! YY_CURRENT_BUFFER ){
2719
+ yyensure_buffer_stack ();
2720
+ YY_CURRENT_BUFFER_LVALUE =
2721
+ yy_create_buffer( yyin, YY_BUF_SIZE );
2722
+ }
2723
+
2724
+ yy_init_buffer( YY_CURRENT_BUFFER, input_file );
2725
+ yy_load_buffer_state( );
2726
+ }
2727
+
2728
+ /* %if-c++-only */
2729
+ /* %endif */
2730
+
2731
+ /** Switch to a different input buffer.
2732
+ * @param new_buffer The new input buffer.
2733
+ *
2734
+ */
2735
+ /* %if-c-only */
2736
+ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2737
+ /* %endif */
2738
+ /* %if-c++-only */
2739
+ /* %endif */
2740
+ {
2741
+
2742
+ /* TODO. We should be able to replace this entire function body
2743
+ * with
2744
+ * yypop_buffer_state();
2745
+ * yypush_buffer_state(new_buffer);
2746
+ */
2747
+ yyensure_buffer_stack ();
2748
+ if ( YY_CURRENT_BUFFER == new_buffer )
2749
+ return;
2750
+
2751
+ if ( YY_CURRENT_BUFFER )
2752
+ {
2753
+ /* Flush out information for old buffer. */
2754
+ *(yy_c_buf_p) = (yy_hold_char);
2755
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2756
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2757
+ }
2758
+
2759
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
2760
+ yy_load_buffer_state( );
2761
+
2762
+ /* We don't actually know whether we did this switch during
2763
+ * EOF (yywrap()) processing, but the only time this flag
2764
+ * is looked at is after yywrap() is called, so it's safe
2765
+ * to go ahead and always set it.
2766
+ */
2767
+ (yy_did_buffer_switch_on_eof) = 1;
2768
+ }
2769
+
2770
+ /* %if-c-only */
2771
+ static void yy_load_buffer_state (void)
2772
+ /* %endif */
2773
+ /* %if-c++-only */
2774
+ /* %endif */
2775
+ {
2776
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2777
+ (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2778
+ /* %if-c-only */
2779
+ yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2780
+ /* %endif */
2781
+ /* %if-c++-only */
2782
+ /* %endif */
2783
+ (yy_hold_char) = *(yy_c_buf_p);
2784
+ }
2785
+
2786
+ /** Allocate and initialize an input buffer state.
2787
+ * @param file A readable stream.
2788
+ * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2789
+ *
2790
+ * @return the allocated buffer state.
2791
+ */
2792
+ /* %if-c-only */
2793
+ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
2794
+ /* %endif */
2795
+ /* %if-c++-only */
2796
+ /* %endif */
2797
+ {
2798
+ YY_BUFFER_STATE b;
2799
+
2800
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
2801
+ if ( ! b )
2802
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2803
+
2804
+ b->yy_buf_size = size;
2805
+
2806
+ /* yy_ch_buf has to be 2 characters longer than the size given because
2807
+ * we need to put in 2 end-of-buffer characters.
2808
+ */
2809
+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
2810
+ if ( ! b->yy_ch_buf )
2811
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2812
+
2813
+ b->yy_is_our_buffer = 1;
2814
+
2815
+ yy_init_buffer( b, file );
2816
+
2817
+ return b;
2818
+ }
2819
+
2820
+ /* %if-c++-only */
2821
+ /* %endif */
2822
+
2823
+ /** Destroy the buffer.
2824
+ * @param b a buffer created with yy_create_buffer()
2825
+ *
2826
+ */
2827
+ /* %if-c-only */
2828
+ void yy_delete_buffer (YY_BUFFER_STATE b )
2829
+ /* %endif */
2830
+ /* %if-c++-only */
2831
+ /* %endif */
2832
+ {
2833
+
2834
+ if ( ! b )
2835
+ return;
2836
+
2837
+ if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2838
+ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2839
+
2840
+ if ( b->yy_is_our_buffer )
2841
+ yyfree( (void *) b->yy_ch_buf );
2842
+
2843
+ yyfree( (void *) b );
2844
+ }
2845
+
2846
+ /* Initializes or reinitializes a buffer.
2847
+ * This function is sometimes called more than once on the same buffer,
2848
+ * such as during a yyrestart() or at EOF.
2849
+ */
2850
+ /* %if-c-only */
2851
+ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
2852
+ /* %endif */
2853
+ /* %if-c++-only */
2854
+ /* %endif */
2855
+
2856
+ {
2857
+ int oerrno = errno;
2858
+
2859
+ yy_flush_buffer( b );
2860
+
2861
+ /* %if-c-only */
2862
+ b->yy_input_file = file;
2863
+ /* %endif */
2864
+ /* %if-c++-only */
2865
+ /* %endif */
2866
+ b->yy_fill_buffer = 1;
2867
+
2868
+ /* If b is the current buffer, then yy_init_buffer was _probably_
2869
+ * called from yyrestart() or through yy_get_next_buffer.
2870
+ * In that case, we don't want to reset the lineno or column.
2871
+ */
2872
+ if (b != YY_CURRENT_BUFFER){
2873
+ b->yy_bs_lineno = 1;
2874
+ b->yy_bs_column = 0;
2875
+ }
2876
+
2877
+ /* %if-c-only */
2878
+
2879
+ b->yy_is_interactive = 0;
2880
+
2881
+ /* %endif */
2882
+ /* %if-c++-only */
2883
+ /* %endif */
2884
+ errno = oerrno;
2885
+ }
2886
+
2887
+ /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2888
+ * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2889
+ *
2890
+ */
2891
+ /* %if-c-only */
2892
+ void yy_flush_buffer (YY_BUFFER_STATE b )
2893
+ /* %endif */
2894
+ /* %if-c++-only */
2895
+ /* %endif */
2896
+ {
2897
+ if ( ! b )
2898
+ return;
2899
+
2900
+ b->yy_n_chars = 0;
2901
+
2902
+ /* We always need two end-of-buffer characters. The first causes
2903
+ * a transition to the end-of-buffer state. The second causes
2904
+ * a jam in that state.
2905
+ */
2906
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2907
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2908
+
2909
+ b->yy_buf_pos = &b->yy_ch_buf[0];
2910
+
2911
+ b->yy_at_bol = 1;
2912
+ b->yy_buffer_status = YY_BUFFER_NEW;
2913
+
2914
+ if ( b == YY_CURRENT_BUFFER )
2915
+ yy_load_buffer_state( );
2916
+ }
2917
+
2918
+ /* %if-c-or-c++ */
2919
+ /** Pushes the new state onto the stack. The new state becomes
2920
+ * the current state. This function will allocate the stack
2921
+ * if necessary.
2922
+ * @param new_buffer The new state.
2923
+ *
2924
+ */
2925
+ /* %if-c-only */
2926
+ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
2927
+ /* %endif */
2928
+ /* %if-c++-only */
2929
+ /* %endif */
2930
+ {
2931
+ if (new_buffer == NULL)
2932
+ return;
2933
+
2934
+ yyensure_buffer_stack();
2935
+
2936
+ /* This block is copied from yy_switch_to_buffer. */
2937
+ if ( YY_CURRENT_BUFFER )
2938
+ {
2939
+ /* Flush out information for old buffer. */
2940
+ *(yy_c_buf_p) = (yy_hold_char);
2941
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2942
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2943
+ }
2944
+
2945
+ /* Only push if top exists. Otherwise, replace top. */
2946
+ if (YY_CURRENT_BUFFER)
2947
+ (yy_buffer_stack_top)++;
2948
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
2949
+
2950
+ /* copied from yy_switch_to_buffer. */
2951
+ yy_load_buffer_state( );
2952
+ (yy_did_buffer_switch_on_eof) = 1;
2953
+ }
2954
+ /* %endif */
2955
+
2956
+ /* %if-c-or-c++ */
2957
+ /** Removes and deletes the top of the stack, if present.
2958
+ * The next element becomes the new top.
2959
+ *
2960
+ */
2961
+ /* %if-c-only */
2962
+ void yypop_buffer_state (void)
2963
+ /* %endif */
2964
+ /* %if-c++-only */
2965
+ /* %endif */
2966
+ {
2967
+ if (!YY_CURRENT_BUFFER)
2968
+ return;
2969
+
2970
+ yy_delete_buffer(YY_CURRENT_BUFFER );
2971
+ YY_CURRENT_BUFFER_LVALUE = NULL;
2972
+ if ((yy_buffer_stack_top) > 0)
2973
+ --(yy_buffer_stack_top);
2974
+
2975
+ if (YY_CURRENT_BUFFER) {
2976
+ yy_load_buffer_state( );
2977
+ (yy_did_buffer_switch_on_eof) = 1;
2978
+ }
2979
+ }
2980
+ /* %endif */
2981
+
2982
+ /* %if-c-or-c++ */
2983
+ /* Allocates the stack if it does not exist.
2984
+ * Guarantees space for at least one push.
2985
+ */
2986
+ /* %if-c-only */
2987
+ static void yyensure_buffer_stack (void)
2988
+ /* %endif */
2989
+ /* %if-c++-only */
2990
+ /* %endif */
2991
+ {
2992
+ yy_size_t num_to_alloc;
2993
+
2994
+ if (!(yy_buffer_stack)) {
2995
+
2996
+ /* First allocation is just for 2 elements, since we don't know if this
2997
+ * scanner will even need a stack. We use 2 instead of 1 to avoid an
2998
+ * immediate realloc on the next call.
2999
+ */
3000
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
3001
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
3002
+ (num_to_alloc * sizeof(struct yy_buffer_state*)
3003
+ );
3004
+ if ( ! (yy_buffer_stack) )
3005
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
3006
+
3007
+ memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
3008
+
3009
+ (yy_buffer_stack_max) = num_to_alloc;
3010
+ (yy_buffer_stack_top) = 0;
3011
+ return;
3012
+ }
3013
+
3014
+ if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
3015
+
3016
+ /* Increase the buffer to prepare for a possible push. */
3017
+ yy_size_t grow_size = 8 /* arbitrary grow size */;
3018
+
3019
+ num_to_alloc = (yy_buffer_stack_max) + grow_size;
3020
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
3021
+ ((yy_buffer_stack),
3022
+ num_to_alloc * sizeof(struct yy_buffer_state*)
3023
+ );
3024
+ if ( ! (yy_buffer_stack) )
3025
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
3026
+
3027
+ /* zero only the new slots.*/
3028
+ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
3029
+ (yy_buffer_stack_max) = num_to_alloc;
3030
+ }
3031
+ }
3032
+ /* %endif */
3033
+
3034
+ /* %if-c-only */
3035
+ static void yy_push_state (int _new_state )
3036
+ /* %endif */
3037
+ /* %if-c++-only */
3038
+ /* %endif */
3039
+ {
3040
+ if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
3041
+ {
3042
+ yy_size_t new_size;
3043
+
3044
+ (yy_start_stack_depth) += YY_START_STACK_INCR;
3045
+ new_size = (yy_size_t) (yy_start_stack_depth) * sizeof( int );
3046
+
3047
+ if ( ! (yy_start_stack) )
3048
+ (yy_start_stack) = (int *) yyalloc( new_size );
3049
+
3050
+ else
3051
+ (yy_start_stack) = (int *) yyrealloc(
3052
+ (void *) (yy_start_stack), new_size );
3053
+
3054
+ if ( ! (yy_start_stack) )
3055
+ YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
3056
+ }
3057
+
3058
+ (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START;
3059
+
3060
+ BEGIN(_new_state);
3061
+ }
3062
+
3063
+ /* %if-c-only */
3064
+ static void yy_pop_state (void)
3065
+ /* %endif */
3066
+ /* %if-c++-only */
3067
+ /* %endif */
3068
+ {
3069
+ if ( --(yy_start_stack_ptr) < 0 )
3070
+ YY_FATAL_ERROR( "start-condition stack underflow" );
3071
+
3072
+ BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
3073
+ }
3074
+
3075
+ /* %if-c-only */
3076
+ static int yy_top_state (void)
3077
+ /* %endif */
3078
+ /* %if-c++-only */
3079
+ /* %endif */
3080
+ {
3081
+ return (yy_start_stack)[(yy_start_stack_ptr) - 1];
3082
+ }
3083
+
3084
+ #ifndef YY_EXIT_FAILURE
3085
+ #define YY_EXIT_FAILURE 2
3086
+ #endif
3087
+
3088
+ /* %if-c-only */
3089
+ static void yynoreturn yy_fatal_error (const char* msg )
3090
+ {
3091
+ fprintf( stderr, "%s\n", msg );
3092
+ exit( YY_EXIT_FAILURE );
3093
+ }
3094
+ /* %endif */
3095
+ /* %if-c++-only */
3096
+ /* %endif */
3097
+
3098
+ /* Redefine yyless() so it works in section 3 code. */
3099
+
3100
+ #undef yyless
3101
+ #define yyless(n) \
3102
+ do \
3103
+ { \
3104
+ /* Undo effects of setting up yytext. */ \
3105
+ int yyless_macro_arg = (n); \
3106
+ YY_LESS_LINENO(yyless_macro_arg);\
3107
+ yytext[yyleng] = (yy_hold_char); \
3108
+ (yy_c_buf_p) = yytext + yyless_macro_arg; \
3109
+ (yy_hold_char) = *(yy_c_buf_p); \
3110
+ *(yy_c_buf_p) = '\0'; \
3111
+ yyleng = yyless_macro_arg; \
3112
+ } \
3113
+ while ( 0 )
3114
+
3115
+ /* Accessor methods (get/set functions) to struct members. */
3116
+
3117
+ /* %if-c-only */
3118
+ /* %if-reentrant */
3119
+ /* %endif */
3120
+
3121
+ /** Get the current token.
3122
+ *
3123
+ */
3124
+
3125
+ /* %if-reentrant */
3126
+ /* %endif */
3127
+
3128
+ /* %endif */
3129
+
3130
+ /* %if-reentrant */
3131
+ /* %if-bison-bridge */
3132
+ /* %endif */
3133
+ /* %endif if-c-only */
3134
+
3135
+ /* %if-c-only */
3136
+ static int yy_init_globals (void)
3137
+ {
3138
+ /* Initialization is the same as for the non-reentrant scanner.
3139
+ * This function is called from yylex_destroy(), so don't allocate here.
3140
+ */
3141
+
3142
+ (yy_buffer_stack) = NULL;
3143
+ (yy_buffer_stack_top) = 0;
3144
+ (yy_buffer_stack_max) = 0;
3145
+ (yy_c_buf_p) = NULL;
3146
+ (yy_init) = 0;
3147
+ (yy_start) = 0;
3148
+
3149
+ (yy_start_stack_ptr) = 0;
3150
+ (yy_start_stack_depth) = 0;
3151
+ (yy_start_stack) = NULL;
3152
+
3153
+ /* Defined in main.c */
3154
+ #ifdef YY_STDINIT
3155
+ yyin = stdin;
3156
+ yyout = stdout;
3157
+ #else
3158
+ yyin = NULL;
3159
+ yyout = NULL;
3160
+ #endif
3161
+
3162
+ /* For future reference: Set errno on error, since we are called by
3163
+ * yylex_init()
3164
+ */
3165
+ return 0;
3166
+ }
3167
+ /* %endif */
3168
+
3169
+ /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
3170
+ /* yylex_destroy is for both reentrant and non-reentrant scanners. */
3171
+ int yylex_destroy (void)
3172
+ {
3173
+
3174
+ /* Pop the buffer stack, destroying each element. */
3175
+ while(YY_CURRENT_BUFFER){
3176
+ yy_delete_buffer( YY_CURRENT_BUFFER );
3177
+ YY_CURRENT_BUFFER_LVALUE = NULL;
3178
+ yypop_buffer_state();
3179
+ }
3180
+
3181
+ /* Destroy the stack itself. */
3182
+ yyfree((yy_buffer_stack) );
3183
+ (yy_buffer_stack) = NULL;
3184
+
3185
+ /* Destroy the start condition stack. */
3186
+ yyfree( (yy_start_stack) );
3187
+ (yy_start_stack) = NULL;
3188
+
3189
+ /* Reset the globals. This is important in a non-reentrant scanner so the next time
3190
+ * yylex() is called, initialization will occur. */
3191
+ yy_init_globals( );
3192
+
3193
+ /* %if-reentrant */
3194
+ /* %endif */
3195
+ return 0;
3196
+ }
3197
+ /* %endif */
3198
+
3199
+ /*
3200
+ * Internal utility routines.
3201
+ */
3202
+
3203
+ #ifndef yytext_ptr
3204
+ static void yy_flex_strncpy (char* s1, const char * s2, int n )
3205
+ {
3206
+
3207
+ int i;
3208
+ for ( i = 0; i < n; ++i )
3209
+ s1[i] = s2[i];
3210
+ }
3211
+ #endif
3212
+
3213
+ #ifdef YY_NEED_STRLEN
3214
+ static int yy_flex_strlen (const char * s )
3215
+ {
3216
+ int n;
3217
+ for ( n = 0; s[n]; ++n )
3218
+ ;
3219
+
3220
+ return n;
3221
+ }
3222
+ #endif
3223
+
3224
+ void *yyalloc (yy_size_t size )
3225
+ {
3226
+ return malloc(size);
3227
+ }
3228
+
3229
+ void *yyrealloc (void * ptr, yy_size_t size )
3230
+ {
3231
+
3232
+ /* The cast to (char *) in the following accommodates both
3233
+ * implementations that use char* generic pointers, and those
3234
+ * that use void* generic pointers. It works with the latter
3235
+ * because both ANSI C and C++ allow castless assignment from
3236
+ * any pointer type to void*, and deal with argument conversions
3237
+ * as though doing an assignment.
3238
+ */
3239
+ return realloc(ptr, size);
3240
+ }
3241
+
3242
+ void yyfree (void * ptr )
3243
+ {
3244
+ free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
3245
+ }
3246
+
3247
+ /* %if-tables-serialization definitions */
3248
+ /* %define-yytables The name for this specific scanner's tables. */
3249
+ #define YYTABLES_NAME "yytables"
3250
+ /* %endif */
3251
+
3252
+ /* %ok-for-header */
3253
+
3254
+ #line 567 "src/Slice/Scanner.l"
3255
+
3256
+
3257
+ // NOLINTEND
3258
+
3259
+ namespace Slice
3260
+ {
3261
+ // Check if an identifier looks like a keyword.
3262
+ // If the identifier is a keyword, return the
3263
+ // corresponding keyword token; otherwise, return
3264
+ // an identifier token.
3265
+ int checkKeyword(string& identifier)
3266
+ {
3267
+ const auto pos = keywordMap.find(identifier);
3268
+ if (pos != keywordMap.end())
3269
+ {
3270
+ if (pos->first != identifier)
3271
+ {
3272
+ currentUnit->error(
3273
+ "illegal identifier: '" + identifier + "' differs from keyword '" + pos->first +
3274
+ "' only in capitalization");
3275
+ identifier = pos->first;
3276
+ }
3277
+ return pos->second;
3278
+ }
3279
+ return checkIsScoped(identifier);
3280
+ }
3281
+
3282
+ // Checks if an identifier is scoped or not, and returns the corresponding token.
3283
+ int checkIsScoped(const string& identifier)
3284
+ {
3285
+ return identifier.find("::") == string::npos ? ICE_IDENTIFIER : ICE_SCOPED_IDENTIFIER;
3286
+ }
3287
+ }
3288
+
3289
+ namespace
3290
+ {
3291
+ void nextLine(int count)
3292
+ {
3293
+ yylineno += count;
3294
+ yycolno = 0;
3295
+ }
3296
+
3297
+ int scanPosition(const char* s)
3298
+ {
3299
+ string line(s);
3300
+ // Skip the leading '#', optional 'line', and any whitespace before the line number.
3301
+ string::size_type idx = line.find_first_not_of(" \t\r", (line.find('#') + 1));
3302
+ if (line.find("line", idx) == idx)
3303
+ {
3304
+ idx = line.find_first_not_of(" \t\r", (idx + 4));
3305
+ }
3306
+ line.erase(0, idx);
3307
+
3308
+ // Read the line number
3309
+ int newLineNumber = stoi(line.c_str(), &idx) - 1;
3310
+
3311
+ // Scan the remainder of the line for a filename.
3312
+ idx = line.find_first_not_of(" \t\r", idx);
3313
+ line.erase(0, idx);
3314
+
3315
+ int lineTypeCode = 0;
3316
+ if (!line.empty())
3317
+ {
3318
+ if (line[0] == '"')
3319
+ {
3320
+ string::size_type edx = line.rfind('"');
3321
+ if (edx != string::npos)
3322
+ {
3323
+ line = line.substr(1, edx - 1);
3324
+ }
3325
+ else
3326
+ {
3327
+ currentUnit->error("mismatched quotations in line directive");
3328
+ line = line.substr(1);
3329
+ }
3330
+ }
3331
+ lineTypeCode = currentUnit->setCurrentFile(line, newLineNumber);
3332
+ yyfilename = string(line);
3333
+ }
3334
+ yylineno = newLineNumber;
3335
+ return lineTypeCode;
3336
+ }
3337
+
3338
+ void setLocation(TokenContext* location)
3339
+ {
3340
+ startLocation(location);
3341
+ endLocation(location);
3342
+ }
3343
+
3344
+ void startLocation(TokenContext* location)
3345
+ {
3346
+ location->firstLine = yylineno;
3347
+ // The string has already been scanned, so the scanner is positioned at the end of it.
3348
+ location->firstColumn = yycolno - yyleng;
3349
+ location->filename = yyfilename;
3350
+ }
3351
+
3352
+ void endLocation(TokenContext* location)
3353
+ {
3354
+ location->lastLine = yylineno;
3355
+ location->lastColumn = yycolno;
3356
+ }
3357
+
3358
+ // This function is always called once, right before scanning begins.
3359
+ void initScanner()
3360
+ {
3361
+ // Ensure the scanner starts at line number 1, column position 0.
3362
+ yylineno = 1;
3363
+
3364
+ keywordMap["module"] = ICE_MODULE;
3365
+ keywordMap["class"] = ICE_CLASS;
3366
+ keywordMap["interface"] = ICE_INTERFACE;
3367
+ keywordMap["exception"] = ICE_EXCEPTION;
3368
+ keywordMap["struct"] = ICE_STRUCT;
3369
+ keywordMap["sequence"] = ICE_SEQUENCE;
3370
+ keywordMap["dictionary"] = ICE_DICTIONARY;
3371
+ keywordMap["enum"] = ICE_ENUM;
3372
+ keywordMap["out"] = ICE_OUT;
3373
+ keywordMap["extends"] = ICE_EXTENDS;
3374
+ keywordMap["throws"] = ICE_THROWS;
3375
+ keywordMap["void"] = ICE_VOID;
3376
+ keywordMap["byte"] = ICE_BYTE;
3377
+ keywordMap["bool"] = ICE_BOOL;
3378
+ keywordMap["short"] = ICE_SHORT;
3379
+ keywordMap["int"] = ICE_INT;
3380
+ keywordMap["long"] = ICE_LONG;
3381
+ keywordMap["float"] = ICE_FLOAT;
3382
+ keywordMap["double"] = ICE_DOUBLE;
3383
+ keywordMap["string"] = ICE_STRING;
3384
+ keywordMap["Object"] = ICE_OBJECT;
3385
+ keywordMap["const"] = ICE_CONST;
3386
+ keywordMap["false"] = ICE_FALSE;
3387
+ keywordMap["true"] = ICE_TRUE;
3388
+ keywordMap["idempotent"] = ICE_IDEMPOTENT;
3389
+ keywordMap["optional"] = ICE_OPTIONAL;
3390
+ keywordMap["Value"] = ICE_VALUE;
3391
+ }
3392
+
3393
+ // This function is always called directly after a match has been made, but directly before it's action block is run.
3394
+ void preAction()
3395
+ {
3396
+ yycolno += yyleng;
3397
+
3398
+ // We only use the 'INITIAL' state to consume BOMs, which can only validly be the first match in a file. This
3399
+ // function being called means a match has already been made, so we switch states since BOMs are no longer valid.
3400
+ if (YY_START == INITIAL)
3401
+ {
3402
+ BEGIN(SLICE);
3403
+ }
3404
+ }
3405
+
3406
+ void printStateStack()
3407
+ {
3408
+ (void)fprintf(stderr, "current state stack [ " );
3409
+ for (int i = 0; i < yy_start_stack_ptr; i++)
3410
+ {
3411
+ (void)fprintf(stderr, "%d ", yy_start_stack[i]);
3412
+ }
3413
+ (void)fprintf(stderr, "(%d) ]\n", YY_START);
3414
+ }
3415
+
3416
+ void pushState(int newState)
3417
+ {
3418
+ yy_push_state(newState);
3419
+ if (yy_flex_debug)
3420
+ {
3421
+ (void)fprintf(stderr, "--pushed: ");
3422
+ printStateStack();
3423
+ }
3424
+ }
3425
+
3426
+ void popState()
3427
+ {
3428
+ yy_pop_state();
3429
+ if (yy_flex_debug)
3430
+ {
3431
+ (void)fprintf(stderr, "--popped: ");
3432
+ printStateStack();
3433
+ }
3434
+ }
3435
+
3436
+ // This function is called whenever the scanner encounters an unrecoverable error.
3437
+ void yynoreturn fatalError(const char* msg)
3438
+ {
3439
+ cerr << yyfilename << ":" << yylineno << ":" << yycolno << ": fatal error: " << msg << endl
3440
+ << "\tlast matched text: '" << yytext << "'" << endl
3441
+ << "\tlast scanner state: '" << YY_START << "'" << endl;
3442
+ exit(YY_EXIT_FAILURE);
3443
+ }
3444
+ }
3445
+