summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-xetex/samples/udata
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-20 18:13:48 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-20 18:13:48 +0000
commite5786f530f9555469c01435f86039b06aa53feba (patch)
treec868e8d32282422d7d445b729db95c3fcdafb6d0 /Build/source/libs/icu/icu-xetex/samples/udata
parentebaa1768b43c8606d923d2e861b5286b74207b3e (diff)
new build system: build icu libs and xetex plus misc updates
git-svn-id: svn://tug.org/texlive/trunk@12759 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-xetex/samples/udata')
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/Makefile69
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/reader.c131
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/reader.vcproj231
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/readme.txt61
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/udata.sln25
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/writer.c119
-rw-r--r--Build/source/libs/icu/icu-xetex/samples/udata/writer.vcproj223
7 files changed, 859 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/Makefile b/Build/source/libs/icu/icu-xetex/samples/udata/Makefile
new file mode 100644
index 00000000000..30927fc9860
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/Makefile
@@ -0,0 +1,69 @@
+# Copyright (c) 2000-2004 IBM, Inc. and others
+# udata sample code
+# Usage:
+# - configure, build, install ICU
+# - ensure that 'icu-config' is in the PATH (PREFIX/bin/icu-config)
+# - if ICU is not built relative to this directory,
+# set the variable ICU_PATH to the 'icu' directory
+# (i.e. /foo/icu )
+# - do 'make' in this directory
+
+
+# Include ICU standard definitions
+include ../defs.mk
+
+# look for the ICU_PATH variable, guess if not there
+ICU_DEFAULT_PATH=../../..
+
+ifeq ($(strip $(ICU_PATH)),)
+ ICU_PATH=$(ICU_DEFAULT_PATH)
+endif
+
+# Name of your target
+TARGET1=reader
+TARGET2=writer
+
+# All object files (C or C++)
+OBJECTS1=reader.o
+OBJECTS2=writer.o
+OBJECTS=$(OBJECTS1) $(OBJECTS2)
+
+CLEANFILES=*~ $(TARGET).out
+
+all: $(TARGET1) $(TARGET2)
+
+# The following lines are to make sure ICU_PATH is set properly.
+writer.o: $(ICU_PATH)/source/tools/toolutil/uoptions.h
+
+$(ICU_PATH)/source/tools/toolutil/uoptions.h:
+ @echo
+ @echo "*** Please read the directions at the top of this file (Makefile)"
+ @echo "*** Can't open $@ - check ICU_PATH"
+ @echo
+ @false
+
+# Only the writer needs these, actually.
+CPPFLAGS += -I$(ICU_PATH)/source/tools/toolutil
+LDFLAGS += -L$(ICU_PATH)/source/tools/toolutil $(shell icu-config --ldflags-toolutil)
+
+
+.PHONY: all clean distclean check report
+
+distclean clean:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+ -$(RMV) $(OBJECTS) $(TARGET1) $(TARGET2)
+
+# Can change this to LINK.c if it is a C only program
+# Can add more libraries here.
+$(TARGET1): $(OBJECTS1)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+$(TARGET2): $(OBJECTS2)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+# Make check: simply runs the sample, logged to a file
+check: $(TARGET1) $(TARGET2)
+ $(INVOKE) ./$(TARGET2) | tee $(TARGET2).out
+ $(INVOKE) ./$(TARGET1) | tee $(TARGET1).out
+
+
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/reader.c b/Build/source/libs/icu/icu-xetex/samples/udata/reader.c
new file mode 100644
index 00000000000..6cde9480335
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/reader.c
@@ -0,0 +1,131 @@
+/*
+ *******************************************************************************
+ *
+ * Copyright (C) 1999-2004, International Business Machines
+ * Corporation and others. All Rights Reserved.
+ *
+ *******************************************************************************
+ * file name: reader.c
+ * encoding: US-ASCII
+ * tab size: 8 (not used)
+ * indentation:4
+ *
+ * created on: 2000sep5
+ * created by: Vladimir Weinstein
+ */
+
+/*******************************************************************************
+ * Derived from Madhu Katragadda gentest
+ *******************************************************************************/
+
+
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef WIN32
+#include <direct.h>
+#else
+#include <unistd.h>
+#endif
+#include "unicode/utypes.h"
+#include "unicode/putil.h"
+#include "unicode/udata.h"
+
+#define DATA_NAME "example"
+#define DATA_TYPE "dat"
+
+/* UDataInfo cf. udata.h */
+static const UDataInfo dataInfo={
+ sizeof(UDataInfo),
+ 0,
+
+ U_IS_BIG_ENDIAN,
+ U_CHARSET_FAMILY,
+ sizeof(UChar),
+ 0,
+
+ 0x4D, 0x79, 0x44, 0x74, /* dataFormat="MyDt" */
+ 1, 0, 0, 0, /* formatVersion */
+ 1, 0, 0, 0 /* dataVersion */
+};
+
+static UBool
+isAcceptable(void *context,
+ const char *type, const char *name,
+ const UDataInfo *pInfo){
+
+ if( pInfo->size>=20 &&
+ pInfo->isBigEndian==U_IS_BIG_ENDIAN &&
+ pInfo->charsetFamily==U_CHARSET_FAMILY &&
+ pInfo->dataFormat[0]==0x4D && /* dataFormat="MyDt" */
+ pInfo->dataFormat[1]==0x79 &&
+ pInfo->dataFormat[2]==0x44 &&
+ pInfo->dataFormat[3]==0x74 &&
+ pInfo->formatVersion[0]==1 &&
+ pInfo->dataVersion[0]==1 ) {
+ return TRUE;
+ } else {
+ return FALSE;
+ }
+
+
+}
+
+extern int
+main(int argc, const char *argv[]) {
+ UDataMemory *result = NULL;
+ UErrorCode status=U_ZERO_ERROR;
+
+ uint16_t intValue = 0;
+
+ char *string = NULL;
+ uint16_t *intPointer = NULL;
+
+ const void *dataMemory = NULL;
+ char curPathBuffer[1024];
+
+#ifdef WIN32
+ char *currdir = _getcwd(NULL, 0);
+#else
+ char *currdir = getcwd(NULL, 0);
+#endif
+
+ /* need to put "current/dir/pkgname" as path */
+ strcpy(curPathBuffer, currdir);
+ strcat(curPathBuffer, U_FILE_SEP_STRING);
+ strcat(curPathBuffer, "mypkg"); /* package name */
+
+ result=udata_openChoice(curPathBuffer, DATA_TYPE, DATA_NAME, isAcceptable, NULL, &status);
+
+ if(currdir != NULL) {
+ free(currdir);
+ }
+
+ if(U_FAILURE(status)){
+ printf("Failed to open data file example.dat in %s with error number %d\n", curPathBuffer, status);
+ return -1;
+ }
+
+ dataMemory = udata_getMemory(result);
+
+ intPointer = (uint16_t *)dataMemory;
+
+ printf("Read value %d from data file\n", *intPointer);
+
+ string = (char *) (intPointer+1);
+
+ printf("Read string %s from data file\n", string);
+
+ if(U_SUCCESS(status)){
+ udata_close(result);
+ }
+
+ return 0;
+}
+
+
+
+
+
+
+
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/reader.vcproj b/Build/source/libs/icu/icu-xetex/samples/udata/reader.vcproj
new file mode 100644
index 00000000000..2b393b9be23
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/reader.vcproj
@@ -0,0 +1,231 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="reader"
+ ProjectGUID="{BFEFC070-C5A9-42E3-BAAE-A51FB2C4BA28}"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory=".\reader_Win32_Debug"
+ IntermediateDirectory=".\reader_Win32_Debug"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ TypeLibraryName=".\reader_Win32_Debug/reader.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="..\..\..\include,..\..\tools\toolutil"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CRT_SECURE_NO_DEPRECATE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ TreatWChar_tAsBuiltInType="true"
+ UsePrecompiledHeader="0"
+ PrecompiledHeaderFile=".\reader_Win32_Debug/reader.pch"
+ AssemblerListingLocation=".\reader_Win32_Debug/"
+ ObjectFile=".\reader_Win32_Debug/"
+ ProgramDataBaseFileName=".\reader_Win32_Debug/"
+ WarningLevel="3"
+ SuppressStartupBanner="true"
+ DebugInformationFormat="4"
+ CompileAs="0"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="icuucd.lib"
+ OutputFile=".\reader_Win32_Debug/reader.exe"
+ LinkIncremental="2"
+ SuppressStartupBanner="true"
+ AdditionalLibraryDirectories="../../../lib"
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile=".\reader_Win32_Debug/reader.pdb"
+ SubSystem="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=".\reader_Win32_Release"
+ IntermediateDirectory=".\reader_Win32_Release"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ TypeLibraryName=".\reader_Win32_Release/reader.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="1"
+ AdditionalIncludeDirectories="..\..\..\include,..\..\tools\toolutil"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CRT_SECURE_NO_DEPRECATE"
+ StringPooling="true"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ TreatWChar_tAsBuiltInType="true"
+ UsePrecompiledHeader="0"
+ PrecompiledHeaderFile=".\reader_Win32_Release/reader.pch"
+ AssemblerListingLocation=".\reader_Win32_Release/"
+ ObjectFile=".\reader_Win32_Release/"
+ ProgramDataBaseFileName=".\reader_Win32_Release/"
+ WarningLevel="3"
+ SuppressStartupBanner="true"
+ CompileAs="0"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="icuuc.lib"
+ OutputFile=".\reader_Win32_Release/reader.exe"
+ LinkIncremental="1"
+ SuppressStartupBanner="true"
+ AdditionalLibraryDirectories="../../../lib"
+ ProgramDatabaseFile=".\reader_Win32_Release/reader.pdb"
+ SubSystem="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;cxx;rc;def;r;odl;idl;hpj;bat"
+ >
+ <File
+ RelativePath=".\reader.c"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="..\..\..\include,..\..\tools\toolutil;..\..\icu\include;$(NoInherit)"
+ />
+ </FileConfiguration>
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl"
+ >
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/readme.txt b/Build/source/libs/icu/icu-xetex/samples/udata/readme.txt
new file mode 100644
index 00000000000..baccf626d34
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/readme.txt
@@ -0,0 +1,61 @@
+Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved.
+udata: Low level ICU data
+
+This sample demonstrates
+ Using the low level ICU data handling interfaces (udata) to create
+ and later access user data.
+
+Files:
+ writer.c C source for Writer application, will generate data file to be read by Reader.
+ reader.c C source for Reader application, will read file created by Writer
+ udata.sln Windows MSVC workspace. Double-click this to get started.
+ udata.vcproj Windows MSVC project file
+
+To Build udata on Windows
+ 1. Install and build ICU
+ 2. In MSVC, open the workspace file icu\samples\udata\udata.sln
+ 3. Choose a Debug or Release build.
+ 4. Build.
+
+To Run on Windows
+ 1. Start a command shell window
+ 2. Add ICU's bin directory to the path, e.g.
+ set PATH=c:\icu\bin;%PATH%
+ (Use the path to where ever ICU is on your system.)
+ 3. cd into the udata directory, e.g.
+ cd c:\icu\source\samples\udata\debug
+ 4. Run it
+ writer
+ reader
+
+To Build on Unixes
+ 1. Build ICU.
+ Specify an ICU install directory when running configure,
+ using the --prefix option. The steps to build ICU will look something
+ like this:
+ cd <icu directory>/source
+ runConfigureICU <platform-name> --prefix <icu install directory> [other options]
+ gmake all
+
+ 2. Install ICU,
+ gmake install
+
+ 3. Compile
+ You will need to set ICU_PATH to the location of your ICU source tree, for example ICU_PATH=/home/srl/icu (containing source, etc.)
+ cd <icu directory>/source/samples/udata
+ gmake ICU_PATH=<icu source directory> ICU_PREFIX=<icu install directory)
+
+ To Run on Unixes
+ cd <icu directory>/source/samples/udata
+ gmake ICU_PREFIX=<icu install directory> check
+ -or-
+
+ export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
+ writer
+ reader
+
+ Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
+ If in doubt, run the sample using "gmake check", and note the name of
+ the variable that is used there. LD_LIBRARY_PATH is the correct name
+ for Linux and Solaris.
+
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/udata.sln b/Build/source/libs/icu/icu-xetex/samples/udata/udata.sln
new file mode 100644
index 00000000000..4a2e29ba8d4
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/udata.sln
@@ -0,0 +1,25 @@
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "reader", "reader.vcproj", "{BFEFC070-C5A9-42E3-BAAE-A51FB2C4BA28}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "writer", "writer.vcproj", "{40A90302-F173-4629-A003-F571D2D93D16}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {BFEFC070-C5A9-42E3-BAAE-A51FB2C4BA28}.Debug|Win32.ActiveCfg = Debug|Win32
+ {BFEFC070-C5A9-42E3-BAAE-A51FB2C4BA28}.Debug|Win32.Build.0 = Debug|Win32
+ {BFEFC070-C5A9-42E3-BAAE-A51FB2C4BA28}.Release|Win32.ActiveCfg = Release|Win32
+ {BFEFC070-C5A9-42E3-BAAE-A51FB2C4BA28}.Release|Win32.Build.0 = Release|Win32
+ {40A90302-F173-4629-A003-F571D2D93D16}.Debug|Win32.ActiveCfg = Debug|Win32
+ {40A90302-F173-4629-A003-F571D2D93D16}.Debug|Win32.Build.0 = Debug|Win32
+ {40A90302-F173-4629-A003-F571D2D93D16}.Release|Win32.ActiveCfg = Release|Win32
+ {40A90302-F173-4629-A003-F571D2D93D16}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/writer.c b/Build/source/libs/icu/icu-xetex/samples/udata/writer.c
new file mode 100644
index 00000000000..db0b758e458
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/writer.c
@@ -0,0 +1,119 @@
+/*
+*******************************************************************************
+*
+* Copyright (C) 1999-2006, International Business Machines
+* Corporation and others. All Rights Reserved.
+*
+*******************************************************************************
+* file name: writer.c
+* encoding: US-ASCII
+* tab size: 8 (not used)
+* indentation:4
+*
+* created on: 2000sep5
+* created by: Vladimir Weinstein
+*/
+
+/******************************************************************************
+ * A program to write simple binary data readable by udata - example for
+ * ICU workshop
+ ******************************************************************************/
+
+
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef WIN32
+#include <direct.h>
+#else
+#include <unistd.h>
+#endif
+#include "unicode/utypes.h"
+#include "unicode/udata.h"
+
+/* this is private - available only through toolutil */
+#include "unewdata.h"
+
+#define DATA_NAME "mypkg_example"
+#define DATA_TYPE "dat"
+
+/* UDataInfo cf. udata.h */
+static const UDataInfo dataInfo={
+ sizeof(UDataInfo),
+ 0,
+
+ U_IS_BIG_ENDIAN,
+ U_CHARSET_FAMILY,
+ sizeof(UChar),
+ 0,
+
+ 0x4D, 0x79, 0x44, 0x74, /* dataFormat="MyDt" */
+ 1, 0, 0, 0, /* formatVersion */
+ 1, 0, 0, 0 /* dataVersion */
+};
+
+
+/* Excersise: add writing out other data types */
+/* see icu/source/tools/toolutil/unewdata.h */
+/* for other possibilities */
+
+extern int
+main(int argc, const char *argv[]) {
+ UNewDataMemory *pData;
+ UErrorCode errorCode=U_ZERO_ERROR;
+ char stringValue[]={'E', 'X', 'A', 'M', 'P', 'L', 'E', '\0'};
+ uint16_t intValue=2000;
+
+ long dataLength;
+ uint32_t size;
+#ifdef WIN32
+ char *currdir = _getcwd(NULL, 0);
+#else
+ char *currdir = getcwd(NULL, 0);
+#endif
+
+ pData=udata_create(currdir, DATA_TYPE, DATA_NAME, &dataInfo,
+ U_COPYRIGHT_STRING, &errorCode);
+
+ if(currdir != NULL) {
+ free(currdir);
+ }
+
+
+ if(U_FAILURE(errorCode)) {
+ fprintf(stderr, "Error: unable to create data memory, error %d\n", errorCode);
+ exit(errorCode);
+ }
+
+ /* write the data to the file */
+ /* a 16 bit value and a String*/
+ printf("Writing uint16_t value of %d\n", intValue);
+ udata_write16(pData, intValue);
+ printf("Writing string value of %s\n", stringValue);
+ udata_writeString(pData, stringValue, sizeof(stringValue));
+
+ /* finish up */
+ dataLength=udata_finish(pData, &errorCode);
+ if(U_FAILURE(errorCode)) {
+ fprintf(stderr, "Error: error %d writing the output file\n", errorCode);
+ exit(errorCode);
+ }
+ size=sizeof(stringValue) + sizeof(intValue);
+
+
+ if(dataLength!=(long)size) {
+ fprintf(stderr, "Error: data length %ld != calculated size %lu\n", dataLength, size);
+ exit(U_INTERNAL_PROGRAM_ERROR);
+ }
+ return 0;
+}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Build/source/libs/icu/icu-xetex/samples/udata/writer.vcproj b/Build/source/libs/icu/icu-xetex/samples/udata/writer.vcproj
new file mode 100644
index 00000000000..2cecd0c3ddb
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/samples/udata/writer.vcproj
@@ -0,0 +1,223 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="writer"
+ ProjectGUID="{40A90302-F173-4629-A003-F571D2D93D16}"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory=".\Debug"
+ IntermediateDirectory=".\Debug"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ TypeLibraryName=".\Debug/writer.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="..\..\..\include,..\..\tools\toolutil"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CRT_SECURE_NO_DEPRECATE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ TreatWChar_tAsBuiltInType="true"
+ UsePrecompiledHeader="0"
+ PrecompiledHeaderFile=".\Debug/writer.pch"
+ AssemblerListingLocation=".\Debug/"
+ ObjectFile=".\Debug/"
+ ProgramDataBaseFileName=".\Debug/"
+ WarningLevel="3"
+ SuppressStartupBanner="true"
+ DebugInformationFormat="4"
+ CompileAs="0"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="icutud.lib"
+ OutputFile=".\Debug/writer.exe"
+ LinkIncremental="2"
+ SuppressStartupBanner="true"
+ AdditionalLibraryDirectories="../../../lib"
+ GenerateDebugInformation="true"
+ ProgramDatabaseFile=".\Debug/writer.pdb"
+ SubSystem="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=".\Release"
+ IntermediateDirectory=".\Release"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ TypeLibraryName=".\Release/writer.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="1"
+ AdditionalIncludeDirectories="..\..\..\include,..\..\tools\toolutil"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CRT_SECURE_NO_DEPRECATE"
+ StringPooling="true"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ TreatWChar_tAsBuiltInType="true"
+ UsePrecompiledHeader="0"
+ PrecompiledHeaderFile=".\Release/writer.pch"
+ AssemblerListingLocation=".\Release/"
+ ObjectFile=".\Release/"
+ ProgramDataBaseFileName=".\Release/"
+ WarningLevel="3"
+ SuppressStartupBanner="true"
+ CompileAs="0"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="icutu.lib"
+ OutputFile=".\Release/writer.exe"
+ LinkIncremental="1"
+ SuppressStartupBanner="true"
+ AdditionalLibraryDirectories="../../../lib"
+ ProgramDatabaseFile=".\Release/writer.pdb"
+ SubSystem="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;cxx;rc;def;r;odl;idl;hpj;bat"
+ >
+ <File
+ RelativePath=".\writer.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl"
+ >
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>