summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-15 16:57:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-15 16:57:48 +0200
commitbe3dc4cee63da92cfa1fa44a0bf90ab11ec7aaca (patch)
treee74b26a798e0ff71bc140bbba3ea30e2eb3ac3e3 /cli
parentf8c61f71ebf44572c9e865a620dc053e94371beb (diff)
Start switch to build2
Diffstat (limited to 'cli')
-rw-r--r--cli/.gitignore1
-rw-r--r--cli/buildfile59
-rw-r--r--cli/cli-8.0.sln20
-rw-r--r--cli/cli-8.0.vcproj391
-rw-r--r--cli/cli-9.0.sln20
-rw-r--r--cli/cli-9.0.vcproj377
-rw-r--r--cli/cli.cxx12
-rw-r--r--cli/context.cxx2
-rw-r--r--cli/context.hxx6
-rw-r--r--cli/generator.cxx24
-rw-r--r--cli/generator.hxx4
-rw-r--r--cli/header.cxx2
-rw-r--r--cli/header.hxx2
-rw-r--r--cli/html.cxx2
-rw-r--r--cli/html.hxx2
-rw-r--r--cli/inline.cxx2
-rw-r--r--cli/inline.hxx2
-rw-r--r--cli/lexer.cxx2
-rw-r--r--cli/lexer.hxx4
-rw-r--r--cli/makefile108
-rw-r--r--cli/man.cxx2
-rw-r--r--cli/man.hxx2
-rw-r--r--cli/name-processor.cxx4
-rw-r--r--cli/name-processor.hxx2
-rw-r--r--cli/option-types.cxx2
-rw-r--r--cli/options.cli2
-rw-r--r--cli/options.cxx2
-rw-r--r--cli/options.hxx4
-rw-r--r--cli/parser.cxx53
-rw-r--r--cli/parser.hxx8
-rw-r--r--cli/runtime-header.cxx2
-rw-r--r--cli/runtime-header.hxx2
-rw-r--r--cli/runtime-inline.cxx2
-rw-r--r--cli/runtime-inline.hxx2
-rw-r--r--cli/runtime-source.cxx2
-rw-r--r--cli/runtime-source.hxx2
-rw-r--r--cli/semantics.hxx14
-rw-r--r--cli/semantics/class.cxx2
-rw-r--r--cli/semantics/class.hxx2
-rw-r--r--cli/semantics/doc.cxx2
-rw-r--r--cli/semantics/doc.hxx2
-rw-r--r--cli/semantics/elements.cxx2
-rw-r--r--cli/semantics/expression.cxx2
-rw-r--r--cli/semantics/expression.hxx2
-rw-r--r--cli/semantics/namespace.cxx2
-rw-r--r--cli/semantics/namespace.hxx2
-rw-r--r--cli/semantics/option.cxx2
-rw-r--r--cli/semantics/option.hxx2
-rw-r--r--cli/semantics/unit.cxx2
-rw-r--r--cli/semantics/unit.hxx6
-rw-r--r--cli/source.cxx4
-rw-r--r--cli/source.hxx2
-rw-r--r--cli/token.hxx2
-rw-r--r--cli/traversal.hxx14
-rw-r--r--cli/traversal/class.cxx2
-rw-r--r--cli/traversal/class.hxx4
-rw-r--r--cli/traversal/doc.hxx4
-rw-r--r--cli/traversal/elements.cxx2
-rw-r--r--cli/traversal/elements.hxx2
-rw-r--r--cli/traversal/expression.hxx4
-rw-r--r--cli/traversal/namespace.cxx2
-rw-r--r--cli/traversal/namespace.hxx4
-rw-r--r--cli/traversal/option.cxx4
-rw-r--r--cli/traversal/option.hxx4
-rw-r--r--cli/traversal/unit.cxx2
-rw-r--r--cli/traversal/unit.hxx4
-rw-r--r--cli/txt.cxx2
-rw-r--r--cli/txt.hxx2
68 files changed, 197 insertions, 1046 deletions
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 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="8.00"
- Name="cli"
- ProjectGUID="{FEAC6729-67CD-410A-83F2-E6258FA2301F}"
- RootNamespace="cli"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4290 /wd4800 /wd4355 /wd4288"
- Optimization="0"
- AdditionalIncludeDirectories=".;../../libcutl"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="1"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- Detect64BitPortabilityProblems="true"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="cutl.lib"
- OutputFile="$(ProjectName).exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories="../../libcutl/cutl"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4290 /wd4800 /wd4355 /wd4288"
- AdditionalIncludeDirectories=".;../../libcutl"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
- RuntimeLibrary="0"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- Detect64BitPortabilityProblems="true"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="cutl.lib"
- OutputFile="$(ProjectName).exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories="../../libcutl/cutl"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
- >
- <File
- RelativePath=".\semantics\class.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\class.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\cli.cxx"
- >
- </File>
- <File
- RelativePath=".\context.cxx"
- >
- </File>
- <File
- RelativePath=".\semantics\elements.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\elements.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\semantics\expression.cxx"
- >
- </File>
- <File
- RelativePath=".\generator.cxx"
- >
- </File>
- <File
- RelativePath=".\header.cxx"
- >
- </File>
- <File
- RelativePath=".\inline.cxx"
- >
- </File>
- <File
- RelativePath=".\lexer.cxx"
- >
- </File>
- <File
- RelativePath=".\name-processor.cxx"
- >
- </File>
- <File
- RelativePath=".\semantics\namespace.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\namespace.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\traversal\option.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\semantics\option.cxx"
- >
- </File>
- <File
- RelativePath=".\options.cxx"
- >
- </File>
- <File
- RelativePath=".\parser.cxx"
- >
- </File>
- <File
- RelativePath=".\runtime-header.cxx"
- >
- </File>
- <File
- RelativePath=".\runtime-inline.cxx"
- >
- </File>
- <File
- RelativePath=".\runtime-source.cxx"
- >
- </File>
- <File
- RelativePath=".\source.cxx"
- >
- </File>
- <File
- RelativePath=".\semantics\unit.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\unit.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\$(InputName)1.obj"
- XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\html.cxx"
- >
- </File>
- <File
- RelativePath=".\man.cxx"
- >
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
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 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="cli"
- ProjectGUID="{E1FC87B8-F4C2-401B-90DF-436A228F7260}"
- RootNamespace="cli"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4290 /wd4800 /wd4355"
- Optimization="0"
- AdditionalIncludeDirectories=".;../../libcutl"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="1"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="cutl.lib"
- OutputFile="$(ProjectName).exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories="../../libcutl/cutl"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalOptions="/wd4290 /wd4800 /wd4355"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories=".;../../libcutl"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
- RuntimeLibrary="0"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="cutl.lib"
- OutputFile="$(ProjectName).exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories="../../libcutl/cutl"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
- >
- <File
- RelativePath=".\traversal\class.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\class-t.obj"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\class-t.obj"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\semantics\class.cxx"
- >
- </File>
- <File
- RelativePath=".\cli.cxx"
- >
- </File>
- <File
- RelativePath=".\context.cxx"
- >
- </File>
- <File
- RelativePath=".\semantics\elements.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\elements.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\elements-t.obj"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\elements-t.obj"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\semantics\expression.cxx"
- >
- </File>
- <File
- RelativePath=".\generator.cxx"
- >
- </File>
- <File
- RelativePath=".\header.cxx"
- >
- </File>
- <File
- RelativePath=".\inline.cxx"
- >
- </File>
- <File
- RelativePath=".\lexer.cxx"
- >
- </File>
- <File
- RelativePath=".\name-processor.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\namespace.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\namespace-t.obj"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\namespace-t.obj"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\semantics\namespace.cxx"
- >
- </File>
- <File
- RelativePath=".\semantics\option.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\option.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\option-t.obj"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\option-t.obj"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\options.cxx"
- >
- </File>
- <File
- RelativePath=".\parser.cxx"
- >
- </File>
- <File
- RelativePath=".\runtime-header.cxx"
- >
- </File>
- <File
- RelativePath=".\runtime-inline.cxx"
- >
- </File>
- <File
- RelativePath=".\runtime-source.cxx"
- >
- </File>
- <File
- RelativePath=".\source.cxx"
- >
- </File>
- <File
- RelativePath=".\traversal\unit.cxx"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\unit-t.obj"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- ObjectFile="$(IntDir)\unit-t.obj"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath=".\semantics\unit.cxx"
- >
- </File>
- <File
- RelativePath=".\html.cxx"
- >
- </File>
- <File
- RelativePath=".\man.cxx"
- >
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
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 <vector>
#include <string>
-#include <memory> // std::auto_ptr
+#include <memory> // unique_ptr
#include <fstream>
#include <iostream>
#include <cutl/compiler/code-stream.hxx>
-#include <semantics/doc.hxx>
+#include <cli/semantics/doc.hxx>
-#include "options.hxx"
-#include "parser.hxx"
-#include "generator.hxx"
+#include <cli/options.hxx>
+#include <cli/parser.hxx>
+#include <cli/generator.hxx>
using namespace std;
using namespace cutl;
@@ -97,7 +97,7 @@ main (int argc, char* argv[])
// Parse and generate.
//
parser p (include_paths);
- auto_ptr<semantics::cli_unit> unit (p.parse (ifs, path));
+ unique_ptr<semantics::cli_unit> 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 <sstream>
#include <iostream>
-#include "context.hxx"
+#include <cli/context.hxx>
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 <cutl/shared-ptr.hxx>
#include <cutl/fs/path.hxx>
-#include "options.hxx"
-#include "semantics.hxx"
-#include "traversal.hxx"
+#include <cli/options.hxx>
+#include <cli/semantics.hxx>
+#include <cli/traversal.hxx>
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 <cutl/compiler/code-stream.hxx>
#include <cutl/compiler/cxx-indenter.hxx>
-#include "header.hxx"
-#include "inline.hxx"
-#include "source.hxx"
+#include <cli/header.hxx>
+#include <cli/inline.hxx>
+#include <cli/source.hxx>
-#include "runtime-header.hxx"
-#include "runtime-inline.hxx"
-#include "runtime-source.hxx"
+#include <cli/runtime-header.hxx>
+#include <cli/runtime-inline.hxx>
+#include <cli/runtime-source.hxx>
-#include "man.hxx"
-#include "html.hxx"
-#include "txt.hxx"
+#include <cli/man.hxx>
+#include <cli/html.hxx>
+#include <cli/txt.hxx>
-#include "context.hxx"
-#include "generator.hxx"
-#include "name-processor.hxx"
+#include <cli/context.hxx>
+#include <cli/generator.hxx>
+#include <cli/name-processor.hxx>
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 <cli/options.hxx>
+#include <cli/semantics/unit.hxx>
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 <cli/header.hxx>
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 <cli/context.hxx>
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 <vector>
#include <iostream>
-#include "html.hxx"
+#include <cli/html.hxx>
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 <cli/context.hxx>
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 <cli/inline.hxx>
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 <cli/context.hxx>
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 <iostream>
-#include "lexer.hxx"
+#include <cli/lexer.hxx>
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 <cstddef> // std::size_t
#include <istream>
-#include "token.hxx"
+#include <cli/token.hxx>
class lexer
{
@@ -138,6 +138,6 @@ private:
bool unget_;
};
-#include "lexer.ixx"
+#include <cli/lexer.ixx>
#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 <boris@codesynthesis.com>
-# 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 <vector>
#include <iostream>
-#include "man.hxx"
+#include <cli/man.hxx>
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 <cli/context.hxx>
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 <set>
#include <sstream>
-#include "context.hxx"
-#include "name-processor.hxx"
+#include <cli/context.hxx>
+#include <cli/name-processor.hxx>
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 <cli/context.hxx>
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 <istream>
-#include "option-types.hxx"
+#include <cli/option-types.hxx>
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 <string>;
include <vector>;
include <cstddef>;
-include "option-types.hxx";
+include <cli/option-types.hxx>;
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 <cli/options.hxx>
#include <map>
#include <set>
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 <cstddef>
-#include "option-types.hxx"
+#include <cli/option-types.hxx>
class options
{
@@ -914,7 +914,7 @@ class options
bool options_file_specified_;
};
-#include "options.ixx"
+#include <cli/options.ixx>
// 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 <unistd.h> // stat
-#include <sys/types.h> // stat
-#include <sys/stat.h> // stat
+#ifndef _WIN32
+# include <unistd.h> // stat
+# include <sys/types.h> // stat
+# include <sys/stat.h> // stat
+#else
+# include <sys/types.h> // _stat
+# include <sys/stat.h> // _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 <fstream>
#include <sstream>
#include <iostream>
-#include "token.hxx"
-#include "lexer.hxx"
-#include "parser.hxx"
+#include <cli/token.hxx>
+#include <cli/lexer.hxx>
+#include <cli/parser.hxx>
-#include "semantics.hxx"
+#include <cli/semantics.hxx>
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<cli_unit> parser::
+unique_ptr<cli_unit> parser::
parse (std::istream& is, path const& p)
{
- auto_ptr<cli_unit> unit (new cli_unit (p, 1, 1));
+ unique_ptr<cli_unit> 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 <map>
#include <string>
#include <vector>
-#include <memory> // auto_ptr
+#include <memory> // unique_ptr
#include <cstddef> // size_t
#include <istream>
-#include "semantics/elements.hxx"
-#include "semantics/unit.hxx"
+#include <cli/semantics/elements.hxx>
+#include <cli/semantics/unit.hxx>
class token;
class lexer;
@@ -28,7 +28,7 @@ public:
struct invalid_input {};
- std::auto_ptr<semantics::cli_unit>
+ std::unique_ptr<semantics::cli_unit>
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 <cli/runtime-header.hxx>
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 <cli/context.hxx>
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 <cli/runtime-inline.hxx>
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 <cli/context.hxx>
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 <cli/runtime-source.hxx>
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 <cli/context.hxx>
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 <semantics/class.hxx>
-#include <semantics/doc.hxx>
-#include <semantics/elements.hxx>
-#include <semantics/expression.hxx>
-#include <semantics/namespace.hxx>
-#include <semantics/option.hxx>
-#include <semantics/unit.hxx>
+#include <cli/semantics/class.hxx>
+#include <cli/semantics/doc.hxx>
+#include <cli/semantics/elements.hxx>
+#include <cli/semantics/expression.hxx>
+#include <cli/semantics/namespace.hxx>
+#include <cli/semantics/option.hxx>
+#include <cli/semantics/unit.hxx>
#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 <cutl/compiler/type-info.hxx>
-#include <semantics/class.hxx>
+#include <cli/semantics/class.hxx>
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 <vector>
-#include <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <cutl/compiler/type-info.hxx>
-#include <semantics/doc.hxx>
+#include <cli/semantics/doc.hxx>
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 <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <cutl/compiler/type-info.hxx>
-#include <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <cutl/compiler/type-info.hxx>
-#include <semantics/expression.hxx>
+#include <cli/semantics/expression.hxx>
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 <string>
-#include <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <cutl/compiler/type-info.hxx>
-#include <semantics/namespace.hxx>
+#include <cli/semantics/namespace.hxx>
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 <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <cutl/compiler/type-info.hxx>
-#include <semantics/option.hxx>
+#include <cli/semantics/option.hxx>
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 <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <cutl/compiler/type-info.hxx>
-#include <semantics/unit.hxx>
+#include <cli/semantics/unit.hxx>
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 <vector>
#include <string>
-#include <semantics/elements.hxx>
-#include <semantics/namespace.hxx>
+#include <cli/semantics/elements.hxx>
+#include <cli/semantics/namespace.hxx>
namespace semantics
{
@@ -306,6 +306,6 @@ namespace semantics
};
}
-#include <semantics/unit.txx>
+#include <cli/semantics/unit.txx>
#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 <iostream>
-#include "source.hxx"
-#include "txt.hxx" // txt_size(), txt_wrap_lines()
+#include <cli/source.hxx>
+#include <cli/txt.hxx> // 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 <cli/context.hxx>
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 <cli/token.ixx>
#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 <traversal/class.hxx>
-#include <traversal/doc.hxx>
-#include <traversal/elements.hxx>
-#include <traversal/expression.hxx>
-#include <traversal/namespace.hxx>
-#include <traversal/option.hxx>
-#include <traversal/unit.hxx>
+#include <cli/traversal/class.hxx>
+#include <cli/traversal/doc.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/traversal/expression.hxx>
+#include <cli/traversal/namespace.hxx>
+#include <cli/traversal/option.hxx>
+#include <cli/traversal/unit.hxx>
#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 <traversal/class.hxx>
+#include <cli/traversal/class.hxx>
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 <traversal/elements.hxx>
-#include <semantics/class.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/semantics/class.hxx>
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 <traversal/elements.hxx>
-#include <semantics/doc.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/semantics/doc.hxx>
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 <traversal/elements.hxx>
+#include <cli/traversal/elements.hxx>
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 <cutl/compiler/traversal.hxx>
-#include <semantics/elements.hxx>
+#include <cli/semantics/elements.hxx>
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 <traversal/elements.hxx>
-#include <semantics/expression.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/semantics/expression.hxx>
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 <traversal/namespace.hxx>
+#include <cli/traversal/namespace.hxx>
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 <traversal/elements.hxx>
-#include <semantics/namespace.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/semantics/namespace.hxx>
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 <traversal/option.hxx>
-#include <traversal/expression.hxx>
+#include <cli/traversal/option.hxx>
+#include <cli/traversal/expression.hxx>
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 <traversal/elements.hxx>
-#include <semantics/option.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/semantics/option.hxx>
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 <traversal/unit.hxx>
+#include <cli/traversal/unit.hxx>
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 <traversal/elements.hxx>
-#include <semantics/unit.hxx>
+#include <cli/traversal/elements.hxx>
+#include <cli/semantics/unit.hxx>
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 <vector>
#include <iostream>
-#include "txt.hxx"
+#include <cli/txt.hxx>
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 <string>
#include <cstddef> // size_t
-#include "context.hxx"
+#include <cli/context.hxx>
void
generate_txt (context&);