zeroc-ice 3.7.1 → 3.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (683) hide show
  1. checksums.yaml +5 -5
  2. data/ICE_LICENSE +1 -1
  3. data/bin/slice2rb +1 -6
  4. data/ext/Communicator.cpp +7 -9
  5. data/ext/Communicator.h +1 -6
  6. data/ext/Config.h +28 -6
  7. data/ext/Connection.cpp +1 -10
  8. data/ext/Connection.h +1 -6
  9. data/ext/Endpoint.cpp +1 -10
  10. data/ext/Endpoint.h +1 -6
  11. data/ext/ImplicitContext.cpp +1 -6
  12. data/ext/ImplicitContext.h +1 -6
  13. data/ext/Init.cpp +1 -6
  14. data/ext/Logger.cpp +1 -6
  15. data/ext/Logger.h +1 -6
  16. data/ext/Operation.cpp +6 -11
  17. data/ext/Operation.h +1 -6
  18. data/ext/Properties.cpp +3 -8
  19. data/ext/Properties.h +1 -6
  20. data/ext/Proxy.cpp +21 -14
  21. data/ext/Proxy.h +1 -6
  22. data/ext/Slice.cpp +3 -18
  23. data/ext/Slice.h +1 -6
  24. data/ext/Types.cpp +74 -58
  25. data/ext/Types.h +1 -6
  26. data/ext/Util.cpp +61 -32
  27. data/ext/Util.h +108 -33
  28. data/ext/ValueFactoryManager.cpp +1 -6
  29. data/ext/ValueFactoryManager.h +1 -6
  30. data/ext/extconf.rb +5 -3
  31. data/ext/ice/cpp/include/Ice/Application.h +1 -6
  32. data/ext/ice/cpp/include/Ice/AsyncResult.h +1 -6
  33. data/ext/ice/cpp/include/Ice/AsyncResultF.h +1 -6
  34. data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +1 -6
  35. data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +1 -6
  36. data/ext/ice/cpp/include/Ice/Buffer.h +1 -6
  37. data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +1 -6
  38. data/ext/ice/cpp/include/Ice/Comparable.h +1 -6
  39. data/ext/ice/cpp/include/Ice/Config.h +5 -6
  40. data/ext/ice/cpp/include/Ice/ConnectionAsync.h +1 -6
  41. data/ext/ice/cpp/include/Ice/ConnectionIF.h +1 -6
  42. data/ext/ice/cpp/include/Ice/ConsoleUtil.h +1 -6
  43. data/ext/ice/cpp/include/Ice/DefaultValueFactory.h +1 -6
  44. data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +1 -6
  45. data/ext/ice/cpp/include/Ice/Dispatcher.h +1 -6
  46. data/ext/ice/cpp/include/Ice/DynamicLibrary.h +1 -6
  47. data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +1 -6
  48. data/ext/ice/cpp/include/Ice/Exception.h +4 -9
  49. data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +3 -16
  50. data/ext/ice/cpp/include/Ice/FactoryTable.h +1 -6
  51. data/ext/ice/cpp/include/Ice/FactoryTableInit.h +2 -7
  52. data/ext/ice/cpp/include/Ice/Format.h +1 -6
  53. data/ext/ice/cpp/include/Ice/Functional.h +2 -7
  54. data/ext/ice/cpp/include/Ice/GCObject.h +1 -6
  55. data/ext/ice/cpp/include/Ice/Handle.h +1 -6
  56. data/ext/ice/cpp/include/Ice/Ice.h +1 -6
  57. data/ext/ice/cpp/include/Ice/IconvStringConverter.h +11 -17
  58. data/ext/ice/cpp/include/Ice/Incoming.h +13 -8
  59. data/ext/ice/cpp/include/Ice/IncomingAsync.h +11 -6
  60. data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +1 -6
  61. data/ext/ice/cpp/include/Ice/Initialize.h +13 -7
  62. data/ext/ice/cpp/include/Ice/InputStream.h +6 -11
  63. data/ext/ice/cpp/include/Ice/InstanceF.h +1 -6
  64. data/ext/ice/cpp/include/Ice/InterfaceByValue.h +1 -6
  65. data/ext/ice/cpp/include/Ice/LocalObject.h +1 -6
  66. data/ext/ice/cpp/include/Ice/LocalObjectF.h +1 -6
  67. data/ext/ice/cpp/include/Ice/LoggerUtil.h +1 -6
  68. data/ext/ice/cpp/include/Ice/MetricsAdminI.h +9 -7
  69. data/ext/ice/cpp/include/Ice/MetricsFunctional.h +1 -6
  70. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +16 -7
  71. data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +1 -6
  72. data/ext/ice/cpp/include/Ice/Object.h +6 -6
  73. data/ext/ice/cpp/include/Ice/ObjectF.h +1 -6
  74. data/ext/ice/cpp/include/Ice/ObserverHelper.h +1 -6
  75. data/ext/ice/cpp/include/Ice/Optional.h +21 -7
  76. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +18 -8
  77. data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +1 -6
  78. data/ext/ice/cpp/include/Ice/OutputStream.h +6 -11
  79. data/ext/ice/cpp/include/Ice/Protocol.h +1 -6
  80. data/ext/ice/cpp/include/Ice/Proxy.h +50 -23
  81. data/ext/ice/cpp/include/Ice/ProxyF.h +1 -6
  82. data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +1 -6
  83. data/ext/ice/cpp/include/Ice/ProxyHandle.h +1 -6
  84. data/ext/ice/cpp/include/Ice/ReferenceF.h +1 -6
  85. data/ext/ice/cpp/include/Ice/RegisterPlugins.h +1 -6
  86. data/ext/ice/cpp/include/Ice/RequestHandlerF.h +1 -6
  87. data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +1 -6
  88. data/ext/ice/cpp/include/Ice/SHA1.h +1 -6
  89. data/ext/ice/cpp/include/Ice/ServantManagerF.h +1 -6
  90. data/ext/ice/cpp/include/Ice/Service.h +2 -7
  91. data/ext/ice/cpp/include/Ice/SliceChecksums.h +1 -6
  92. data/ext/ice/cpp/include/Ice/SlicedData.h +1 -6
  93. data/ext/ice/cpp/include/Ice/SlicedDataF.h +1 -6
  94. data/ext/ice/cpp/include/Ice/StreamHelpers.h +2 -7
  95. data/ext/ice/cpp/include/Ice/StringConverter.h +1 -6
  96. data/ext/ice/cpp/include/Ice/ThreadPoolF.h +1 -6
  97. data/ext/ice/cpp/include/Ice/UUID.h +1 -6
  98. data/ext/ice/cpp/include/Ice/UniquePtr.h +1 -6
  99. data/ext/ice/cpp/include/Ice/UniqueRef.h +1 -6
  100. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +1 -6
  101. data/ext/ice/cpp/include/Ice/Value.h +2 -7
  102. data/ext/ice/cpp/include/Ice/ValueF.h +1 -6
  103. data/ext/ice/cpp/include/IceSSL/Config.h +1 -6
  104. data/ext/ice/cpp/include/IceSSL/IceSSL.h +1 -6
  105. data/ext/ice/cpp/include/IceSSL/OpenSSL.h +1 -6
  106. data/ext/ice/cpp/include/IceSSL/Plugin.h +59 -6
  107. data/ext/ice/cpp/include/IceSSL/SChannel.h +5 -6
  108. data/ext/ice/cpp/include/IceSSL/SecureTransport.h +5 -6
  109. data/ext/ice/cpp/include/IceSSL/UWP.h +1 -6
  110. data/ext/ice/cpp/include/IceUtil/Atomic.h +2 -7
  111. data/ext/ice/cpp/include/IceUtil/Cond.h +1 -6
  112. data/ext/ice/cpp/include/IceUtil/Config.h +34 -20
  113. data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +5 -10
  114. data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +1 -6
  115. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +26 -38
  116. data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +5 -11
  117. data/ext/ice/cpp/include/IceUtil/Exception.h +130 -11
  118. data/ext/ice/cpp/include/IceUtil/FileUtil.h +1 -6
  119. data/ext/ice/cpp/include/IceUtil/Functional.h +5 -6
  120. data/ext/ice/cpp/include/IceUtil/Handle.h +1 -6
  121. data/ext/ice/cpp/include/IceUtil/IceUtil.h +1 -6
  122. data/ext/ice/cpp/include/IceUtil/InputUtil.h +1 -6
  123. data/ext/ice/cpp/include/IceUtil/Iterator.h +1 -6
  124. data/ext/ice/cpp/include/IceUtil/Lock.h +1 -6
  125. data/ext/ice/cpp/include/IceUtil/Monitor.h +1 -6
  126. data/ext/ice/cpp/include/IceUtil/Mutex.h +2 -9
  127. data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +1 -6
  128. data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +5 -10
  129. data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +1 -6
  130. data/ext/ice/cpp/include/IceUtil/Optional.h +9 -6
  131. data/ext/ice/cpp/include/IceUtil/Options.h +1 -6
  132. data/ext/ice/cpp/include/IceUtil/OutputUtil.h +18 -20
  133. data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +1 -6
  134. data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +8 -6
  135. data/ext/ice/cpp/include/IceUtil/Random.h +37 -6
  136. data/ext/ice/cpp/include/IceUtil/RecMutex.h +1 -6
  137. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +4 -9
  138. data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +8 -7
  139. data/ext/ice/cpp/include/IceUtil/ScopedArray.h +1 -6
  140. data/ext/ice/cpp/include/IceUtil/Shared.h +1 -6
  141. data/ext/ice/cpp/include/IceUtil/StopWatch.h +1 -6
  142. data/ext/ice/cpp/include/IceUtil/StringConverter.h +2 -7
  143. data/ext/ice/cpp/include/IceUtil/StringUtil.h +1 -6
  144. data/ext/ice/cpp/include/IceUtil/Thread.h +1 -6
  145. data/ext/ice/cpp/include/IceUtil/ThreadException.h +1 -6
  146. data/ext/ice/cpp/include/IceUtil/Time.h +1 -6
  147. data/ext/ice/cpp/include/IceUtil/Timer.h +1 -6
  148. data/ext/ice/cpp/include/IceUtil/UUID.h +1 -6
  149. data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +1 -6
  150. data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +12 -17
  151. data/ext/ice/cpp/include/generated/Ice/Communicator.h +35 -34
  152. data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +4 -9
  153. data/ext/ice/cpp/include/generated/Ice/Connection.h +92 -57
  154. data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +4 -9
  155. data/ext/ice/cpp/include/generated/Ice/Current.h +51 -57
  156. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +73 -42
  157. data/ext/ice/cpp/include/generated/Ice/EndpointF.h +5 -10
  158. data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +8 -13
  159. data/ext/ice/cpp/include/generated/Ice/FacetMap.h +5 -10
  160. data/ext/ice/cpp/include/generated/Ice/Identity.h +7 -13
  161. data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +28 -27
  162. data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +4 -9
  163. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +76 -21
  164. data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +4 -9
  165. data/ext/ice/cpp/include/generated/Ice/LocalException.h +597 -272
  166. data/ext/ice/cpp/include/generated/Ice/Locator.h +135 -52
  167. data/ext/ice/cpp/include/generated/Ice/LocatorF.h +8 -13
  168. data/ext/ice/cpp/include/generated/Ice/Logger.h +10 -9
  169. data/ext/ice/cpp/include/generated/Ice/LoggerF.h +4 -9
  170. data/ext/ice/cpp/include/generated/Ice/Metrics.h +175 -134
  171. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +20 -19
  172. data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +4 -9
  173. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +16 -15
  174. data/ext/ice/cpp/include/generated/Ice/Plugin.h +18 -11
  175. data/ext/ice/cpp/include/generated/Ice/PluginF.h +4 -9
  176. data/ext/ice/cpp/include/generated/Ice/Process.h +14 -13
  177. data/ext/ice/cpp/include/generated/Ice/ProcessF.h +6 -11
  178. data/ext/ice/cpp/include/generated/Ice/Properties.h +22 -21
  179. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +20 -19
  180. data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +6 -11
  181. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +39 -28
  182. data/ext/ice/cpp/include/generated/Ice/Router.h +43 -36
  183. data/ext/ice/cpp/include/generated/Ice/RouterF.h +6 -11
  184. data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +38 -37
  185. data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +4 -9
  186. data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +4 -9
  187. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +22 -15
  188. data/ext/ice/cpp/include/generated/Ice/Version.h +16 -23
  189. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +12 -12
  190. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +4 -9
  191. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +10 -10
  192. data/ext/ice/cpp/src/Ice/ACM.cpp +14 -16
  193. data/ext/ice/cpp/src/Ice/ACM.h +1 -6
  194. data/ext/ice/cpp/src/Ice/ACMF.h +1 -6
  195. data/ext/ice/cpp/src/Ice/Acceptor.cpp +1 -6
  196. data/ext/ice/cpp/src/Ice/Acceptor.h +1 -6
  197. data/ext/ice/cpp/src/Ice/AcceptorF.h +1 -6
  198. data/ext/ice/cpp/src/Ice/ArgVector.cpp +8 -13
  199. data/ext/ice/cpp/src/Ice/ArgVector.h +1 -6
  200. data/ext/ice/cpp/src/Ice/AsyncResult.cpp +1 -7
  201. data/ext/ice/cpp/src/Ice/Base64.cpp +12 -18
  202. data/ext/ice/cpp/src/Ice/Base64.h +1 -6
  203. data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +2 -7
  204. data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +1 -6
  205. data/ext/ice/cpp/src/Ice/Buffer.cpp +3 -8
  206. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +4 -9
  207. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +2 -8
  208. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +1 -6
  209. data/ext/ice/cpp/src/Ice/Communicator.cpp +4 -9
  210. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +4 -9
  211. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +23 -10
  212. data/ext/ice/cpp/src/Ice/CommunicatorI.h +6 -7
  213. data/ext/ice/cpp/src/Ice/Cond.cpp +1 -6
  214. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +1 -6
  215. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +5 -10
  216. data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +1 -6
  217. data/ext/ice/cpp/src/Ice/Connection.cpp +4 -9
  218. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +4 -9
  219. data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +146 -36
  220. data/ext/ice/cpp/src/Ice/ConnectionFactory.h +4 -6
  221. data/ext/ice/cpp/src/Ice/ConnectionFactoryF.h +1 -6
  222. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +34 -24
  223. data/ext/ice/cpp/src/Ice/ConnectionI.h +1 -6
  224. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +1 -6
  225. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +2 -7
  226. data/ext/ice/cpp/src/Ice/Connector.cpp +1 -6
  227. data/ext/ice/cpp/src/Ice/Connector.h +1 -6
  228. data/ext/ice/cpp/src/Ice/ConnectorF.h +1 -6
  229. data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +1 -6
  230. data/ext/ice/cpp/src/Ice/Current.cpp +4 -9
  231. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +1 -6
  232. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +1 -6
  233. data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +1 -6
  234. data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +14 -6
  235. data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +7 -11
  236. data/ext/ice/cpp/src/Ice/Endpoint.cpp +4 -9
  237. data/ext/ice/cpp/src/Ice/EndpointF.cpp +4 -9
  238. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +1 -6
  239. data/ext/ice/cpp/src/Ice/EndpointFactory.h +1 -6
  240. data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +1 -6
  241. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +1 -6
  242. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +1 -6
  243. data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +1 -6
  244. data/ext/ice/cpp/src/Ice/EndpointI.cpp +1 -6
  245. data/ext/ice/cpp/src/Ice/EndpointI.h +1 -6
  246. data/ext/ice/cpp/src/Ice/EndpointIF.h +1 -6
  247. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +4 -9
  248. data/ext/ice/cpp/src/Ice/EventHandler.cpp +1 -6
  249. data/ext/ice/cpp/src/Ice/EventHandler.h +1 -6
  250. data/ext/ice/cpp/src/Ice/EventHandlerF.h +1 -6
  251. data/ext/ice/cpp/src/Ice/Exception.cpp +8 -13
  252. data/ext/ice/cpp/src/Ice/FacetMap.cpp +4 -9
  253. data/ext/ice/cpp/src/Ice/FactoryTable.cpp +1 -6
  254. data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +1 -6
  255. data/ext/ice/cpp/src/Ice/GCObject.cpp +2 -7
  256. data/ext/ice/cpp/src/Ice/HashUtil.h +2 -7
  257. data/ext/ice/cpp/src/Ice/HttpParser.cpp +1 -6
  258. data/ext/ice/cpp/src/Ice/HttpParser.h +1 -6
  259. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +14 -31
  260. data/ext/ice/cpp/src/Ice/IPEndpointI.h +1 -6
  261. data/ext/ice/cpp/src/Ice/IPEndpointIF.h +1 -6
  262. data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +1 -6
  263. data/ext/ice/cpp/src/Ice/Identity.cpp +4 -9
  264. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +4 -9
  265. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +4 -9
  266. data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +2 -8
  267. data/ext/ice/cpp/src/Ice/ImplicitContextI.h +1 -6
  268. data/ext/ice/cpp/src/Ice/Incoming.cpp +11 -13
  269. data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +1 -6
  270. data/ext/ice/cpp/src/Ice/IncomingRequest.h +1 -6
  271. data/ext/ice/cpp/src/Ice/Initialize.cpp +6 -11
  272. data/ext/ice/cpp/src/Ice/InputStream.cpp +55 -87
  273. data/ext/ice/cpp/src/Ice/Instance.cpp +58 -13
  274. data/ext/ice/cpp/src/Ice/Instance.h +3 -6
  275. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +4 -9
  276. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +4 -9
  277. data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +2 -7
  278. data/ext/ice/cpp/src/Ice/InstrumentationI.h +1 -6
  279. data/ext/ice/cpp/src/Ice/LocalException.cpp +400 -9
  280. data/ext/ice/cpp/src/Ice/LocalObject.cpp +1 -6
  281. data/ext/ice/cpp/src/Ice/Locator.cpp +52 -27
  282. data/ext/ice/cpp/src/Ice/LocatorF.cpp +4 -9
  283. data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +25 -22
  284. data/ext/ice/cpp/src/Ice/LocatorInfo.h +3 -8
  285. data/ext/ice/cpp/src/Ice/LocatorInfoF.h +1 -6
  286. data/ext/ice/cpp/src/Ice/Logger.cpp +4 -9
  287. data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +8 -19
  288. data/ext/ice/cpp/src/Ice/LoggerAdminI.h +1 -6
  289. data/ext/ice/cpp/src/Ice/LoggerF.cpp +4 -9
  290. data/ext/ice/cpp/src/Ice/LoggerI.cpp +13 -12
  291. data/ext/ice/cpp/src/Ice/LoggerI.h +1 -6
  292. data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +1 -6
  293. data/ext/ice/cpp/src/Ice/Metrics.cpp +12 -11
  294. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +9 -9
  295. data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +1 -6
  296. data/ext/ice/cpp/src/Ice/Network.cpp +70 -52
  297. data/ext/ice/cpp/src/Ice/Network.h +4 -9
  298. data/ext/ice/cpp/src/Ice/NetworkF.h +1 -6
  299. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +2 -8
  300. data/ext/ice/cpp/src/Ice/NetworkProxy.h +1 -6
  301. data/ext/ice/cpp/src/Ice/NetworkProxyF.h +1 -6
  302. data/ext/ice/cpp/src/Ice/OSLogLoggerI.cpp +57 -0
  303. data/ext/ice/cpp/src/Ice/OSLogLoggerI.h +40 -0
  304. data/ext/ice/cpp/src/Ice/Object.cpp +10 -14
  305. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +4 -9
  306. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +4 -9
  307. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +1 -6
  308. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +1 -6
  309. data/ext/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +1 -6
  310. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +22 -7
  311. data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +5 -6
  312. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +4 -9
  313. data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +1 -6
  314. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +5 -10
  315. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +1 -6
  316. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +6 -9
  317. data/ext/ice/cpp/src/Ice/OutputStream.cpp +29 -61
  318. data/ext/ice/cpp/src/Ice/Plugin.cpp +4 -9
  319. data/ext/ice/cpp/src/Ice/PluginF.cpp +4 -9
  320. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +1 -6
  321. data/ext/ice/cpp/src/Ice/PluginManagerI.h +1 -6
  322. data/ext/ice/cpp/src/Ice/Process.cpp +8 -13
  323. data/ext/ice/cpp/src/Ice/ProcessF.cpp +4 -9
  324. data/ext/ice/cpp/src/Ice/Properties.cpp +4 -9
  325. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +11 -16
  326. data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +3 -8
  327. data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +1 -6
  328. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +4 -9
  329. data/ext/ice/cpp/src/Ice/PropertiesI.cpp +13 -17
  330. data/ext/ice/cpp/src/Ice/PropertiesI.h +1 -6
  331. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +42 -8
  332. data/ext/ice/cpp/src/Ice/PropertyNames.h +2 -7
  333. data/ext/ice/cpp/src/Ice/Protocol.cpp +1 -6
  334. data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +1 -6
  335. data/ext/ice/cpp/src/Ice/ProtocolInstance.h +1 -6
  336. data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +1 -6
  337. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +1 -6
  338. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +1 -6
  339. data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +1 -6
  340. data/ext/ice/cpp/src/Ice/Proxy.cpp +9 -8
  341. data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +11 -7
  342. data/ext/ice/cpp/src/Ice/ProxyFactory.h +1 -6
  343. data/ext/ice/cpp/src/Ice/Reference.cpp +61 -33
  344. data/ext/ice/cpp/src/Ice/Reference.h +1 -6
  345. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +2 -9
  346. data/ext/ice/cpp/src/Ice/ReferenceFactory.h +1 -6
  347. data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +1 -6
  348. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +4 -8
  349. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +1 -6
  350. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +20 -19
  351. data/ext/ice/cpp/src/Ice/ReplyStatus.h +1 -6
  352. data/ext/ice/cpp/src/Ice/RequestHandler.cpp +1 -6
  353. data/ext/ice/cpp/src/Ice/RequestHandler.h +1 -6
  354. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +1 -6
  355. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +1 -6
  356. data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +1 -6
  357. data/ext/ice/cpp/src/Ice/ResponseHandler.h +1 -6
  358. data/ext/ice/cpp/src/Ice/RetryQueue.cpp +7 -9
  359. data/ext/ice/cpp/src/Ice/RetryQueue.h +1 -6
  360. data/ext/ice/cpp/src/Ice/RetryQueueF.h +1 -6
  361. data/ext/ice/cpp/src/Ice/Router.cpp +15 -20
  362. data/ext/ice/cpp/src/Ice/RouterF.cpp +4 -9
  363. data/ext/ice/cpp/src/Ice/RouterInfo.cpp +3 -8
  364. data/ext/ice/cpp/src/Ice/RouterInfo.h +1 -6
  365. data/ext/ice/cpp/src/Ice/RouterInfoF.h +1 -6
  366. data/ext/ice/cpp/src/Ice/SHA1.cpp +3 -8
  367. data/ext/ice/cpp/src/Ice/Selector.cpp +59 -25
  368. data/ext/ice/cpp/src/Ice/Selector.h +1 -6
  369. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +4 -9
  370. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +4 -9
  371. data/ext/ice/cpp/src/Ice/ServantManager.cpp +7 -12
  372. data/ext/ice/cpp/src/Ice/ServantManager.h +1 -6
  373. data/ext/ice/cpp/src/Ice/SharedContext.h +1 -6
  374. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +4 -9
  375. data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +1 -6
  376. data/ext/ice/cpp/src/Ice/SlicedData.cpp +1 -6
  377. data/ext/ice/cpp/src/Ice/StreamSocket.cpp +15 -18
  378. data/ext/ice/cpp/src/Ice/StreamSocket.h +1 -6
  379. data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +1 -6
  380. data/ext/ice/cpp/src/Ice/StringUtil.h +1 -6
  381. data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +3 -8
  382. data/ext/ice/cpp/src/Ice/SysLoggerI.h +1 -6
  383. data/ext/ice/cpp/src/Ice/SystemdJournalI.cpp +66 -0
  384. data/ext/ice/cpp/src/Ice/SystemdJournalI.h +39 -0
  385. data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +9 -7
  386. data/ext/ice/cpp/src/Ice/TcpAcceptor.h +1 -6
  387. data/ext/ice/cpp/src/Ice/TcpConnector.cpp +6 -6
  388. data/ext/ice/cpp/src/Ice/TcpConnector.h +1 -6
  389. data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +6 -6
  390. data/ext/ice/cpp/src/Ice/TcpEndpointI.h +1 -6
  391. data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +6 -6
  392. data/ext/ice/cpp/src/Ice/TcpTransceiver.h +1 -6
  393. data/ext/ice/cpp/src/Ice/Thread.cpp +18 -14
  394. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +69 -9
  395. data/ext/ice/cpp/src/Ice/ThreadPool.h +11 -12
  396. data/ext/ice/cpp/src/Ice/Timer.cpp +11 -6
  397. data/ext/ice/cpp/src/Ice/TraceLevels.cpp +1 -6
  398. data/ext/ice/cpp/src/Ice/TraceLevels.h +1 -6
  399. data/ext/ice/cpp/src/Ice/TraceLevelsF.h +1 -6
  400. data/ext/ice/cpp/src/Ice/TraceUtil.cpp +1 -6
  401. data/ext/ice/cpp/src/Ice/TraceUtil.h +1 -6
  402. data/ext/ice/cpp/src/Ice/Transceiver.cpp +1 -6
  403. data/ext/ice/cpp/src/Ice/Transceiver.h +1 -6
  404. data/ext/ice/cpp/src/Ice/TransceiverF.h +3 -8
  405. data/ext/ice/cpp/src/Ice/UdpConnector.cpp +4 -6
  406. data/ext/ice/cpp/src/Ice/UdpConnector.h +1 -6
  407. data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +12 -7
  408. data/ext/ice/cpp/src/Ice/UdpEndpointI.h +1 -6
  409. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +33 -26
  410. data/ext/ice/cpp/src/Ice/UdpTransceiver.h +1 -6
  411. data/ext/ice/cpp/src/Ice/Value.cpp +1 -6
  412. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +4 -9
  413. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +1 -7
  414. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +1 -6
  415. data/ext/ice/cpp/src/Ice/Version.cpp +4 -9
  416. data/ext/ice/cpp/src/Ice/VirtualShared.h +1 -6
  417. data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +1 -6
  418. data/ext/ice/cpp/src/Ice/WSAcceptor.h +1 -6
  419. data/ext/ice/cpp/src/Ice/WSConnector.cpp +1 -6
  420. data/ext/ice/cpp/src/Ice/WSConnector.h +1 -6
  421. data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +1 -6
  422. data/ext/ice/cpp/src/Ice/WSEndpoint.h +1 -6
  423. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +18 -22
  424. data/ext/ice/cpp/src/Ice/WSTransceiver.h +1 -7
  425. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +4 -9
  426. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +497 -17
  427. data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +4 -7
  428. data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +1 -6
  429. data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +5 -10
  430. data/ext/ice/cpp/src/IceDiscovery/LookupI.h +1 -6
  431. data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +1 -6
  432. data/ext/ice/cpp/src/IceDiscovery/PluginI.h +1 -6
  433. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +4 -9
  434. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +22 -15
  435. data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +1 -6
  436. data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +52 -17
  437. data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +1 -6
  438. data/ext/ice/cpp/src/IceSSL/AcceptorI.h +1 -6
  439. data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +4 -9
  440. data/ext/ice/cpp/src/IceSSL/CertificateI.h +1 -6
  441. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +4 -9
  442. data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +4 -9
  443. data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +1 -6
  444. data/ext/ice/cpp/src/IceSSL/ConnectorI.h +1 -6
  445. data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +8 -13
  446. data/ext/ice/cpp/src/IceSSL/EndpointI.h +2 -7
  447. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +4 -9
  448. data/ext/ice/cpp/src/IceSSL/Instance.cpp +1 -6
  449. data/ext/ice/cpp/src/IceSSL/Instance.h +1 -6
  450. data/ext/ice/cpp/src/IceSSL/InstanceF.h +1 -6
  451. data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +15 -20
  452. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +100 -46
  453. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +3 -8
  454. data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +1 -6
  455. data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +1 -6
  456. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +271 -147
  457. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +3 -11
  458. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +1 -6
  459. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +1 -6
  460. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +115 -6
  461. data/ext/ice/cpp/src/IceSSL/PluginI.h +11 -6
  462. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +1 -7
  463. data/ext/ice/cpp/src/IceSSL/RFC2253.h +1 -6
  464. data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +5 -10
  465. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +69 -36
  466. data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +5 -8
  467. data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +5 -6
  468. data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +1 -6
  469. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +154 -38
  470. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +8 -6
  471. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +21 -14
  472. data/ext/ice/cpp/src/IceSSL/SSLEngine.h +3 -6
  473. data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +1 -6
  474. data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +37 -31
  475. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +44 -18
  476. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +5 -6
  477. data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +4 -6
  478. data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +1 -6
  479. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +160 -99
  480. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +7 -7
  481. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +35 -25
  482. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +5 -6
  483. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +1 -6
  484. data/ext/ice/cpp/src/IceSSL/TrustManager.h +1 -6
  485. data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +1 -6
  486. data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +4 -9
  487. data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +4 -9
  488. data/ext/ice/cpp/src/IceSSL/UWPEngine.h +1 -6
  489. data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +1 -6
  490. data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +1 -6
  491. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +5 -10
  492. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +1 -6
  493. data/ext/ice/cpp/src/IceSSL/Util.cpp +12 -11
  494. data/ext/ice/cpp/src/IceSSL/Util.h +1 -6
  495. data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +1 -6
  496. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +1 -6
  497. data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +1 -6
  498. data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +3 -6
  499. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +2 -7
  500. data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +1 -6
  501. data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +1 -6
  502. data/ext/ice/cpp/src/IceUtil/Options.cpp +25 -15
  503. data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +41 -16
  504. data/ext/ice/cpp/src/IceUtil/Random.cpp +3 -8
  505. data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +2 -7
  506. data/ext/ice/cpp/src/IceUtil/Shared.cpp +1 -6
  507. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +6 -11
  508. data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +45 -12
  509. data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +1 -6
  510. data/ext/ice/cpp/src/IceUtil/Time.cpp +12 -19
  511. data/ext/ice/cpp/src/IceUtil/UUID.cpp +6 -11
  512. data/ext/ice/cpp/src/IceUtil/Unicode.cpp +1 -6
  513. data/ext/ice/cpp/src/IceUtil/Unicode.h +1 -6
  514. data/ext/ice/cpp/src/IceUtil/UtilException.cpp +17 -16
  515. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +75 -73
  516. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +3 -8
  517. data/ext/ice/cpp/src/Slice/Checksum.cpp +1 -6
  518. data/ext/ice/cpp/src/Slice/Checksum.h +1 -6
  519. data/ext/ice/cpp/src/Slice/FileTracker.cpp +1 -6
  520. data/ext/ice/cpp/src/Slice/FileTracker.h +1 -6
  521. data/ext/ice/cpp/src/Slice/Grammar.cpp +249 -245
  522. data/ext/ice/cpp/src/Slice/Grammar.h +5 -5
  523. data/ext/ice/cpp/src/Slice/GrammarUtil.h +1 -7
  524. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +89 -92
  525. data/ext/ice/cpp/src/Slice/JavaUtil.h +5 -10
  526. data/ext/ice/cpp/src/Slice/MD5.cpp +1 -6
  527. data/ext/ice/cpp/src/Slice/MD5.h +1 -6
  528. data/ext/ice/cpp/src/Slice/MD5I.cpp +8 -0
  529. data/ext/ice/cpp/src/Slice/PHPUtil.cpp +10 -6
  530. data/ext/ice/cpp/src/Slice/PHPUtil.h +1 -6
  531. data/ext/ice/cpp/src/Slice/Parser.cpp +153 -166
  532. data/ext/ice/cpp/src/Slice/Parser.h +33 -10
  533. data/ext/ice/cpp/src/Slice/Preprocessor.cpp +25 -17
  534. data/ext/ice/cpp/src/Slice/Preprocessor.h +2 -7
  535. data/ext/ice/cpp/src/Slice/Python.cpp +22 -28
  536. data/ext/ice/cpp/src/Slice/PythonUtil.cpp +80 -49
  537. data/ext/ice/cpp/src/Slice/PythonUtil.h +1 -6
  538. data/ext/ice/cpp/src/Slice/Ruby.cpp +5 -10
  539. data/ext/ice/cpp/src/Slice/RubyUtil.cpp +13 -15
  540. data/ext/ice/cpp/src/Slice/RubyUtil.h +1 -6
  541. data/ext/ice/cpp/src/Slice/Scanner.cpp +689 -437
  542. data/ext/ice/cpp/src/Slice/SliceUtil.cpp +2 -8
  543. data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +12 -12
  544. data/ext/ice/cpp/src/Slice/Util.h +1 -6
  545. data/ext/ice/mcpp/CMakeLists.txt +80 -0
  546. data/ext/ice/mcpp/Makefile +2 -5
  547. data/ext/ice/mcpp/expand.c +6 -6
  548. data/ice.gemspec +2 -4
  549. data/lib/Glacier2.rb +1 -6
  550. data/lib/Glacier2/Metrics.rb +3 -8
  551. data/lib/Glacier2/PermissionsVerifier.rb +3 -8
  552. data/lib/Glacier2/PermissionsVerifierF.rb +3 -8
  553. data/lib/Glacier2/Router.rb +3 -8
  554. data/lib/Glacier2/RouterF.rb +3 -8
  555. data/lib/Glacier2/SSLInfo.rb +3 -8
  556. data/lib/Glacier2/Session.rb +3 -8
  557. data/lib/Ice.rb +1 -6
  558. data/lib/Ice/BuiltinSequences.rb +3 -8
  559. data/lib/Ice/Communicator.rb +3 -8
  560. data/lib/Ice/CommunicatorF.rb +3 -8
  561. data/lib/Ice/Connection.rb +3 -8
  562. data/lib/Ice/ConnectionF.rb +3 -8
  563. data/lib/Ice/Current.rb +3 -8
  564. data/lib/Ice/Endpoint.rb +3 -8
  565. data/lib/Ice/EndpointF.rb +3 -8
  566. data/lib/Ice/EndpointTypes.rb +3 -8
  567. data/lib/Ice/FacetMap.rb +3 -8
  568. data/lib/Ice/Identity.rb +3 -8
  569. data/lib/Ice/ImplicitContext.rb +3 -8
  570. data/lib/Ice/ImplicitContextF.rb +3 -8
  571. data/lib/Ice/Instrumentation.rb +3 -8
  572. data/lib/Ice/InstrumentationF.rb +3 -8
  573. data/lib/Ice/LocalException.rb +3 -8
  574. data/lib/Ice/Locator.rb +3 -8
  575. data/lib/Ice/LocatorF.rb +3 -8
  576. data/lib/Ice/Logger.rb +3 -8
  577. data/lib/Ice/LoggerF.rb +3 -8
  578. data/lib/Ice/Metrics.rb +3 -8
  579. data/lib/Ice/ObjectAdapter.rb +3 -8
  580. data/lib/Ice/ObjectAdapterF.rb +3 -8
  581. data/lib/Ice/ObjectFactory.rb +3 -8
  582. data/lib/Ice/Plugin.rb +3 -8
  583. data/lib/Ice/PluginF.rb +3 -8
  584. data/lib/Ice/Process.rb +3 -8
  585. data/lib/Ice/ProcessF.rb +3 -8
  586. data/lib/Ice/Properties.rb +3 -8
  587. data/lib/Ice/PropertiesAdmin.rb +3 -8
  588. data/lib/Ice/PropertiesF.rb +3 -8
  589. data/lib/Ice/RemoteLogger.rb +3 -8
  590. data/lib/Ice/Router.rb +3 -8
  591. data/lib/Ice/RouterF.rb +3 -8
  592. data/lib/Ice/ServantLocator.rb +3 -8
  593. data/lib/Ice/ServantLocatorF.rb +3 -8
  594. data/lib/Ice/SliceChecksumDict.rb +3 -8
  595. data/lib/Ice/ValueFactory.rb +3 -8
  596. data/lib/Ice/Version.rb +3 -8
  597. data/lib/IceBox.rb +1 -6
  598. data/lib/IceBox/IceBox.rb +3 -8
  599. data/lib/IceGrid.rb +1 -6
  600. data/lib/IceGrid/Admin.rb +3 -8
  601. data/lib/IceGrid/Descriptor.rb +3 -8
  602. data/lib/IceGrid/Exception.rb +3 -8
  603. data/lib/IceGrid/FileParser.rb +3 -8
  604. data/lib/IceGrid/PluginFacade.rb +3 -8
  605. data/lib/IceGrid/Registry.rb +3 -8
  606. data/lib/IceGrid/Session.rb +3 -8
  607. data/lib/IceGrid/UserAccountMapper.rb +3 -8
  608. data/lib/IcePatch2.rb +1 -6
  609. data/lib/IcePatch2/FileInfo.rb +3 -8
  610. data/lib/IcePatch2/FileServer.rb +3 -8
  611. data/lib/IceStorm.rb +1 -6
  612. data/lib/IceStorm/IceStorm.rb +3 -8
  613. data/lib/IceStorm/Metrics.rb +3 -8
  614. data/slice/Glacier2/Metrics.ice +14 -8
  615. data/slice/Glacier2/PermissionsVerifier.ice +11 -7
  616. data/slice/Glacier2/PermissionsVerifierF.ice +11 -7
  617. data/slice/Glacier2/Router.ice +12 -8
  618. data/slice/Glacier2/RouterF.ice +11 -7
  619. data/slice/Glacier2/SSLInfo.ice +11 -7
  620. data/slice/Glacier2/Session.ice +11 -7
  621. data/slice/Ice/BuiltinSequences.ice +13 -7
  622. data/slice/Ice/Communicator.ice +92 -44
  623. data/slice/Ice/CommunicatorF.ice +13 -7
  624. data/slice/Ice/Connection.ice +35 -29
  625. data/slice/Ice/ConnectionF.ice +13 -7
  626. data/slice/Ice/Current.ice +29 -23
  627. data/slice/Ice/Endpoint.ice +22 -19
  628. data/slice/Ice/EndpointF.ice +14 -8
  629. data/slice/Ice/EndpointTypes.ice +15 -9
  630. data/slice/Ice/FacetMap.ice +14 -8
  631. data/slice/Ice/Identity.ice +13 -7
  632. data/slice/Ice/ImplicitContext.ice +28 -22
  633. data/slice/Ice/ImplicitContextF.ice +12 -7
  634. data/slice/Ice/Instrumentation.ice +19 -13
  635. data/slice/Ice/InstrumentationF.ice +13 -7
  636. data/slice/Ice/LocalException.ice +35 -29
  637. data/slice/Ice/Locator.ice +13 -7
  638. data/slice/Ice/LocatorF.ice +13 -7
  639. data/slice/Ice/Logger.ice +19 -13
  640. data/slice/Ice/LoggerF.ice +13 -7
  641. data/slice/Ice/Metrics.ice +26 -18
  642. data/slice/Ice/ObjectAdapter.ice +63 -45
  643. data/slice/Ice/ObjectAdapterF.ice +13 -7
  644. data/slice/Ice/ObjectFactory.ice +20 -12
  645. data/slice/Ice/Plugin.ice +19 -10
  646. data/slice/Ice/PluginF.ice +17 -7
  647. data/slice/Ice/Process.ice +13 -7
  648. data/slice/Ice/ProcessF.ice +13 -7
  649. data/slice/Ice/Properties.ice +35 -24
  650. data/slice/Ice/PropertiesAdmin.ice +13 -7
  651. data/slice/Ice/PropertiesF.ice +13 -7
  652. data/slice/Ice/RemoteLogger.ice +13 -7
  653. data/slice/Ice/Router.ice +14 -8
  654. data/slice/Ice/RouterF.ice +13 -7
  655. data/slice/Ice/ServantLocator.ice +31 -23
  656. data/slice/Ice/ServantLocatorF.ice +13 -7
  657. data/slice/Ice/SliceChecksumDict.ice +13 -7
  658. data/slice/Ice/ValueFactory.ice +22 -15
  659. data/slice/Ice/Version.ice +13 -7
  660. data/slice/IceBT/ConnectionInfo.ice +12 -7
  661. data/slice/IceBT/EndpointInfo.ice +13 -8
  662. data/slice/IceBT/Types.ice +12 -7
  663. data/slice/IceBox/IceBox.ice +29 -9
  664. data/slice/IceDiscovery/IceDiscovery.ice +68 -7
  665. data/slice/IceGrid/Admin.ice +41 -35
  666. data/slice/IceGrid/Descriptor.ice +15 -10
  667. data/slice/IceGrid/Exception.ice +15 -10
  668. data/slice/IceGrid/FileParser.ice +14 -8
  669. data/slice/IceGrid/PluginFacade.ice +17 -11
  670. data/slice/IceGrid/Registry.ice +13 -7
  671. data/slice/IceGrid/Session.ice +18 -12
  672. data/slice/IceGrid/UserAccountMapper.ice +16 -10
  673. data/slice/IceIAP/ConnectionInfo.ice +11 -8
  674. data/slice/IceIAP/EndpointInfo.ice +11 -8
  675. data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +12 -7
  676. data/slice/IcePatch2/FileInfo.ice +12 -7
  677. data/slice/IcePatch2/FileServer.ice +13 -8
  678. data/slice/IceSSL/ConnectionInfo.ice +16 -9
  679. data/slice/IceSSL/ConnectionInfoF.ice +14 -8
  680. data/slice/IceSSL/EndpointInfo.ice +14 -8
  681. data/slice/IceStorm/IceStorm.ice +17 -11
  682. data/slice/IceStorm/Metrics.ice +12 -8
  683. metadata +8 -4
@@ -1,11 +1,6 @@
1
- // **********************************************************************
2
1
  //
3
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
4
3
  //
5
- // This copy of Ice is licensed to you under the terms described in the
6
- // ICE_LICENSE file included in this distribution.
7
- //
8
- // **********************************************************************
9
4
 
10
5
  #ifndef SLICE_PYTHON_UTIL_H
11
6
  #define SLICE_PYTHON_UTIL_H
@@ -1,13 +1,8 @@
1
- // **********************************************************************
2
1
  //
3
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
4
3
  //
5
- // This copy of Ice is licensed to you under the terms described in the
6
- // ICE_LICENSE file included in this distribution.
7
- //
8
- // **********************************************************************
9
4
 
10
- #include <IceUtil/DisableWarnings.h>
5
+ #include <IceUtil/StringUtil.h>
11
6
  #include <IceUtil/Options.h>
12
7
  #include <IceUtil/CtrlCHandler.h>
13
8
  #include <IceUtil/Mutex.h>
@@ -296,9 +291,9 @@ Slice::Ruby::compile(const vector<string>& argv)
296
291
  out.open(file.c_str());
297
292
  if(!out)
298
293
  {
299
- ostringstream os;
300
- os << "cannot open`" << file << "': " << strerror(errno);
301
- throw FileException(__FILE__, __LINE__, os.str());
294
+ ostringstream oss;
295
+ oss << "cannot open`" << file << "': " << IceUtilInternal::errorToString(errno);
296
+ throw FileException(__FILE__, __LINE__, oss.str());
302
297
  }
303
298
  FileTracker::instance()->addFile(file);
304
299
  //
@@ -1,11 +1,6 @@
1
- // **********************************************************************
2
1
  //
3
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
4
3
  //
5
- // This copy of Ice is licensed to you under the terms described in the
6
- // ICE_LICENSE file included in this distribution.
7
- //
8
- // **********************************************************************
9
4
 
10
5
  #include <Slice/RubyUtil.h>
11
6
  #include <Slice/Checksum.h>
@@ -191,7 +186,16 @@ Slice::Ruby::CodeVisitor::CodeVisitor(Output& out) :
191
186
  bool
192
187
  Slice::Ruby::CodeVisitor::visitModuleStart(const ModulePtr& p)
193
188
  {
194
- _out << sp << nl << "module " << fixIdent(p->name(), IdentToUpper);
189
+ _out << sp << nl << "module ";
190
+ //
191
+ // Ensure that Slice top-level modules are defined as top
192
+ // level modules in Ruby
193
+ //
194
+ if(UnitPtr::dynamicCast(p->container()))
195
+ {
196
+ _out << "::";
197
+ }
198
+ _out << fixIdent(p->name(), IdentToUpper);
195
199
  _out.inc();
196
200
  return true;
197
201
  }
@@ -331,7 +335,6 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
331
335
  //
332
336
  // read/write accessors for data members.
333
337
  //
334
- DataMemberList members = p->dataMembers();
335
338
  if(!members.empty())
336
339
  {
337
340
  bool prot = p->hasMetaData("protected");
@@ -1221,7 +1224,7 @@ Slice::Ruby::CodeVisitor::writeType(const TypePtr& p)
1221
1224
  if(prx)
1222
1225
  {
1223
1226
  ClassDefPtr def = prx->_class()->definition();
1224
- if(def->isInterface() || def->allOperations().size() > 0)
1227
+ if(!def || def->isAbstract())
1225
1228
  {
1226
1229
  _out << getAbsolute(prx->_class(), IdentToUpper, "T_") << "Prx";
1227
1230
  }
@@ -1556,14 +1559,9 @@ void
1556
1559
  Slice::Ruby::printHeader(IceUtilInternal::Output& out)
1557
1560
  {
1558
1561
  static const char* header =
1559
- "# **********************************************************************\n"
1560
- "#\n"
1561
- "# Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.\n"
1562
1562
  "#\n"
1563
- "# This copy of Ice is licensed to you under the terms described in the\n"
1564
- "# ICE_LICENSE file included in this distribution.\n"
1563
+ "# Copyright (c) ZeroC, Inc. All rights reserved.\n"
1565
1564
  "#\n"
1566
- "# **********************************************************************\n"
1567
1565
  ;
1568
1566
 
1569
1567
  out << header;
@@ -1,11 +1,6 @@
1
- // **********************************************************************
2
1
  //
3
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
4
3
  //
5
- // This copy of Ice is licensed to you under the terms described in the
6
- // ICE_LICENSE file included in this distribution.
7
- //
8
- // **********************************************************************
9
4
 
10
5
  #ifndef SLICE_RUBY_UTIL_H
11
6
  #define SLICE_RUBY_UTIL_H
@@ -1,7 +1,7 @@
1
1
  #include <IceUtil/ScannerConfig.h>
2
- #line 2 "src/Slice/Scanner.cpp"
2
+ #line 1 "src/Slice/Scanner.cpp"
3
3
 
4
- #line 4 "src/Slice/Scanner.cpp"
4
+ #line 3 "src/Slice/Scanner.cpp"
5
5
 
6
6
  #define YY_INT_ALIGNED short int
7
7
 
@@ -9,11 +9,17 @@
9
9
 
10
10
  #define yy_create_buffer slice__create_buffer
11
11
  #define yy_delete_buffer slice__delete_buffer
12
- #define yy_flex_debug slice__flex_debug
12
+ #define yy_scan_buffer slice__scan_buffer
13
+ #define yy_scan_string slice__scan_string
14
+ #define yy_scan_bytes slice__scan_bytes
13
15
  #define yy_init_buffer slice__init_buffer
14
16
  #define yy_flush_buffer slice__flush_buffer
15
17
  #define yy_load_buffer_state slice__load_buffer_state
16
18
  #define yy_switch_to_buffer slice__switch_to_buffer
19
+ #define yypush_buffer_state slice_push_buffer_state
20
+ #define yypop_buffer_state slice_pop_buffer_state
21
+ #define yyensure_buffer_stack slice_ensure_buffer_stack
22
+ #define yy_flex_debug slice__flex_debug
17
23
  #define yyin slice_in
18
24
  #define yyleng slice_leng
19
25
  #define yylex slice_lex
@@ -28,12 +34,246 @@
28
34
 
29
35
  #define FLEX_SCANNER
30
36
  #define YY_FLEX_MAJOR_VERSION 2
31
- #define YY_FLEX_MINOR_VERSION 5
32
- #define YY_FLEX_SUBMINOR_VERSION 37
37
+ #define YY_FLEX_MINOR_VERSION 6
38
+ #define YY_FLEX_SUBMINOR_VERSION 4
33
39
  #if YY_FLEX_SUBMINOR_VERSION > 0
34
40
  #define FLEX_BETA
35
41
  #endif
36
42
 
43
+ #ifdef yy_create_buffer
44
+ #define slice__create_buffer_ALREADY_DEFINED
45
+ #else
46
+ #define yy_create_buffer slice__create_buffer
47
+ #endif
48
+
49
+ #ifdef yy_delete_buffer
50
+ #define slice__delete_buffer_ALREADY_DEFINED
51
+ #else
52
+ #define yy_delete_buffer slice__delete_buffer
53
+ #endif
54
+
55
+ #ifdef yy_scan_buffer
56
+ #define slice__scan_buffer_ALREADY_DEFINED
57
+ #else
58
+ #define yy_scan_buffer slice__scan_buffer
59
+ #endif
60
+
61
+ #ifdef yy_scan_string
62
+ #define slice__scan_string_ALREADY_DEFINED
63
+ #else
64
+ #define yy_scan_string slice__scan_string
65
+ #endif
66
+
67
+ #ifdef yy_scan_bytes
68
+ #define slice__scan_bytes_ALREADY_DEFINED
69
+ #else
70
+ #define yy_scan_bytes slice__scan_bytes
71
+ #endif
72
+
73
+ #ifdef yy_init_buffer
74
+ #define slice__init_buffer_ALREADY_DEFINED
75
+ #else
76
+ #define yy_init_buffer slice__init_buffer
77
+ #endif
78
+
79
+ #ifdef yy_flush_buffer
80
+ #define slice__flush_buffer_ALREADY_DEFINED
81
+ #else
82
+ #define yy_flush_buffer slice__flush_buffer
83
+ #endif
84
+
85
+ #ifdef yy_load_buffer_state
86
+ #define slice__load_buffer_state_ALREADY_DEFINED
87
+ #else
88
+ #define yy_load_buffer_state slice__load_buffer_state
89
+ #endif
90
+
91
+ #ifdef yy_switch_to_buffer
92
+ #define slice__switch_to_buffer_ALREADY_DEFINED
93
+ #else
94
+ #define yy_switch_to_buffer slice__switch_to_buffer
95
+ #endif
96
+
97
+ #ifdef yypush_buffer_state
98
+ #define slice_push_buffer_state_ALREADY_DEFINED
99
+ #else
100
+ #define yypush_buffer_state slice_push_buffer_state
101
+ #endif
102
+
103
+ #ifdef yypop_buffer_state
104
+ #define slice_pop_buffer_state_ALREADY_DEFINED
105
+ #else
106
+ #define yypop_buffer_state slice_pop_buffer_state
107
+ #endif
108
+
109
+ #ifdef yyensure_buffer_stack
110
+ #define slice_ensure_buffer_stack_ALREADY_DEFINED
111
+ #else
112
+ #define yyensure_buffer_stack slice_ensure_buffer_stack
113
+ #endif
114
+
115
+ #ifdef yylex
116
+ #define slice_lex_ALREADY_DEFINED
117
+ #else
118
+ #define yylex slice_lex
119
+ #endif
120
+
121
+ #ifdef yyrestart
122
+ #define slice_restart_ALREADY_DEFINED
123
+ #else
124
+ #define yyrestart slice_restart
125
+ #endif
126
+
127
+ #ifdef yylex_init
128
+ #define slice_lex_init_ALREADY_DEFINED
129
+ #else
130
+ #define yylex_init slice_lex_init
131
+ #endif
132
+
133
+ #ifdef yylex_init_extra
134
+ #define slice_lex_init_extra_ALREADY_DEFINED
135
+ #else
136
+ #define yylex_init_extra slice_lex_init_extra
137
+ #endif
138
+
139
+ #ifdef yylex_destroy
140
+ #define slice_lex_destroy_ALREADY_DEFINED
141
+ #else
142
+ #define yylex_destroy slice_lex_destroy
143
+ #endif
144
+
145
+ #ifdef yyget_debug
146
+ #define slice_get_debug_ALREADY_DEFINED
147
+ #else
148
+ #define yyget_debug slice_get_debug
149
+ #endif
150
+
151
+ #ifdef yyset_debug
152
+ #define slice_set_debug_ALREADY_DEFINED
153
+ #else
154
+ #define yyset_debug slice_set_debug
155
+ #endif
156
+
157
+ #ifdef yyget_extra
158
+ #define slice_get_extra_ALREADY_DEFINED
159
+ #else
160
+ #define yyget_extra slice_get_extra
161
+ #endif
162
+
163
+ #ifdef yyset_extra
164
+ #define slice_set_extra_ALREADY_DEFINED
165
+ #else
166
+ #define yyset_extra slice_set_extra
167
+ #endif
168
+
169
+ #ifdef yyget_in
170
+ #define slice_get_in_ALREADY_DEFINED
171
+ #else
172
+ #define yyget_in slice_get_in
173
+ #endif
174
+
175
+ #ifdef yyset_in
176
+ #define slice_set_in_ALREADY_DEFINED
177
+ #else
178
+ #define yyset_in slice_set_in
179
+ #endif
180
+
181
+ #ifdef yyget_out
182
+ #define slice_get_out_ALREADY_DEFINED
183
+ #else
184
+ #define yyget_out slice_get_out
185
+ #endif
186
+
187
+ #ifdef yyset_out
188
+ #define slice_set_out_ALREADY_DEFINED
189
+ #else
190
+ #define yyset_out slice_set_out
191
+ #endif
192
+
193
+ #ifdef yyget_leng
194
+ #define slice_get_leng_ALREADY_DEFINED
195
+ #else
196
+ #define yyget_leng slice_get_leng
197
+ #endif
198
+
199
+ #ifdef yyget_text
200
+ #define slice_get_text_ALREADY_DEFINED
201
+ #else
202
+ #define yyget_text slice_get_text
203
+ #endif
204
+
205
+ #ifdef yyget_lineno
206
+ #define slice_get_lineno_ALREADY_DEFINED
207
+ #else
208
+ #define yyget_lineno slice_get_lineno
209
+ #endif
210
+
211
+ #ifdef yyset_lineno
212
+ #define slice_set_lineno_ALREADY_DEFINED
213
+ #else
214
+ #define yyset_lineno slice_set_lineno
215
+ #endif
216
+
217
+ #ifdef yywrap
218
+ #define slice_wrap_ALREADY_DEFINED
219
+ #else
220
+ #define yywrap slice_wrap
221
+ #endif
222
+
223
+ #ifdef yyalloc
224
+ #define slice_alloc_ALREADY_DEFINED
225
+ #else
226
+ #define yyalloc slice_alloc
227
+ #endif
228
+
229
+ #ifdef yyrealloc
230
+ #define slice_realloc_ALREADY_DEFINED
231
+ #else
232
+ #define yyrealloc slice_realloc
233
+ #endif
234
+
235
+ #ifdef yyfree
236
+ #define slice_free_ALREADY_DEFINED
237
+ #else
238
+ #define yyfree slice_free
239
+ #endif
240
+
241
+ #ifdef yytext
242
+ #define slice_text_ALREADY_DEFINED
243
+ #else
244
+ #define yytext slice_text
245
+ #endif
246
+
247
+ #ifdef yyleng
248
+ #define slice_leng_ALREADY_DEFINED
249
+ #else
250
+ #define yyleng slice_leng
251
+ #endif
252
+
253
+ #ifdef yyin
254
+ #define slice_in_ALREADY_DEFINED
255
+ #else
256
+ #define yyin slice_in
257
+ #endif
258
+
259
+ #ifdef yyout
260
+ #define slice_out_ALREADY_DEFINED
261
+ #else
262
+ #define yyout slice_out
263
+ #endif
264
+
265
+ #ifdef yy_flex_debug
266
+ #define slice__flex_debug_ALREADY_DEFINED
267
+ #else
268
+ #define yy_flex_debug slice__flex_debug
269
+ #endif
270
+
271
+ #ifdef yylineno
272
+ #define slice_lineno_ALREADY_DEFINED
273
+ #else
274
+ #define yylineno slice_lineno
275
+ #endif
276
+
37
277
  /* First, we deal with platform-specific or compiler-specific issues. */
38
278
 
39
279
  /* begin standard C headers. */
@@ -54,7 +294,7 @@
54
294
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
55
295
 
56
296
  /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
57
- * if you want the limit (max/min) macros for int types.
297
+ * if you want the limit (max/min) macros for int types.
58
298
  */
59
299
  #ifndef __STDC_LIMIT_MACROS
60
300
  #define __STDC_LIMIT_MACROS 1
@@ -71,7 +311,7 @@ typedef uint32_t flex_uint32_t;
71
311
  typedef signed char flex_int8_t;
72
312
  typedef short int flex_int16_t;
73
313
  typedef int flex_int32_t;
74
- typedef unsigned char flex_uint8_t;
314
+ typedef unsigned char flex_uint8_t;
75
315
  typedef unsigned short int flex_uint16_t;
76
316
  typedef unsigned int flex_uint32_t;
77
317
 
@@ -104,65 +344,61 @@ typedef unsigned int flex_uint32_t;
104
344
  #define UINT32_MAX (4294967295U)
105
345
  #endif
106
346
 
347
+ #ifndef SIZE_MAX
348
+ #define SIZE_MAX (~(size_t)0)
349
+ #endif
350
+
107
351
  #endif /* ! C99 */
108
352
 
109
353
  #endif /* ! FLEXINT_H */
110
354
 
111
- #ifdef __cplusplus
112
-
113
- /* The "const" storage-class-modifier is valid. */
114
- #define YY_USE_CONST
355
+ /* begin standard C++ headers. */
115
356
 
116
- #else /* ! __cplusplus */
117
-
118
- /* C99 requires __STDC__ to be defined as 1. */
119
- #if defined (__STDC__)
120
-
121
- #define YY_USE_CONST
122
-
123
- #endif /* defined (__STDC__) */
124
- #endif /* ! __cplusplus */
125
-
126
- #ifdef YY_USE_CONST
357
+ /* TODO: this is always defined, so inline it */
127
358
  #define yyconst const
359
+
360
+ #if defined(__GNUC__) && __GNUC__ >= 3
361
+ #define yynoreturn __attribute__((__noreturn__))
128
362
  #else
129
- #define yyconst
363
+ #define yynoreturn
130
364
  #endif
131
365
 
132
366
  /* Returned upon end-of-file. */
133
367
  #define YY_NULL 0
134
368
 
135
- /* Promotes a possibly negative, possibly signed char to an unsigned
136
- * integer for use as an array index. If the signed char is negative,
137
- * we want to instead treat it as an 8-bit unsigned char, hence the
138
- * double cast.
369
+ /* Promotes a possibly negative, possibly signed char to an
370
+ * integer in range [0..255] for use as an array index.
139
371
  */
140
- #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
372
+ #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
141
373
 
142
374
  /* Enter a start condition. This macro really ought to take a parameter,
143
375
  * but we do it the disgusting crufty way forced on us by the ()-less
144
376
  * definition of BEGIN.
145
377
  */
146
378
  #define BEGIN (yy_start) = 1 + 2 *
147
-
148
379
  /* Translate the current start state into a value that can be later handed
149
380
  * to BEGIN to return to the state. The YYSTATE alias is for lex
150
381
  * compatibility.
151
382
  */
152
383
  #define YY_START (((yy_start) - 1) / 2)
153
384
  #define YYSTATE YY_START
154
-
155
385
  /* Action number for EOF rule of a given start state. */
156
386
  #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
157
-
158
387
  /* Special action meaning "start processing a new file". */
159
- #define YY_NEW_FILE slice_restart(slice_in )
160
-
388
+ #define YY_NEW_FILE yyrestart( yyin )
161
389
  #define YY_END_OF_BUFFER_CHAR 0
162
390
 
163
391
  /* Size of default input buffer. */
164
392
  #ifndef YY_BUF_SIZE
393
+ #ifdef __ia64__
394
+ /* On IA-64, the buffer size is 16k, not 8k.
395
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
396
+ * Ditto for the __ia64__ case accordingly.
397
+ */
398
+ #define YY_BUF_SIZE 32768
399
+ #else
165
400
  #define YY_BUF_SIZE 16384
401
+ #endif /* __ia64__ */
166
402
  #endif
167
403
 
168
404
  /* The state buf must be large enough to hold one state per character in the main buffer.
@@ -179,30 +415,30 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
179
415
  typedef size_t yy_size_t;
180
416
  #endif
181
417
 
182
- extern yy_size_t slice_leng;
418
+ extern int yyleng;
183
419
 
184
- extern FILE *slice_in, *slice_out;
420
+ extern FILE *yyin, *yyout;
185
421
 
186
422
  #define EOB_ACT_CONTINUE_SCAN 0
187
423
  #define EOB_ACT_END_OF_FILE 1
188
424
  #define EOB_ACT_LAST_MATCH 2
189
-
425
+
190
426
  #define YY_LESS_LINENO(n)
191
-
427
+ #define YY_LINENO_REWIND_TO(ptr)
428
+
192
429
  /* Return all but the first "n" matched characters back to the input stream. */
193
430
  #define yyless(n) \
194
431
  do \
195
432
  { \
196
- /* Undo effects of setting up slice_text. */ \
433
+ /* Undo effects of setting up yytext. */ \
197
434
  int yyless_macro_arg = (n); \
198
435
  YY_LESS_LINENO(yyless_macro_arg);\
199
436
  *yy_cp = (yy_hold_char); \
200
437
  YY_RESTORE_YY_MORE_OFFSET \
201
438
  (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
202
- YY_DO_BEFORE_ACTION; /* set up slice_text again */ \
439
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
203
440
  } \
204
441
  while ( 0 )
205
-
206
442
  #define unput(c) yyunput( c, (yytext_ptr) )
207
443
 
208
444
  #ifndef YY_STRUCT_YY_BUFFER_STATE
@@ -217,12 +453,12 @@ struct yy_buffer_state
217
453
  /* Size of input buffer in bytes, not including room for EOB
218
454
  * characters.
219
455
  */
220
- yy_size_t yy_buf_size;
456
+ int yy_buf_size;
221
457
 
222
458
  /* Number of characters read into yy_ch_buf, not including EOB
223
459
  * characters.
224
460
  */
225
- yy_size_t yy_n_chars;
461
+ int yy_n_chars;
226
462
 
227
463
  /* Whether we "own" the buffer - i.e., we know we created it,
228
464
  * and can realloc() it to grow it, and should free() it to
@@ -262,8 +498,8 @@ struct yy_buffer_state
262
498
  * possible backing-up.
263
499
  *
264
500
  * When we actually see the EOF, we change the status to "new"
265
- * (via slice_restart()), so that the user can continue scanning by
266
- * just pointing slice_in at a new input file.
501
+ * (via yyrestart()), so that the user can continue scanning by
502
+ * just pointing yyin at a new input file.
267
503
  */
268
504
  #define YY_BUFFER_EOF_PENDING 2
269
505
 
@@ -273,7 +509,7 @@ struct yy_buffer_state
273
509
  /* Stack of input buffers. */
274
510
  static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
275
511
  static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
276
- static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
512
+ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
277
513
 
278
514
  /* We provide macros for accessing buffer states in case in the
279
515
  * future we want to put the buffer states in a more general
@@ -284,106 +520,101 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
284
520
  #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
285
521
  ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
286
522
  : NULL)
287
-
288
523
  /* Same as previous macro, but useful when we know that the buffer stack is not
289
524
  * NULL or when we need an lvalue. For internal use only.
290
525
  */
291
526
  #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
292
527
 
293
- /* yy_hold_char holds the character lost when slice_text is formed. */
528
+ /* yy_hold_char holds the character lost when yytext is formed. */
294
529
  static char yy_hold_char;
295
- static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
296
- yy_size_t slice_leng;
530
+ static int yy_n_chars; /* number of characters read into yy_ch_buf */
531
+ int yyleng;
297
532
 
298
533
  /* Points to current character in buffer. */
299
- static char *yy_c_buf_p = (char *) 0;
534
+ static char *yy_c_buf_p = NULL;
300
535
  static int yy_init = 0; /* whether we need to initialize */
301
536
  static int yy_start = 0; /* start state number */
302
537
 
303
- /* Flag which is used to allow slice_wrap()'s to do buffer switches
304
- * instead of setting up a fresh slice_in. A bit of a hack ...
538
+ /* Flag which is used to allow yywrap()'s to do buffer switches
539
+ * instead of setting up a fresh yyin. A bit of a hack ...
305
540
  */
306
541
  static int yy_did_buffer_switch_on_eof;
307
542
 
308
- void slice_restart (FILE *input_file );
309
- void slice__switch_to_buffer (YY_BUFFER_STATE new_buffer );
310
- YY_BUFFER_STATE slice__create_buffer (FILE *file,int size );
311
- void slice__delete_buffer (YY_BUFFER_STATE b );
312
- void slice__flush_buffer (YY_BUFFER_STATE b );
313
- void slice_push_buffer_state (YY_BUFFER_STATE new_buffer );
314
- void slice_pop_buffer_state (void );
543
+ void yyrestart ( FILE *input_file );
544
+ void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
545
+ YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
546
+ void yy_delete_buffer ( YY_BUFFER_STATE b );
547
+ void yy_flush_buffer ( YY_BUFFER_STATE b );
548
+ void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
549
+ void yypop_buffer_state ( void );
315
550
 
316
- static void slice_ensure_buffer_stack (void );
317
- static void slice__load_buffer_state (void );
318
- static void slice__init_buffer (YY_BUFFER_STATE b,FILE *file );
551
+ static void yyensure_buffer_stack ( void );
552
+ static void yy_load_buffer_state ( void );
553
+ static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
554
+ #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
319
555
 
320
- #define YY_FLUSH_BUFFER slice__flush_buffer(YY_CURRENT_BUFFER )
556
+ YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
557
+ YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
558
+ YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
321
559
 
322
- YY_BUFFER_STATE slice__scan_buffer (char *base,yy_size_t size );
323
- YY_BUFFER_STATE slice__scan_string (yyconst char *yy_str );
324
- YY_BUFFER_STATE slice__scan_bytes (yyconst char *bytes,yy_size_t len );
325
-
326
- void *slice_alloc (yy_size_t );
327
- void *slice_realloc (void *,yy_size_t );
328
- void slice_free (void * );
329
-
330
- #define yy_new_buffer slice__create_buffer
560
+ void *yyalloc ( yy_size_t );
561
+ void *yyrealloc ( void *, yy_size_t );
562
+ void yyfree ( void * );
331
563
 
564
+ #define yy_new_buffer yy_create_buffer
332
565
  #define yy_set_interactive(is_interactive) \
333
566
  { \
334
567
  if ( ! YY_CURRENT_BUFFER ){ \
335
- slice_ensure_buffer_stack (); \
568
+ yyensure_buffer_stack (); \
336
569
  YY_CURRENT_BUFFER_LVALUE = \
337
- slice__create_buffer(slice_in,YY_BUF_SIZE ); \
570
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
338
571
  } \
339
572
  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
340
573
  }
341
-
342
574
  #define yy_set_bol(at_bol) \
343
575
  { \
344
576
  if ( ! YY_CURRENT_BUFFER ){\
345
- slice_ensure_buffer_stack (); \
577
+ yyensure_buffer_stack (); \
346
578
  YY_CURRENT_BUFFER_LVALUE = \
347
- slice__create_buffer(slice_in,YY_BUF_SIZE ); \
579
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
348
580
  } \
349
581
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
350
582
  }
351
-
352
583
  #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
353
584
 
354
585
  /* Begin user sect3 */
355
586
 
356
- #define slice_wrap() 1
587
+ #define slice_wrap() (/*CONSTCOND*/1)
357
588
  #define YY_SKIP_YYWRAP
589
+ typedef flex_uint8_t YY_CHAR;
358
590
 
359
- typedef unsigned char YY_CHAR;
360
-
361
- FILE *slice_in = (FILE *) 0, *slice_out = (FILE *) 0;
591
+ FILE *yyin = NULL, *yyout = NULL;
362
592
 
363
593
  typedef int yy_state_type;
364
594
 
365
- extern int slice_lineno;
366
-
367
- int slice_lineno = 1;
595
+ extern int yylineno;
596
+ int yylineno = 1;
368
597
 
369
- extern char *slice_text;
370
- #define yytext_ptr slice_text
598
+ extern char *yytext;
599
+ #ifdef yytext_ptr
600
+ #undef yytext_ptr
601
+ #endif
602
+ #define yytext_ptr yytext
371
603
 
372
- static yy_state_type yy_get_previous_state (void );
373
- static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
374
- static int yy_get_next_buffer (void );
375
- static void yy_fatal_error (yyconst char msg[] );
604
+ static yy_state_type yy_get_previous_state ( void );
605
+ static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
606
+ static int yy_get_next_buffer ( void );
607
+ static void yynoreturn yy_fatal_error ( const char* msg );
376
608
 
377
609
  /* Done after the current pattern has been matched and before the
378
- * corresponding action - sets up slice_text.
610
+ * corresponding action - sets up yytext.
379
611
  */
380
612
  #define YY_DO_BEFORE_ACTION \
381
613
  (yytext_ptr) = yy_bp; \
382
- slice_leng = (size_t) (yy_cp - yy_bp); \
614
+ yyleng = (int) (yy_cp - yy_bp); \
383
615
  (yy_hold_char) = *yy_cp; \
384
616
  *yy_cp = '\0'; \
385
617
  (yy_c_buf_p) = yy_cp;
386
-
387
618
  #define YY_NUM_RULES 19
388
619
  #define YY_END_OF_BUFFER 20
389
620
  /* This struct is not used in this scanner,
@@ -393,7 +624,7 @@ struct yy_trans_info
393
624
  flex_int32_t yy_verify;
394
625
  flex_int32_t yy_nxt;
395
626
  };
396
- static yyconst flex_int16_t yy_accept[76] =
627
+ static const flex_int16_t yy_accept[76] =
397
628
  { 0,
398
629
  0, 0, 0, 0, 0, 0, 20, 18, 16, 16,
399
630
  13, 18, 18, 18, 14, 14, 18, 12, 7, 18,
@@ -405,7 +636,7 @@ static yyconst flex_int16_t yy_accept[76] =
405
636
  0, 0, 0, 4, 0
406
637
  } ;
407
638
 
408
- static yyconst flex_int32_t yy_ec[256] =
639
+ static const YY_CHAR yy_ec[256] =
409
640
  { 0,
410
641
  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
411
642
  4, 4, 4, 1, 1, 1, 1, 1, 1, 1,
@@ -437,7 +668,7 @@ static yyconst flex_int32_t yy_ec[256] =
437
668
  1, 1, 1, 1, 1
438
669
  } ;
439
670
 
440
- static yyconst flex_int32_t yy_meta[32] =
671
+ static const YY_CHAR yy_meta[32] =
441
672
  { 0,
442
673
  1, 2, 3, 1, 1, 1, 1, 1, 4, 4,
443
674
  1, 1, 5, 5, 5, 1, 6, 6, 6, 7,
@@ -445,7 +676,7 @@ static yyconst flex_int32_t yy_meta[32] =
445
676
  1
446
677
  } ;
447
678
 
448
- static yyconst flex_int16_t yy_base[87] =
679
+ static const flex_int16_t yy_base[87] =
449
680
  { 0,
450
681
  0, 140, 0, 26, 0, 139, 137, 197, 197, 197,
451
682
  197, 22, 25, 33, 47, 35, 120, 74, 114, 0,
@@ -458,7 +689,7 @@ static yyconst flex_int16_t yy_base[87] =
458
689
  155, 160, 168, 175, 180, 188
459
690
  } ;
460
691
 
461
- static yyconst flex_int16_t yy_def[87] =
692
+ static const flex_int16_t yy_def[87] =
462
693
  { 0,
463
694
  75, 1, 1, 1, 1, 1, 75, 75, 75, 75,
464
695
  75, 75, 75, 75, 75, 15, 75, 75, 75, 76,
@@ -471,7 +702,7 @@ static yyconst flex_int16_t yy_def[87] =
471
702
  75, 75, 75, 75, 75, 75
472
703
  } ;
473
704
 
474
- static yyconst flex_int16_t yy_nxt[229] =
705
+ static const flex_int16_t yy_nxt[229] =
475
706
  { 0,
476
707
  8, 9, 10, 9, 11, 8, 8, 8, 12, 12,
477
708
  13, 14, 15, 16, 16, 17, 18, 18, 18, 18,
@@ -500,7 +731,7 @@ static yyconst flex_int16_t yy_nxt[229] =
500
731
  75, 75, 75, 75, 75, 75, 75, 75
501
732
  } ;
502
733
 
503
- static yyconst flex_int16_t yy_chk[229] =
734
+ static const flex_int16_t yy_chk[229] =
504
735
  { 0,
505
736
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
506
737
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -532,8 +763,8 @@ static yyconst flex_int16_t yy_chk[229] =
532
763
  static yy_state_type yy_last_accepting_state;
533
764
  static char *yy_last_accepting_cpos;
534
765
 
535
- extern int slice__flex_debug;
536
- int slice__flex_debug = 0;
766
+ extern int yy_flex_debug;
767
+ int yy_flex_debug = 0;
537
768
 
538
769
  /* The intent behind this definition is that it'll catch
539
770
  * any uses of REJECT which flex missed.
@@ -542,18 +773,13 @@ int slice__flex_debug = 0;
542
773
  #define yymore() yymore_used_but_not_detected
543
774
  #define YY_MORE_ADJ 0
544
775
  #define YY_RESTORE_YY_MORE_OFFSET
545
- char *slice_text;
776
+ char *yytext;
546
777
  #line 1 "src/Slice/Scanner.l"
547
778
  #line 2 "src/Slice/Scanner.l"
548
779
 
549
- // **********************************************************************
550
- //
551
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
552
780
  //
553
- // This copy of Ice is licensed to you under the terms described in the
554
- // ICE_LICENSE file included in this distribution.
781
+ // Copyright (c) ZeroC, Inc. All rights reserved.
555
782
  //
556
- // **********************************************************************
557
783
 
558
784
  #include <Slice/GrammarUtil.h> // Before Grammer.h, so that YYSTYPE is defined
559
785
  #include <Slice/Grammar.h>
@@ -564,30 +790,33 @@ char *slice_text;
564
790
  #include <stdlib.h>
565
791
  #include <math.h>
566
792
 
567
- #if defined(_MSC_VER) && defined(ICE_64)
568
- //
569
- // '=' : conversion from 'size_t' to 'int', possible loss of data
570
- // The result of fread() is a size_t and gets inserted into an int
571
- //
572
- # pragma warning( 4 : 4267 )
573
- //
793
+ #if defined(_MSC_VER)
794
+ // '<' : signed/unsigned mismatch
795
+ # pragma warning(disable:4018)
574
796
  // 'initializing' : conversion from '__int64' to 'int', possible loss of data
575
- // Puts a pointer-difference into an int
576
- //
577
- # pragma warning( 4 : 4244 )
578
- #endif
797
+ # pragma warning(disable:4244)
579
798
 
580
- #if defined(_MSC_VER) && defined(ICE_32)
799
+ # if defined(ICE_64)
581
800
  //
582
- // '<' : signed/unsigned mismatch
801
+ // '=' : conversion from 'size_t' to 'int', possible loss of data
802
+ // The result of fread() is a size_t and gets inserted into an int
583
803
  //
584
- # pragma warning( 4 : 4018 )
804
+ # pragma warning(disable:4267)
805
+ # endif
585
806
  #endif
586
807
 
587
808
  #if defined(__GNUC__)
588
809
  # pragma GCC diagnostic ignored "-Wsign-compare"
589
810
  #endif
590
811
 
812
+ //
813
+ // Avoid clang conversion warnings
814
+ //
815
+ #if defined(__clang__)
816
+ # pragma clang diagnostic ignored "-Wconversion"
817
+ # pragma clang diagnostic ignored "-Wsign-conversion"
818
+ #endif
819
+
591
820
  #ifdef _MSC_VER
592
821
  # ifdef slice_wrap
593
822
  # undef slice_wrap
@@ -626,9 +855,9 @@ int checkIdentifier(string&);
626
855
 
627
856
  #define YY_USER_INIT initScanner();
628
857
 
858
+ #line 857 "src/Slice/Scanner.cpp"
629
859
 
630
-
631
- #line 631 "src/Slice/Scanner.cpp"
860
+ #line 859 "src/Slice/Scanner.cpp"
632
861
 
633
862
  #define INITIAL 0
634
863
  #define BOMSCAN 1
@@ -646,36 +875,36 @@ int checkIdentifier(string&);
646
875
  #define YY_EXTRA_TYPE void *
647
876
  #endif
648
877
 
649
- static int yy_init_globals (void );
878
+ static int yy_init_globals ( void );
650
879
 
651
880
  /* Accessor methods to globals.
652
881
  These are made visible to non-reentrant scanners for convenience. */
653
882
 
654
- int slice_lex_destroy (void );
883
+ int yylex_destroy ( void );
655
884
 
656
- int slice_get_debug (void );
885
+ int yyget_debug ( void );
657
886
 
658
- void slice_set_debug (int debug_flag );
887
+ void yyset_debug ( int debug_flag );
659
888
 
660
- YY_EXTRA_TYPE slice_get_extra (void );
889
+ YY_EXTRA_TYPE yyget_extra ( void );
661
890
 
662
- void slice_set_extra (YY_EXTRA_TYPE user_defined );
891
+ void yyset_extra ( YY_EXTRA_TYPE user_defined );
663
892
 
664
- FILE *slice_get_in (void );
893
+ FILE *yyget_in ( void );
665
894
 
666
- void slice_set_in (FILE * in_str );
895
+ void yyset_in ( FILE * _in_str );
667
896
 
668
- FILE *slice_get_out (void );
897
+ FILE *yyget_out ( void );
669
898
 
670
- void slice_set_out (FILE * out_str );
899
+ void yyset_out ( FILE * _out_str );
671
900
 
672
- yy_size_t slice_get_leng (void );
901
+ int yyget_leng ( void );
673
902
 
674
- char *slice_get_text (void );
903
+ char *yyget_text ( void );
675
904
 
676
- int slice_get_lineno (void );
905
+ int yyget_lineno ( void );
677
906
 
678
- void slice_set_lineno (int line_number );
907
+ void yyset_lineno ( int _line_number );
679
908
 
680
909
  /* Macros after this point can all be overridden by user definitions in
681
910
  * section 1.
@@ -683,35 +912,43 @@ void slice_set_lineno (int line_number );
683
912
 
684
913
  #ifndef YY_SKIP_YYWRAP
685
914
  #ifdef __cplusplus
686
- extern "C" int slice_wrap (void );
915
+ extern "C" int yywrap ( void );
687
916
  #else
688
- extern int slice_wrap (void );
917
+ extern int yywrap ( void );
689
918
  #endif
690
919
  #endif
691
920
 
692
- static void yyunput (int c,char *buf_ptr );
921
+ #ifndef YY_NO_UNPUT
922
+
923
+ static void yyunput ( int c, char *buf_ptr );
924
+
925
+ #endif
693
926
 
694
927
  #ifndef yytext_ptr
695
- static void yy_flex_strncpy (char *,yyconst char *,int );
928
+ static void yy_flex_strncpy ( char *, const char *, int );
696
929
  #endif
697
930
 
698
931
  #ifdef YY_NEED_STRLEN
699
- static int yy_flex_strlen (yyconst char * );
932
+ static int yy_flex_strlen ( const char * );
700
933
  #endif
701
934
 
702
935
  #ifndef YY_NO_INPUT
703
-
704
936
  #ifdef __cplusplus
705
- static int yyinput (void );
937
+ static int yyinput ( void );
706
938
  #else
707
- static int input (void );
939
+ static int input ( void );
708
940
  #endif
709
941
 
710
942
  #endif
711
943
 
712
944
  /* Amount of stuff to slurp up with each read. */
713
945
  #ifndef YY_READ_BUF_SIZE
946
+ #ifdef __ia64__
947
+ /* On IA-64, the buffer size is 16k, not 8k */
948
+ #define YY_READ_BUF_SIZE 16384
949
+ #else
714
950
  #define YY_READ_BUF_SIZE 8192
951
+ #endif /* __ia64__ */
715
952
  #endif
716
953
 
717
954
  /* Copy whatever the last rule matched to the standard output. */
@@ -719,7 +956,7 @@ static int input (void );
719
956
  /* This used to be an fputs(), but since the string might contain NUL's,
720
957
  * we now use fwrite().
721
958
  */
722
- #define ECHO do { if (fwrite( slice_text, slice_leng, 1, slice_out )) {} } while (0)
959
+ #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
723
960
  #endif
724
961
 
725
962
  /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -730,20 +967,20 @@ static int input (void );
730
967
  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
731
968
  { \
732
969
  int c = '*'; \
733
- size_t n; \
970
+ int n; \
734
971
  for ( n = 0; n < max_size && \
735
- (c = getc( slice_in )) != EOF && c != '\n'; ++n ) \
972
+ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
736
973
  buf[n] = (char) c; \
737
974
  if ( c == '\n' ) \
738
975
  buf[n++] = (char) c; \
739
- if ( c == EOF && ferror( slice_in ) ) \
976
+ if ( c == EOF && ferror( yyin ) ) \
740
977
  YY_FATAL_ERROR( "input in flex scanner failed" ); \
741
978
  result = n; \
742
979
  } \
743
980
  else \
744
981
  { \
745
982
  errno=0; \
746
- while ( (result = fread(buf, 1, max_size, slice_in))==0 && ferror(slice_in)) \
983
+ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
747
984
  { \
748
985
  if( errno != EINTR) \
749
986
  { \
@@ -751,7 +988,7 @@ static int input (void );
751
988
  break; \
752
989
  } \
753
990
  errno=0; \
754
- clearerr(slice_in); \
991
+ clearerr(yyin); \
755
992
  } \
756
993
  }\
757
994
  \
@@ -784,12 +1021,12 @@ static int input (void );
784
1021
  #ifndef YY_DECL
785
1022
  #define YY_DECL_IS_OURS 1
786
1023
 
787
- extern int slice_lex (void);
1024
+ extern int yylex (void);
788
1025
 
789
- #define YY_DECL int slice_lex (void)
1026
+ #define YY_DECL int yylex (void)
790
1027
  #endif /* !YY_DECL */
791
1028
 
792
- /* Code executed at the beginning of each rule, after slice_text and slice_leng
1029
+ /* Code executed at the beginning of each rule, after yytext and yyleng
793
1030
  * have been set up.
794
1031
  */
795
1032
  #ifndef YY_USER_ACTION
@@ -798,28 +1035,23 @@ extern int slice_lex (void);
798
1035
 
799
1036
  /* Code executed at the end of each rule. */
800
1037
  #ifndef YY_BREAK
801
- #define YY_BREAK break;
1038
+ #define YY_BREAK /*LINTED*/break;
802
1039
  #endif
803
1040
 
804
1041
  #define YY_RULE_SETUP \
805
- if ( slice_leng > 0 ) \
1042
+ if ( yyleng > 0 ) \
806
1043
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
807
- (slice_text[slice_leng - 1] == '\n'); \
1044
+ (yytext[yyleng - 1] == '\n'); \
808
1045
  YY_USER_ACTION
809
1046
 
810
1047
  /** The main scanner function which does all the work.
811
1048
  */
812
1049
  YY_DECL
813
1050
  {
814
- register yy_state_type yy_current_state;
815
- register char *yy_cp, *yy_bp;
816
- register int yy_act;
817
-
818
- #line 98 "src/Slice/Scanner.l"
819
-
820
-
821
- #line 821 "src/Slice/Scanner.cpp"
822
-
1051
+ yy_state_type yy_current_state;
1052
+ char *yy_cp, *yy_bp;
1053
+ int yy_act;
1054
+
823
1055
  if ( !(yy_init) )
824
1056
  {
825
1057
  (yy_init) = 1;
@@ -831,26 +1063,32 @@ YY_DECL
831
1063
  if ( ! (yy_start) )
832
1064
  (yy_start) = 1; /* first start state */
833
1065
 
834
- if ( ! slice_in )
835
- slice_in = stdin;
1066
+ if ( ! yyin )
1067
+ yyin = stdin;
836
1068
 
837
- if ( ! slice_out )
838
- slice_out = stdout;
1069
+ if ( ! yyout )
1070
+ yyout = stdout;
839
1071
 
840
1072
  if ( ! YY_CURRENT_BUFFER ) {
841
- slice_ensure_buffer_stack ();
1073
+ yyensure_buffer_stack ();
842
1074
  YY_CURRENT_BUFFER_LVALUE =
843
- slice__create_buffer(slice_in,YY_BUF_SIZE );
1075
+ yy_create_buffer( yyin, YY_BUF_SIZE );
844
1076
  }
845
1077
 
846
- slice__load_buffer_state( );
1078
+ yy_load_buffer_state( );
847
1079
  }
848
1080
 
849
- while ( 1 ) /* loops until end-of-file is reached */
1081
+ {
1082
+ #line 96 "src/Slice/Scanner.l"
1083
+
1084
+
1085
+ #line 1084 "src/Slice/Scanner.cpp"
1086
+
1087
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
850
1088
  {
851
1089
  yy_cp = (yy_c_buf_p);
852
1090
 
853
- /* Support of slice_text. */
1091
+ /* Support of yytext. */
854
1092
  *yy_cp = (yy_hold_char);
855
1093
 
856
1094
  /* yy_bp points to the position in yy_ch_buf of the start of
@@ -863,7 +1101,7 @@ YY_DECL
863
1101
  yy_match:
864
1102
  do
865
1103
  {
866
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1104
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
867
1105
  if ( yy_accept[yy_current_state] )
868
1106
  {
869
1107
  (yy_last_accepting_state) = yy_current_state;
@@ -873,9 +1111,9 @@ yy_match:
873
1111
  {
874
1112
  yy_current_state = (int) yy_def[yy_current_state];
875
1113
  if ( yy_current_state >= 76 )
876
- yy_c = yy_meta[(unsigned int) yy_c];
1114
+ yy_c = yy_meta[yy_c];
877
1115
  }
878
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1116
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
879
1117
  ++yy_cp;
880
1118
  }
881
1119
  while ( yy_current_state != 75 );
@@ -899,13 +1137,13 @@ do_action: /* This label is used only to access EOF actions. */
899
1137
  goto yy_find_action;
900
1138
 
901
1139
  case 1:
902
- *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
1140
+ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
903
1141
  (yy_c_buf_p) = yy_cp -= 1;
904
- YY_DO_BEFORE_ACTION; /* set up slice_text again */
1142
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
905
1143
  YY_RULE_SETUP
906
- #line 100 "src/Slice/Scanner.l"
1144
+ #line 98 "src/Slice/Scanner.l"
907
1145
  {
908
- if(unit->scanPosition(slice_text))
1146
+ if(unit->scanPosition(yytext))
909
1147
  {
910
1148
  BEGIN(BOMSCAN);
911
1149
  }
@@ -913,26 +1151,27 @@ YY_RULE_SETUP
913
1151
  YY_BREAK
914
1152
  case 2:
915
1153
  /* rule 2 can match eol */
916
- *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
1154
+ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1155
+ YY_LINENO_REWIND_TO(yy_cp - 1);
917
1156
  (yy_c_buf_p) = yy_cp -= 1;
918
- YY_DO_BEFORE_ACTION; /* set up slice_text again */
1157
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
919
1158
  YY_RULE_SETUP
920
- #line 107 "src/Slice/Scanner.l"
1159
+ #line 105 "src/Slice/Scanner.l"
921
1160
  {
922
- if(unit->scanPosition(slice_text))
1161
+ if(unit->scanPosition(yytext))
923
1162
  {
924
1163
  BEGIN(BOMSCAN);
925
1164
  }
926
1165
  }
927
1166
  YY_BREAK
928
1167
  case 3:
929
- *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
1168
+ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
930
1169
  (yy_c_buf_p) = yy_cp -= 1;
931
- YY_DO_BEFORE_ACTION; /* set up slice_text again */
1170
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
932
1171
  YY_RULE_SETUP
933
- #line 114 "src/Slice/Scanner.l"
1172
+ #line 112 "src/Slice/Scanner.l"
934
1173
  {
935
- if(unit->scanPosition(slice_text))
1174
+ if(unit->scanPosition(yytext))
936
1175
  {
937
1176
  BEGIN(BOMSCAN);
938
1177
  }
@@ -940,13 +1179,14 @@ YY_RULE_SETUP
940
1179
  YY_BREAK
941
1180
  case 4:
942
1181
  /* rule 4 can match eol */
943
- *yy_cp = (yy_hold_char); /* undo effects of setting up slice_text */
1182
+ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1183
+ YY_LINENO_REWIND_TO(yy_cp - 1);
944
1184
  (yy_c_buf_p) = yy_cp -= 1;
945
- YY_DO_BEFORE_ACTION; /* set up slice_text again */
1185
+ YY_DO_BEFORE_ACTION; /* set up yytext again */
946
1186
  YY_RULE_SETUP
947
- #line 121 "src/Slice/Scanner.l"
1187
+ #line 119 "src/Slice/Scanner.l"
948
1188
  {
949
- if(unit->scanPosition(slice_text))
1189
+ if(unit->scanPosition(yytext))
950
1190
  {
951
1191
  BEGIN(BOMSCAN);
952
1192
  }
@@ -954,7 +1194,7 @@ YY_RULE_SETUP
954
1194
  YY_BREAK
955
1195
  case 5:
956
1196
  YY_RULE_SETUP
957
- #line 128 "src/Slice/Scanner.l"
1197
+ #line 126 "src/Slice/Scanner.l"
958
1198
  {
959
1199
  // C++-style comment
960
1200
  BEGIN(MAINSCAN);
@@ -972,11 +1212,11 @@ YY_RULE_SETUP
972
1212
  YY_BREAK
973
1213
  case 6:
974
1214
  YY_RULE_SETUP
975
- #line 143 "src/Slice/Scanner.l"
1215
+ #line 141 "src/Slice/Scanner.l"
976
1216
  {
977
1217
  // C-style comment
978
1218
  BEGIN(MAINSCAN);
979
- string comment = slice_text + 2;
1219
+ string comment = yytext + 2;
980
1220
  while(true)
981
1221
  {
982
1222
  int c = yyinput();
@@ -1016,7 +1256,7 @@ YY_RULE_SETUP
1016
1256
  YY_BREAK
1017
1257
  case 7:
1018
1258
  YY_RULE_SETUP
1019
- #line 184 "src/Slice/Scanner.l"
1259
+ #line 182 "src/Slice/Scanner.l"
1020
1260
  {
1021
1261
  BEGIN(MAINSCAN);
1022
1262
  return ICE_METADATA_OPEN;
@@ -1024,7 +1264,7 @@ YY_RULE_SETUP
1024
1264
  YY_BREAK
1025
1265
  case 8:
1026
1266
  YY_RULE_SETUP
1027
- #line 189 "src/Slice/Scanner.l"
1267
+ #line 187 "src/Slice/Scanner.l"
1028
1268
  {
1029
1269
  BEGIN(MAINSCAN);
1030
1270
  return ICE_METADATA_CLOSE;
@@ -1032,7 +1272,7 @@ YY_RULE_SETUP
1032
1272
  YY_BREAK
1033
1273
  case 9:
1034
1274
  YY_RULE_SETUP
1035
- #line 194 "src/Slice/Scanner.l"
1275
+ #line 192 "src/Slice/Scanner.l"
1036
1276
  {
1037
1277
  BEGIN(MAINSCAN);
1038
1278
  return ICE_GLOBAL_METADATA_OPEN;
@@ -1040,7 +1280,7 @@ YY_RULE_SETUP
1040
1280
  YY_BREAK
1041
1281
  case 10:
1042
1282
  YY_RULE_SETUP
1043
- #line 199 "src/Slice/Scanner.l"
1283
+ #line 197 "src/Slice/Scanner.l"
1044
1284
  {
1045
1285
  BEGIN(MAINSCAN);
1046
1286
  return ICE_GLOBAL_METADATA_CLOSE;
@@ -1049,14 +1289,14 @@ YY_RULE_SETUP
1049
1289
  case 11:
1050
1290
  /* rule 11 can match eol */
1051
1291
  YY_RULE_SETUP
1052
- #line 204 "src/Slice/Scanner.l"
1292
+ #line 202 "src/Slice/Scanner.l"
1053
1293
  {
1054
1294
  BEGIN(MAINSCAN);
1055
1295
  StringTokPtr ident = new StringTok;
1056
- ident->v = *slice_text == '\\' ? slice_text + 1 : slice_text;
1296
+ ident->v = *yytext == '\\' ? yytext + 1 : yytext;
1057
1297
  ident->v.erase(ident->v.find_first_of(" \t\v\n\r\f("));
1058
1298
  *yylvalp = ident;
1059
- if(*slice_text == '\\')
1299
+ if(*yytext == '\\')
1060
1300
  {
1061
1301
  if(checkIdentifier(ident->v) == ICE_SCOPED_IDENTIFIER)
1062
1302
  {
@@ -1086,26 +1326,26 @@ YY_RULE_SETUP
1086
1326
  YY_BREAK
1087
1327
  case 12:
1088
1328
  YY_RULE_SETUP
1089
- #line 238 "src/Slice/Scanner.l"
1329
+ #line 236 "src/Slice/Scanner.l"
1090
1330
  {
1091
1331
  BEGIN(MAINSCAN);
1092
1332
  StringTokPtr ident = new StringTok;
1093
- ident->v = *slice_text == '\\' ? slice_text + 1 : slice_text;
1333
+ ident->v = *yytext == '\\' ? yytext + 1 : yytext;
1094
1334
  *yylvalp = ident;
1095
- return *slice_text == '\\' ? checkIdentifier(ident->v) : checkKeyword(ident->v);
1335
+ return *yytext == '\\' ? checkIdentifier(ident->v) : checkKeyword(ident->v);
1096
1336
  }
1097
1337
  YY_BREAK
1098
1338
  case 13:
1099
1339
  YY_RULE_SETUP
1100
- #line 246 "src/Slice/Scanner.l"
1340
+ #line 244 "src/Slice/Scanner.l"
1101
1341
  {
1102
1342
  BEGIN(MAINSCAN);
1103
1343
  StringTokPtr str = new StringTok;
1104
1344
  str->literal = "\"";
1105
1345
  while(true)
1106
1346
  {
1107
- char c = static_cast<char>(yyinput());
1108
- str->literal += c;
1347
+ int c = yyinput();
1348
+ str->literal += static_cast<char>(c);
1109
1349
  if(c == '"')
1110
1350
  {
1111
1351
  break;
@@ -1115,15 +1355,15 @@ YY_RULE_SETUP
1115
1355
  unit->error("EOF in string");
1116
1356
  break;
1117
1357
  }
1118
- else if(static_cast<unsigned char>(c) < 32 || c == 127)
1358
+ else if(c < 32 || c == 127)
1119
1359
  {
1120
1360
  unit->error("a string literal can only contain printable ASCII characters and non-ASCII characters");
1121
1361
  break;
1122
1362
  }
1123
1363
  else if(c == '\\')
1124
1364
  {
1125
- char next = static_cast<char>(yyinput());
1126
- str->literal += next;
1365
+ int next = yyinput();
1366
+ str->literal += static_cast<char>(next);
1127
1367
  switch(next)
1128
1368
  {
1129
1369
  case '\\':
@@ -1139,7 +1379,7 @@ YY_RULE_SETUP
1139
1379
  case '\'':
1140
1380
  case '?':
1141
1381
  {
1142
- str->v += next;
1382
+ str->v += static_cast<char>(next);
1143
1383
  break;
1144
1384
  }
1145
1385
  case 'a':
@@ -1193,16 +1433,16 @@ YY_RULE_SETUP
1193
1433
  {
1194
1434
  static string octalDigits = "01234567";
1195
1435
  string escape;
1196
- escape += next;
1436
+ escape += static_cast<char>(next);
1197
1437
  for(int i = 0; i < 2; ++i)
1198
1438
  {
1199
- next = static_cast<char>(yyinput());
1200
- if(octalDigits.find_first_of(next) == string::npos)
1439
+ next = yyinput();
1440
+ if(octalDigits.find_first_of(static_cast<char>(next)) == string::npos)
1201
1441
  {
1202
1442
  unput(next);
1203
1443
  break;
1204
1444
  }
1205
- escape += next;
1445
+ escape += static_cast<char>(next);
1206
1446
  }
1207
1447
  str->literal += escape;
1208
1448
  IceUtil::Int64 value = IceUtilInternal::strToInt64(escape.c_str(), 0, 8);
@@ -1217,15 +1457,15 @@ YY_RULE_SETUP
1217
1457
  case 'x':
1218
1458
  {
1219
1459
  string escape = "";
1220
- next = static_cast<char>(yyinput());
1460
+ next = yyinput();
1221
1461
 
1222
1462
  //
1223
1463
  // Unlike C++, we limit hex escape sequences to 2 hex digits
1224
1464
  //
1225
- while(isxdigit(next) && escape.length() < 2)
1465
+ while(isxdigit(static_cast<char>(next)) && escape.length() < 2)
1226
1466
  {
1227
- escape += next;
1228
- next = static_cast<char>(yyinput());
1467
+ escape += static_cast<char>(next);
1468
+ next = yyinput();
1229
1469
  }
1230
1470
  unput(next);
1231
1471
 
@@ -1249,18 +1489,19 @@ YY_RULE_SETUP
1249
1489
  case 'U':
1250
1490
  {
1251
1491
  string escape = "";
1252
- char c = next;
1492
+ c = next;
1253
1493
  int size = (c == 'u') ? 4 : 8;
1254
1494
  while(size > 0)
1255
1495
  {
1256
- next = static_cast<char>(yyinput());
1257
- if(!isxdigit(static_cast<unsigned char>(next)))
1496
+ next = yyinput();
1497
+ if(!isxdigit(next))
1258
1498
  {
1259
- unit->error(string("unknown escape sequence in string literal: `\\") + c + escape + next + "'");
1499
+ unit->error(string("unknown escape sequence in string literal: `\\") +
1500
+ static_cast<char>(c) + escape + static_cast<char>(next) + "'");
1260
1501
  unput(next);
1261
1502
  break;
1262
1503
  }
1263
- escape += next;
1504
+ escape += static_cast<char>(next);
1264
1505
  --size;
1265
1506
  }
1266
1507
 
@@ -1270,19 +1511,20 @@ YY_RULE_SETUP
1270
1511
  IceUtil::Int64 codePoint = IceUtilInternal::strToInt64(escape.c_str(), 0, 16);
1271
1512
  if(codePoint >= 0xd800 && codePoint <= 0xdfff)
1272
1513
  {
1273
- unit->error(string("a universal character name cannot designate a surrogate: `\\") + c + escape + "'");
1514
+ unit->error(string("a universal character name cannot designate a surrogate: `\\") +
1515
+ static_cast<char>(c) + escape + "'");
1274
1516
  }
1275
1517
  }
1276
1518
 
1277
1519
  str->literal += escape;
1278
- str->v += string("\\") + c + escape;
1520
+ str->v += string("\\") + static_cast<char>(c) + escape;
1279
1521
  break;
1280
1522
  }
1281
1523
 
1282
1524
  default:
1283
1525
  {
1284
1526
  ostringstream os;
1285
- os << "unknown escape sequence `\\" << next << "'";
1527
+ os << "unknown escape sequence `\\" << static_cast<char>(next) << "'";
1286
1528
  unit->warning(All, os.str());
1287
1529
 
1288
1530
  // Escape the \ in this unknown escape sequence
@@ -1294,7 +1536,7 @@ YY_RULE_SETUP
1294
1536
  }
1295
1537
  else
1296
1538
  {
1297
- str->v += c;
1539
+ str->v += static_cast<char>(c);
1298
1540
  }
1299
1541
  }
1300
1542
  *yylvalp = str;
@@ -1307,13 +1549,13 @@ YY_RULE_SETUP
1307
1549
  {
1308
1550
  BEGIN(MAINSCAN);
1309
1551
  IntegerTokPtr itp = new IntegerTok;
1310
- itp->literal = string(slice_text);
1552
+ itp->literal = string(yytext);
1311
1553
  *yylvalp = itp;
1312
- if(!IceUtilInternal::stringToInt64(string(slice_text), itp->v))
1554
+ if(!IceUtilInternal::stringToInt64(string(yytext), itp->v))
1313
1555
  {
1314
1556
  assert(itp->v != 0);
1315
1557
  string msg = "integer constant `";
1316
- msg += slice_text;
1558
+ msg += yytext;
1317
1559
  msg += "' out of range";
1318
1560
  unit->error(msg);
1319
1561
  }
@@ -1328,7 +1570,7 @@ YY_RULE_SETUP
1328
1570
  errno = 0;
1329
1571
  FloatingTokPtr ftp = new FloatingTok;
1330
1572
  *yylvalp = ftp;
1331
- string literal(slice_text);
1573
+ string literal(yytext);
1332
1574
  ftp->literal = literal;
1333
1575
  char lastChar = literal[literal.size() - 1];
1334
1576
  if(lastChar == 'f' || lastChar == 'F')
@@ -1339,14 +1581,14 @@ YY_RULE_SETUP
1339
1581
  if((ftp->v == HUGE_VAL || ftp->v == -HUGE_VAL) && errno == ERANGE)
1340
1582
  {
1341
1583
  string msg = "floating-point constant `";
1342
- msg += slice_text;
1584
+ msg += yytext;
1343
1585
  msg += "' too large (overflow)";
1344
1586
  unit->error(msg);
1345
1587
  }
1346
1588
  else if(ftp->v == 0 && errno == ERANGE)
1347
1589
  {
1348
1590
  string msg = "floating-point constant `";
1349
- msg += slice_text;
1591
+ msg += yytext;
1350
1592
  msg += "' too small (underflow)";
1351
1593
  unit->error(msg);
1352
1594
  }
@@ -1364,7 +1606,7 @@ YY_RULE_SETUP
1364
1606
  {
1365
1607
  BEGIN(MAINSCAN);
1366
1608
  }
1367
- if(slice_text[0] == '\n')
1609
+ if(yytext[0] == '\n')
1368
1610
  {
1369
1611
  unit->nextLine();
1370
1612
  }
@@ -1384,18 +1626,18 @@ YY_RULE_SETUP
1384
1626
  #line 514 "src/Slice/Scanner.l"
1385
1627
  {
1386
1628
  BEGIN(MAINSCAN);
1387
- if(slice_text[0] < 32 || slice_text[0] > 126)
1629
+ if(yytext[0] < 32 || yytext[0] > 126)
1388
1630
  {
1389
1631
  stringstream s;
1390
1632
  s << "illegal input character: '\\";
1391
1633
  s.width(3);
1392
1634
  s.fill('0');
1393
- s << oct << static_cast<int>(static_cast<unsigned char>(slice_text[0]));
1635
+ s << oct << static_cast<int>(static_cast<unsigned char>(yytext[0]));
1394
1636
  s << "'";
1395
1637
  unit->error(s.str());
1396
1638
  return BAD_CHAR;
1397
1639
  }
1398
- return slice_text[0];
1640
+ return yytext[0];
1399
1641
  }
1400
1642
  YY_BREAK
1401
1643
  case 19:
@@ -1403,7 +1645,7 @@ YY_RULE_SETUP
1403
1645
  #line 530 "src/Slice/Scanner.l"
1404
1646
  ECHO;
1405
1647
  YY_BREAK
1406
- #line 1406 "src/Slice/Scanner.cpp"
1648
+ #line 1647 "src/Slice/Scanner.cpp"
1407
1649
  case YY_STATE_EOF(INITIAL):
1408
1650
  case YY_STATE_EOF(BOMSCAN):
1409
1651
  case YY_STATE_EOF(MAINSCAN):
@@ -1422,15 +1664,15 @@ case YY_STATE_EOF(MAINSCAN):
1422
1664
  {
1423
1665
  /* We're scanning a new file or input source. It's
1424
1666
  * possible that this happened because the user
1425
- * just pointed slice_in at a new source and called
1426
- * slice_lex(). If so, then we have to assure
1667
+ * just pointed yyin at a new source and called
1668
+ * yylex(). If so, then we have to assure
1427
1669
  * consistency between YY_CURRENT_BUFFER and our
1428
1670
  * globals. Here is the right place to do so, because
1429
1671
  * this is the first action (other than possibly a
1430
1672
  * back-up) that will match for the new input source.
1431
1673
  */
1432
1674
  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1433
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = slice_in;
1675
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1434
1676
  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1435
1677
  }
1436
1678
 
@@ -1484,11 +1726,11 @@ case YY_STATE_EOF(MAINSCAN):
1484
1726
  {
1485
1727
  (yy_did_buffer_switch_on_eof) = 0;
1486
1728
 
1487
- if ( slice_wrap( ) )
1729
+ if ( yywrap( ) )
1488
1730
  {
1489
1731
  /* Note: because we've taken care in
1490
1732
  * yy_get_next_buffer() to have set up
1491
- * slice_text, we can now set up
1733
+ * yytext, we can now set up
1492
1734
  * yy_c_buf_p so that if some total
1493
1735
  * hoser (like flex itself) wants to
1494
1736
  * call the scanner after we return the
@@ -1537,7 +1779,8 @@ case YY_STATE_EOF(MAINSCAN):
1537
1779
  "fatal flex scanner internal error--no action found" );
1538
1780
  } /* end of action switch */
1539
1781
  } /* end of scanning one token */
1540
- } /* end of slice_lex */
1782
+ } /* end of user's declarations */
1783
+ } /* end of yylex */
1541
1784
 
1542
1785
  /* yy_get_next_buffer - try to read in a new buffer
1543
1786
  *
@@ -1548,9 +1791,9 @@ case YY_STATE_EOF(MAINSCAN):
1548
1791
  */
1549
1792
  static int yy_get_next_buffer (void)
1550
1793
  {
1551
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1552
- register char *source = (yytext_ptr);
1553
- register int number_to_move, i;
1794
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1795
+ char *source = (yytext_ptr);
1796
+ int number_to_move, i;
1554
1797
  int ret_val;
1555
1798
 
1556
1799
  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@ -1579,7 +1822,7 @@ static int yy_get_next_buffer (void)
1579
1822
  /* Try to read more data. */
1580
1823
 
1581
1824
  /* First move last chars to start of buffer. */
1582
- number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1825
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1583
1826
 
1584
1827
  for ( i = 0; i < number_to_move; ++i )
1585
1828
  *(dest++) = *(source++);
@@ -1592,7 +1835,7 @@ static int yy_get_next_buffer (void)
1592
1835
 
1593
1836
  else
1594
1837
  {
1595
- yy_size_t num_to_read =
1838
+ int num_to_read =
1596
1839
  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1597
1840
 
1598
1841
  while ( num_to_read <= 0 )
@@ -1606,7 +1849,7 @@ static int yy_get_next_buffer (void)
1606
1849
 
1607
1850
  if ( b->yy_is_our_buffer )
1608
1851
  {
1609
- yy_size_t new_size = b->yy_buf_size * 2;
1852
+ int new_size = b->yy_buf_size * 2;
1610
1853
 
1611
1854
  if ( new_size <= 0 )
1612
1855
  b->yy_buf_size += b->yy_buf_size / 8;
@@ -1615,11 +1858,12 @@ static int yy_get_next_buffer (void)
1615
1858
 
1616
1859
  b->yy_ch_buf = (char *)
1617
1860
  /* Include room in for 2 EOB chars. */
1618
- slice_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1861
+ yyrealloc( (void *) b->yy_ch_buf,
1862
+ (yy_size_t) (b->yy_buf_size + 2) );
1619
1863
  }
1620
1864
  else
1621
1865
  /* Can't grow it, we don't own it. */
1622
- b->yy_ch_buf = 0;
1866
+ b->yy_ch_buf = NULL;
1623
1867
 
1624
1868
  if ( ! b->yy_ch_buf )
1625
1869
  YY_FATAL_ERROR(
@@ -1647,7 +1891,7 @@ static int yy_get_next_buffer (void)
1647
1891
  if ( number_to_move == YY_MORE_ADJ )
1648
1892
  {
1649
1893
  ret_val = EOB_ACT_END_OF_FILE;
1650
- slice_restart(slice_in );
1894
+ yyrestart( yyin );
1651
1895
  }
1652
1896
 
1653
1897
  else
@@ -1661,12 +1905,15 @@ static int yy_get_next_buffer (void)
1661
1905
  else
1662
1906
  ret_val = EOB_ACT_CONTINUE_SCAN;
1663
1907
 
1664
- if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1908
+ if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1665
1909
  /* Extend the array by 50%, plus the number we really need. */
1666
- yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1667
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) slice_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1910
+ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1911
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1912
+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
1668
1913
  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1669
1914
  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1915
+ /* "- 2" to take care of EOB's */
1916
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1670
1917
  }
1671
1918
 
1672
1919
  (yy_n_chars) += number_to_move;
@@ -1682,15 +1929,15 @@ static int yy_get_next_buffer (void)
1682
1929
 
1683
1930
  static yy_state_type yy_get_previous_state (void)
1684
1931
  {
1685
- register yy_state_type yy_current_state;
1686
- register char *yy_cp;
1687
-
1932
+ yy_state_type yy_current_state;
1933
+ char *yy_cp;
1934
+
1688
1935
  yy_current_state = (yy_start);
1689
1936
  yy_current_state += YY_AT_BOL();
1690
1937
 
1691
1938
  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1692
1939
  {
1693
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1940
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1694
1941
  if ( yy_accept[yy_current_state] )
1695
1942
  {
1696
1943
  (yy_last_accepting_state) = yy_current_state;
@@ -1700,9 +1947,9 @@ static int yy_get_next_buffer (void)
1700
1947
  {
1701
1948
  yy_current_state = (int) yy_def[yy_current_state];
1702
1949
  if ( yy_current_state >= 76 )
1703
- yy_c = yy_meta[(unsigned int) yy_c];
1950
+ yy_c = yy_meta[yy_c];
1704
1951
  }
1705
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1952
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1706
1953
  }
1707
1954
 
1708
1955
  return yy_current_state;
@@ -1715,10 +1962,10 @@ static int yy_get_next_buffer (void)
1715
1962
  */
1716
1963
  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1717
1964
  {
1718
- register int yy_is_jam;
1719
- register char *yy_cp = (yy_c_buf_p);
1965
+ int yy_is_jam;
1966
+ char *yy_cp = (yy_c_buf_p);
1720
1967
 
1721
- register YY_CHAR yy_c = 1;
1968
+ YY_CHAR yy_c = 1;
1722
1969
  if ( yy_accept[yy_current_state] )
1723
1970
  {
1724
1971
  (yy_last_accepting_state) = yy_current_state;
@@ -1728,30 +1975,32 @@ static int yy_get_next_buffer (void)
1728
1975
  {
1729
1976
  yy_current_state = (int) yy_def[yy_current_state];
1730
1977
  if ( yy_current_state >= 76 )
1731
- yy_c = yy_meta[(unsigned int) yy_c];
1978
+ yy_c = yy_meta[yy_c];
1732
1979
  }
1733
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1980
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1734
1981
  yy_is_jam = (yy_current_state == 75);
1735
1982
 
1736
1983
  return yy_is_jam ? 0 : yy_current_state;
1737
1984
  }
1738
1985
 
1739
- static void yyunput (int c, register char * yy_bp )
1740
- {
1741
- register char *yy_cp;
1986
+ #ifndef YY_NO_UNPUT
1742
1987
 
1988
+ static void yyunput (int c, char * yy_bp )
1989
+ {
1990
+ char *yy_cp;
1991
+
1743
1992
  yy_cp = (yy_c_buf_p);
1744
1993
 
1745
- /* undo effects of setting up slice_text */
1994
+ /* undo effects of setting up yytext */
1746
1995
  *yy_cp = (yy_hold_char);
1747
1996
 
1748
1997
  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1749
1998
  { /* need to shift things up to make room */
1750
1999
  /* +2 for EOB chars. */
1751
- register yy_size_t number_to_move = (yy_n_chars) + 2;
1752
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2000
+ int number_to_move = (yy_n_chars) + 2;
2001
+ char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1753
2002
  YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1754
- register char *source =
2003
+ char *source =
1755
2004
  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1756
2005
 
1757
2006
  while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
@@ -1760,7 +2009,7 @@ static int yy_get_next_buffer (void)
1760
2009
  yy_cp += (int) (dest - source);
1761
2010
  yy_bp += (int) (dest - source);
1762
2011
  YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1763
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2012
+ (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1764
2013
 
1765
2014
  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1766
2015
  YY_FATAL_ERROR( "flex scanner push-back overflow" );
@@ -1773,6 +2022,8 @@ static int yy_get_next_buffer (void)
1773
2022
  (yy_c_buf_p) = yy_cp;
1774
2023
  }
1775
2024
 
2025
+ #endif
2026
+
1776
2027
  #ifndef YY_NO_INPUT
1777
2028
  #ifdef __cplusplus
1778
2029
  static int yyinput (void)
@@ -1782,7 +2033,7 @@ static int yy_get_next_buffer (void)
1782
2033
 
1783
2034
  {
1784
2035
  int c;
1785
-
2036
+
1786
2037
  *(yy_c_buf_p) = (yy_hold_char);
1787
2038
 
1788
2039
  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
@@ -1797,7 +2048,7 @@ static int yy_get_next_buffer (void)
1797
2048
 
1798
2049
  else
1799
2050
  { /* need more input */
1800
- yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
2051
+ int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
1801
2052
  ++(yy_c_buf_p);
1802
2053
 
1803
2054
  switch ( yy_get_next_buffer( ) )
@@ -1814,14 +2065,14 @@ static int yy_get_next_buffer (void)
1814
2065
  */
1815
2066
 
1816
2067
  /* Reset buffer status. */
1817
- slice_restart(slice_in );
2068
+ yyrestart( yyin );
1818
2069
 
1819
2070
  /*FALLTHROUGH*/
1820
2071
 
1821
2072
  case EOB_ACT_END_OF_FILE:
1822
2073
  {
1823
- if ( slice_wrap( ) )
1824
- return EOF;
2074
+ if ( yywrap( ) )
2075
+ return 0;
1825
2076
 
1826
2077
  if ( ! (yy_did_buffer_switch_on_eof) )
1827
2078
  YY_NEW_FILE;
@@ -1840,7 +2091,7 @@ static int yy_get_next_buffer (void)
1840
2091
  }
1841
2092
 
1842
2093
  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1843
- *(yy_c_buf_p) = '\0'; /* preserve slice_text */
2094
+ *(yy_c_buf_p) = '\0'; /* preserve yytext */
1844
2095
  (yy_hold_char) = *++(yy_c_buf_p);
1845
2096
 
1846
2097
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
@@ -1851,35 +2102,35 @@ static int yy_get_next_buffer (void)
1851
2102
 
1852
2103
  /** Immediately switch to a different input stream.
1853
2104
  * @param input_file A readable stream.
1854
- *
2105
+ *
1855
2106
  * @note This function does not reset the start condition to @c INITIAL .
1856
2107
  */
1857
- void slice_restart (FILE * input_file )
2108
+ void yyrestart (FILE * input_file )
1858
2109
  {
1859
-
2110
+
1860
2111
  if ( ! YY_CURRENT_BUFFER ){
1861
- slice_ensure_buffer_stack ();
2112
+ yyensure_buffer_stack ();
1862
2113
  YY_CURRENT_BUFFER_LVALUE =
1863
- slice__create_buffer(slice_in,YY_BUF_SIZE );
2114
+ yy_create_buffer( yyin, YY_BUF_SIZE );
1864
2115
  }
1865
2116
 
1866
- slice__init_buffer(YY_CURRENT_BUFFER,input_file );
1867
- slice__load_buffer_state( );
2117
+ yy_init_buffer( YY_CURRENT_BUFFER, input_file );
2118
+ yy_load_buffer_state( );
1868
2119
  }
1869
2120
 
1870
2121
  /** Switch to a different input buffer.
1871
2122
  * @param new_buffer The new input buffer.
1872
- *
2123
+ *
1873
2124
  */
1874
- void slice__switch_to_buffer (YY_BUFFER_STATE new_buffer )
2125
+ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1875
2126
  {
1876
-
2127
+
1877
2128
  /* TODO. We should be able to replace this entire function body
1878
2129
  * with
1879
- * slice_pop_buffer_state();
1880
- * slice_push_buffer_state(new_buffer);
2130
+ * yypop_buffer_state();
2131
+ * yypush_buffer_state(new_buffer);
1881
2132
  */
1882
- slice_ensure_buffer_stack ();
2133
+ yyensure_buffer_stack ();
1883
2134
  if ( YY_CURRENT_BUFFER == new_buffer )
1884
2135
  return;
1885
2136
 
@@ -1892,61 +2143,61 @@ static int yy_get_next_buffer (void)
1892
2143
  }
1893
2144
 
1894
2145
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1895
- slice__load_buffer_state( );
2146
+ yy_load_buffer_state( );
1896
2147
 
1897
2148
  /* We don't actually know whether we did this switch during
1898
- * EOF (slice_wrap()) processing, but the only time this flag
1899
- * is looked at is after slice_wrap() is called, so it's safe
2149
+ * EOF (yywrap()) processing, but the only time this flag
2150
+ * is looked at is after yywrap() is called, so it's safe
1900
2151
  * to go ahead and always set it.
1901
2152
  */
1902
2153
  (yy_did_buffer_switch_on_eof) = 1;
1903
2154
  }
1904
2155
 
1905
- static void slice__load_buffer_state (void)
2156
+ static void yy_load_buffer_state (void)
1906
2157
  {
1907
2158
  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1908
2159
  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1909
- slice_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2160
+ yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1910
2161
  (yy_hold_char) = *(yy_c_buf_p);
1911
2162
  }
1912
2163
 
1913
2164
  /** Allocate and initialize an input buffer state.
1914
2165
  * @param file A readable stream.
1915
2166
  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1916
- *
2167
+ *
1917
2168
  * @return the allocated buffer state.
1918
2169
  */
1919
- YY_BUFFER_STATE slice__create_buffer (FILE * file, int size )
2170
+ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1920
2171
  {
1921
2172
  YY_BUFFER_STATE b;
1922
-
1923
- b = (YY_BUFFER_STATE) slice_alloc(sizeof( struct yy_buffer_state ) );
2173
+
2174
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1924
2175
  if ( ! b )
1925
- YY_FATAL_ERROR( "out of dynamic memory in slice__create_buffer()" );
2176
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1926
2177
 
1927
2178
  b->yy_buf_size = size;
1928
2179
 
1929
2180
  /* yy_ch_buf has to be 2 characters longer than the size given because
1930
2181
  * we need to put in 2 end-of-buffer characters.
1931
2182
  */
1932
- b->yy_ch_buf = (char *) slice_alloc(b->yy_buf_size + 2 );
2183
+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
1933
2184
  if ( ! b->yy_ch_buf )
1934
- YY_FATAL_ERROR( "out of dynamic memory in slice__create_buffer()" );
2185
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1935
2186
 
1936
2187
  b->yy_is_our_buffer = 1;
1937
2188
 
1938
- slice__init_buffer(b,file );
2189
+ yy_init_buffer( b, file );
1939
2190
 
1940
2191
  return b;
1941
2192
  }
1942
2193
 
1943
2194
  /** Destroy the buffer.
1944
- * @param b a buffer created with slice__create_buffer()
1945
- *
2195
+ * @param b a buffer created with yy_create_buffer()
2196
+ *
1946
2197
  */
1947
- void slice__delete_buffer (YY_BUFFER_STATE b )
2198
+ void yy_delete_buffer (YY_BUFFER_STATE b )
1948
2199
  {
1949
-
2200
+
1950
2201
  if ( ! b )
1951
2202
  return;
1952
2203
 
@@ -1954,27 +2205,27 @@ static void slice__load_buffer_state (void)
1954
2205
  YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1955
2206
 
1956
2207
  if ( b->yy_is_our_buffer )
1957
- slice_free((void *) b->yy_ch_buf );
2208
+ yyfree( (void *) b->yy_ch_buf );
1958
2209
 
1959
- slice_free((void *) b );
2210
+ yyfree( (void *) b );
1960
2211
  }
1961
2212
 
1962
2213
  /* Initializes or reinitializes a buffer.
1963
2214
  * This function is sometimes called more than once on the same buffer,
1964
- * such as during a slice_restart() or at EOF.
2215
+ * such as during a yyrestart() or at EOF.
1965
2216
  */
1966
- static void slice__init_buffer (YY_BUFFER_STATE b, FILE * file )
2217
+ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1967
2218
 
1968
2219
  {
1969
2220
  int oerrno = errno;
1970
-
1971
- slice__flush_buffer(b );
2221
+
2222
+ yy_flush_buffer( b );
1972
2223
 
1973
2224
  b->yy_input_file = file;
1974
2225
  b->yy_fill_buffer = 1;
1975
2226
 
1976
- /* If b is the current buffer, then slice__init_buffer was _probably_
1977
- * called from slice_restart() or through yy_get_next_buffer.
2227
+ /* If b is the current buffer, then yy_init_buffer was _probably_
2228
+ * called from yyrestart() or through yy_get_next_buffer.
1978
2229
  * In that case, we don't want to reset the lineno or column.
1979
2230
  */
1980
2231
  if (b != YY_CURRENT_BUFFER){
@@ -1983,15 +2234,15 @@ static void slice__load_buffer_state (void)
1983
2234
  }
1984
2235
 
1985
2236
  b->yy_is_interactive = 0;
1986
-
2237
+
1987
2238
  errno = oerrno;
1988
2239
  }
1989
2240
 
1990
2241
  /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1991
2242
  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1992
- *
2243
+ *
1993
2244
  */
1994
- void slice__flush_buffer (YY_BUFFER_STATE b )
2245
+ void yy_flush_buffer (YY_BUFFER_STATE b )
1995
2246
  {
1996
2247
  if ( ! b )
1997
2248
  return;
@@ -2011,23 +2262,23 @@ static void slice__load_buffer_state (void)
2011
2262
  b->yy_buffer_status = YY_BUFFER_NEW;
2012
2263
 
2013
2264
  if ( b == YY_CURRENT_BUFFER )
2014
- slice__load_buffer_state( );
2265
+ yy_load_buffer_state( );
2015
2266
  }
2016
2267
 
2017
2268
  /** Pushes the new state onto the stack. The new state becomes
2018
2269
  * the current state. This function will allocate the stack
2019
2270
  * if necessary.
2020
2271
  * @param new_buffer The new state.
2021
- *
2272
+ *
2022
2273
  */
2023
- void slice_push_buffer_state (YY_BUFFER_STATE new_buffer )
2274
+ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
2024
2275
  {
2025
2276
  if (new_buffer == NULL)
2026
2277
  return;
2027
2278
 
2028
- slice_ensure_buffer_stack();
2279
+ yyensure_buffer_stack();
2029
2280
 
2030
- /* This block is copied from slice__switch_to_buffer. */
2281
+ /* This block is copied from yy_switch_to_buffer. */
2031
2282
  if ( YY_CURRENT_BUFFER )
2032
2283
  {
2033
2284
  /* Flush out information for old buffer. */
@@ -2041,27 +2292,27 @@ void slice_push_buffer_state (YY_BUFFER_STATE new_buffer )
2041
2292
  (yy_buffer_stack_top)++;
2042
2293
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2043
2294
 
2044
- /* copied from slice__switch_to_buffer. */
2045
- slice__load_buffer_state( );
2295
+ /* copied from yy_switch_to_buffer. */
2296
+ yy_load_buffer_state( );
2046
2297
  (yy_did_buffer_switch_on_eof) = 1;
2047
2298
  }
2048
2299
 
2049
2300
  /** Removes and deletes the top of the stack, if present.
2050
2301
  * The next element becomes the new top.
2051
- *
2302
+ *
2052
2303
  */
2053
- void slice_pop_buffer_state (void)
2304
+ void yypop_buffer_state (void)
2054
2305
  {
2055
2306
  if (!YY_CURRENT_BUFFER)
2056
2307
  return;
2057
2308
 
2058
- slice__delete_buffer(YY_CURRENT_BUFFER );
2309
+ yy_delete_buffer(YY_CURRENT_BUFFER );
2059
2310
  YY_CURRENT_BUFFER_LVALUE = NULL;
2060
2311
  if ((yy_buffer_stack_top) > 0)
2061
2312
  --(yy_buffer_stack_top);
2062
2313
 
2063
2314
  if (YY_CURRENT_BUFFER) {
2064
- slice__load_buffer_state( );
2315
+ yy_load_buffer_state( );
2065
2316
  (yy_did_buffer_switch_on_eof) = 1;
2066
2317
  }
2067
2318
  }
@@ -2069,22 +2320,22 @@ void slice_pop_buffer_state (void)
2069
2320
  /* Allocates the stack if it does not exist.
2070
2321
  * Guarantees space for at least one push.
2071
2322
  */
2072
- static void slice_ensure_buffer_stack (void)
2323
+ static void yyensure_buffer_stack (void)
2073
2324
  {
2074
2325
  yy_size_t num_to_alloc;
2075
-
2326
+
2076
2327
  if (!(yy_buffer_stack)) {
2077
2328
 
2078
2329
  /* First allocation is just for 2 elements, since we don't know if this
2079
2330
  * scanner will even need a stack. We use 2 instead of 1 to avoid an
2080
2331
  * immediate realloc on the next call.
2081
2332
  */
2082
- num_to_alloc = 1;
2083
- (yy_buffer_stack) = (struct yy_buffer_state**)slice_alloc
2333
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2334
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
2084
2335
  (num_to_alloc * sizeof(struct yy_buffer_state*)
2085
2336
  );
2086
2337
  if ( ! (yy_buffer_stack) )
2087
- YY_FATAL_ERROR( "out of dynamic memory in slice_ensure_buffer_stack()" );
2338
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2088
2339
 
2089
2340
  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2090
2341
 
@@ -2096,15 +2347,15 @@ static void slice_ensure_buffer_stack (void)
2096
2347
  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2097
2348
 
2098
2349
  /* Increase the buffer to prepare for a possible push. */
2099
- int grow_size = 8 /* arbitrary grow size */;
2350
+ yy_size_t grow_size = 8 /* arbitrary grow size */;
2100
2351
 
2101
2352
  num_to_alloc = (yy_buffer_stack_max) + grow_size;
2102
- (yy_buffer_stack) = (struct yy_buffer_state**)slice_realloc
2353
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
2103
2354
  ((yy_buffer_stack),
2104
2355
  num_to_alloc * sizeof(struct yy_buffer_state*)
2105
2356
  );
2106
2357
  if ( ! (yy_buffer_stack) )
2107
- YY_FATAL_ERROR( "out of dynamic memory in slice_ensure_buffer_stack()" );
2358
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2108
2359
 
2109
2360
  /* zero only the new slots.*/
2110
2361
  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
@@ -2115,80 +2366,80 @@ static void slice_ensure_buffer_stack (void)
2115
2366
  /** Setup the input buffer state to scan directly from a user-specified character buffer.
2116
2367
  * @param base the character buffer
2117
2368
  * @param size the size in bytes of the character buffer
2118
- *
2369
+ *
2119
2370
  * @return the newly allocated buffer state object.
2120
2371
  */
2121
- YY_BUFFER_STATE slice__scan_buffer (char * base, yy_size_t size )
2372
+ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
2122
2373
  {
2123
2374
  YY_BUFFER_STATE b;
2124
-
2375
+
2125
2376
  if ( size < 2 ||
2126
2377
  base[size-2] != YY_END_OF_BUFFER_CHAR ||
2127
2378
  base[size-1] != YY_END_OF_BUFFER_CHAR )
2128
2379
  /* They forgot to leave room for the EOB's. */
2129
- return 0;
2380
+ return NULL;
2130
2381
 
2131
- b = (YY_BUFFER_STATE) slice_alloc(sizeof( struct yy_buffer_state ) );
2382
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
2132
2383
  if ( ! b )
2133
- YY_FATAL_ERROR( "out of dynamic memory in slice__scan_buffer()" );
2384
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2134
2385
 
2135
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2386
+ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
2136
2387
  b->yy_buf_pos = b->yy_ch_buf = base;
2137
2388
  b->yy_is_our_buffer = 0;
2138
- b->yy_input_file = 0;
2389
+ b->yy_input_file = NULL;
2139
2390
  b->yy_n_chars = b->yy_buf_size;
2140
2391
  b->yy_is_interactive = 0;
2141
2392
  b->yy_at_bol = 1;
2142
2393
  b->yy_fill_buffer = 0;
2143
2394
  b->yy_buffer_status = YY_BUFFER_NEW;
2144
2395
 
2145
- slice__switch_to_buffer(b );
2396
+ yy_switch_to_buffer( b );
2146
2397
 
2147
2398
  return b;
2148
2399
  }
2149
2400
 
2150
- /** Setup the input buffer state to scan a string. The next call to slice_lex() will
2401
+ /** Setup the input buffer state to scan a string. The next call to yylex() will
2151
2402
  * scan from a @e copy of @a str.
2152
2403
  * @param yystr a NUL-terminated string to scan
2153
- *
2404
+ *
2154
2405
  * @return the newly allocated buffer state object.
2155
2406
  * @note If you want to scan bytes that may contain NUL values, then use
2156
- * slice__scan_bytes() instead.
2407
+ * yy_scan_bytes() instead.
2157
2408
  */
2158
- YY_BUFFER_STATE slice__scan_string (yyconst char * yystr )
2409
+ YY_BUFFER_STATE yy_scan_string (const char * yystr )
2159
2410
  {
2160
-
2161
- return slice__scan_bytes(yystr,strlen(yystr) );
2411
+
2412
+ return yy_scan_bytes( yystr, (int) strlen(yystr) );
2162
2413
  }
2163
2414
 
2164
- /** Setup the input buffer state to scan the given bytes. The next call to slice_lex() will
2415
+ /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
2165
2416
  * scan from a @e copy of @a bytes.
2166
2417
  * @param yybytes the byte buffer to scan
2167
2418
  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2168
- *
2419
+ *
2169
2420
  * @return the newly allocated buffer state object.
2170
2421
  */
2171
- YY_BUFFER_STATE slice__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
2422
+ YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
2172
2423
  {
2173
2424
  YY_BUFFER_STATE b;
2174
2425
  char *buf;
2175
2426
  yy_size_t n;
2176
2427
  int i;
2177
-
2428
+
2178
2429
  /* Get memory for full buffer, including space for trailing EOB's. */
2179
- n = _yybytes_len + 2;
2180
- buf = (char *) slice_alloc(n );
2430
+ n = (yy_size_t) (_yybytes_len + 2);
2431
+ buf = (char *) yyalloc( n );
2181
2432
  if ( ! buf )
2182
- YY_FATAL_ERROR( "out of dynamic memory in slice__scan_bytes()" );
2433
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2183
2434
 
2184
2435
  for ( i = 0; i < _yybytes_len; ++i )
2185
2436
  buf[i] = yybytes[i];
2186
2437
 
2187
2438
  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2188
2439
 
2189
- b = slice__scan_buffer(buf,n );
2440
+ b = yy_scan_buffer( buf, n );
2190
2441
  if ( ! b )
2191
- YY_FATAL_ERROR( "bad buffer in slice__scan_bytes()" );
2442
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2192
2443
 
2193
2444
  /* It's okay to grow etc. this buffer, and we should throw it
2194
2445
  * away when we're done.
@@ -2202,9 +2453,9 @@ YY_BUFFER_STATE slice__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_
2202
2453
  #define YY_EXIT_FAILURE 2
2203
2454
  #endif
2204
2455
 
2205
- static void yy_fatal_error (yyconst char* msg )
2456
+ static void yynoreturn yy_fatal_error (const char* msg )
2206
2457
  {
2207
- (void) fprintf( stderr, "%s\n", msg );
2458
+ fprintf( stderr, "%s\n", msg );
2208
2459
  exit( YY_EXIT_FAILURE );
2209
2460
  }
2210
2461
 
@@ -2214,142 +2465,142 @@ static void yy_fatal_error (yyconst char* msg )
2214
2465
  #define yyless(n) \
2215
2466
  do \
2216
2467
  { \
2217
- /* Undo effects of setting up slice_text. */ \
2468
+ /* Undo effects of setting up yytext. */ \
2218
2469
  int yyless_macro_arg = (n); \
2219
2470
  YY_LESS_LINENO(yyless_macro_arg);\
2220
- slice_text[slice_leng] = (yy_hold_char); \
2221
- (yy_c_buf_p) = slice_text + yyless_macro_arg; \
2471
+ yytext[yyleng] = (yy_hold_char); \
2472
+ (yy_c_buf_p) = yytext + yyless_macro_arg; \
2222
2473
  (yy_hold_char) = *(yy_c_buf_p); \
2223
2474
  *(yy_c_buf_p) = '\0'; \
2224
- slice_leng = yyless_macro_arg; \
2475
+ yyleng = yyless_macro_arg; \
2225
2476
  } \
2226
2477
  while ( 0 )
2227
2478
 
2228
2479
  /* Accessor methods (get/set functions) to struct members. */
2229
2480
 
2230
2481
  /** Get the current line number.
2231
- *
2482
+ *
2232
2483
  */
2233
- int slice_get_lineno (void)
2484
+ int yyget_lineno (void)
2234
2485
  {
2235
-
2236
- return slice_lineno;
2486
+
2487
+ return yylineno;
2237
2488
  }
2238
2489
 
2239
2490
  /** Get the input stream.
2240
- *
2491
+ *
2241
2492
  */
2242
- FILE *slice_get_in (void)
2493
+ FILE *yyget_in (void)
2243
2494
  {
2244
- return slice_in;
2495
+ return yyin;
2245
2496
  }
2246
2497
 
2247
2498
  /** Get the output stream.
2248
- *
2499
+ *
2249
2500
  */
2250
- FILE *slice_get_out (void)
2501
+ FILE *yyget_out (void)
2251
2502
  {
2252
- return slice_out;
2503
+ return yyout;
2253
2504
  }
2254
2505
 
2255
2506
  /** Get the length of the current token.
2256
- *
2507
+ *
2257
2508
  */
2258
- yy_size_t slice_get_leng (void)
2509
+ int yyget_leng (void)
2259
2510
  {
2260
- return slice_leng;
2511
+ return yyleng;
2261
2512
  }
2262
2513
 
2263
2514
  /** Get the current token.
2264
- *
2515
+ *
2265
2516
  */
2266
2517
 
2267
- char *slice_get_text (void)
2518
+ char *yyget_text (void)
2268
2519
  {
2269
- return slice_text;
2520
+ return yytext;
2270
2521
  }
2271
2522
 
2272
2523
  /** Set the current line number.
2273
- * @param line_number
2274
- *
2524
+ * @param _line_number line number
2525
+ *
2275
2526
  */
2276
- void slice_set_lineno (int line_number )
2527
+ void yyset_lineno (int _line_number )
2277
2528
  {
2278
-
2279
- slice_lineno = line_number;
2529
+
2530
+ yylineno = _line_number;
2280
2531
  }
2281
2532
 
2282
2533
  /** Set the input stream. This does not discard the current
2283
2534
  * input buffer.
2284
- * @param in_str A readable stream.
2285
- *
2286
- * @see slice__switch_to_buffer
2535
+ * @param _in_str A readable stream.
2536
+ *
2537
+ * @see yy_switch_to_buffer
2287
2538
  */
2288
- void slice_set_in (FILE * in_str )
2539
+ void yyset_in (FILE * _in_str )
2289
2540
  {
2290
- slice_in = in_str ;
2541
+ yyin = _in_str ;
2291
2542
  }
2292
2543
 
2293
- void slice_set_out (FILE * out_str )
2544
+ void yyset_out (FILE * _out_str )
2294
2545
  {
2295
- slice_out = out_str ;
2546
+ yyout = _out_str ;
2296
2547
  }
2297
2548
 
2298
- int slice_get_debug (void)
2549
+ int yyget_debug (void)
2299
2550
  {
2300
- return slice__flex_debug;
2551
+ return yy_flex_debug;
2301
2552
  }
2302
2553
 
2303
- void slice_set_debug (int bdebug )
2554
+ void yyset_debug (int _bdebug )
2304
2555
  {
2305
- slice__flex_debug = bdebug ;
2556
+ yy_flex_debug = _bdebug ;
2306
2557
  }
2307
2558
 
2308
2559
  static int yy_init_globals (void)
2309
2560
  {
2310
2561
  /* Initialization is the same as for the non-reentrant scanner.
2311
- * This function is called from slice_lex_destroy(), so don't allocate here.
2562
+ * This function is called from yylex_destroy(), so don't allocate here.
2312
2563
  */
2313
2564
 
2314
- (yy_buffer_stack) = 0;
2565
+ (yy_buffer_stack) = NULL;
2315
2566
  (yy_buffer_stack_top) = 0;
2316
2567
  (yy_buffer_stack_max) = 0;
2317
- (yy_c_buf_p) = (char *) 0;
2568
+ (yy_c_buf_p) = NULL;
2318
2569
  (yy_init) = 0;
2319
2570
  (yy_start) = 0;
2320
2571
 
2321
2572
  /* Defined in main.c */
2322
2573
  #ifdef YY_STDINIT
2323
- slice_in = stdin;
2324
- slice_out = stdout;
2574
+ yyin = stdin;
2575
+ yyout = stdout;
2325
2576
  #else
2326
- slice_in = (FILE *) 0;
2327
- slice_out = (FILE *) 0;
2577
+ yyin = NULL;
2578
+ yyout = NULL;
2328
2579
  #endif
2329
2580
 
2330
2581
  /* For future reference: Set errno on error, since we are called by
2331
- * slice_lex_init()
2582
+ * yylex_init()
2332
2583
  */
2333
2584
  return 0;
2334
2585
  }
2335
2586
 
2336
- /* slice_lex_destroy is for both reentrant and non-reentrant scanners. */
2337
- int slice_lex_destroy (void)
2587
+ /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2588
+ int yylex_destroy (void)
2338
2589
  {
2339
-
2590
+
2340
2591
  /* Pop the buffer stack, destroying each element. */
2341
2592
  while(YY_CURRENT_BUFFER){
2342
- slice__delete_buffer(YY_CURRENT_BUFFER );
2593
+ yy_delete_buffer( YY_CURRENT_BUFFER );
2343
2594
  YY_CURRENT_BUFFER_LVALUE = NULL;
2344
- slice_pop_buffer_state();
2595
+ yypop_buffer_state();
2345
2596
  }
2346
2597
 
2347
2598
  /* Destroy the stack itself. */
2348
- slice_free((yy_buffer_stack) );
2599
+ yyfree((yy_buffer_stack) );
2349
2600
  (yy_buffer_stack) = NULL;
2350
2601
 
2351
2602
  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2352
- * slice_lex() is called, initialization will occur. */
2603
+ * yylex() is called, initialization will occur. */
2353
2604
  yy_init_globals( );
2354
2605
 
2355
2606
  return 0;
@@ -2360,18 +2611,19 @@ int slice_lex_destroy (void)
2360
2611
  */
2361
2612
 
2362
2613
  #ifndef yytext_ptr
2363
- static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
2614
+ static void yy_flex_strncpy (char* s1, const char * s2, int n )
2364
2615
  {
2365
- register int i;
2616
+
2617
+ int i;
2366
2618
  for ( i = 0; i < n; ++i )
2367
2619
  s1[i] = s2[i];
2368
2620
  }
2369
2621
  #endif
2370
2622
 
2371
2623
  #ifdef YY_NEED_STRLEN
2372
- static int yy_flex_strlen (yyconst char * s )
2624
+ static int yy_flex_strlen (const char * s )
2373
2625
  {
2374
- register int n;
2626
+ int n;
2375
2627
  for ( n = 0; s[n]; ++n )
2376
2628
  ;
2377
2629
 
@@ -2379,13 +2631,14 @@ static int yy_flex_strlen (yyconst char * s )
2379
2631
  }
2380
2632
  #endif
2381
2633
 
2382
- void *slice_alloc (yy_size_t size )
2634
+ void *yyalloc (yy_size_t size )
2383
2635
  {
2384
- return (void *) malloc( size );
2636
+ return malloc(size);
2385
2637
  }
2386
2638
 
2387
- void *slice_realloc (void * ptr, yy_size_t size )
2639
+ void *yyrealloc (void * ptr, yy_size_t size )
2388
2640
  {
2641
+
2389
2642
  /* The cast to (char *) in the following accommodates both
2390
2643
  * implementations that use char* generic pointers, and those
2391
2644
  * that use void* generic pointers. It works with the latter
@@ -2393,12 +2646,12 @@ void *slice_realloc (void * ptr, yy_size_t size )
2393
2646
  * any pointer type to void*, and deal with argument conversions
2394
2647
  * as though doing an assignment.
2395
2648
  */
2396
- return (void *) realloc( (char *) ptr, size );
2649
+ return realloc(ptr, size);
2397
2650
  }
2398
2651
 
2399
- void slice_free (void * ptr )
2652
+ void yyfree (void * ptr )
2400
2653
  {
2401
- free( (char *) ptr ); /* see slice_realloc() for (char *) cast */
2654
+ free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2402
2655
  }
2403
2656
 
2404
2657
  #define YYTABLES_NAME "yytables"
@@ -2406,7 +2659,6 @@ void slice_free (void * ptr )
2406
2659
  #line 530 "src/Slice/Scanner.l"
2407
2660
 
2408
2661
 
2409
-
2410
2662
  namespace Slice {
2411
2663
 
2412
2664
  //
@@ -2524,7 +2776,7 @@ int checkIdentifier(string& id)
2524
2776
  {
2525
2777
  DefinitionContextPtr dc = unit->currentDefinitionContext();
2526
2778
  assert(dc);
2527
- if(dc->findMetaData("underscore") != "underscore") // no 'underscore' global metadata
2779
+ if(dc->findMetaData("underscore") != "underscore") // no 'underscore' file metadata
2528
2780
  {
2529
2781
  unit->error("illegal underscore in identifier `" + name + "'");
2530
2782
  }