From be3dc4cee63da92cfa1fa44a0bf90ab11ec7aaca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Nov 2016 16:57:48 +0200 Subject: Start switch to build2 --- cli/.gitignore | 1 + cli/buildfile | 59 ++++++- cli/cli-8.0.sln | 20 --- cli/cli-8.0.vcproj | 391 ------------------------------------------- cli/cli-9.0.sln | 20 --- cli/cli-9.0.vcproj | 377 ----------------------------------------- cli/cli.cxx | 12 +- cli/context.cxx | 2 +- cli/context.hxx | 6 +- cli/generator.cxx | 24 +-- cli/generator.hxx | 4 +- cli/header.cxx | 2 +- cli/header.hxx | 2 +- cli/html.cxx | 2 +- cli/html.hxx | 2 +- cli/inline.cxx | 2 +- cli/inline.hxx | 2 +- cli/lexer.cxx | 2 +- cli/lexer.hxx | 4 +- cli/makefile | 108 ------------ cli/man.cxx | 2 +- cli/man.hxx | 2 +- cli/name-processor.cxx | 4 +- cli/name-processor.hxx | 2 +- cli/option-types.cxx | 2 +- cli/options.cli | 2 +- cli/options.cxx | 2 +- cli/options.hxx | 4 +- cli/parser.cxx | 53 ++++-- cli/parser.hxx | 8 +- cli/runtime-header.cxx | 2 +- cli/runtime-header.hxx | 2 +- cli/runtime-inline.cxx | 2 +- cli/runtime-inline.hxx | 2 +- cli/runtime-source.cxx | 2 +- cli/runtime-source.hxx | 2 +- cli/semantics.hxx | 14 +- cli/semantics/class.cxx | 2 +- cli/semantics/class.hxx | 2 +- cli/semantics/doc.cxx | 2 +- cli/semantics/doc.hxx | 2 +- cli/semantics/elements.cxx | 2 +- cli/semantics/expression.cxx | 2 +- cli/semantics/expression.hxx | 2 +- cli/semantics/namespace.cxx | 2 +- cli/semantics/namespace.hxx | 2 +- cli/semantics/option.cxx | 2 +- cli/semantics/option.hxx | 2 +- cli/semantics/unit.cxx | 2 +- cli/semantics/unit.hxx | 6 +- cli/source.cxx | 4 +- cli/source.hxx | 2 +- cli/token.hxx | 2 +- cli/traversal.hxx | 14 +- cli/traversal/class.cxx | 2 +- cli/traversal/class.hxx | 4 +- cli/traversal/doc.hxx | 4 +- cli/traversal/elements.cxx | 2 +- cli/traversal/elements.hxx | 2 +- cli/traversal/expression.hxx | 4 +- cli/traversal/namespace.cxx | 2 +- cli/traversal/namespace.hxx | 4 +- cli/traversal/option.cxx | 4 +- cli/traversal/option.hxx | 4 +- cli/traversal/unit.cxx | 2 +- cli/traversal/unit.hxx | 4 +- cli/txt.cxx | 2 +- cli/txt.hxx | 2 +- 68 files changed, 197 insertions(+), 1046 deletions(-) create mode 100644 cli/.gitignore delete mode 100644 cli/cli-8.0.sln delete mode 100644 cli/cli-8.0.vcproj delete mode 100644 cli/cli-9.0.sln delete mode 100644 cli/cli-9.0.vcproj delete mode 100644 cli/makefile (limited to 'cli') diff --git a/cli/.gitignore b/cli/.gitignore new file mode 100644 index 0000000..573c0c4 --- /dev/null +++ b/cli/.gitignore @@ -0,0 +1 @@ +cli diff --git a/cli/buildfile b/cli/buildfile index 95f5d14..e50cac9 100644 --- a/cli/buildfile +++ b/cli/buildfile @@ -1,10 +1,57 @@ +# file : buildfile +# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +# license : MIT; see accompanying LICENSE file + import libs = libcutl%lib{cutl} -sema = semantics/{class doc elements expression namespace option unit} -trav = traversal/{class elements namespace option unit} +exe{cli}: \ + { cxx}{ cli } \ + {hxx cxx}{ context } \ + {hxx cxx}{ generator } \ + {hxx cxx}{ header } \ + {hxx cxx}{ html } \ + {hxx cxx}{ inline } \ + {hxx ixx cxx}{ lexer } \ + {hxx cxx}{ man } \ + {hxx cxx}{ name-processor } \ + {hxx ixx cxx}{ options } \ + {hxx cxx}{ option-types } \ + {hxx cxx}{ parser } \ + {hxx cxx}{ runtime-header } \ + {hxx cxx}{ runtime-inline } \ + {hxx cxx}{ runtime-source } \ + {hxx }{ semantics } \ + {hxx cxx}{ source } \ + {hxx ixx }{ token } \ + {hxx }{ traversal } \ + {hxx cxx}{ txt } \ +semantics/{hxx cxx}{ class } \ +semantics/{hxx cxx}{ doc } \ +semantics/{hxx cxx}{ elements } \ +semantics/{hxx cxx}{ expression } \ +semantics/{hxx cxx}{ namespace } \ +semantics/{hxx cxx}{ option } \ +semantics/{hxx txx cxx}{ unit } \ +traversal/{hxx cxx}{ class } \ +traversal/{hxx }{ doc } \ +traversal/{hxx cxx}{ elements } \ +traversal/{hxx }{ expression } \ +traversal/{hxx cxx}{ namespace } \ +traversal/{hxx cxx}{ option } \ +traversal/{hxx cxx}{ unit } \ + $libs + +# Generated options parser. +# +{hxx ixx cxx}{options}: cli{options} -exe{cli}: cxx{cli generator html lexer name-processor parser runtime-inline \ -source context header inline man options runtime-header runtime-source \ -txt option-types $sema $trav} $libs +if $cli.configured +{ + cli.options += -I $src_root --include-with-brackets --include-prefix cli \ +--guard-prefix CLI --generate-file-scanner --generate-specifier \ +--reserved-name stdout +} -cxx.poptions += -I$out_base -I$src_base +# Include generated cli files into the distribution. +# +{hxx ixx cxx}{options}: dist = true diff --git a/cli/cli-8.0.sln b/cli/cli-8.0.sln deleted file mode 100644 index 42fc1e0..0000000 --- a/cli/cli-8.0.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cli", "cli-8.0.vcproj", "{FEAC6729-67CD-410A-83F2-E6258FA2301F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FEAC6729-67CD-410A-83F2-E6258FA2301F}.Debug|Win32.ActiveCfg = Debug|Win32 - {FEAC6729-67CD-410A-83F2-E6258FA2301F}.Debug|Win32.Build.0 = Debug|Win32 - {FEAC6729-67CD-410A-83F2-E6258FA2301F}.Release|Win32.ActiveCfg = Release|Win32 - {FEAC6729-67CD-410A-83F2-E6258FA2301F}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/cli/cli-8.0.vcproj b/cli/cli-8.0.vcproj deleted file mode 100644 index f2121d3..0000000 --- a/cli/cli-8.0.vcproj +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cli/cli-9.0.sln b/cli/cli-9.0.sln deleted file mode 100644 index 57aa4e1..0000000 --- a/cli/cli-9.0.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cli", "cli-9.0.vcproj", "{E1FC87B8-F4C2-401B-90DF-436A228F7260}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E1FC87B8-F4C2-401B-90DF-436A228F7260}.Debug|Win32.ActiveCfg = Debug|Win32 - {E1FC87B8-F4C2-401B-90DF-436A228F7260}.Debug|Win32.Build.0 = Debug|Win32 - {E1FC87B8-F4C2-401B-90DF-436A228F7260}.Release|Win32.ActiveCfg = Release|Win32 - {E1FC87B8-F4C2-401B-90DF-436A228F7260}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/cli/cli-9.0.vcproj b/cli/cli-9.0.vcproj deleted file mode 100644 index 51ae1b1..0000000 --- a/cli/cli-9.0.vcproj +++ /dev/null @@ -1,377 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cli/cli.cxx b/cli/cli.cxx index cf4676f..5adca18 100644 --- a/cli/cli.cxx +++ b/cli/cli.cxx @@ -5,17 +5,17 @@ #include #include -#include // std::auto_ptr +#include // unique_ptr #include #include #include -#include +#include -#include "options.hxx" -#include "parser.hxx" -#include "generator.hxx" +#include +#include +#include using namespace std; using namespace cutl; @@ -97,7 +97,7 @@ main (int argc, char* argv[]) // Parse and generate. // parser p (include_paths); - auto_ptr unit (p.parse (ifs, path)); + unique_ptr unit (p.parse (ifs, path)); // Merge documentation variables from the command line. // diff --git a/cli/context.cxx b/cli/context.cxx index a051000..7cec6e3 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -10,7 +10,7 @@ #include #include -#include "context.hxx" +#include using namespace std; diff --git a/cli/context.hxx b/cli/context.hxx index cd83421..553a256 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -17,9 +17,9 @@ #include #include -#include "options.hxx" -#include "semantics.hxx" -#include "traversal.hxx" +#include +#include +#include using std::endl; diff --git a/cli/generator.cxx b/cli/generator.cxx index 3a0a55b..f5f572e 100644 --- a/cli/generator.cxx +++ b/cli/generator.cxx @@ -13,21 +13,21 @@ #include #include -#include "header.hxx" -#include "inline.hxx" -#include "source.hxx" +#include +#include +#include -#include "runtime-header.hxx" -#include "runtime-inline.hxx" -#include "runtime-source.hxx" +#include +#include +#include -#include "man.hxx" -#include "html.hxx" -#include "txt.hxx" +#include +#include +#include -#include "context.hxx" -#include "generator.hxx" -#include "name-processor.hxx" +#include +#include +#include using namespace std; using namespace cutl; diff --git a/cli/generator.hxx b/cli/generator.hxx index c892f96..d74def8 100644 --- a/cli/generator.hxx +++ b/cli/generator.hxx @@ -6,8 +6,8 @@ #ifndef CLI_GENERATOR_HXX #define CLI_GENERATOR_HXX -#include "options.hxx" -#include "semantics/unit.hxx" +#include +#include class generator { diff --git a/cli/header.cxx b/cli/header.cxx index 4286df6..41bdab5 100644 --- a/cli/header.cxx +++ b/cli/header.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include "header.hxx" +#include using namespace std; diff --git a/cli/header.hxx b/cli/header.hxx index defb344..780a478 100644 --- a/cli/header.hxx +++ b/cli/header.hxx @@ -6,7 +6,7 @@ #ifndef CLI_HEADER_HXX #define CLI_HEADER_HXX -#include "context.hxx" +#include void generate_header (context&); diff --git a/cli/html.cxx b/cli/html.cxx index 2d018e0..be68588 100644 --- a/cli/html.cxx +++ b/cli/html.cxx @@ -6,7 +6,7 @@ #include #include -#include "html.hxx" +#include using namespace std; diff --git a/cli/html.hxx b/cli/html.hxx index 93708f8..0015381 100644 --- a/cli/html.hxx +++ b/cli/html.hxx @@ -6,7 +6,7 @@ #ifndef CLI_HTML_HXX #define CLI_HTML_HXX -#include "context.hxx" +#include void generate_html (context&); diff --git a/cli/inline.cxx b/cli/inline.cxx index bb54962..268655b 100644 --- a/cli/inline.cxx +++ b/cli/inline.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include "inline.hxx" +#include namespace { diff --git a/cli/inline.hxx b/cli/inline.hxx index 90986c5..28f3428 100644 --- a/cli/inline.hxx +++ b/cli/inline.hxx @@ -6,7 +6,7 @@ #ifndef CLI_INLINE_HXX #define CLI_INLINE_HXX -#include "context.hxx" +#include void generate_inline (context&); diff --git a/cli/lexer.cxx b/cli/lexer.cxx index 02be745..59281a7 100644 --- a/cli/lexer.cxx +++ b/cli/lexer.cxx @@ -5,7 +5,7 @@ #include -#include "lexer.hxx" +#include using namespace std; diff --git a/cli/lexer.hxx b/cli/lexer.hxx index 830860c..56d98de 100644 --- a/cli/lexer.hxx +++ b/cli/lexer.hxx @@ -12,7 +12,7 @@ #include // std::size_t #include -#include "token.hxx" +#include class lexer { @@ -138,6 +138,6 @@ private: bool unget_; }; -#include "lexer.ixx" +#include #endif // CLI_LEXER_HXX diff --git a/cli/makefile b/cli/makefile deleted file mode 100644 index 3c99e19..0000000 --- a/cli/makefile +++ /dev/null @@ -1,108 +0,0 @@ -# file : cli/makefile -# author : Boris Kolpackov -# copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC -# license : MIT; see accompanying LICENSE file - -include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make - -cxx_tun := cli.cxx lexer.cxx parser.cxx - -cxx_tun += \ -option-types.cxx \ -options.cxx \ -context.cxx \ -header.cxx \ -inline.cxx \ -source.cxx \ -runtime-header.cxx \ -runtime-inline.cxx \ -runtime-source.cxx \ -man.cxx \ -html.cxx \ -txt.cxx \ -generator.cxx \ -name-processor.cxx - -cxx_tun += \ -semantics/class.cxx \ -semantics/doc.cxx \ -semantics/elements.cxx \ -semantics/expression.cxx \ -semantics/namespace.cxx \ -semantics/option.cxx \ -semantics/unit.cxx - -cxx_tun += \ -traversal/class.cxx \ -traversal/elements.cxx \ -traversal/namespace.cxx \ -traversal/option.cxx \ -traversal/unit.cxx - -cli_tun := options.cli - -# -# -cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(cli_tun:.cli=.o)) -cxx_od := $(cxx_obj:.o=.o.d) - -cli := $(out_base)/cli -clean := $(out_base)/.clean -install := $(out_base)/.install - -# Import. -# -$(call import,\ - $(scf_root)/import/libcutl/stub.make,\ - l: cutl.l,cpp-options: cutl.l.cpp-options) - -# Build. -# -$(cli): $(cxx_obj) $(cutl.l) - -$(cxx_obj) $(cxx_od): cpp_options := -I$(src_base) -I$(out_base) -$(cxx_obj) $(cxx_od): $(cutl.l.cpp-options) - -genf := $(cli_tun:.cli=.hxx) $(cli_tun:.cli=.ixx) $(cli_tun:.cli=.cxx) -gen := $(addprefix $(out_base)/,$(genf)) - -$(gen): cli := $(out_root)/cli/cli -$(gen): cli_options += --generate-file-scanner --generate-specifier \ ---guard-prefix CLI --reserved-name stdout - -$(call include-dep,$(cxx_od),$(cxx_obj),$(gen)) - -# Alias for default target. -# -$(out_base)/: $(cli) - -# Install. -# -$(install): $(cli) - $(call install-exec,$<,$(install_bin_dir)/cli) - -# Clean. -# -$(clean): \ - $(cli).o.clean \ - $(addsuffix .cxx.clean,$(cxx_obj)) \ - $(addsuffix .cxx.clean,$(cxx_od)) - -# Generated .gitignore. -# -ifeq ($(out_base),$(src_base)) -$(cli): | $(out_base)/.gitignore - -$(out_base)/.gitignore: files := cli -$(clean): $(out_base)/.gitignore.clean - -$(call include,$(bld_root)/git/gitignore.make) -endif - -# how to -# -$(call include,$(bld_root)/cxx/o-e.make) -$(call include,$(bld_root)/cxx/cxx-o.make) -$(call include,$(bld_root)/cxx/cxx-d.make) -$(call include,$(scf_root)/cli/cli-cxx.make) -$(call include,$(bld_root)/install.make) diff --git a/cli/man.cxx b/cli/man.cxx index e55bc17..9008d7f 100644 --- a/cli/man.cxx +++ b/cli/man.cxx @@ -6,7 +6,7 @@ #include #include -#include "man.hxx" +#include using namespace std; diff --git a/cli/man.hxx b/cli/man.hxx index 71d8154..838622a 100644 --- a/cli/man.hxx +++ b/cli/man.hxx @@ -6,7 +6,7 @@ #ifndef CLI_MAN_HXX #define CLI_MAN_HXX -#include "context.hxx" +#include void generate_man (context&); diff --git a/cli/name-processor.cxx b/cli/name-processor.cxx index a0e3e02..7ac54e3 100644 --- a/cli/name-processor.cxx +++ b/cli/name-processor.cxx @@ -6,8 +6,8 @@ #include #include -#include "context.hxx" -#include "name-processor.hxx" +#include +#include using namespace std; diff --git a/cli/name-processor.hxx b/cli/name-processor.hxx index 63f262f..2cc4b99 100644 --- a/cli/name-processor.hxx +++ b/cli/name-processor.hxx @@ -6,7 +6,7 @@ #ifndef CLI_NAME_PROCESSOR_HXX #define CLI_NAME_PROCESSOR_HXX -#include "context.hxx" +#include void process_names (context&); diff --git a/cli/option-types.cxx b/cli/option-types.cxx index b3bc6ad..b51a8a0 100644 --- a/cli/option-types.cxx +++ b/cli/option-types.cxx @@ -5,7 +5,7 @@ #include -#include "option-types.hxx" +#include using namespace std; diff --git a/cli/options.cli b/cli/options.cli index 8b9ff5f..97b4429 100644 --- a/cli/options.cli +++ b/cli/options.cli @@ -12,7 +12,7 @@ include ; include ; include ; -include "option-types.hxx"; +include ; class options { diff --git a/cli/options.cxx b/cli/options.cxx index 1511b1c..43f271b 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -9,7 +9,7 @@ // // End prologue. -#include "options.hxx" +#include #include #include diff --git a/cli/options.hxx b/cli/options.hxx index f47fa3c..cc9d897 100644 --- a/cli/options.hxx +++ b/cli/options.hxx @@ -352,7 +352,7 @@ namespace cli #include -#include "option-types.hxx" +#include class options { @@ -914,7 +914,7 @@ class options bool options_file_specified_; }; -#include "options.ixx" +#include // Begin epilogue. // diff --git a/cli/parser.cxx b/cli/parser.cxx index 43b2764..d8c11c5 100644 --- a/cli/parser.cxx +++ b/cli/parser.cxx @@ -3,23 +3,48 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include // stat -#include // stat -#include // stat +#ifndef _WIN32 +# include // stat +# include // stat +# include // stat +#else +# include // _stat +# include // _stat(), S_I* + +# ifdef _MSC_VER // Unlikely to be fixed in newer versions. +# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +# endif +#endif #include #include #include -#include "token.hxx" -#include "lexer.hxx" -#include "parser.hxx" +#include +#include +#include -#include "semantics.hxx" +#include using namespace std; using namespace semantics; +// Check that the file exist without checking for permissions, etc. +// +inline static bool +file_exists (const path& p) +{ +#ifndef _WIN32 + struct stat s; + int r (stat (p.string ().c_str (), &s)); +#else + struct _stat s; + int r (_stat (p.string ().c_str (), &s)); +#endif + + return r == 0 && S_ISREG (s.st_mode); +} + const char* keywords[] = { "include", @@ -160,10 +185,10 @@ recover (token& t) } } -auto_ptr parser:: +unique_ptr parser:: parse (std::istream& is, path const& p) { - auto_ptr unit (new cli_unit (p, 1, 1)); + unique_ptr unit (new cli_unit (p, 1, 1)); { path ap (p); @@ -303,16 +328,13 @@ source_decl () // else { - struct stat s; for (paths::const_iterator i (include_paths_.begin ()); i != include_paths_.end (); ++i) { p = *i / f; p.normalize (); - // Check that the file exist without checking for permissions, etc. - // - if (stat (p.string ().c_str (), &s) == 0 && S_ISREG (s.st_mode)) + if (file_exists (p)) break; p.clear (); @@ -421,16 +443,13 @@ include_decl () // else { - struct stat s; for (paths::const_iterator i (include_paths_.begin ()); i != include_paths_.end (); ++i) { p = *i / f; p.normalize (); - // Check that the file exist without checking for permissions, etc. - // - if (stat (p.string ().c_str (), &s) == 0 && S_ISREG (s.st_mode)) + if (file_exists (p)) break; p.clear (); diff --git a/cli/parser.hxx b/cli/parser.hxx index 767b8da..69ae6e2 100644 --- a/cli/parser.hxx +++ b/cli/parser.hxx @@ -9,12 +9,12 @@ #include #include #include -#include // auto_ptr +#include // unique_ptr #include // size_t #include -#include "semantics/elements.hxx" -#include "semantics/unit.hxx" +#include +#include class token; class lexer; @@ -28,7 +28,7 @@ public: struct invalid_input {}; - std::auto_ptr + std::unique_ptr parse (std::istream& is, semantics::path const& path); private: diff --git a/cli/runtime-header.cxx b/cli/runtime-header.cxx index 50281fa..696f1db 100644 --- a/cli/runtime-header.cxx +++ b/cli/runtime-header.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include "runtime-header.hxx" +#include using namespace std; diff --git a/cli/runtime-header.hxx b/cli/runtime-header.hxx index 5c7d41f..83b4be1 100644 --- a/cli/runtime-header.hxx +++ b/cli/runtime-header.hxx @@ -6,7 +6,7 @@ #ifndef CLI_RUNTIME_HEADER_HXX #define CLI_RUNTIME_HEADER_HXX -#include "context.hxx" +#include void generate_runtime_header (context&); diff --git a/cli/runtime-inline.cxx b/cli/runtime-inline.cxx index 2774ee7..dffbb7d 100644 --- a/cli/runtime-inline.cxx +++ b/cli/runtime-inline.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include "runtime-inline.hxx" +#include using namespace std; diff --git a/cli/runtime-inline.hxx b/cli/runtime-inline.hxx index 191d756..c77c7d0 100644 --- a/cli/runtime-inline.hxx +++ b/cli/runtime-inline.hxx @@ -6,7 +6,7 @@ #ifndef CLI_RUNTIME_INLINE_HXX #define CLI_RUNTIME_INLINE_HXX -#include "context.hxx" +#include void generate_runtime_inline (context&); diff --git a/cli/runtime-source.cxx b/cli/runtime-source.cxx index 30f08b0..0570e73 100644 --- a/cli/runtime-source.cxx +++ b/cli/runtime-source.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include "runtime-source.hxx" +#include using namespace std; diff --git a/cli/runtime-source.hxx b/cli/runtime-source.hxx index 8300c9a..694353a 100644 --- a/cli/runtime-source.hxx +++ b/cli/runtime-source.hxx @@ -6,7 +6,7 @@ #ifndef CLI_RUNTIME_SOURCE_HXX #define CLI_RUNTIME_SOURCE_HXX -#include "context.hxx" +#include void generate_runtime_source (context&, bool complete); diff --git a/cli/semantics.hxx b/cli/semantics.hxx index 3f9d61b..3d6cc73 100644 --- a/cli/semantics.hxx +++ b/cli/semantics.hxx @@ -6,12 +6,12 @@ #ifndef CLI_SEMANTICS_HXX #define CLI_SEMANTICS_HXX -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #endif // CLI_SEMANTICS_HXX diff --git a/cli/semantics/class.cxx b/cli/semantics/class.cxx index 9a6fc85..f0a98d8 100644 --- a/cli/semantics/class.cxx +++ b/cli/semantics/class.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/class.hxx b/cli/semantics/class.hxx index f5f12c8..3a6bc00 100644 --- a/cli/semantics/class.hxx +++ b/cli/semantics/class.hxx @@ -8,7 +8,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/doc.cxx b/cli/semantics/doc.cxx index 4b2f9b4..f8670b4 100644 --- a/cli/semantics/doc.cxx +++ b/cli/semantics/doc.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/doc.hxx b/cli/semantics/doc.hxx index 4fca4e8..22bdc17 100644 --- a/cli/semantics/doc.hxx +++ b/cli/semantics/doc.hxx @@ -6,7 +6,7 @@ #ifndef CLI_SEMANTICS_DOC_HXX #define CLI_SEMANTICS_DOC_HXX -#include +#include namespace semantics { diff --git a/cli/semantics/elements.cxx b/cli/semantics/elements.cxx index 3e87248..b0550b9 100644 --- a/cli/semantics/elements.cxx +++ b/cli/semantics/elements.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/expression.cxx b/cli/semantics/expression.cxx index 0bd9fe9..cd42244 100644 --- a/cli/semantics/expression.cxx +++ b/cli/semantics/expression.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/expression.hxx b/cli/semantics/expression.hxx index 18ba2de..af44886 100644 --- a/cli/semantics/expression.hxx +++ b/cli/semantics/expression.hxx @@ -7,7 +7,7 @@ #define CLI_SEMANTICS_EXPRESSION_HXX #include -#include +#include namespace semantics { diff --git a/cli/semantics/namespace.cxx b/cli/semantics/namespace.cxx index 3947578..5c9228a 100644 --- a/cli/semantics/namespace.cxx +++ b/cli/semantics/namespace.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/namespace.hxx b/cli/semantics/namespace.hxx index 0ff534a..ca50683 100644 --- a/cli/semantics/namespace.hxx +++ b/cli/semantics/namespace.hxx @@ -6,7 +6,7 @@ #ifndef CLI_SEMANTICS_NAMESPACE_HXX #define CLI_SEMANTICS_NAMESPACE_HXX -#include +#include namespace semantics { diff --git a/cli/semantics/option.cxx b/cli/semantics/option.cxx index 04eb9a5..9c73f3e 100644 --- a/cli/semantics/option.cxx +++ b/cli/semantics/option.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/option.hxx b/cli/semantics/option.hxx index 90a462a..f102dda 100644 --- a/cli/semantics/option.hxx +++ b/cli/semantics/option.hxx @@ -6,7 +6,7 @@ #ifndef CLI_SEMANTICS_OPTION_HXX #define CLI_SEMANTICS_OPTION_HXX -#include +#include namespace semantics { diff --git a/cli/semantics/unit.cxx b/cli/semantics/unit.cxx index eecdbba..f0cfddb 100644 --- a/cli/semantics/unit.cxx +++ b/cli/semantics/unit.cxx @@ -5,7 +5,7 @@ #include -#include +#include namespace semantics { diff --git a/cli/semantics/unit.hxx b/cli/semantics/unit.hxx index 772d2f7..f5e2368 100644 --- a/cli/semantics/unit.hxx +++ b/cli/semantics/unit.hxx @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include namespace semantics { @@ -306,6 +306,6 @@ namespace semantics }; } -#include +#include #endif // CLI_SEMANTICS_UNIT_HXX diff --git a/cli/source.cxx b/cli/source.cxx index 0184da6..fb1b881 100644 --- a/cli/source.cxx +++ b/cli/source.cxx @@ -5,8 +5,8 @@ #include -#include "source.hxx" -#include "txt.hxx" // txt_size(), txt_wrap_lines() +#include +#include // txt_size(), txt_wrap_lines() using namespace std; diff --git a/cli/source.hxx b/cli/source.hxx index 14b2fce..bf06293 100644 --- a/cli/source.hxx +++ b/cli/source.hxx @@ -6,7 +6,7 @@ #ifndef CLI_SOURCE_HXX #define CLI_SOURCE_HXX -#include "context.hxx" +#include void generate_source (context&); diff --git a/cli/token.hxx b/cli/token.hxx index d04ee7a..2c8feaa 100644 --- a/cli/token.hxx +++ b/cli/token.hxx @@ -131,6 +131,6 @@ private: std::string str_; }; -#include "token.ixx" +#include #endif // CLI_TOKEN_HXX diff --git a/cli/traversal.hxx b/cli/traversal.hxx index 32febef..432f265 100644 --- a/cli/traversal.hxx +++ b/cli/traversal.hxx @@ -6,12 +6,12 @@ #ifndef CLI_TRAVERSAL_HXX #define CLI_TRAVERSAL_HXX -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #endif // CLI_TRAVERSAL_HXX diff --git a/cli/traversal/class.cxx b/cli/traversal/class.cxx index 3f178b6..c515af6 100644 --- a/cli/traversal/class.cxx +++ b/cli/traversal/class.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include +#include namespace traversal { diff --git a/cli/traversal/class.hxx b/cli/traversal/class.hxx index 37f5f64..ca6d301 100644 --- a/cli/traversal/class.hxx +++ b/cli/traversal/class.hxx @@ -6,8 +6,8 @@ #ifndef CLI_TRAVERSAL_CLASS_HXX #define CLI_TRAVERSAL_CLASS_HXX -#include -#include +#include +#include namespace traversal { diff --git a/cli/traversal/doc.hxx b/cli/traversal/doc.hxx index 94c8c3e..fe515c7 100644 --- a/cli/traversal/doc.hxx +++ b/cli/traversal/doc.hxx @@ -6,8 +6,8 @@ #ifndef CLI_TRAVERSAL_DOC_HXX #define CLI_TRAVERSAL_DOC_HXX -#include -#include +#include +#include namespace traversal { diff --git a/cli/traversal/elements.cxx b/cli/traversal/elements.cxx index 6a2e9db..adf8029 100644 --- a/cli/traversal/elements.cxx +++ b/cli/traversal/elements.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include +#include namespace traversal { diff --git a/cli/traversal/elements.hxx b/cli/traversal/elements.hxx index c6e4aeb..c34ef22 100644 --- a/cli/traversal/elements.hxx +++ b/cli/traversal/elements.hxx @@ -8,7 +8,7 @@ #include -#include +#include namespace traversal { diff --git a/cli/traversal/expression.hxx b/cli/traversal/expression.hxx index 8070834..c3872b9 100644 --- a/cli/traversal/expression.hxx +++ b/cli/traversal/expression.hxx @@ -6,8 +6,8 @@ #ifndef CLI_TRAVERSAL_EXPRESSION_HXX #define CLI_TRAVERSAL_EXPRESSION_HXX -#include -#include +#include +#include namespace traversal { diff --git a/cli/traversal/namespace.cxx b/cli/traversal/namespace.cxx index cbcd0bb..86a86c4 100644 --- a/cli/traversal/namespace.cxx +++ b/cli/traversal/namespace.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include +#include namespace traversal { diff --git a/cli/traversal/namespace.hxx b/cli/traversal/namespace.hxx index 877ea5a..125b614 100644 --- a/cli/traversal/namespace.hxx +++ b/cli/traversal/namespace.hxx @@ -6,8 +6,8 @@ #ifndef CLI_TRAVERSAL_NAMESPACE_HXX #define CLI_TRAVERSAL_NAMESPACE_HXX -#include -#include +#include +#include namespace traversal { diff --git a/cli/traversal/option.cxx b/cli/traversal/option.cxx index d8b327b..d9259dc 100644 --- a/cli/traversal/option.cxx +++ b/cli/traversal/option.cxx @@ -3,8 +3,8 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include -#include +#include +#include namespace traversal { diff --git a/cli/traversal/option.hxx b/cli/traversal/option.hxx index 2a127d0..8c2923a 100644 --- a/cli/traversal/option.hxx +++ b/cli/traversal/option.hxx @@ -6,8 +6,8 @@ #ifndef CLI_TRAVERSAL_OPTION_HXX #define CLI_TRAVERSAL_OPTION_HXX -#include -#include +#include +#include namespace traversal { diff --git a/cli/traversal/unit.cxx b/cli/traversal/unit.cxx index de81dab..21da369 100644 --- a/cli/traversal/unit.cxx +++ b/cli/traversal/unit.cxx @@ -3,7 +3,7 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file -#include +#include namespace traversal { diff --git a/cli/traversal/unit.hxx b/cli/traversal/unit.hxx index 656ec72..bdd84c9 100644 --- a/cli/traversal/unit.hxx +++ b/cli/traversal/unit.hxx @@ -6,8 +6,8 @@ #ifndef CLI_TRAVERSAL_UNIT_HXX #define CLI_TRAVERSAL_UNIT_HXX -#include -#include +#include +#include namespace traversal { diff --git a/cli/txt.cxx b/cli/txt.cxx index 388ae0f..9fbfb27 100644 --- a/cli/txt.cxx +++ b/cli/txt.cxx @@ -6,7 +6,7 @@ #include #include -#include "txt.hxx" +#include using namespace std; diff --git a/cli/txt.hxx b/cli/txt.hxx index b0a667c..6f70a91 100644 --- a/cli/txt.hxx +++ b/cli/txt.hxx @@ -10,7 +10,7 @@ #include #include // size_t -#include "context.hxx" +#include void generate_txt (context&); -- cgit v1.1