From 76d23e639004517db8f9469d64ac1789f8449365 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Jan 2010 13:50:11 +0200 Subject: Add support for ISO-8859-1 as application encoding New runtime configuration parameter, XSDE_ENCODING. New option, --char-encoding. New test, tests/cxx/hybrid/iso8859-1. --- dist/examples/cxx/parser/generated/makefile | 4 ++++ dist/examples/cxx/parser/generated/nmakefile | 4 ++++ dist/examples/cxx/parser/hello/makefile | 4 ++++ dist/examples/cxx/parser/hello/nmakefile | 4 ++++ dist/examples/cxx/parser/library/makefile | 4 ++++ dist/examples/cxx/parser/library/nmakefile | 4 ++++ dist/examples/cxx/parser/minimal/makefile | 4 ++++ dist/examples/cxx/parser/minimal/nmakefile | 4 ++++ dist/examples/cxx/parser/mixed/makefile | 4 ++++ dist/examples/cxx/parser/mixed/nmakefile | 4 ++++ dist/examples/cxx/parser/multiroot/makefile | 4 ++++ dist/examples/cxx/parser/multiroot/nmakefile | 4 ++++ dist/examples/cxx/parser/polymorphism/makefile | 4 ++++ dist/examples/cxx/parser/polymorphism/nmakefile | 4 ++++ dist/examples/cxx/parser/polyroot/makefile | 4 ++++ dist/examples/cxx/parser/polyroot/nmakefile | 4 ++++ dist/examples/cxx/parser/wildcard/makefile | 4 ++++ dist/examples/cxx/parser/wildcard/nmakefile | 4 ++++ 18 files changed, 72 insertions(+) (limited to 'dist/examples/cxx/parser') diff --git a/dist/examples/cxx/parser/generated/makefile b/dist/examples/cxx/parser/generated/makefile index bf3b512..6f77af4 100644 --- a/dist/examples/cxx/parser/generated/makefile +++ b/dist/examples/cxx/parser/generated/makefile @@ -14,6 +14,10 @@ EXTRA_XSDFLAGS := --generate-print-impl --generate-test-driver # EXTRA_XSDFLAGS += --force-overwrite +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_STL),n) EXTRA_XSDFLAGS += --no-stl endif diff --git a/dist/examples/cxx/parser/generated/nmakefile b/dist/examples/cxx/parser/generated/nmakefile index ad0900c..c801757 100644 --- a/dist/examples/cxx/parser/generated/nmakefile +++ b/dist/examples/cxx/parser/generated/nmakefile @@ -14,6 +14,10 @@ EXTRA_XSDFLAGS = --generate-print-impl --generate-test-driver # EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --force-overwrite +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_STL)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl !endif diff --git a/dist/examples/cxx/parser/hello/makefile b/dist/examples/cxx/parser/hello/makefile index 421d69e..a136306 100644 --- a/dist/examples/cxx/parser/hello/makefile +++ b/dist/examples/cxx/parser/hello/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS := -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/hello/nmakefile b/dist/examples/cxx/parser/hello/nmakefile index 40d1307..60f226a 100644 --- a/dist/examples/cxx/parser/hello/nmakefile +++ b/dist/examples/cxx/parser/hello/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif diff --git a/dist/examples/cxx/parser/library/makefile b/dist/examples/cxx/parser/library/makefile index 0221150..a142b56 100644 --- a/dist/examples/cxx/parser/library/makefile +++ b/dist/examples/cxx/parser/library/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS += -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/library/nmakefile b/dist/examples/cxx/parser/library/nmakefile index 21ffebd..fe82086 100644 --- a/dist/examples/cxx/parser/library/nmakefile +++ b/dist/examples/cxx/parser/library/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif diff --git a/dist/examples/cxx/parser/minimal/makefile b/dist/examples/cxx/parser/minimal/makefile index fb0d483..aba65d9 100644 --- a/dist/examples/cxx/parser/minimal/makefile +++ b/dist/examples/cxx/parser/minimal/makefile @@ -8,6 +8,10 @@ EXTRA_CPPFLAGS += -I$(root)/libxsde EXTRA_XSDFLAGS := --no-stl --no-exceptions +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_IOSTREAM),n) EXTRA_XSDFLAGS += --no-iostream endif diff --git a/dist/examples/cxx/parser/minimal/nmakefile b/dist/examples/cxx/parser/minimal/nmakefile index addf4c8..4e81aff 100644 --- a/dist/examples/cxx/parser/minimal/nmakefile +++ b/dist/examples/cxx/parser/minimal/nmakefile @@ -8,6 +8,10 @@ EXTRA_CPPFLAGS = /I$(root)\libxsde EXTRA_XSDFLAGS = --no-stl --no-exceptions +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_IOSTREAM)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-iostream !endif diff --git a/dist/examples/cxx/parser/mixed/makefile b/dist/examples/cxx/parser/mixed/makefile index 44d988e..b4e7426 100644 --- a/dist/examples/cxx/parser/mixed/makefile +++ b/dist/examples/cxx/parser/mixed/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS += -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/mixed/nmakefile b/dist/examples/cxx/parser/mixed/nmakefile index d25c2ae..bba2da4 100644 --- a/dist/examples/cxx/parser/mixed/nmakefile +++ b/dist/examples/cxx/parser/mixed/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif diff --git a/dist/examples/cxx/parser/multiroot/makefile b/dist/examples/cxx/parser/multiroot/makefile index 8fdaeec..b3fb1f6 100644 --- a/dist/examples/cxx/parser/multiroot/makefile +++ b/dist/examples/cxx/parser/multiroot/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS += -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/multiroot/nmakefile b/dist/examples/cxx/parser/multiroot/nmakefile index 632b38b..779daa7 100644 --- a/dist/examples/cxx/parser/multiroot/nmakefile +++ b/dist/examples/cxx/parser/multiroot/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif diff --git a/dist/examples/cxx/parser/polymorphism/makefile b/dist/examples/cxx/parser/polymorphism/makefile index 368401a..c970f3a 100644 --- a/dist/examples/cxx/parser/polymorphism/makefile +++ b/dist/examples/cxx/parser/polymorphism/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS += -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/polymorphism/nmakefile b/dist/examples/cxx/parser/polymorphism/nmakefile index a35b625..30c50cd 100644 --- a/dist/examples/cxx/parser/polymorphism/nmakefile +++ b/dist/examples/cxx/parser/polymorphism/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif diff --git a/dist/examples/cxx/parser/polyroot/makefile b/dist/examples/cxx/parser/polyroot/makefile index 69e7c10..898472a 100644 --- a/dist/examples/cxx/parser/polyroot/makefile +++ b/dist/examples/cxx/parser/polyroot/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS += -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/polyroot/nmakefile b/dist/examples/cxx/parser/polyroot/nmakefile index f3c4ff0..220d824 100644 --- a/dist/examples/cxx/parser/polyroot/nmakefile +++ b/dist/examples/cxx/parser/polyroot/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif diff --git a/dist/examples/cxx/parser/wildcard/makefile b/dist/examples/cxx/parser/wildcard/makefile index 7d117bc..40591b3 100644 --- a/dist/examples/cxx/parser/wildcard/makefile +++ b/dist/examples/cxx/parser/wildcard/makefile @@ -6,6 +6,10 @@ include $(root)/build/cxx/rules.make # EXTRA_CPPFLAGS := -I$(root)/libxsde +ifeq ($(XSDE_ENCODING),iso8859-1) +EXTRA_XSDFLAGS += --char-encoding iso8859-1 +endif + ifeq ($(XSDE_LONGLONG),n) EXTRA_XSDFLAGS += --no-long-long endif diff --git a/dist/examples/cxx/parser/wildcard/nmakefile b/dist/examples/cxx/parser/wildcard/nmakefile index c912a1c..99ab82f 100644 --- a/dist/examples/cxx/parser/wildcard/nmakefile +++ b/dist/examples/cxx/parser/wildcard/nmakefile @@ -6,6 +6,10 @@ root = ..\..\..\.. # EXTRA_CPPFLAGS = /I$(root)\libxsde +!if "$(XSDE_ENCODING)" == "iso8859-1" +EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 +!endif + !if "$(XSDE_LONGLONG)" == "n" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long !endif -- cgit v1.1