ICU-3389 Don't create a .lib by not exporting some symbols

X-SVN-Rev: 14792
This commit is contained in:
George Rhoten 2004-03-29 21:58:57 +00:00
parent ff537d472c
commit 919d6d3f2a
14 changed files with 14 additions and 138 deletions

View file

@ -27,7 +27,7 @@ DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUUC) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M)
OBJECTS = allcoll.o apicoll.o astrotst.o callimts.o calregts.o caltest.o \
caltztst.o canittst.o citrtest.o cntabcol.o convtest.o cputilst.o currcoll.o dacoll.o \
caltztst.o canittst.o citrtest.o cntabcol.o convtest.o currcoll.o dacoll.o \
dadrcoll.o dcfmapts.o decoll.o dtfmapts.o dtfmrgts.o dtfmtrtts.o dtfmttst.o \
encoll.o escoll.o ficoll.o frcoll.o g7coll.o intltest.o \
itercoll.o itformat.o itmajor.o itutil.o jacoll.o lcukocol.o \

View file

@ -232,7 +232,7 @@ UnicodeString CanonicalIteratorTest::getReadable(const UnicodeString &s) {
//return "[" + (verbose ? name->transliterate(s) + "; " : "") + hex->transliterate(s) + "]";
}
U_CAPI int compareUnicodeStrings(const void *s1, const void *s2) {
U_CFUNC int compareUnicodeStrings(const void *s1, const void *s2) {
UnicodeString **st1 = (UnicodeString **)s1;
UnicodeString **st2 = (UnicodeString **)s2;

View file

@ -1,48 +0,0 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1999, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#include "unicode/utypes.h"
#include "cpputils.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*Debugging functions, DO NOT USE*/
;
void printUChar(const UChar *uniString)
{
uint32_t i=0;
putchar('{');
while (uniString[i])
{
printf( "0x%.4X\t", (UChar)uniString[i++]);
if (!(i%8)) putchar('\n');
}
putchar('}');
printf("(%d)", i);
}
void printChar(const char *charString)
{
uint32_t i=0;
putchar('{');
while (charString[i])
{
printf( "0x%.2X\t", (unsigned char)charString[i++]);
if (!(i%8)) putchar('\n');
}
putchar('}');
printf("(%d)", i);
}

View file

@ -1,14 +0,0 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-1999, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/* Wraps C++ internal utilities needed in C
Bertrand A. D.*/
#include "unicode/utypes.h"
U_CAPI void printUChar(const UChar* uniString);
U_CAPI void printChar( const char* charString);
U_CAPI void T_PlatformUtilities_pathnameInContext( char *fullname, int32_t maxsize, const char * relPath);
U_CAPI const char *T_PlatformUtilities_getDefaultDataDirectory(void);

View file

@ -1,48 +0,0 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 2001, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#include "unicode/utypes.h"
#include "cputilst.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*Debugging functions, DO NOT USE*/
;
void printUChar(const UChar *uniString)
{
uint32_t i=0;
putchar('{');
while (uniString[i])
{
printf( "0x%.4X\t", (UChar)uniString[i++]);
if (!(i%8)) putchar('\n');
}
putchar('}');
printf("(%d)", i);
}
void printChar(const char *charString)
{
uint32_t i=0;
putchar('{');
while (charString[i])
{
printf( "0x%.2X\t", (unsigned char)charString[i++]);
if (!(i%8)) putchar('\n');
}
putchar('}');
printf("(%d)", i);
}

View file

@ -1,14 +0,0 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/* Wraps C++ internal utilities needed in C
Bertrand A. D.*/
#include "unicode/utypes.h"
U_CAPI void printUChar(const UChar* uniString);
U_CAPI void printChar( const char* charString);
U_CAPI void T_PlatformUtilities_pathnameInContext( char *fullname, int32_t maxsize, const char * relPath);
U_CAPI const char *T_PlatformUtilities_getDefaultDataDirectory(void);

View file

@ -95,7 +95,7 @@ derivedCorePropsIndex[]={
UCHAR_GRAPHEME_BASE
};
U_CAPI void U_CALLCONV
U_CFUNC void U_CALLCONV
derivedCorePropsLineFn(void *context,
char *fields[][2], int32_t /* fieldCount */,
UErrorCode *pErrorCode)

View file

@ -8,11 +8,11 @@
#include "intltest.h"
/** Helper function for TestUnicodeData */
U_CAPI void U_CALLCONV unicodeDataLineFn(void *context,
U_CFUNC void U_CALLCONV unicodeDataLineFn(void *context,
char *fields[][2], int32_t fieldCount,
UErrorCode *pErrorCode);
U_CAPI void U_CALLCONV
U_CFUNC void U_CALLCONV
derivedCorePropsLineFn(void *context,
char *fields[][2], int32_t fieldCount,
UErrorCode *pErrorCode);

View file

@ -216,7 +216,7 @@ public:
};
// Sort function for NameToEnumEntry (sort by name)
U_CAPI int32_t
U_CFUNC int32_t
compareNameToEnumEntry(const void * /*context*/, const void* e1, const void* e2) {
return
STRING_TABLE[((NameToEnumEntry*)e1)->nameIndex].
@ -249,7 +249,7 @@ public:
};
// Sort function for EnumToNameGroupEntry (sort by name index)
U_CAPI int32_t
U_CFUNC int32_t
compareEnumToNameGroupEntry(const void * /*context*/, const void* e1, const void* e2) {
return ((EnumToNameGroupEntry*)e1)->enumValue - ((EnumToNameGroupEntry*)e2)->enumValue;
}
@ -281,7 +281,7 @@ public:
};
// Sort function for EnumToValueEntry (sort by enum)
U_CAPI int32_t
U_CFUNC int32_t
compareEnumToValueEntry(const void * /*context*/, const void* e1, const void* e2) {
return ((EnumToValueEntry*)e1)->enumValue - ((EnumToValueEntry*)e2)->enumValue;
}

View file

@ -89,7 +89,7 @@ getProps(uint32_t c);
extern void
repeatProps(uint32_t first, uint32_t last, uint32_t props);
U_CAPI uint32_t U_EXPORT2
U_CFUNC uint32_t U_EXPORT2
getFoldedPropsValue(UNewTrie *trie, UChar32 start, int32_t offset);
extern void

View file

@ -738,7 +738,7 @@ compareProps(const void *l, const void *r) {
/* generate output data ----------------------------------------------------- */
/* folding value: just store the offset (16 bits) if there is any non-0 entry */
U_CAPI uint32_t U_EXPORT2
U_CFUNC uint32_t U_EXPORT2
getFoldedPropsValue(UNewTrie *trie, UChar32 start, int32_t offset) {
uint32_t value;
UChar32 limit;

View file

@ -38,7 +38,7 @@ incKey(char *key, char *limit) {
}
}
U_CAPI int
U_CFUNC int
genres32(const char *prog, const char *path) {
/*
* key string, gets incremented binary numbers

View file

@ -9,6 +9,6 @@
#include "unicode/utypes.h"
U_CAPI int genres32(const char *prog, const char *path);
U_CFUNC int genres32(const char *prog, const char *path);

View file

@ -95,7 +95,7 @@ udata_swap(const UDataSwapper *ds,
/**
* Swap an ICU .dat package, including swapping of enclosed items.
*/
U_CAPI int32_t U_EXPORT2
U_CFUNC int32_t U_CALLCONV
udata_swapPackage(const UDataSwapper *ds,
const void *inData, int32_t length, void *outData,
UErrorCode *pErrorCode);
@ -452,7 +452,7 @@ compareToCEntries(const void *context, const void *left, const void *right) {
}
U_CDECL_END
U_CAPI int32_t U_EXPORT2
U_CFUNC int32_t U_CALLCONV
udata_swapPackage(const UDataSwapper *ds,
const void *inData, int32_t length, void *outData,
UErrorCode *pErrorCode) {