ChangeLog 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959
  1. Boost.Wave: A Standard compliant C++ preprocessor library
  2. http://www.boost.org/
  3. Copyright (c) 2001-2013 Hartmut Kaiser. Distributed under the Boost
  4. Software License, Version 1.0. (See accompanying file
  5. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. -------------------------------------------------------------------------------
  7. TODO (known issues):
  8. - Fix expansion of macros, which replacement-list terminates in a partial
  9. macro expansion.
  10. - Try to remove the second parameter from the pp_iterator<>::force_include
  11. function.
  12. - Fix the trigraph backslash problem in the re2c (C/C++ and IDL) scanners, if
  13. there is the end of the (internal) buffer just in between a '??/' and a '\n'.
  14. -------------------------------------------------------------------------------
  15. CHANGELOG
  16. Boost V1.55:
  17. - Fixed #8848: Wave driver improperly processes 0xFFFFui64 token
  18. - Fixed #9098: Wave driver option --c++0x invalid
  19. Boost V1.54:
  20. - Fixed #8478: Make Boost.wave compatible with Clang's -Wimplicit-fallthrough
  21. diagnostic.
  22. Boost V1.53:
  23. - Fixed a problem with context<>::add_macro_definition which sometimes
  24. appended a superfluous T_EOF to the macro replacement list.
  25. Boost V1.52.0:
  26. - Added util::create_directories() wrapper to account for new behavior of
  27. boost::filesystem::create_directories().
  28. - Fixed an obscure problem when preprocessing directives wouldn't be recognized
  29. if the previous line contained nothing but an empty macro invocation
  30. (see new test case t_9_023.cpp)
  31. - Added a new command line option --license=<file> to the Wave driver tool
  32. which allows to pre-pend the content of a (license) file to every newly
  33. created file. This option simplifies the implementation of partial
  34. preprocessing as done on Phoenix, Fusion, etc.
  35. - Changed the effect of the -N command line option to simply not expand
  36. the macro by pretending it was not defined. Earlier the whole invocation
  37. sequence was skipped, now we skip only the macro itself, which still expands
  38. the arguments for the macro invocation.
  39. - Fixed a couple of compilation warnings
  40. Boost V1.51.0
  41. - Fixed #7050: Invalid memory write bug in lexing_exception
  42. - Fixed #7159: Text-lines are processed as if they were preprocessing directives
  43. - Changed --c++0x command line option to --c++11.
  44. Boost V1.50.0
  45. - V2.3.2
  46. - Fixed #6758: not all members are initialized by base_iteration_context
  47. constructor.
  48. - Fixed #6838: Adding include file with force_include makes Wave fail to emit
  49. #line directive
  50. - Added support for test of --forceinclude option to testwave executable,
  51. added test case verifying #6838 is fixed.
  52. - Fixed #6870: build wave driver failed
  53. Boost V1.48.0
  54. - V2.3.1
  55. - Added the flag support_option_emit_contnewlines allowing to control whether
  56. backslash newline sequences are emitted by the Wave library. The default is
  57. as before: these tokens will be silently ignored (after the token positions
  58. have been properly updated). Note: this option is supported by the SLex lexer
  59. module only.
  60. - Fixed #5887: flex_string.hpp needs to include <ios>
  61. Boost V1.47.0
  62. - V2.3.0
  63. - After preprocessing the body of any #pragma wave option() the wave tool now
  64. concatenates all adjacent string literals into a single string literal.
  65. - Fixed whitespace handling, added a corresponding set of test cases
  66. (t_9_020.cpp)
  67. - Added a new preprocessing hook: locate_include_file allowing to customize the
  68. way include files are located.
  69. - Added new command line option --noexpand/-N to the Wave driver allowing to
  70. suppress macro expansion for a given macro name (works for both, object like
  71. and function like macros). This option has to be used very carefully as it
  72. not only leaves the whole macro invocation untouched in the generated output
  73. but also removes this macro from consideration for Wave itself. This can
  74. cause unexpected results if the suppressed macro would influence #ifdef's
  75. later on.
  76. - Fixed Wave driver to retain all macros defined on the command line in
  77. interactive mode.
  78. - Fixed problem #5554: wave slex parser eof without eol skips the last line.
  79. - Added the compile time configuartion option BOOST_WAVE_WCHAR_T_SIGNEDNESS,
  80. which can be set to BOOST_WAVE_WCHAR_T_AUTOSELECT, BOOST_WAVE_WCHAR_T_FORCE_SIGNED,
  81. or BOOST_WAVE_WCHAR_T_FORCE_UNSIGNED), it defaults to autoßselect.
  82. - Fixed a problem in teh wave driver tool related to #pragma option(output).
  83. If wave was invoked in rapid succession this erroneously appended to an
  84. existing file instead of overwriting that file.
  85. - Fixed #5569: slex CONTLINE token works only for LF line endings
  86. Boost V1.46.0
  87. - V2.2.0
  88. - Added recognition of C++0x keywords to Re2C lexers.
  89. - Added --c++0x command line option to Wave to enabling the recognition of
  90. C++0x keywords, converting those to C++0x tokens.
  91. - Adapted all of the library to play well with Boost.Filesystem V3 (which is
  92. the default from now on).
  93. - Added support for extended character and string literals, added test case
  94. (which required to add C++0x support to the test application).
  95. - Added proper predefined macros fro --c++0x mode. __cplusplus is currently
  96. defined to 201101L, but this will change when the Standard is finalized.
  97. - Fixed a problem with object like macros, which when being adjacent to a
  98. parenthesis, caused the parenthesis to disappear when the macro expansion
  99. was suppressed by the expanding_object_like_macro() hook function.
  100. - Fixed a bug in pragma option(preserve), missing to set to preserve=1 if
  101. after the previous value was preserve=2.
  102. - Changed the --preserve option of the wave tool to interprete the integer
  103. argument in a slightly different way:
  104. 0: no whitespace is preserved,
  105. 1: only begin of line whitespace is preserved,
  106. 2: only begin of line whitespace and comments are preserved,
  107. 3: all whitespace is preserved
  108. The #pragma wave option(preserve) now supports these arguments:
  109. [0|1|2|3|push|pop].
  110. Boost V1.45.0
  111. - V2.1.0
  112. - Token pasting is well formed only as long as the formed token(s) are
  113. pp_tokens as defined by the C++0x Standard. Until now, Wave allowed for
  114. non-pp_tokens to be formed in --variadics mode.
  115. - Fixed a problem, which prevented reporting /##/ in a macro definition as
  116. invalid token pasting.
  117. - Fixed problem preventing the skipped_token hook to be called for 'inactive'
  118. conditional preprocessing directive tokens. Improved overall consistency in
  119. reporting skipped tokens to the hooks function when processing conditional
  120. preprocessing directives. Added a new test case verifying the skipped_token
  121. hook gets called reproducibly (t_2_020.cpp).
  122. - Fixed a problem with the pp hooks 'expanding_object_like_macro' and
  123. 'expanding_function_like_macro', which when returning true were stopping all
  124. preprocessing instead of just inhibiting the expansion of the macro.
  125. - Fixed a duplicated call to the pp hook skipped_token for preprocessing
  126. directives inside inactive conditional branches.
  127. - Changing exception handling to fix clang++ regression errors.
  128. - Replaced assert() with BOOST_ASSERT to pacify the Boost inspect tool.
  129. Boost V1.44.0
  130. - V2.0.6
  131. - Added information about the file type to iteration context. This can be
  132. either main_file, system_header, or user_header depending whether the handled
  133. file is the main file to preprocess, a include file opened from `#include <>`,
  134. or a include file opened from `#include ""`.
  135. - Added support for new Boost visibility macros. Properly exported all
  136. exceptions, etc.
  137. Boost V1.43.0
  138. - V2.0.5
  139. - Fixed the wave driver application to strip leading and trailing whitespace
  140. from macro names specified on the command line using -U.
  141. - Fixed line number counting for lines containing nothing but whitespace
  142. followed by a C++ comment if the next line is a pp directive.
  143. - Fixed emitting of a #line directive after returned from an include file.
  144. - A couple of fixes allowing to properly report the current line number in
  145. #line directives for different whitespace preserve modes (see --preserve/-p).
  146. - Added new preprocessing hook: emit_line_directive, allowing to customize the
  147. format of the generated #line directive.
  148. - Changed --line/-l command line option of the wave driver application to
  149. accept 0, 1, and 2 as options. The option values 0 and 1 behave as before
  150. (disable/enable the generation of #line directives), while the option value 2
  151. will generate the #line directive using the relative filename (instead of the
  152. absolute filename emitted from option 1). The default option is value 1.
  153. - Added new example: emit_custom_line_directives, demonstrating the use of the
  154. new preprocessing hook.
  155. - Added new preprocessing hook: found_unknown_directive, which is being invoked
  156. whenever an unknown preprocessor directive (i.e. '#' followed by some
  157. identifier) is detected. It allows to interpret the directive and to provide
  158. some replacement text.
  159. - Added new example: custom_directives demonstrating the usage of the new
  160. preprocessing hook.
  161. - Fixed #4113: cpp_lexer does not handle qualified backslashes correctly.
  162. - Fixed #3106: wave on VS2010 beta compiler generates error.
  163. Boost V1.42.0
  164. - V2.0.4
  165. - Fixed Wave for latest changes in multi_pass iterator.
  166. Boost V1.41.0
  167. - V2.0.3
  168. - Switched to Re2C V0.13.5
  169. - Fixed --list_includes/-l command line option of the wave driver tool to
  170. correctly indent the generated list of included files.
  171. - Finally fixed all remaining examples. Everything seems to work fine now.
  172. - Specifying a custom token type now works as expected. The new lexer interface
  173. introduced in V2.0 broke this part.
  174. - Removed old code related to pre Boost V1.31 (related to V1 of iterator
  175. library).
  176. - Added a new commandline option --macrocounts/-c to the Wave driver application
  177. which lists all macro invocation counts to an optionally specified file
  178. (default is cout).
  179. - Fixed compilation problems caused by recent changes to the multi_pass iterator
  180. from Spirit V2.1.
  181. - Added the new preprocessing hooks detected_pragma_once() and
  182. detected_include_guard() which are getting called whenever either a #pragma
  183. once has been detected or if the include guard heuristics detected an
  184. include guard for a particular include file.
  185. - Added a new command line option to the wave driver tool: --listguards/-g
  186. allowing to trace all include files which are either contain a #pragma once
  187. or contain include guards.
  188. - Started to elminate g++ struct aliasing warnings (more to fix, mostly in
  189. flex_string).
  190. Boost V1.40.0
  191. - V2.0.2
  192. - Fixed a long standing race condition inhibiting to use Wave in multi threaded
  193. environments.
  194. - Incorporated the changes from latest version of the flex_string class (#2946).
  195. - Fixed another race condition triggering problems using Wave in multi-threaded
  196. environments.
  197. Boost V1.39.0
  198. - V2.0.1
  199. - Fixed Wave to compile with BOOST_FILESYSTEM_NO_DEPRECATED defined (i.e. the
  200. library doesn't use the deprecated filesystem interface anymore).
  201. Boost V1.37.0
  202. - Updated examples to reflect the recent changes in the used multi_pass
  203. iterator.
  204. - Fixed documentation links still pointing to the old Boost CVS (thanks to
  205. Jürgen Hunold for providing the patch).
  206. Boost V1.36.0
  207. - Wave Version 2.0 is a new major release introducing some breaking API changes,
  208. preventing it to be used with Boost versions earlier than V1.36.0. The API
  209. and hook interface have been streamlined for more consistency. See the
  210. documentation for more details.
  211. - Added an additional template parameter to the context object, allowing to
  212. specify any possibly derived type. This change propagates to the preprocessing
  213. hooks, which now get passed the most derived context type as its first
  214. argument allowing to access protected members in the original context type.
  215. This fixes ticket #1752.
  216. - Fixed a problem during parsing of #pragma wave directive, where the value
  217. sequence contained a closing parenthesis. This caused a premature end of the
  218. pragma value parsing.
  219. - Fixed handling of support_option_single_line, which was ignored under certain
  220. circumstances.
  221. - Fixed ticket #1766: Wrong evaluation of conditional preprocessor directives
  222. with predefined macros __FILE__, __LINE__ and __INCLUDE_LEVEL__. This bug
  223. triggered an error in constructs like #ifndef __FILE__. Thanks to Daniel
  224. Wadehn for reporting and supplying a patch. Added corresponding regression
  225. test: t_2_018.cpp.
  226. - Fixed a bug which reported a valid macro redefinition as invalid if the macro
  227. replacement text referred to a second or higher parameter of this macro.
  228. - Fixed a problem in the wave tool to allow two errors to occur while
  229. preprocessing two consecutive tokens.
  230. - Adjusted Spirit header includes to point to conform to the new directory
  231. structure, removed support for Spirit versions earlier than V1.7.
  232. - Started to migrate to new multi_pass iterators from Spirit V2.0.
  233. Boost V1.35.0
  234. - Wave Version 1.3
  235. - Changed the return value of the 'evaluated_conditional_expression()' pp hook
  236. to 'bool' allowing to force Wave to re-evaluate the current conditional
  237. expression. This was suggested by Felipe Magno de Almeida.
  238. - Added a wave::context object as first parameter to all pp hook functions.
  239. This is an interface compatibility breaking change. The new pp-hooks can be
  240. disabled by defining the BOOST_WAVE_USE_DEPRECIATED_PREPROCESSING_HOOKS
  241. compile time constant to something not equal to zero. By default this
  242. constant will be defined to zero for Boost V1.35.0 and newer, switching to
  243. the new interface by default.
  244. - Added optional support for the import keyword (needed for the C++ module
  245. proposal). The identifier import will be recognized as a keyword, if
  246. the compile time constant BOOST_WAVE_SUPPORT_IMPORT_KEYWORD is defined to
  247. something not equal zero.
  248. - Added new preprocessing hook functions: found_error_directive() and
  249. found_warning_directive() to be called when #error/#warning directives are
  250. encountered. This was suggested by Andreas Sæbjørnsen.
  251. - Added a new sample to Wave: hannibal, a partial C++ parser implementation
  252. initially written by Danny Havenith (http://havenith-verlinden.nl/hannibal/)
  253. who agreed to add this here. Thanks!
  254. - Added new preprocessing hook function: found_line_directive() to be called
  255. when a #line directive is encountered. This was suggested by Andreas
  256. Sæbjørnsen.
  257. - Improved command line handling for the wave applet.
  258. - Incorporated latest bug fixes for the Hannibal sample provided by Danny
  259. Havenith.
  260. - Added loading of a wave.cfg file from anywhere up the filesystem hierarchy
  261. starting from the main input file for the wave driver applet up to the
  262. root of the file system.
  263. - Added support_option_emit_pragma_directive to allow to control at runtime,
  264. whether unknown #pragma directives should be emitted or not. To maintain
  265. compatibility with earlier versions this option is by default on if the
  266. compile time constant BOOST_WAVE_EMIT_PRAGMA_DIRECTIVES was defined to
  267. be not equal to zero and it is off otherwise.
  268. - Enabled XML serialization support.
  269. - Added the throw_exception preprocessing hook, which gets called for every
  270. occurring error (whenever an exception would have been thrown). The default
  271. of this new hook function is to throw the corresponding exception, which
  272. reproduces the old behavior.
  273. - Implemented a new preprocessing hook: generated_token(), which get's called
  274. whenever a token is about to be returned form the library. This function may
  275. be used to alter the token before it gets returned to the calling
  276. application.
  277. - Added a new sample 'real_positions' demonstrating the new generated_token()
  278. preprocessing hook and showing how to use Wave with a new token type without
  279. using a new lexer type.
  280. - Factored out the pure lex_input_interface to simplify writing different lexer
  281. types for Wave.
  282. - Added the token_statistics sample showing how to use Xpressive to build a
  283. lexer for Wave.
  284. - Changed the list_includes sample to use a lexer which is based on the lexertl
  285. library written by Ben Hanson (http://www.benhanson.net/lexertl.html).
  286. - Added a new support_option: insert_whitespace, allowing to switch off
  287. whitespace insertion which is normally (by default) in place to disambiugate
  288. C++ tokens, which would otherwise form different tokens in the output.
  289. - Added a new commandline option to the Wave applet: --disambiguate, allowing
  290. to control whitespace insertion. The default value for this option is
  291. --disambiguate=1, resembling the previous behaviour. Specifying the option
  292. --disambiguate=0 allows to suppress whitespace insertion alltogether.
  293. - Added pragma option values push and pop to the line, preserve and output
  294. options allowing to store and restore the current option. The syntax is:
  295. #pragma wave options(<option>: push) and
  296. #pragma wave options(<option>: pop)
  297. where <option> may be line, preserve or output. Thanks to Eric Niebler for
  298. suggesting this feature.
  299. - Added the possibility to use static pre-compiled DFA tables for the lexertl
  300. based lexer.
  301. - Incorporated the changes from Andrei's latest version of the flex_string
  302. class.
  303. - Added the is_macro_defined(name) function to the context object as described
  304. in the documentation. This function is usable with any string type compatible
  305. with std::string.
  306. - Changed behavior of the --force_include functionality, which now looks for
  307. the file to be (force-)included in the current directory first.
  308. - Switched to Re2C V0.11.2
  309. - Added const specifiers to some of the context member functions.
  310. - Fixed a problem in the SLex C++ lexer (cpp_tokens example).
  311. - Fixed a runtime problem in the Re2C generated lexers when feeded with
  312. empty input files (thanks to Leo Davis for reporting and providing a patch).
  313. - Added the is_eoi() function to token classes, returning true if the token
  314. has been initialized to be the end of input token (T_EOI) (thanks to Ovanes
  315. Markarian for suggesting this).
  316. - Added missing #includes <cstring>, <cstdlib>, and <new> to flex_string.hpp.
  317. - Added missing #include <climits> to cpp_chlit_grammar.hpp.
  318. - Changed found_include_directive hook function to return a bool indicating,
  319. whether the file should be included (true) or skipped (false). Thanks to
  320. Felipe Magno de Almeida for suggesting this feature.
  321. - Added code to the wave driver applet ignoring a #import directive (the whole
  322. directive is passed through to the output) whenever the pp constant
  323. BOOST_WAVE_SUPPORT_MS_EXTENSIONS is defined to something not equal to zero.
  324. - Fixed the wave driver applet to correctly continue after a error or warning.
  325. - Added a macro introspection facility allowing to iterate on all defined macro
  326. names.
  327. - Added a new commandline option --macronames/-m to the Wave driver application
  328. which lists all defined macros and their definitions to an optionally
  329. specified file (default is cout).
  330. - Fixed configuration to take into account thread related build settings.
  331. - Added the BOOST_WAVE_SUPPORT_LONGLONG_INTEGER_LITERALS pp constant allowing
  332. to recognize large integer literals (larger in size than long/unsigned long)
  333. even if these do not have a 'll' suffix. This pp constant is effective only,
  334. if the target platform supports long long integers (BOOST_HAS_LONG_LONG is
  335. defined).
  336. - The following preprocessing hooks now return a boolean value, which when
  337. returning 'true' cause the Wave library to skip the execution of the related
  338. preprocessing action:
  339. . found_directive: allows to skip the whole directive it is called for
  340. . expanding_object_like_macro: allows to skip expansion of the given object
  341. like macro, the macro symbol is copied to the output
  342. . expanding_function_like_macro: allows to skip the expansion of the given
  343. function like macro, the whole macro invocation (including all
  344. macro invocation parameters) are copied to the output without any
  345. further processing.
  346. - Changed the interpretation of the return value of the found_include_directive
  347. preprocessing hook: a return value of 'false' now processes the file
  348. to be included normally and a return value of 'true' now skips the processing
  349. of the include file directive (the file doesn't get included).
  350. This change was necessary to make the return values of the preprocessing
  351. hooks consistent. Now return 'false' generally means: normal execution and
  352. return 'true' generally means: skip execution of the corresponding
  353. preprocessor action.
  354. - Fixed compilation problems on gcc, fixed ambiguity with boost code (detail
  355. namespace was ambigious).
  356. - Fixed predefined macro support to be thread safe.
  357. - Added missing file to real_positions example. Thanks to Ludovic Aubert for
  358. spotting the problem.
  359. - Unterminated C++/C comment diagnostics are now a warning and not an error
  360. anymore.
  361. - Applied patch provided by Jens Seidel making sure every header compiles on
  362. its own.
  363. - Updates to the documentation.
  364. - Fixed a problem in flex_string::compare() (#include_next was non-functional).
  365. - Fixed a bug in the pp hook expanding_function_like_macro(), where the seqend
  366. parameter was set to the first token after the closing parenthesis instead of
  367. pointing at it.
  368. - Added the BOOST_WAVE_SUPPORT_THREADING allowing to explicitely control
  369. whether the Wave library is built with threading support enabled. If not
  370. defined the build settings will be picked up from the Boost build environment
  371. (BOOST_HAS_THREADS).
  372. - Fixed a whitespace insertion glitch, where whitespace got inserted
  373. unconditionally between two operators even if one of these was a comma.
  374. - Fixed #line directive after a macro invocation containing newlines to
  375. correctly reference the line number.
  376. - Positions of macros defined on the command line now get properly reported as
  377. "<command line>":1:...
  378. - Added testing of the preprocessor hooks.
  379. Boost V1.34.0
  380. - Wave Version 1.2.4
  381. - Added the possibility to explicitly enable/disable the generation of #line
  382. directives. Added a corresponding commandline argument to the Wave driver
  383. tool (--line/-L) which takes either 0 or 1 as its parameter.
  384. - Added support for #pragma wave option(command: value) directives, which
  385. supports the following commands:
  386. . #pragma wave option(line: [0|1])
  387. Enable/disable generation of #line directives
  388. . #pragma wave option(preserve: [0|1|2])
  389. Control whitespace preservation
  390. . #pragma wave option(output: ["filename" | null | default])
  391. Redirect output to the given file (or no output, if 'null' is specified,
  392. or output to the file as given on the command line, if 'default' is
  393. specified).
  394. The filename is resolved relative to the directory of the processed
  395. file.
  396. These new #pragma directives are implemented in the Wave driver tool only.
  397. It is possible to combine several options in one #pragma directive, i.e.
  398. #pragma wave option(line: 0, preserve: 2).
  399. - Changed the signature of the may_skip_whitespace() preprocessing hook to
  400. additionally take the preprocessing context as its first parameter.
  401. - Added the possibility to the Wave tool to disable initial output by
  402. specifying a '-' as the output file. This is useful for syntax checks only or
  403. in conjunction with the #pragma wave option(output: ...) to restrict the
  404. generated output.
  405. - Improved error reporting in the Wave tool on bad output file stream state.
  406. - Switched to Re2C V0.10.0
  407. - Fixed some of the VC7.1 /W4 warnings.
  408. - The Wave tool now creates the directory hierarchy of output files as needed.
  409. - Applied some optimization, which causes skipping of the parsing for almost
  410. all preprocessor directives when the if block status is false. This gains
  411. upto 10-20% in speed for average applications.
  412. - Added error diagnostic for #elif without matching #if, which was missing
  413. under certain circumstances.
  414. - Avoided the evaluation of #elif expressions if one of the previous #if/#elif
  415. blocks of the same level was true. This gains upto another 5% of speed for
  416. average applications.
  417. - The MS specific integer suffix 'i64' is now correctly supported by the Re2C
  418. and SLex lexer components (only when BOOST_WAVE_SUPPORT_MS_EXTENSIONS is
  419. defined during compilation).
  420. - Changed the Wave tool to print the column number of an error/warning along
  421. with the line number. The new format is: 'filename:line:column: error text'.
  422. - It is now possible to recover from the unbalanced #if/#endif statement
  423. warning in a proper way.
  424. - The Wave library now automaticaly recognizes include guards in headers files
  425. and uses this information to avoid opening these header files more than once.
  426. This speeds up things by upto 10-20% depending on the concrete include files.
  427. - Fixed the failing test t_6_023.cpp. Error reporting for illformed #else
  428. directives was broken (because of some recent changes).
  429. - Fixed the failing test t_5_007.cpp. This was caused by the automatic include
  430. guard detection, which prevented the second inclusion of the specified
  431. include file the test was relying on.
  432. - Added the possibility to switch off the automatic include guard detection.
  433. - Added a new command line option to the Wave tool: --noguard/-G, which
  434. disables the automatic include guard detection.
  435. - Now a header with include guards will be included correctly for a second time
  436. after its include guard symbol gets undefined.
  437. - Added the generating platform to Wave's full version string.
  438. - Made the Wave tool fully interactive when started with input from stdin and
  439. and output to stdout. In this mode the Wave tool preprocesses the input
  440. line by line and not only after receiving the full input as normally.
  441. - Added serialization support for the wave::context object, which stores
  442. all information about defined macros and all #pragma once header information.
  443. - Added the command line option --state (-s) to the Wave tool, which tries to
  444. load the serialized information from the file given as the argument to
  445. --state and save the state information at the end to the same file.
  446. This option is available in interactive mode only.
  447. - Added possibility to verify the compatibility of the configuration used
  448. during compilation of the Wave library with the config info used for the
  449. application. Added a corresponding test to the Wave tool.
  450. - Added a new predefined macro __WAVE_CONFIG__ which expands to an integer
  451. literal containg the configuration information the library was compiled
  452. with.
  453. - Added proper versioning support to the serialization of state.
  454. - Fixed the macro tracing information to contain the column numbers of the macro
  455. definitions as well (the format used is the same as for error messages).
  456. - Fixed a memory leak in the flex_string copy on write code (thanks to Tobias
  457. Schwinger for reporting this bug).
  458. - Fixed a memory corruption bug in the Re2C scanner buffer management code
  459. (thanks to Andreas Sæbjørnsen for spotting the bug).
  460. - Fixed a major performance bottleneck in the lex_token class. This speeds up
  461. Wave for upto another 20-40% depending on the amount of macro expansions to
  462. perform.
  463. - Added the BOOST_SPIRIT_USE_BOOST_ALLOCATOR_FOR_TREES and the
  464. BOOST_SPIRIT_USE_LIST_FOR_TREES Spirit configration constants to the
  465. wave_config.hpp to allow to fine tune the generated Spirit tree code. VC7.1
  466. gives best results when both are defined.
  467. - Fixed a memory corruption bug triggered by a possible dangling reference.
  468. - Fixed Wave tools startup crash when compiled with VC8.
  469. - Added the name of the generating compiler (BOOST_COMPILER) to the full
  470. Wave version info.
  471. - Fixed all Jamfile.v2 to correctly disable RTTI for VC7.1.
  472. - Added #pragma message("...") to be optionally supported by the Wave library.
  473. This may be enabled by defining the BOOST_WAVE_SUPPORT_PRAGMA_MESSAGE pp
  474. constant to some value different from zero.
  475. - Fixed a couple of typos in the file cpp.cpp preventing it to compile on
  476. gcc 4.1.0 (thanks to Richard Guenther for reporting these).
  477. - Richard Guenther fixed another buffer overrun problem in the Re2C scanner.
  478. - Fixed Jamfile.v2 files for all sample applications.
  479. - Fixed a bug which lead to reporting of an illegal preprocessing directive
  480. inside not-evaluated conditional blocks under certain circumstances (thanks
  481. to Tobias Schwinger for reporting).
  482. - Fixed '#define true ...', '#define false ...' and other constructs, i.e. the
  483. usage of the boolean keywords as identifiers during the preprocessing. Added
  484. a corresponding test case (t_9_017.cpp). Thanks to Andreas Sæbjørnsen for
  485. reporting.
  486. - Corrected the Jamfile[.v2] of the waveidl sample to refer to correct file
  487. names (thanks to Juergen Hunold for submitting a patch).
  488. - Fixed a bug which prevented the main iterator from returning a T_EOF token
  489. at the overall end of the input.
  490. - Fixed a problem, where non-evaluated #elif directives never got passed to the
  491. skippen_token() pp hook (thanks to Andreas Sæbjørnsen for reporting).
  492. - Fixed a problem in the get_tokenname() function.
  493. - Added a missing #define BOOST_WAVE_SOURCE 1 to the wave_config_constant.cpp
  494. file.
  495. - Fixed exception specifications to catch all exceptions by const&.
  496. - Fixed predefined macros to appear to be defined at a position referring to
  497. a file named "<built-in>". Thanks to Andreas Sæbjørnsen for reporting.
  498. - Fixed the Re2C lexer not to segfault on empty files anymore.
  499. - Stripped leading and trailing whitespace for all lines in a config file (Wave
  500. driver tool).
  501. - Fixed RTTI build issue for VC7.1/bjam --v2 (thanks to Rene Rivera for
  502. submitting a patch for the Wave Jamfile.v2).
  503. - Fixed certain problems reported by the Boost inspection tool.
  504. - Fixed a couple of SunPro5.8 warnings.
  505. - Fixed a bug resulting in a crash if a macro was redefined with a shorter
  506. expansion list as it was defined initially. Added a corresponding test case.
  507. - Fixed a bug causing an infinite loop when there was a missing endif in the
  508. main preprocessed file.
  509. - Improved error recovery for illegal preprocessing directive errors.
  510. - Improved error handling and error recovery for conditional expressions
  511. (#if/#elif expressions).
  512. - Wave now passes 160 out of 161 tests from the MCPP V2.6.1 validation
  513. testsuite!
  514. - Added new warning for invalid #line number and filename arguments
  515. - Improved error diagnostics for invalid #line directives containing arbitrary
  516. tokens after at the end of the line.
  517. - Improved error handling wrt the misuse of the __VA_ARG__ token in macro
  518. definitions.
  519. - The warning, that a file is not terminated by a newline is now issued for all
  520. files, not only for the main file (as previous).
  521. - Added a couple of new test cases to verify various diagnostics.
  522. - Fixed wave applet not to report missing #endif's when in interactive mode.
  523. - Cleaned up the Re2C lexer code.
  524. - Fixed a bug, where a empty line followed by an arbitrary token and followed
  525. by a preprocessing directive interpreted the preprcessing directive as if it
  526. were the first non-whitespace token on the line. This error occurred only
  527. if the #line directive generation was suppressed. Thanks to Joan Grant for
  528. reporting this problem.
  529. - Fixed a problem in the Wave applet which prevented the correct recognition of
  530. Windows file paths in a configuration file, if this path was enclosed in
  531. quotes.
  532. - Extended the copyright notice to include the year 2007.
  533. - Fixed a problem in preserve=1 mode, when a C style comment triggered the
  534. generation of a #line directive.
  535. - Worked around a linker issue for the True64/CXX compiler, complaining about
  536. multiple defined symbols when using the flex_string class.
  537. - Added missing documentation for the context::get_macro_definition function.
  538. Sat Feb 18 2005
  539. - Version 1.2.3
  540. - Added a missing throw() specification to the function
  541. cpp_exception::get_related_name().
  542. - Fix Boost bug ([ boost-Bugs-1395857 ] wave redefines BSIZE).
  543. - Added missing calls to the skipped_token() preprocessing hook which wasn't
  544. called for pp directives inside disabled #if blocks.
  545. - Made the context<> type noncopyable.
  546. - Introduced the --extended/-x command line option to the wave driver
  547. executable, which enables the #pragma wave system() directive. This directive
  548. is now disabled by default because it may cause a potential security threat.
  549. - Changed the what() function of the macro_handling_exception class, which now
  550. correctly returns the name of the exception type itself.
  551. - Added a diagnostic message to the wave driver executable, which is issued
  552. whenever a #pragma wave system() directive is found, but the -x (--extended)
  553. command line argument was not given.
  554. - Fixed long integer suffix to be allowed to be mixed case (1Ll or 2lL).
  555. - Fixed the BOOST_PP_CAT(1e, -1) pp-token bug. Wave now correctly recognizes
  556. pp-number tokens, which are converted to C++ tokens right before they are
  557. returned from the library.
  558. - Moved the implementation of the token_id query functions (get_token_name(),
  559. get_token_value()) to a separate source file.
  560. - Fixed a bug, which prevented to prefer pp-numbers in files preprocessed as
  561. a result of #include directives.
  562. - Fixed a bug, which prevented to open #include'd files specified by an
  563. absolute path.
  564. - Fixed a problem in the expression parser value type.
  565. - Fixed a dynaload compilation problem with VC7.1 of the re2c lexer tests.
  566. Sat Dec 24 13:33:53 CST 2005
  567. - Version 1.2.2
  568. - Added three new preprocessing hooks: 'found_directive', 'skipped_token' and
  569. 'evaluated_conditional_expression' (thanks to Andreas Sæbjørnsen for the
  570. suggestions).
  571. - Removed hook forwarding functions in the context_type.
  572. - Added missing include_next case branches for get_directivename() function.
  573. - Added new sample: advanced_hooks.
  574. - Fixed a possible buffer overflow in the cpplexer and cpp exception classes.
  575. - Made the cpp_grammar thread safe.
  576. - Removed the need for the get_directivename() function. Fixed typos in the
  577. predefined token table.
  578. - Removed assertions from get_token_name() and get_token_value() and replaced
  579. these with more meaningful code.
  580. - Added the BOOST_WAVE_USE_STRICT_LEXER configuration constant which allows to
  581. decide, whether the '$' character will be recognized as a part of identifiers
  582. or not (the default is BOOST_WAVE_USE_STRICT_LEXER == 0, i.e. '$' will be
  583. recognized as part of identifiers).
  584. - Added the possibility to testwave to extract a tagged comment based on a
  585. preprocessor constant (testwave V0.4.0).
  586. - Made the predefined_macros_grammar thread safe.
  587. - Added dll support for the generated Wave libraries.
  588. - Added the const_iterator based exlicit instantiations for the Re2C lexer to
  589. the built Wave library and dll.
  590. - Added the whitespace handling policy to the context object. This actually is
  591. no separate policy, it's a new preprocessing hook allowing to decide, whether
  592. a concrete token has to be skipped.
  593. - Changed the --preserve option of the wave tool to take a single integer
  594. argument (0: no whitespace is preserved, 1: only comments are preserved,
  595. 2: all whitespace is preserved)
  596. - Edited the command line option descriptions of the wave driver.
  597. - Fixed broken tags in documentation (magically inserted by DreamWeaver).
  598. - Merged the new whitespace_handling policy with the existing preprocessing
  599. hooks. The name of the new preprocessing hook ist may_skip_whitespace().
  600. - Fixed compatibility issues for CW9.4 in the Wave test aplication.
  601. - Added get_errorcode() member to the wave exception classes allowing to
  602. get back the reason for the exception.
  603. - Added boost::wave::is_recoverable(cpp_exception const&) alowing to decide,
  604. whether it is possible to continue after a cpp_exception has been thrown.
  605. This is a temporary hack to overcome the current limitation of the library
  606. not allowing to do generic error recovery. It allows to recover from 75% of
  607. the generated errors types.
  608. - The --timer command line option for the Wave driver now prints the elapsed
  609. time correctly even if a preprcessing error occurred.
  610. - Fixed an error recovery problem which skipped one token after continuing in
  611. case this was a pp directive.
  612. - Added the --autooutput (-E) option to the Wave driver applet which redirects
  613. the generated output to a file named after the input file changing the file
  614. extension to '.i'.
  615. - Changed all throw's to boost::throw_exception.
  616. - Added the possibility to configure the command keyword for the wave specific
  617. #pragma directives. It is now possible to define a string literal via
  618. BOOST_WAVE_PRAGMA_COMMAND, which will be recognized and all corresponding
  619. #pragma's are dispatched to the interpret_pragma() preprocessing hook.
  620. The default value for BOOST_WAVE_PRAGMA_COMMAND is "wave", just to ensure
  621. complete backward compatibility.
  622. - Added missing #pragma warning(pop) directives.
  623. - Fixed a bug wrt error propagation in the expression parser.
  624. - Fixed an assertion fired when cpp_token is used to process the quick_start
  625. sample.
  626. - Fixed a (Windows specific) bug which triggered a boost::file_system exception
  627. under certain conditions.
  628. - Switched to Re2C V0.9.11
  629. - Fixed a problem with the new '-E' (--autooutput) option.
  630. - Added better error reporting for duplicate macro definitions to the Wave
  631. tool. Added the macro_handling_exception type containing the corresponding
  632. macro name via the new (virtual) get_related_name() function.
  633. - Added the get_severity() function to the exceptions thrown by the Wave
  634. library.
  635. - Extended the copyright notice to include the year 2006.
  636. Mon Dec 5 22:05:22 CST 2005
  637. Boost V1.33.1
  638. - Version 1.2.1
  639. - Fixed bug reported as Sourceforge bug 1274584.
  640. - Switched to Re2C V0.9.9.
  641. - Fixed a bug where the 'parameters' and 'definition' parameters to the
  642. defined_macro callback of the preprocessing hooks were always empty (thanks
  643. to Stefan Seefeld for reporting).
  644. - Fixed missing namespace specifiers in token definition macros (thanks to
  645. Jozsef Mihalicza for reporting).
  646. - Enabled --preserved and --long_long modes by default for the cpp_tokens
  647. sample.
  648. - Newline tokens reported a wrong line number (offset by one) when using the
  649. Re2C generated lexer (thanks to Jozsef Mihalicza for pointing this out).
  650. - Changed file positions to carry 'unsigned int' line and column numbers.
  651. - Fixed tokens of a generated #line directive to carry the correct column
  652. numbers.
  653. - Tokens now contain the correct filename, line and column numbers even if
  654. a #line directive was encountered.
  655. - Fixed wrong line numbering in reference comments of the tests t_5_002.cpp and
  656. t_5_035.cpp.
  657. - Made sure, that preprocessor expression errors get ignored for 'passive'
  658. #elif branches.
  659. - Fixed an issue reported by the gcc debug stl.
  660. - Added the <vc-7_1-stlport><*><rtti>off directive to all of the V1 Jamfiles.
  661. Wed Aug 17 20:21:00 CST 2005
  662. Boost V1.33.0
  663. Version 1.2
  664. - Fixed name clash wrt T_DIVIDE on FreeBSD.
  665. - Fixed documentation of the different language_support flags.
  666. - The support for long long suffixes is no longer bound to the variadics mode,
  667. it has to be enabled by the new long_long mode (default in C99).
  668. - Fixed compilation if BOOST_WAVE_DUMP_PARSE_TREE is defined.
  669. - Fixed lexer error message wrt long_long mode.
  670. - Stefan Seefeld fixed a bug in the lexer, where include_next was assumed for
  671. included files containg a "include_" in their name.
  672. - Fixed some trigraph token id's in the lexers.
  673. - Added column information to the re2c generated lexer.
  674. - Added tests for the different lexers.
  675. - Fixed the found_include_directive preprocessing hook to carry the information
  676. about #include_next directives as well.
  677. - Separated the different lexer tests.
  678. - Fixed a bug in the whitespace eater.
  679. - Fixed a bug where Wave emitted the found C++ comments in --preserve mode even
  680. if these were found inside of disabled #if/#endif blocks.
  681. - Removed the function local static grammars to avoid possible raise conditions
  682. and to make CW8.3 happy.
  683. - Unified lexer interface, adjusted namespaces.
  684. - Added lexer testcases to the regression tests.
  685. - Fixed test cases to scale to 64 bit platforms.
  686. - Disabled the MS specific extensions in the lexer tests in a platform related
  687. way.
  688. - Added special handling of the eof tokens inside the lexer iterator classes
  689. for Comeau.
  690. - Applied a workaround proposed by David Abrahams to make the slex lexer work
  691. on the CodeWarrior platforms.
  692. Sun May 8 17:22:59 WEDT 2005
  693. Version 1.1.17
  694. - Added ill_formed_character_literal and ill_formed_integer_literal errors.
  695. - Improved error handling and diagnostics for integer overflow in #if/#elif
  696. expressions.
  697. - Fixed a bug in the testwave application which prevented the correct
  698. recognition of expected errors under certain circumstances.
  699. - Fixed a portability problem (for gcc 3.3.x) in the testwave application.
  700. - Enforced that #if/#endif are balanced file wise.
  701. - Changed the command line arguments for the Wave testrun to use absolute
  702. directories.
  703. - Changed the test application to return a value != zero if one of the given
  704. config files were not found.
  705. - Fixed a command line parsing problem caused by a change in the parameter
  706. handling inside in the program_options library.
  707. - Switched to the most recent version of re2c (V0.9.7.dev).
  708. - Fixed a como compilation error and several como --a warnings.
  709. - The T_EOF token doesn't carry the value of the previous token anymore.
  710. - Added operator==() to the token classes to fix the ambiguity error reported
  711. by the True64 compiler.
  712. - Improved the error message, when empty arguments are used in pure C++ mode.
  713. - Added character literal out of range testing and an additional corresponding
  714. error message.
  715. - Fixed parsing of long character literals (such as '\x1234').
  716. - Fixed almost all problems diagnosed by the Boost inspection report.
  717. - Several fixes to make the True64 compiler happy.
  718. - Added the long long suffix handling to the C99 mode (LL/ll).
  719. - Fixed a bug in the slex regex specifications.
  720. Thu Apr 7 10:07:45 WEDT 2005
  721. Version 1.1.16
  722. - Fixed a bug in the white space eating component, which prevented a C++
  723. comment to be suppressed if it followed after another whitespace.
  724. - Fixed the inconsistencies between the documentation and the behaviour wrt the
  725. different include search paths. See the Wave driver docs for details of how
  726. the '-I', '-I-', and '-S' options work.
  727. - Allowed to specify more than one config file ('@' syntax) on the command line
  728. of the wave driver executable.
  729. - Changed copyrights in all files to reflect the acceptance of Wave into Boost.
  730. - Unknown preprocessing directives were not recognised as such anymore.
  731. - If comments shouldn't be preserved all C++ comments are replaced by newline
  732. tokens (instead of beeing igored completely).
  733. - Fixed a bug in the white space eater component.
  734. - Fixed a bug which reported wrong line numbers for error encountered during
  735. retokenisation (concatination).
  736. - Fixed a bug in the unescaping code.
  737. - Fixed a compilation error of the testwave executable (added a missing
  738. namespace specifier).
  739. - Added a missing header to make cpp.re.cpp compile on CW.
  740. - The predefined macro __BASE_FILE__ now returns a properly escaped file name
  741. string.
  742. - Fixed the function boost::wave::util::impl::unescape_lit().
  743. - Added the Wave unit test framework. For now it contains about 60 unit tests
  744. executed by a special test driver (testwave).
  745. - Added the '$F' replacement string to the testwave application. This allows
  746. to handle file paths sensitive comparison of the expected and real results.
  747. - Fixed a minor problem in the whitespace eating component.
  748. - Added optional trigraph conversion.
  749. - Changed all size_t, time_t etc. to std::size_t, std::time_t etc (for CW).
  750. - If the comments should not be preserved every C comment containing at minimum
  751. one newline is now converted to a newline token.
  752. - Added the lexed_tokens sample.
  753. - Fixed warnings and errors reported by the CodeWarrior compiler.
  754. - Added the '$V' replacement string to the testwave application. It expands to
  755. the current BOOST_LIB_VERSION.
  756. - Diagnosed the attempt to redefine the alternative operators as and, or etc.
  757. - Improved error handling.
  758. - Disabled the flex_string class for VC7, enabled to fallback to std::string
  759. for this compiler.
  760. - Renamed files to comply with the Boost rules.
  761. - Added the first part of the MCPP validation suite to the Wave unit tests.
  762. - Added even more missing "using namespace std;" statements for functions from
  763. the C runtime library. The Wave test suite now contains more than 100 unit
  764. tests.
  765. - Added the $P/$P(basename) replacement string to the testwave application
  766. which expands to the full path of the current file ($P) or to the current
  767. directory/basename ($P(basename)).
  768. - Fixed a bunch of portability problmes revealed by the regression tests on
  769. different platforms. Thanks to Stefan Slapeda for his support to make it work
  770. on the cw-9_4 toolset (win32).
  771. Tue Mar 22 14:52:45 WEST 2005
  772. Version 1.1.15
  773. - Fixed a bug where the complete set of C99 predefined macros were pre-defined
  774. when in C++ mode and variadics were enabled.
  775. - When in variadics or C99 mode the __BASE_FILE__ predefined macro expanded to
  776. <Unknown>.
  777. - Added the --listincludes option to the Wave driver executable which allows to
  778. log the file names of the include files opened.
  779. - Fixed a gcc warning in token_cache.hpp (unused variable end).
  780. - Changed the logic behind #include_next. It now starts searching with the
  781. next directory after the directory the current file (the file containing the
  782. #include_next directive) is located in.
  783. - Changed the signature of the undefined_macro preprocessing hook to take the
  784. token itself and not the macro name only. This is important to pass the full
  785. context information about the position of the #undef directive to the
  786. user provided hook (thanks to Stefan Seefeld for pointing that out).
  787. - Fixed several broken links in the Context Policy topic.
  788. - Fixed a bug in the handling of the #include_next directive inside of
  789. non-evaluated #if blocks.
  790. - Fixed a bug in the #include_next handling code (thanks to Stefan Seefeld).
  791. - Changed the signature of the opened_include_file() preprocessing hook which
  792. now receives not only the absolute file name of the openend include file but
  793. additionally gets passed the (possibly) relative path of the openend include
  794. file. This concrete format of the relative path depends on the format of the
  795. include search directory given to the library.
  796. - Added a new preprocessing hook 'found_include_directive()' which gets called
  797. for every #include directive (even for those where the file to include
  798. doesn't exist) and which gets passed the (expanded) token sequence found
  799. after the #include directive token.
  800. - The file names passed to the preprocessing hooks are now normalised.
  801. - Changed the opened_include_file() preprocessing hook to receive the correct
  802. relative path even if the included file was found in the current directory.
  803. - Fixed a bug which reported 'defined(or)' as invalid (similarly all the other
  804. alternative bit operation token types).
  805. - Fixed a bug which prevented to define variadic macros from the command line.
  806. - Added a 'preserve comments' mode to preserve the comments in the input stream
  807. not inserted into macro definitions.
  808. - Added a new --preserve (-p) command line switch to the wave driver
  809. application to allow comments to be preserved in the generated output stream.
  810. Mon Feb 21 09:30:04 WEST 2005
  811. Version 1.1.14 (Fixes in response to the Boost review)
  812. Wave was accepted into Boost!
  813. With special thanks to Tom Brinkman, who volunteered to be the review manager.
  814. With thanks to David Abrahams, Beman Dewes, Reece Dunn, Larry Evans,
  815. Doug Gregor, Joel de Guzman, Baptiste Lepilleur, Andy Little, Paul Mensonides,
  816. Dan Nuffer, Andreas Pokorny, Vladimir Prus, Gennadiy Rozental, Michiel Salters,
  817. Jonathan Turkanis, Chris Uzdavinis, Pavel Vozenilek, Michael Walter for bug
  818. reports, fixes and hints.
  819. - Added support for the MS extensions #region and #endregion, which simply get
  820. ignored by Wave. The support for these is enabled only, when the pp constant
  821. BOOST_WAVE_SUPPORT_MS_EXTENSIONS is defined. Otherwise these get flagged as
  822. an illegal preprocessor directive (as before).
  823. - Fixed a problem, where the replacement text for a #pragma directive got lost
  824. if this directive was on the last line of a processed (include-)file.
  825. - Changed the default value for BOOST_WAVE_SUPPORT_MS_EXTENSIONS for non-
  826. Windows systems to zero.
  827. - Updated outdated external links in the documentation.
  828. - Fixed certain grammatical and stylistic quirks in the documentation.
  829. - Fixed a problem in libs/wave/build/Jamfile.v2 (as reported by Larry Evans).
  830. Fixed the Jamfile.v2 in the samples directories accordingly.
  831. - Added the '<toolset>vc-7_1:<rtti>off' to all Jamfile.v2 files to adjust for
  832. the internal buffer overflow bug in the VC7.1 compiler (reported by Joel de
  833. Guzman).
  834. - Changed the '<toolset>vc-7_1:<rtti>off' to '<toolset>vc-7.1:<rtti>off' as
  835. required by the Boost.Build.v2 library (suggested by Vladimir Prus).
  836. - Finally fixed the Jamfile.v2 file (after a suggestion from Reece Dunn)
  837. - Fixed the column number reported for tokens for Slex lexer based
  838. configurations (reported by Baptiste Lepilleur).
  839. - Added the __BASE_FILE__ predefined macro, which contains a string literal
  840. of the main file name to preprocess (the one the context<> template was
  841. created with). (suggested by Pavel Vozenilek)
  842. - Used the boost::reverse_iterator instead of the std::reverse_iterator
  843. for the flex_string class to allow compilation of Wave with VC7.0
  844. (as suggested by Reece Dunn).
  845. - Fixed a problem in the include_path template, which throwed a
  846. boost::filesystem exception whenever a character was used in a file name
  847. to include, which is marked as illegal by the default name checker of the
  848. boost::filesystem::path.
  849. Version 1.1.13 (Boost review candidate 2, bug fixed version)
  850. - Fixed a problem, where the context<> template referenced temporary iterator
  851. objects from the underlying stream (thanks to Michiel Salters for reporting
  852. this).
  853. - Fixed a bug in the re2c lexer, which allowed to dereference the end iterator
  854. of the underlying input stream (thanks to Doug Gregor for pointing this out).
  855. - Fixed several assertions fired by the iterator checking code of the VC8 stl.
  856. Version 1.1.12 (Boost review candidate)
  857. - A rough performance analysis showed, that 30% of the time is spent parsing
  858. the input for pp directives (cpp_grammar), 35% of the time is spent inside
  859. the flex_string code, mainly in the copy constructor and assignment
  860. operator, 15% of the time is spent inside the list and vector member
  861. functions, 10% is spent for memory allocation but only 1% of the time is
  862. spent in the re2c lexer.
  863. - Identified a performance problem, where the token_cache was instantiated
  864. for every created lexer object, but needed to be initialised only once.
  865. - Added #include <wave_version.hpp> to wave_config.hpp
  866. - Fixed problems reported by the gcc 3.4.1 compiler.
  867. - Adjusted Jamfiles for the new toolset names introduced in Boost V1.32.
  868. Version 1.1.11
  869. - Updated copyrights.
  870. - Fixed some bugs introduced by the latest refactoring.
  871. - Tried to fix the expansion of macros, which replacement-list terminates in a
  872. partial macro expansion. No success so far.
  873. Version 1.1.10
  874. - Refactored some of the macro map (macro namespace) code (added comments,
  875. splitted into separate files),
  876. - Fixed some typename errors in cpp_macromap.hpp (thanks to Vladimir Prus).
  877. - Fixed the BoostBuild V2 Jamfiles (thanks to Vladimir Prus).
  878. Version 1.1.9
  879. - Moved all of the #pragma wave option(value) operators out of the wavelib into
  880. the wave driver program. Removed enable_trace() and trace_flags() policy
  881. functions. Renamed trace_policy into context_policy.
  882. - Added the defined_macro() and undefined_macro() preprocessing hooks to allow
  883. easily to build macro cross referencers and such.
  884. Version 1.1.8
  885. - Replaced the usage of the string::erase() and string::insert() functions,
  886. which were the only non-const string member functions used.
  887. - Token pasting is now well defined in variadics mode (was in C++0x mode only).
  888. - Changed the timing code in the wave driver to include the parsing of
  889. files included by the --forceinclude command line switch.
  890. - Performance measurements (very informal) [sec], the files are some of the
  891. preprocessor specific test cases from Paul Mensonides chaos_pp library.
  892. std::string flex_string const_string const_string
  893. 12 Byte 28 Byte
  894. arithmetic.cpp 2.543 1.742 0.951 1.001
  895. array.cpp 2.453 1.762 0.951 1.011
  896. comparison.cpp 0.560 0.340 0.270 0.280
  897. control.cpp 0.590 0.340 0.290 0.300
  898. debug.cpp 0.370 0.310 0.190 0.190
  899. detection.cpp 0.050 0.060 0.030 0.030
  900. extended.cpp 0.370 0.260 0.190 0.190
  901. facilities.cpp 0.610 0.340 0.290 0.300
  902. iteration.cpp 1.081 0.550 0.410 0.450
  903. list.cpp 1.742 1.141 0.811 0.851
  904. logical.cpp 0.070 0.200 0.040 0.040
  905. punctuation.cpp 0.030 0.080 0.020 0.020
  906. repetition.cpp 1.392 0.851 0.650 0.690
  907. selection.cpp 0.440 0.270 0.210 0.220
  908. slot.cpp 0.680 0.350 0.240 0.270
  909. tuple.cpp 0.420 0.240 0.190 0.210
  910. Wed Aug 25 13:23:27 WEDT 2004
  911. Version 1.1.7
  912. - Branched for Boost Release.
  913. - Removed several features from the code base:
  914. . removed C++0x support
  915. . removed TST support
  916. - Fixed the program_option validator syntax, which has changed since the last
  917. update.
  918. - Removed misleading configuration options from the cpp_config.hpp file,
  919. because the application will have to use the same config options as were used
  920. during the compilation of the library.
  921. - Changed the naming convention of typedef'd types in the library. Removed the
  922. _t suffix, wherever possible.
  923. - Updated the documentation to reflect the removal of the C++0x features.
  924. - Changed the licensing scheme to:
  925. // Copyright 2004 Joe Coder. Distributed under the Boost
  926. // Software License, Version 1.0. (See accompanying file
  927. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  928. Mon May 24 10:02:47 WEDT 2004
  929. Version 1.1.6
  930. - Fixed a incompatibility with the new program_options version.
  931. Version 1.1.5
  932. Version 1.0.6
  933. - Fixed a bug, which reported an #include statement as ill formed, if it was
  934. followed by an empty C comment only. This was an error in the cpp.re regular
  935. expression for C comments. Additionally, since this change simplified the
  936. Re2C generated lexer a lot it was possible to remove the compiler workaround
  937. for the VC7.1 compiler which prevented the optimization of this lexer.
  938. Mon Mar 29 09:36:59 WEDT 2004
  939. - Corrected the signature of the main() functions (was main(int, char const*[])).
  940. Sun Mar 28 12:55:59 WEDT 2004
  941. Version 1.1.4
  942. - Fixed a problem, where the first returned token was lost, whenever a
  943. --forceinclude file was given.
  944. - Adjusted the Wave driver and the other samples to use the new program_options
  945. library syntax (V1.1.x only).
  946. Mon Mar 1 19:14:21 WEST 2004
  947. Version 1.1.2
  948. Version 1.0.4
  949. - Fixed a problem, which does not report an error, if in a #define statement in
  950. between a macro name and its replacement list were no whitespace given.
  951. - Fixed a bug, which generated an unexpected exception of the $ character in the
  952. input.
  953. - Macro definitions, which differ by whitespace only (one definition contains
  954. whitespace at a certain position, the other definition does not) are correctly
  955. reported as a warning now.
  956. - Fixed a problem, where different formal argument names during macro
  957. redefinition were not flagged as a warning.
  958. - A wide character string used in a #line directive wasn't flagged as an error.
  959. Sun Feb 29 19:10:14 WEST 2004
  960. Used the test suite distributed with the mcpp V2.4 preprocessor to fix a bunch
  961. of mostly minor issues:
  962. - Fixed trigraph backslash followed by a newline handling (??/ \n) in the
  963. re2c (C/C++ and IDL) scanners.
  964. - Fixed a digraph/trigraph token type handling problem during macro expansion.
  965. - Fixed a digraph/trigraph token type problem during handling of the null
  966. preprocessor directive.
  967. - Fixed several signed/unsigned conversion bugs in the expression evaluator.
  968. - Fixed the || and && operators in the expression evaluator to stop evaluation,
  969. as only the outcome of the overall expression is determined.
  970. - Fixed the expression evaluation engine to detect divide by zero errors.
  971. - Fixed a bug with operator || and && arithmetic (the deduced type was wrong).
  972. - Fixed a bug with the unary operators ! and - which IN conjunction with an
  973. arithmetic operation yielded A wrong result type.
  974. - Fixed a bug, which reported a macro definition as an invalid redefinition, if
  975. it was different from the original definition only by different whitespaces.
  976. - Fixed a bug, which reported the redefinition of one of the alternative tokens
  977. as 'and', 'bit_and' etc. as invalid.
  978. - Fixed a bug in the character literal parser, which prevented the recognition
  979. of multibyte character literals.
  980. - Moved the cpp_token_ids.hpp header into the main wave.hpp header, because the
  981. values defined therein aren't changeable by the user anyway.
  982. - Fixed some spelling errors in the documentation (thanks to Rob Stewart).
  983. Tue Feb 3 20:20:16 WEST 2004
  984. - Fixed the problem, that macro definitions in a config file were flagged as
  985. an error, if there was any whitespace in between the -D and the macro name
  986. (same problem existed for -P).
  987. Fri Jan 30 20:28:27 WEST 2004
  988. - Fixed a missing boostification in the trace support header.
  989. - Added a missing std:: namespace qualification to the list_includes.cpp sample
  990. file.
  991. - Fixed line ending problems with the cpp.re and idl.re files.
  992. - Added quick_start sample.
  993. Sun Jan 25 20:26:45 WEST 2004
  994. This version was submitted to Boost as the review candidate (V1.1.0)
  995. - Fixed invalid explicit instantiation syntax as reported by the Comeau
  996. compiler.
  997. - Added a missing header to flex_string.hpp.
  998. Sat Jan 24 19:47:44 WEST 2004
  999. - Completely decoupled the used lexer from the preprocessor.
  1000. - Unfortunately had to change the template interface of the context class. It
  1001. now instead of the token type takes the type of the lexer to use.
  1002. - Reintroduced the cpp_tokens, list_includes and waveidl samples.
  1003. . cpp_tokens is based on the SLex lexer
  1004. . list_includes shows the usage of the include file tracing capability
  1005. . waveidl uses the Re2C based IDL lexer in conjunction with the default token
  1006. type
  1007. Tue Jan 13 20:43:04 WEST 2004
  1008. - Fixed several compilation issues under linux (gcc 3.2.3, gcc 3.3, gcc 3.3.2,
  1009. gcc 3.4, Intel V7.1)
  1010. - Fixed a compatibility problem with Spirit versions older than V1.7.
  1011. Mon Jan 12 20:39:50 WEST 2004
  1012. - Boostified the code base:
  1013. . Moved code into namespace boost.
  1014. . Prefixed all pp constants with "BOOST_".
  1015. . Refactured the directory structure.
  1016. - Removed IDL mode and SLex lexer from the code base. These will be re-added as
  1017. samples.
  1018. - Changed the Wave configuration system to be more flexible (all
  1019. #if defined(BOOST_WAVE_...) changed to #if BOOST_WAVE_... != 0),
  1020. which allows to configure the library without changing the code base itself
  1021. Sat Jan 10 18:17:50 WEST 2004
  1022. - Incorporated Andrei Alexandrescu's latest changes to the flex_string class,
  1023. which resulted in an overall spedd gain of about 5-10%.
  1024. Wed Jan 7 17:46:45 WEST 2004
  1025. - Found a major performance hole! The achieved general speedup is about 50-70%.
  1026. - Added missing old MS specific extensions to the re2c lexer (_based,
  1027. _declspec, _cdecl, _fastcall, _stdcall, _inline and _asm).
  1028. - Added support for #include_next (as implemented by gcc).
  1029. - Fixed compilation problems with gcc 3.3.1
  1030. - Avoid to look up in symbol table of a potential macro name twice.
  1031. - Added the Spirit SLex lexer sample to the Wave source tree, because it was
  1032. removed from the Spirit distribution.
  1033. - Removed the configuration option, which allowed to reverse the names stored
  1034. in the symbol tables.
  1035. - Implemented experimental support for using a TST (ternary search tree) as the
  1036. container for the symbol tables.
  1037. Sun Jan 5 12:30:50 2004
  1038. - Released V1.0.0
  1039. Sun Jan 4 00:11:50 2004
  1040. - Removed tabs from the flex_string.hpp file.
  1041. - Modified the input_functor.hpp file to sqeeze out some milliseconds at
  1042. runtime.
  1043. - The --timer option now prints the overall elapsed time even if an error
  1044. occurred.
  1045. - Added support for #pragma once.
  1046. Fri Jan 2 22:58:54 2004
  1047. - Fixed a bug in the code, which predefines the preprocessor constants.
  1048. - Fixed a bug in intlit_grammar<> initialisation code.
  1049. Thu Jan 1 21:15:03 2004
  1050. - Fixed a bug while predefining a macro with a value through the commmand line.
  1051. - Fixed a bug, which reported a macro definition as illegal, if the redefined
  1052. macro was a function like macro with parameters.
  1053. - Fixed a bug, if concatenation of two tokens resulted in a C++ comment start
  1054. token.
  1055. Thu Jan 1 15:01:54 2004
  1056. - Finished license migration.
  1057. Wed Dec 31 12:23:55 2003
  1058. - Changed the copyright and licensing policiy to be Boost compatible.
  1059. Wed Dec 31 12:01:14 2003
  1060. - Fixed a problem while compiling certain headers from the Microsoft Windows
  1061. SDK:
  1062. #define CreateWindowA(lpClassName, lpWindowName, dwStyle, x, y,\
  1063. nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)\
  1064. CreateWindowExA(0L, lpClassName, lpWindowName, dwStyle, x, y,\
  1065. nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
  1066. where essentially is no whitespace between the parameter list and the macro
  1067. replacement list.
  1068. - Fixed a problem with the MS extension __declspec, which now is recognized
  1069. correctly.
  1070. Sat Dec 27 14:48:29 2003
  1071. - Fixed remaining problems with assign/assign_a.
  1072. - Fixed some gcc warnings about signed/unsigned comparision mismatch.
  1073. Tue Nov 11 20:51:41 WEST 2003
  1074. - Changed the IDL mode to recognize identifiers only. All keywords (except
  1075. 'true' and 'false') are returned as identifiers. This allows for easy
  1076. extension of the IDL language. The drawback is, that after preprocessing
  1077. there needs to be just another lexing stage, which recognizes the keywords.
  1078. - Fixed a possible problem, when in between a #if/#elif directive and a
  1079. subsequent opening parenthesis Wave finds no whitespace:
  1080. #if(_WIN_VER >= 0x0500)
  1081. is now recognized correctly.
  1082. (This problem was pointed out by Porter Schermerhorn).
  1083. Sun Nov 9 21:05:23 WEST 2003
  1084. - Started to work on implementation of an IDL lexer for the TAO idl compiler.
  1085. . Branched off the Re2C C++ lexer and related files as a starting point for
  1086. the new IDL lexer. Added connfiguration means to allow compile time
  1087. decision, in which mode to operatoe (C++ or IDL).
  1088. . Implemented the Re2C based IDL lexing component.
  1089. . Fixed all occurrences of non-IDL tokens (as T_COLON_COLON and T_ELLIPSIS)
  1090. Sat Nov 8 20:05:52 WEST 2003
  1091. - Version 1.0.0
  1092. - Munged the email addresses embedded within the source files.
  1093. - Adjusted for the new actor names in Spirit (assign_a and append_a).
  1094. Thu Aug 21 16:54:20 2003
  1095. - Removed the internally used macro 'countof()' to avoid possible nameclashes
  1096. with user code.
  1097. - Fixed a bug, which prevented the execution of the concatination operator '##'
  1098. while expanding object-like macros.
  1099. Tue Aug 5 10:04:00 2003
  1100. - Fixed a false assertion, if a #pragma directive started with some whitespace
  1101. on the line.
  1102. - Added the #pragma wave timer() directive to allow rough timings during
  1103. processing. This is done on top of a new callback hook for unrecognized
  1104. #pragma's, which allows to easily add new pragma commands without changing
  1105. the Wave library.
  1106. - Fixed a bug in the whitespace insertion engine, which prevented the insertion
  1107. of a whitespace token in between two consecutive identifier tokens or a
  1108. integer literal token followed by an identifier token.
  1109. - Fixed a bug during macro concatenation, which allowed to concatenate
  1110. unrelated tokens from the input stream:
  1111. #define CAT(a, b) PRIMITIVE_CAT(a, b)
  1112. #define PRIMITIVE_CAT(a, b) a ## b
  1113. #define X() B
  1114. #define ABC 1
  1115. CAT(A, X() C) // AB C
  1116. CAT(A, X()C) // correct: AB C, was 1
  1117. - Fixed a 64 bit portability problem.
  1118. - Added pragma wave timer(suspend) and wave timer(resume)
  1119. - Fixed a ODR problem with static initialization data for predefined macros.
  1120. - Ported the iterators to the new iterator_adaptors.
  1121. - Updated the documentation to reflect the recent changes
  1122. Sun Jun 29 12:35:00 2003
  1123. - Fixed 64 bit compatibility warnings.
  1124. - Fixed a bug, which prevented the correct recognition of a #line directive, if
  1125. only the filename part of this directive was generated by a macro expansion.
  1126. - Fixed a bug during macro expansion of conditional expressions, which
  1127. prevented the correct expansion of certain scoped macros.
  1128. Fri Jun 27 09:50:14 2003
  1129. - Changed the output of the overall elapsed time (option --timer) to cerr.
  1130. - Added a configuration constant WAVE_REVERSE_MACRONAMES_FOR_SYMBOLTABLE, which
  1131. reverses the macro names while storing them into the symbol table, which
  1132. allows to speed up name lookup especially, if the macro names are very long
  1133. and if these share a common prefix.
  1134. - Fixed a very subtle bug, which prevented the recognition of fully qualified
  1135. macro names during the macro expansion of conditionals expressions (for
  1136. #if/#elif).
  1137. - Improved the error output for the illformed pp expression error.
  1138. Thu Jun 26 08:20:30 2003
  1139. - Done a complete spell check of the source code comments.
  1140. Wed Jun 25 20:33:52 2003
  1141. - Changed the conditional expression engine to work with integer numeric
  1142. literals only. Distinguished signed and unsigned literals.
  1143. - Importing a region twice is allowed now.
  1144. - Fixed a bug, which does not removed all placeholder tokens from a expanded
  1145. token sequence while evaluating conditional expressions (C++0x mode only).
  1146. Wed Jun 25 15:01:51 2003
  1147. - Changed the conditional expression engine to respect the type of numeric
  1148. literals, now expressions like '#if 1 / 10 == 0' evaluate correctly (to true
  1149. :-)
  1150. - Fixed a bug, where macro names referring to global macros (as ::A::B) were
  1151. not correctly recognized under certain circumstances.
  1152. - Empty parameter lists for macros with ellipses only sometimes generated a
  1153. placemarker token in the output:
  1154. #define STR(...) #__VA_ARGS__
  1155. STR() // resulted in "§" instead of "" .
  1156. Wed Jun 25 08:35:06 2003
  1157. - Fixed several gcc compilation errors (missing typename's etc.)
  1158. - Fixed a compilation problem, if Wave is built on top of the SLEX scanner.
  1159. - Reformatted the --timer output from pure seconds to a more reasonable format.
  1160. Fri Jun 20 19:33:30 2003
  1161. - Changed the enable_tracing function of the tracing_policies to take a
  1162. trace_flags variable instead of a bool, to allow to control tracing with more
  1163. granulation.
  1164. - Added the tracing_enabled function to the tracing_policies, which returns the
  1165. current tracing status.
  1166. - Updated the documentation of the tracing policies.
  1167. Thu Jun 19 21:45:39 2003
  1168. - Reactivated the list_includes sample with the help of the new include file
  1169. tracing facility.
  1170. Thu Jun 19 17:55:35 2003
  1171. - Eliminated the TraceT template parameter from the macromap<> template.
  1172. - Added two hooks to the trace policy to allow to trace the opening and
  1173. closing of include files.
  1174. Thu Jun 19 14:08:10 2003
  1175. - Added the command line option --timer, which enables the output to std::cout
  1176. of the overall elapsed time during the preprocessing of the given file.
  1177. Fri Jun 13 09:11:29 2003
  1178. - Emitted an error message, if an ellipses was found as a formal macro
  1179. parameter and variadics were disabled.
  1180. - Fixed a false error message, that the last line was not terminated with a
  1181. newline, which occurred, if no output was generated by the last line of the
  1182. source file.
  1183. Thu Jun 12 15:20:22 2003
  1184. - Fixed the recent change in argument expansion for the variadics/C99/C++0x
  1185. mode.
  1186. - Fixed a problem, where an additional whitespace between _Pragma and the
  1187. opening parenthesis resulted in a false error message.
  1188. - Used a pool allocator for the token sequence containers (std::list<>'s),
  1189. which gives a speed gain of more than 60% (while profiling the Order
  1190. library).
  1191. Wed Jun 11 22:18:54 2003
  1192. - Fixed a macro scoping/expansion problem, when a macro returned a full scope
  1193. which is continued on the call site to form a full qualified name, the name
  1194. wasn't recognized correctly:
  1195. # region A
  1196. # define MACRO 1
  1197. # region B
  1198. # define MACRO 2
  1199. # endregion
  1200. # endregion
  1201. # define ID(x) x
  1202. ID(A)::MACRO // 1
  1203. ID(A::B)::MACRO // 2, was expanded to A::B::MACRO
  1204. - Changed the expansion of macro arguments such, that these will be expanded
  1205. only, if the result is to be used for substitution during the expansion
  1206. of the replacement list.
  1207. Wed Jun 11 14:40:29 2003
  1208. - Included a whitespace eating finite state machine (FSM) for minimal
  1209. whitespace in the generated output. This was suggested by Paul Mensonides.
  1210. - Updated the acknowledgement section
  1211. Wed Jun 4 08:03:04 2003
  1212. - Fixed a bug reported by Faisal Vali, which prevented the correct evaluation
  1213. of conditional expressions, if these referenced macro names, which expanded
  1214. to a sequence containing non-expandable tokens.
  1215. - Fixed the above bug for #elif directives too (in the first place this was
  1216. fixed for #if directives only)
  1217. Mon May 26 22:15:40 2003
  1218. - Added missing copyrights in several files.
  1219. - Fixed false output, if a unknown _Pragma were encountered.
  1220. - Fixed a macro expansion problem with qualified names, were constructs like
  1221. the following were not expanded correctly:
  1222. #define ID(x) x
  1223. #region SCOPE
  1224. # define TEST 1
  1225. #endregion
  1226. ID(SCOPE::) TEST // should expand to 1
  1227. - Changed #import semantics for macros from copy semantics to reference
  1228. semantics, i.e. macros are now considered to be implicitly imported into the
  1229. scope, where they are defined. If a macro is imported into another scope and
  1230. the original macro is undefined, the imported macro still exists. Further,
  1231. if the imported macro is expanded, then while rescanning the original macro
  1232. is disabled too:
  1233. #region A
  1234. # define B(x) x
  1235. #endregion
  1236. #import A
  1237. B (A::B) (*) // A::B(*)
  1238. A::B (B) (*) // B(*)
  1239. B (B) (*) // B(*)
  1240. A::B (A::B) (*) // A::B(*)
  1241. - Fixed a recently introduced problem, where placemarker tokens slipped through
  1242. to the output under certain conditions (in variadics/C99/C++0x modes only).
  1243. Mon May 19 16:30:49 2003
  1244. - Fixed a bug, which prevented the recognition of the __lparen__, __rparen__ or
  1245. __comma__ alternative tokens, if these were the first token after an emitted
  1246. #line directive (reported by Vesa Karvonen).
  1247. - Added an optimization, that only those tokens are considered for a macro
  1248. expansion, which may result in an expansion.
  1249. Tue May 13 18:16:26 2003
  1250. - Fixed a newly introduced problem, where a omitted argument consisting out
  1251. of whitespace only were failed to be replaced by a placemarker token. This
  1252. lead to problems with constructs like the following:
  1253. #define paste(a, b, c) a ## b ## c
  1254. paste(1, , 3) // should expand to 13, but expanded to 1## 3
  1255. - Fixed a problem with the tracing support, which throwed an unexpected
  1256. exception if there were too few arguments given while expanding a macro.
  1257. - Allowed to open and to import the global scope ('#region ::' and
  1258. '#import ::').
  1259. - Fixed a bug, if more than one file was given with a --forceinclude command
  1260. line option.
  1261. Sat May 10 21:30:29 2003
  1262. - Added __STDC_FULL_REGION__ and __STDC_CURRENT_REGION__ to the list of not
  1263. undefinable macros.
  1264. - In normal C++ mode and C99 mode the #ifdef/#ifndef and the operator defined()
  1265. should not support qualified names. This is fixed now.
  1266. - Updated the documentation.
  1267. - Fixed minor gcc -Wall compilation warnings.
  1268. - Added better error support for qualified names used as arguments for #ifdef,
  1269. #ifndef and operator defined().
  1270. Sat May 10 09:51:18 2003
  1271. - Removed the feature, that the comma before the ellipsis parameter in a macro
  1272. definition may be omitted.
  1273. - Resolved an issue with the expansion of qualified macros, when these
  1274. qualified names were partially generated by a previous macro expansion
  1275. - Allowed to specify fully qualified names as arguments to the #region directive
  1276. Wed May 7 22:44:21 2003
  1277. - Changed the names of __SCOPE__ and __FULL_SCOPE__ predefined macros to
  1278. __STDC_CURRENT_REGION__ and __STDC_FULL_REGION__ resp. The names are subject
  1279. to change if the #region keyword actually will be renamed to #scope/#module
  1280. or whatever.
  1281. - In C++0x mode it is now possible to omit the last comma before a variadics
  1282. ellipsis in a macro definition:
  1283. #define cat_i(a, b, c, d, e ...) a ## b ## c ## d ## e
  1284. - Fixed a bug in the stringize code, where an ellipsis to stringize resulted in
  1285. stringizing of the first ellipsis parameter only. Preserved the original
  1286. whitespace delimiting in between the ellipsis arguments.
  1287. - Introduced the wave::language_support enum for convenient switching of the
  1288. supported language features throughout the library.
  1289. - Fixed a bug, which prevented the definition of the predefined macro
  1290. __WAVE_HAS_VARRIADICS__, if --variadics were given on the command line.
  1291. Tue May 6 15:49:45 2003
  1292. - Made predefined macros available at every macro scope without qualification.
  1293. - Predefined a new macro in C++0x mode: __STDC_GLOBAL__, which is defined at
  1294. global macro scope only and equals to '1' (integer literal).
  1295. - In C++0x mode there are two new predefined macros:
  1296. __SCOPE__: expands to the last part of the qualified name of the
  1297. current macro scope
  1298. __FULL_SCOPE__: expands to the full qualified name of the current macro
  1299. scope
  1300. Mon May 5 23:02:48 2003
  1301. - Fixed a problem in the new well defined token pasting code, which occurred for
  1302. constructs like the following:
  1303. #define is_empty(...) is_empty_ ## __VA_ARGS__ ## _other
  1304. i.e. where two or more '##' operators were contained in the replacement text.
  1305. - Implemented __comma__, __lparen__ and __rparen__ alternative pp-tokens, which
  1306. may be used as the ',', '(' and ')' tokens during preprocessing. These are
  1307. only converted to there respective string representation in a special
  1308. translation phase after preprocessing. This was proposed by Vesa Karvonen.
  1309. - Changed the macro scoping rules to: "If a qualified name does not find a
  1310. nested name, it is not a qualified name to the preprocessor." This seems to
  1311. be the simplest usable solution for the possible ambiguities.
  1312. - Fixed a bug in the macro expansion engine in C++0x mode, where the skipping
  1313. of whitespace inside of a qualified name wasn't consistent.
  1314. Sun May 4 10:48:53 2003
  1315. - Fixed a bug in the expression grammar, which prevented 'not' to be recognized
  1316. as a valid operator.
  1317. - Qualified names are now supported as parameters to #ifdef and #ifndef too.
  1318. - Remove one specialization of the macro expansion engine. It gets instantiated
  1319. only twice now (for the main input iterator and for list<>'s of tokens.
  1320. - Simplified the required explicit specialization of the defined_grammar
  1321. template. It has to be explicitely instantiated by providing the token type
  1322. only (just as for the explicit instantiations of the other grammars).
  1323. Fri May 2 22:44:27 2003
  1324. - Qualified names are now allowed as parameters to the operator defined() in
  1325. C++0x mode.
  1326. - Separated the defined() functionality into a separate translation unit to
  1327. work around a VC7.1 ICE.
  1328. Fri May 2 15:38:26 2003
  1329. - The C++0x mode now has a special set of predefined macros.
  1330. - The predefined macro __WAVE_HAS_VARIADICS__ is now defined in C99 and C++0x
  1331. modes too (--variadics is implied for these modes).
  1332. - Updated the documentation to reflect the recent changes and additions.
  1333. - In C++0x mode Wave now supports macro scopes:
  1334. - new keywords #region/#endregion/#import
  1335. - qualified macro names
  1336. - In C++0x mode Wave now supports token pasting of unrelated tokens. These are
  1337. concatenated, the result is re-tokenized and inserted into the output stream.
  1338. - Fixed a minor bug in the macro expansion engine, if a qualified function-like
  1339. macro was found in an object-like context.
  1340. - Fixed an issue with well defined token pasting of unrelated tokens.
  1341. Tue Apr 29 08:47:37 2003
  1342. - Fixed a bug in the macro expansion engine, which prevented the expansion
  1343. of a certain macro under specific conditions (if the left of two tokens to
  1344. concatenate were a disabled one (T_NONREPLACABLE_IDENTIFIER), then the
  1345. resulting token was disabled too).
  1346. - Added additional diagnostics to the Wave driver to disambiguate the C99 and
  1347. C++0x modes.
  1348. - Implemented a new API function and a corresponding Wave driver command line
  1349. option, which allows to specify one or more include files to be preprocessed
  1350. before the regular file is preprocessed (the files are processed as normal
  1351. input and all the resulting output is included, before processing the regular
  1352. input file). The Wave driver command line option is --forceinclude (-F).
  1353. - Wave now compiles the Order library from Vesa Karvonen.
  1354. Mon Apr 28 07:57:10 2003
  1355. - Fixed a bug in the macro expansion engine.
  1356. - Removed a lot of (not needed) whitespace in the generated output (but still
  1357. not optimal).
  1358. Sat Apr 26 20:30:53 2003
  1359. - Fixed a bug in the initialization code of the Slex lexer while working in
  1360. C99 mode (reported by Reece Dunn).
  1361. Fri Apr 18 08:37:35 2003
  1362. - Fixed the handling of option_value's inside of pragma directives:
  1363. _Pragma("wave option(option_value)")
  1364. inside which all all whitespaces were deleted.
  1365. - Started to implement experimental macro scoping.
  1366. Thu Apr 10 10:20:07 2003
  1367. - Fixed a problem with the #pragma wave stop(), where only the first token
  1368. inside the stop directive was output, when the preprocessor stops in result
  1369. of this pragma.
  1370. - Implemented a new #pragma wave system(command), which spawns a new operation
  1371. system command exactly as specified inside the system directive, intercepts
  1372. the stdout output of this process, retokenizes this output and inserts the
  1373. generated token sequence in place of the original #pragma or operator _Pragma.
  1374. Please note that the generated output is _not_ subject to any macro expansion
  1375. before its insertion as the replacement of the pragma itself. If you need to
  1376. macro expand the replacement text, you always may force this by writing:
  1377. #define SCAN(x) x
  1378. SCAN(_Pragma("wave system(...)"))
  1379. which re-scans the replacement once.
  1380. - Replaced the Wave position_iterator with the boost::spirit::position_iterator
  1381. (without any problems!).
  1382. Mon Apr 7 10:45:30 2003
  1383. - Fixed macro_trace_policies::expand_object_like_macro not to be called with
  1384. the formal arguments as one of its parameters.
  1385. - Updated the documentation to reflect the changes needed for the tracing
  1386. stuff.
  1387. Mon Mar 31 19:07:05 2003
  1388. - Fixed variadics support in the trace output.
  1389. - Fixed preprocessing of operator _Pragma() before it's execution.
  1390. - Added _Pragma("wave stop(errmsg)") (#pragma wave stop(errmsg)) to allow
  1391. diagnostics output from inside macro expansion.
  1392. - Fixed operator _Pragma for unknown pragmas (these are simply put through to
  1393. the output).
  1394. - Implemented a maximal possible include nesting depth to avoid an out of
  1395. memory error. The initial value for this is configurable through the compile
  1396. time constant WAVE_MAX_INCLUDE_LEVEL_DEPTH, which defaults to 1024, if not
  1397. given.
  1398. Additionally this may be enlarged through a new command line option:
  1399. -n/--nesting (Wave driver only).
  1400. Sun Mar 30 20:40:17 2003
  1401. - Implemented the predefined macro __INCLUDE_LEVEL__, which expands to a
  1402. decimal integer constant that represents the depth of nesting in include
  1403. files. The value of this macro is incremented on every '#include' directive
  1404. and decremented at every end of file.
  1405. - Implemented the operator _Pragma(). It is recognized in C99 mode and whenever
  1406. variadics are enabled.
  1407. Sun Mar 30 08:30:12 2003
  1408. - Changed the tracing format to be more readable.
  1409. - Changed the tracing #pragma's to
  1410. enable tracing: #pragma wave trace(enable)
  1411. disable tracing: #pragma wave trace(disable)
  1412. or
  1413. enable tracing: #pragma wave trace(1)
  1414. disable tracing: #pragma wave trace(0)
  1415. - Changed the semantics of the -t (--traceto) switch. Without any -t switch
  1416. there isn't generated any trace output at all, even, if the corresponding
  1417. #pragma directives are found. To output the trace info to a file, the
  1418. '-t file' syntax may be used, to output to std::cerr, the '-t-' (or '-t -')
  1419. syntax may be used.
  1420. Fri Mar 28 17:27:25 2003
  1421. - Added a new template parameter to the wave::context<> object, which allows
  1422. to specify a policy for controlling the macro expansion tracing. The default
  1423. macro_trace_policy does no tracing at all. This way one can add specific
  1424. macro expansion tracing facilities to the library.
  1425. - #pragma directives starting with a STDC identifier are no longer not macro
  1426. expanded in C++ mode, in C++ mode these are now expanded as usual, in C99
  1427. mode not.
  1428. - The tracing can be enabled/disabled from inside the preprocessed stream by
  1429. inserting a special #pragma directive:
  1430. enable tracing: #pragma wave_option(trace: enable)
  1431. disable tracing: #pragma wave_option(trace: disable)
  1432. - The Wave driver now allows to specify a destination for the macro expansion
  1433. tracing trough a new command line switch: '-t path' or '--traceto path'. If
  1434. this option isn't given, the trace output goes to stderr.
  1435. - The Wave driver now allows to specify the name of the file, where the
  1436. preprocessed result stream is to be saved: '-o path' or '--output path'. If
  1437. this option is not given, the output goes to stdout.
  1438. Wed Mar 26 20:39:11 2003
  1439. - Fixed a problem with alternative tokens (as 'and', 'or' etc.) and trigraph
  1440. tokens, which were not correctly recognized inside #if/#elif expressions.
  1441. - Alternative tokens ('and', 'or' etc.) are no longer subject to a possible
  1442. macro redefinition.
  1443. - Fixed the special handling of 'true' and 'false' during the macro expansion
  1444. of #if/#elif expressions.
  1445. Tue Mar 25 12:12:35 2003
  1446. - Released Wave V0.9.1
  1447. Mon Mar 24 13:34:27 2003
  1448. - Implemented placemarkers, i.e. Wave now supports empty arguments during macro
  1449. invocations. This must be enabled by means of a new pp constant:
  1450. WAVE_SUPPORT_VARIADICS_PLACEMARKERS which must be defined to enable the
  1451. placemarker and variadics code and by defining the command line option
  1452. '--variadics' (Wave driver only).
  1453. - Implemented variadics, i.e. Wave now supports macros with variable parameter
  1454. counts. This must be enabled by means of the pp constant:
  1455. WAVE_SUPPORT_VARIADICS_PLACEMARKERS which must be defined to enable the
  1456. placemarker and variadics code and by defining the command line option
  1457. '--variadics' (Wave driver only).
  1458. - Implemented a C99 mode. This mode enables variadics and placemarkers by
  1459. default and rejects some specific C++ tokens (as the alternate keywords and
  1460. '::', '->*', '.*'). This mode must be enabled by the means of the pp constant
  1461. WAVE_SUPPORT_VARIADICS_PLACEMARKERS (see above). The C99 mode is enabled by
  1462. the command line switch '--c99' (Wave driver only).
  1463. This involved some changes in the C99/C++ lexers.
  1464. Fri Mar 21 16:02:10 2003
  1465. - Fixed a bug in the macro expansion engine, which prevented the expansion of
  1466. macros, which name was concatenated out of a identifier and a integer
  1467. followed directly by another identifier:
  1468. #define X() X_ ## 0R() // note: _zero_ followed by 'R'
  1469. #define X_0R() ...
  1470. X() // expanded to: X_0R(), but should expand to ...
  1471. This is a problem resulting from the fact, that the Standard requires the
  1472. preprocessor to act on so called pp-tokens, but Wave acts on C++ tokens.
  1473. Thu Mar 20 21:39:21 2003
  1474. - Fixed a problem with expression parsing (#if/#elif constant expressions),
  1475. which failed to produce an error message for expressions like
  1476. #if 1 2 3 4 5
  1477. i.e. where the token sequence starts with a valid constant expression, but
  1478. the remainder of the line contained other tokens than whitespace.
  1479. - Integrated the flex_string class from Andrei Alexandrescu (published on the
  1480. CUJ site) to get COW-string behaviour for the token values and position
  1481. filename strings. This resulted in a major overall speedup (about 2-3 times
  1482. faster in dependency of the complexity of pp usage in the input stream).
  1483. - Fixed a bug, which reported ill formed #if/#else expressions as errors, even
  1484. if the current if block status (conditional compilation status) is false.
  1485. - Added a warning, if the last line of a file does not end with a newline.
  1486. - Improved error recognition and handling for malformed preprocessor directives
  1487. Mon Mar 17 19:53:29 2003
  1488. - Fixed a concatenation problem: constructs like a##b##c where expanded
  1489. incorrectly.
  1490. - Optimized the recognition of pp directives:
  1491. - the parser is used only, if the next non-whitespace token starts a pp
  1492. directive
  1493. - null directives now are recognized without calling the parser
  1494. - the parser isn't called anymore, if the if_block_status is false and no
  1495. conditional pp directive (#if etc.) is to be recognized.
  1496. These optimizations give a speed improvement by upto 40%.
  1497. - Removed adjacent whitespace during macro expansion (needs to be revised,
  1498. since there is some whitespace left, which may be removed)
  1499. Sun Mar 16 23:19:11 2003
  1500. - Fixed a problem with include paths given on the command line, if the file
  1501. to preprocess was not given as a full path (driver executable).
  1502. - Fixed a problem with path names containing blanks (driver executable).
  1503. - Cleaned command line and argument handling (driver executable).
  1504. - Fixed a severe memory leak.
  1505. - Fixed a bug, if a C++ keyword was used as a macro name or macro parameter
  1506. name, which prevented the macro recognition and expansion to function
  1507. properly.
  1508. - Implemented the WAVE_SUPPORT_MS_EXTENSIONS compiler switch for the re2c
  1509. generated lexer too.
  1510. - Fixed a problem, which caused an internal T_PLACEHOLDER token to show up
  1511. outside the macro replacement engine.
  1512. - Fixed a problem with macro #include directives, which prevents to find the
  1513. file to include, if after the macro expansion the token sequence representing
  1514. the filename began or ended with at least one whitespace token.
  1515. - Fixed a problem, which caused a false error message if the '#' character was
  1516. to be concatenated with an arbitrary other token.
  1517. - The concatenation of a whitespace token with an arbitrary other token was
  1518. reported as illegal token pasting (but it is certainly not).
  1519. Sat Mar 15 21:43:56 2003
  1520. - Added a default constructor to the wave::util::file_position template.
  1521. - Report the concatenation of unrelated tokens as an error.
  1522. - Finished the documentation.
  1523. Fri Mar 14 20:14:18 2003
  1524. - More work on documentation
  1525. - Changed file_position to expose accessor functions (the member variables are
  1526. marked as private now). This opens up the possibility to provide another
  1527. file_position implementation, which may be optimized in some way.
  1528. - Fixed a problem with the token name table, the alternate and trigraph token
  1529. names were printed incorrectly.
  1530. - Fixed a bug, which prevented the correct recognition of 'defined X' (without
  1531. parenthesises).
  1532. - Fixed a bug, which allowed to redefine and undefine the predefined name
  1533. 'defined'.
  1534. - Fixed a bug, which prevents the correct recognition of a macro based #include
  1535. directive, if it expands to something like #include <...>.
  1536. - Fixed a bug, which prevented the recognition of duplicate macro parameter
  1537. names.
  1538. - Removed the insertion of additional whitespace inside of string literals
  1539. (during stringizing).
  1540. Wed Mar 12 19:16:40 2003
  1541. - Fixed a bug, which prevented the instantiation of the wave::context object
  1542. with auxiliary iterators. The token type isn't coupled anymore with the
  1543. iterator type.
  1544. This required some changes in the interface:
  1545. - The wave::context object now has three template parameters (the iterator
  1546. type, the token type and the input policy type)
  1547. - The token type does not have the iterator type as it's template parameter
  1548. anymore.
  1549. - Implemented a new position_iterator template on top of the iterator_adaptor<>
  1550. template to make it work even for input_iterator type iterators.
  1551. - Fixed a bug in the regular expressions for the Slex lexer.
  1552. - The function 'set_sys_include_delimiter()' was renamed to
  1553. 'set_sysinclude_delimiter()' to better fit the naming scheme of the other
  1554. functions.
  1555. - Wrote more documentation
  1556. - Unified the different token definitions of the lexers, so that there is only
  1557. one token type left. This required some changes in the interface:
  1558. - There is no need anymore to explicitly specify the namespace of the token
  1559. type to use.
  1560. - Added the command line option -P to the Wave driver program, which predefines
  1561. a macro (i.e. defines it such, that is _not_ undefinable through an #undef
  1562. directive from inside the preprocessed program).
  1563. Sat Mar 8 07:46:43 2003
  1564. - Released Wave 0.9.0
  1565. Thu Mar 6 20:02:44 2003
  1566. - Compiled Wave with IntelV7.0/DinkumwareSTL (from VC6sp5)
  1567. - Fixed new compilation problems with gcc -Wall
  1568. - Fixed the list_includes and cpp_tokens samples to compile and link correctly.
  1569. - Fixed a bug, where a wrong filename was reported by the generated #line
  1570. directive.
  1571. - Fixed a bug, where the __FILE__ macro was expanded without '\"' around the
  1572. filename.
  1573. - The generated #line directives and the expanded __FILE__ macro now report
  1574. the filename in a native (to the system) format. Additionally the generated
  1575. string literals are now escaped correctly.
  1576. Wed Mar 5 21:11:14 2003
  1577. - Reorganized the directory structure to mirror the namespace structure of the
  1578. library
  1579. - Fixed a bug, where the complete input after the first found #include
  1580. directive were eaten up.
  1581. - Fixed a bug, where the __LINE__ macro expanded to a incorrect linenumber, if
  1582. the __LINE__ macro was encountered on a line after a '\\' '\n' sequence.
  1583. Tue Mar 4 11:50:24 2003
  1584. - The new name of the project is 'Wave'.
  1585. - Adjusted namespaces, comments etc. to reflect the new name.
  1586. - Added the command line option -U [--undefine], which allows to remove one of
  1587. the predefined macros (except __LINE__, __FILE__, __DATE__, __TIME__,
  1588. __STDC__ and __cplusplus)
  1589. Sun Mar 2 20:10:04 2003
  1590. - Fixed a bug while expanding macros without any definition part (empty macros)
  1591. - The pp-iterator will not emit a newline for every recognized preprocessing
  1592. directive anymore. The generated output is much more condensed this way.
  1593. - The pp-iterator now emits #line directives at appropriate places.
  1594. - Added an additional parser to the library, which may be used to parse macros
  1595. given in the command line syntax, i.e. something like 'MACRO(x)=definition'.
  1596. - Added the possibility to the cpp driver sample, to add macros from the
  1597. command line through the -D command line switch.
  1598. - Martin Wille contributed a test script to allow automatic testing of the
  1599. cpp driver sample by feeding all files contained in the test_files directory
  1600. through the cpp driver and comparing the generated output with the
  1601. corresponding expectations.
  1602. - Added config file support to allow for predefined option sets (for instance
  1603. for the emulation of other compilers)
  1604. - Changed the way, how include paths are defined. It resembles now the
  1605. behaviour of gcc.
  1606. Any directories specified with '-I' options before an eventually given '-I-'
  1607. option are searched only for the case of '#include "file"', they are not
  1608. searched for '#include <file>' directives. If additional directories are
  1609. specified with '-I' options after a '-I-' option was given, these directories
  1610. are searched for all '#include' directives. In addition, the '-I-' option
  1611. inhibits the use of the current directory as the first search directory for
  1612. '#include "file"'. Therefore, the current directory is searched only if it is
  1613. requested explicitly with '-I.'. Specifying both '-I-' and '-I.' allows to
  1614. control precisely which directories are searched before the current one
  1615. and which are searched after.
  1616. - Added config file support to the cpp driver.
  1617. - stored not only the current 'name' of a file (given eventually by a #line
  1618. directive) but in parallel the actual full file system name of this file too.
  1619. Tue Feb 25 21:44:19 2003
  1620. - Fixed the warnings emitted by gcc -Wall.
  1621. - Fixed a bug in the cpp grammar, which causes to failing the recognition of
  1622. certain preprocessor directives if at the end of this directive were placed
  1623. a C++ comment.
  1624. - Simplified and extended the insertion of whitespace tokens at places, where
  1625. otherwise two adjacent tokens would form a new different token, if
  1626. retokenized.
  1627. Mon Feb 24 19:13:46 2003
  1628. - defined() functionality was broken
  1629. - added missing typename keywords
  1630. - added missing using namespace statements, where appropriate
  1631. - added a warning, when a predefined macro is to be undefined (by an #undef
  1632. directive)
  1633. - removed the 'compile in C mode' hack for the re2c generated lexer (VC7.1
  1634. (final beta) is not able to compile it with optimizations switched on
  1635. anyway :( )
  1636. - compiled with gcc 3.2 and Intel V7.0 (20030129Z)
  1637. Sun Feb 23 23:39:33 2003
  1638. - Fixed a couple of 'missing typename' bugs (thanks to Martin Wille)
  1639. - Added code to insert whitespace at places, where otherwise two adjacent
  1640. tokens would form a new different token, if retokenized.
  1641. - Fixed a severe macro expansion bug.
  1642. - Added the handling of invalid or not allowed universal character values
  1643. inside of string literals and character literals.
  1644. Sat Feb 22 20:52:06 2003
  1645. - Bumped version to 0.9.0
  1646. - Added test for invalid or not allowed universal character values (see
  1647. C++ Standard 2.2.2 [lex.charset] and Annex E)
  1648. - Fixed a bug with newlines between a macro name and the opening parenthesis
  1649. during the macro expansion and a bug with newlines inside the parameter list
  1650. during the macro expansion.
  1651. - Added the following predefined macros:
  1652. __SPIRIT_PP__
  1653. expands to the version number of the pp-iterator lib (i.e. 0x0090 for
  1654. V0.9.0)
  1655. __SPIRIT_PP_VERSION__
  1656. expands to the full version number of the pp-iterator lib (i.e.
  1657. 0x00900436 for V0.9.0.436)
  1658. __SPIRIT_PP_VERSION_STR__
  1659. expands to the full version string of the pp-iterator lib (i.e.
  1660. "0.9.0.436")
  1661. Fri Feb 21 22:09:04 2003 (feature complete!)
  1662. - Allowed to optionally compile the Re2c generated lexer in 'C' mode, because
  1663. at least the VC7.1 (final beta) compiler has problems to compile it in 'C++'
  1664. mode with optimizations switch on
  1665. - Implemented #error and #warning (optional) directives (C++ standard 16.5).
  1666. Additionally there are now allowed the following preprocessor configuration
  1667. constants:
  1668. CPP_PREPROCESS_ERROR_MESSAGE_BODY
  1669. if defined, preprocesses the message body of #error and #warning
  1670. directives to allow for better diagnostics.
  1671. CPP_SUPPORT_WARNING_DIRECTIVE
  1672. if defined, then the #warning directive will be recognized such, that
  1673. a warning with the given message will be issued
  1674. - Adjusted the error handling for the Re2c generated C++ lexer, so that any
  1675. error inside the lexer is now propagated as an cpplexer_exception.
  1676. - Implemented the #line directive (C++ standard 16.4)
  1677. - Implemented #pragma directive (C++ standard 16.6)
  1678. Additionally there are now allowed the following preprocessor configuration
  1679. constants:
  1680. CPP_RETURN_PRAGMA_DIRECTIVES
  1681. if defined, then the whole pragma directive is returned as a token
  1682. sequence to the caller, if not defined the whole pragma directive is
  1683. skipped
  1684. CPP_PREPROCESS_PRAGMA_BODY
  1685. if defined, then the #pragma body will be preprocessed
  1686. - Implemented #include directive with macro arguments (C++ standard 16.2.4)
  1687. - Made the namespace structure finer granulated to leave only the main
  1688. interface classes in the main namespace cpp. All other classes are moved into
  1689. sub-namespaces to reflect the logical dependencies
  1690. - Reorganized the public interface of the context<> template class, made all
  1691. non relevant functions into the protected.
  1692. - Implemented predefined macros (__LINE__ et.al.) (C++ standard 16.8)
  1693. - Further documentation work
  1694. Wed Feb 19 23:44:47 2003
  1695. - Corrected a lot of bugs in the macro expansion engine, which now should be
  1696. conformant to the C++ standard.
  1697. - # (null) directive (C++ standard 16.7)
  1698. Sun Feb 16 08:40:38 2003
  1699. - Added a macro expansion engine which expands macros with arguments
  1700. C++ standard 16.3 [cpp.replace]
  1701. - Added a new sample: cpp_tokens. This sample preprocesses a given file and
  1702. prints out the string representations of all tokens returned from the pp
  1703. iterator
  1704. - Added documentation (to be continued!)
  1705. - Added a couple of small test files to test elementary functionality
  1706. (the tests mainly were contributed by Paul Mensonides)
  1707. - The main cpp sample is now a simple preprocessor driver program, which
  1708. outputs the string representation of the preprocessed input stream. Use
  1709. cpp --help to get a hint, how to use it.
  1710. - Fixed a bug in the preprocessor grammar which failed to recognize a pp
  1711. statement, if there was a C++ comment at the end of the line
  1712. - Added '#' operator (C++ standard 16.3.2) [cpp.stringize]
  1713. - Fixed a bug in the slex based C++ lexer to handle the concatenation
  1714. characters correctly ('\\' followed by a '\n')
  1715. Sun Feb 9 23:01:00 2003
  1716. - Improved error handling for #if et.al.
  1717. - Fixed a pair of lexer errors
  1718. - Implemented the #if/#elif statements, the sample now contains a complete C++
  1719. expression evaluation engine (for the calculation of the outcome of the
  1720. #if/#elif statement conditions)
  1721. - Implemented macro replacement (with parameters)
  1722. - Implemented the '##' [cpp.concat] operator
  1723. - Implemented the defined() [cpp.cond] operator
  1724. Sun Feb 2 23:28:24 2003
  1725. - Implemented the #define, #undef, #ifdef, #ifndef, #else and #endif
  1726. statements
  1727. - Added optional parse tree output as xml stream (controlled through the config
  1728. pp constant CPP_DUMP_PARSE_TREE)
  1729. Fri Jan 31 21:30:55 2003
  1730. - Fixed different minor issues and a border case (#include statement at the
  1731. last line of a included file)
  1732. Wed Jan 29 21:13:32 2003
  1733. - Fixed exception handling to report the correct error position
  1734. - Fixed another bug in the stream position calculation scheme
  1735. - Added a more elaborate sample 'list_includes' which lists the dependency
  1736. information for a given source file (see test/list_includes/readme.txt).
  1737. Sat Jan 18 22:01:03 2003
  1738. - Fixed a bug in the stream position calculation scheme
  1739. - Made cpp::exceptions more standard conformant (added 'throw()' at appropriate
  1740. places)
  1741. - Overall housekeeping :-)
  1742. Wed Jan 15 21:54:20 2003
  1743. Changes since project start (still 0.5.0)
  1744. - Added #include <...> and #include "..." functionality
  1745. - pp directives are now generally recognized
  1746. - Decoupled the C++ lexers and the pp grammar to separate compilation
  1747. units (optionally) to speed up compilation (a lot!)
  1748. Thu Jan 2 12:39:30 2003
  1749. A completely new version 0.5.0 of the C preprocessor was started. It's a
  1750. complete rewrite of the existing code base. The main differences are:
  1751. - The preprocessor is now implemented as an iterator, which returns the
  1752. current preprocessed token from the input stream.
  1753. - The preprocessing of include files isn't implemented through recursion
  1754. anymore. This follows directly from the first change. As a result of this
  1755. change the internal error handling is simplified.
  1756. - The C preprocessor iterator itself is feeded by a new unified C++ lexer
  1757. iterator. BTW, this C++ lexer iterator could be used standalone and is not
  1758. tied to the C preprocessor. There are two different C++ lexers implemented
  1759. now, which are functionally completely identical. These expose a similar
  1760. interface, so the C preprocessor could be used with both of them.
  1761. - The C++ lexers integrated into the C preprocessor by now are:
  1762. Slex: A spirit based table driven regular expression lexer (the slex
  1763. engine originally was written by Dan Nuffer and is available as a
  1764. separate Spirit sample).
  1765. Re2c: A C++ lexer generated with the help of the re2c tool. This C++
  1766. lexer was written as a sample by Dan Nuffer too.
  1767. It isn't hard to plug in additional different C++ lexers. There are plans to
  1768. integrate a third one written by Juan Carlos Arevalo-Baeza, which is
  1769. available as a Spirit sample.
  1770. -------------------------------------------------------------------------------
  1771. Tue Feb 12 22:29:50 2002
  1772. Changes from 0.2.3 to 0.2.4:
  1773. - Moved XML dumping functions to the main Spirit directory
  1774. - Fixed operator '##', it was not correctly implemented somehow :-(
  1775. Sun Feb 10 21:07:19 2002
  1776. Changes from 0.2.2 to 0.2.3:
  1777. - Implemented concatenation operator '##' (cpp.concat)
  1778. - Removed defined() functionality for Intel compiler (it ICE's) until this
  1779. issue is resolved
  1780. - Separated code for dumping a parse tree to XML for inclusion in the main
  1781. Spirit headers
  1782. Thu Jan 17 23:51:21 2002
  1783. Changes from 0.2.1 to 0.2.2:
  1784. - Fixes to compile with gcc 2.95.2 and gcc 3.0.2 (thanks Dan Nuffer)
  1785. - Reformatted the grammars to conform to a single formatting guideline
  1786. - Assigned explicit rule_id's to the rules of cpp_grammar, so that the
  1787. access code to the embedded definition class is not needed anymore
  1788. - Fixed a remaining const problem
  1789. Tue Jan 15 23:40:40 2002
  1790. Changes from 0.2.0 to 0.2.1:
  1791. - Corrected handling of defined() operator
  1792. - In preprocessing conditionals undefined identifiers now correctly
  1793. replaced by '0'
  1794. - Fixed several const problems
  1795. - Added parse_node_iterator for traversing one node in a parse_tree
  1796. without going deeper down the hierarchy than one level (this is useful,
  1797. if all inspected tokens arranged along a single node in the parse tree.
  1798. The main difference to the parse_tree_iterator is, that the underlying
  1799. iterator generally can be adjusted correctly after advancing the attached
  1800. parse_node_iterator
  1801. - Fixed a problem with gcc 2.95.2, which doesn't have a <sstream> header
  1802. - Prepared usage of slex for lexer states
  1803. Sun Jan 13 10:21:16 2002
  1804. Changes from 0.1.0 to 0.2.0:
  1805. - Added operator 'defined()'
  1806. - Added directive '#warning'
  1807. - Corrected error reporting
  1808. - Added command line option -I- for finer control of the searched include
  1809. directories (-I and -I- should now work as in gcc, see readme.html for
  1810. more info)
  1811. - Corrected conditional preprocessing (should be fully functional now)
  1812. - Fixed existing code base for changes made in parse tree support
  1813. - Moved parse tree utility functions to a separate header (prepared for
  1814. inclusion to the Spirit main library)