mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-3805 Break the circular dependency between utypes.h and putil.h
X-SVN-Rev: 16356
This commit is contained in:
parent
6172f70663
commit
6a80fd1c86
20 changed files with 27 additions and 16 deletions
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include <unicode/utypes.h>
|
||||
#include <unicode/putil.h>
|
||||
#include <unicode/ucnv.h>
|
||||
#include <unicode/uenum.h>
|
||||
#include <unicode/unistr.h>
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include "unicode/ucoleitr.h"
|
||||
#include "unicode/ustring.h"
|
||||
#include "unicode/uclean.h"
|
||||
#include "unicode/putil.h"
|
||||
|
||||
#include "cintltst.h"
|
||||
#include "ccolltst.h"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "unicode/uloc.h"
|
||||
#include "unicode/ucnv.h"
|
||||
#include "unicode/ucnv_err.h"
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/ustring.h"
|
||||
#include "ucnv_bld.h" /* for sizeof(UConverter) */
|
||||
#include "cintltst.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "unicode/uloc.h"
|
||||
#include "unicode/uchar.h"
|
||||
#include "unicode/ustring.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "callcoll.h"
|
||||
#include "cmemory.h"
|
||||
#include "cintltst.h"
|
||||
|
@ -1215,7 +1216,7 @@ static FileStream * getFractionalUCA(void)
|
|||
FileStream *result = NULL;
|
||||
|
||||
/* Look inside ICU_DATA first */
|
||||
uprv_strcpy(newPath, u_getDataDirectory());
|
||||
uprv_strcpy(newPath, ctest_dataSrcDir());
|
||||
uprv_strcat(newPath, "unidata" U_FILE_SEP_STRING );
|
||||
uprv_strcat(newPath, "FractionalUCA.txt");
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <time.h>
|
||||
#include "unicode/utypes.h"
|
||||
#include "cintltst.h"
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/ustring.h"
|
||||
#include "unicode/ucnv.h"
|
||||
#include "string.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/uclean.h"
|
||||
#include "unicode/uchar.h"
|
||||
#include "unicode/ures.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#if !UCONFIG_NO_IDNA
|
||||
|
||||
#include "unicode/ustring.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "cintltst.h"
|
||||
#include "unicode/usprep.h"
|
||||
#include "sprpimpl.h"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/udata.h"
|
||||
#include "unicode/uchar.h"
|
||||
#include "unicode/ucnv.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "unicode/uchar.h"
|
||||
#include "unicode/normlzr.h"
|
||||
#include "unicode/uniset.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unormimp.h"
|
||||
#include "cstring.h"
|
||||
#include "filestrm.h"
|
||||
|
@ -71,7 +72,7 @@ NormalizerConformanceTest::openNormalizationTestFile(const char *filename) {
|
|||
UErrorCode errorCode;
|
||||
|
||||
// look inside ICU_DATA first
|
||||
folder=u_getDataDirectory();
|
||||
folder=pathToDataDirectory();
|
||||
if(folder!=NULL) {
|
||||
strcpy(unidataPath, folder);
|
||||
strcat(unidataPath, "unidata" U_FILE_SEP_STRING);
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include "unicode/translit.h"
|
||||
#include "rbt.h"
|
||||
#include "unicode/calendar.h"
|
||||
#include "unicode/uniset.h"
|
||||
#include "unicode/uchar.h"
|
||||
#include "unicode/normlzr.h"
|
||||
|
@ -36,9 +37,9 @@
|
|||
if (exec) { \
|
||||
logln(#test "---"); \
|
||||
logln((UnicodeString)""); \
|
||||
UDate t = uprv_getUTCtime(); \
|
||||
UDate t = Calendar::getNow(); \
|
||||
test(); \
|
||||
t = uprv_getUTCtime() - t; \
|
||||
t = Calendar::getNow() - t; \
|
||||
logln((UnicodeString)#test " took " + t/U_MILLIS_PER_DAY + " seconds"); \
|
||||
} \
|
||||
break
|
||||
|
|
|
@ -117,6 +117,7 @@ void MultithreadTest::runIndexedTest( int32_t index, UBool exec,
|
|||
#include "unicode/msgfmt.h"
|
||||
#include "unicode/locid.h"
|
||||
#include "unicode/ucol.h"
|
||||
#include "unicode/calendar.h"
|
||||
#include "ucaconf.h"
|
||||
|
||||
//-----------------------------------------------------------------------------------
|
||||
|
@ -628,11 +629,11 @@ public:
|
|||
virtual void run()
|
||||
{
|
||||
SimpleThread::sleep(500); // wait, make sure they aquire the lock
|
||||
fElapsed = uprv_getUTCtime();
|
||||
fElapsed = Calendar::getNow();
|
||||
{
|
||||
Mutex m; // wait here
|
||||
|
||||
fElapsed = uprv_getUTCtime() - fElapsed;
|
||||
fElapsed = Calendar::getNow() - fElapsed;
|
||||
|
||||
if(fOtherThread.fDone == FALSE)
|
||||
fErr = TRUE; // they didnt get to it yet
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "unicode/ustring.h"
|
||||
#include "unicode/uchar.h"
|
||||
#include "unicode/uniset.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "cstring.h"
|
||||
#include "uparse.h"
|
||||
#include "ucdtest.h"
|
||||
|
@ -139,14 +140,7 @@ void UnicodeTest::TestAdditionalProperties() {
|
|||
UErrorCode errorCode=U_ZERO_ERROR;
|
||||
|
||||
/* Look inside ICU_DATA first */
|
||||
strcpy(newPath, u_getDataDirectory());
|
||||
|
||||
// remove trailing "out/"
|
||||
length=uprv_strlen(newPath);
|
||||
if(length>=4 && uprv_strcmp(newPath+length-4, "out" U_FILE_SEP_STRING)==0) {
|
||||
newPath[length-4]=0;
|
||||
}
|
||||
|
||||
strcpy(newPath, pathToDataDirectory());
|
||||
strcat(newPath, "unidata" U_FILE_SEP_STRING "DerivedCoreProperties.txt");
|
||||
|
||||
// As a fallback, try to guess where the source data was located
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/udata.h"
|
||||
#include "uoptions.h"
|
||||
#include "cstring.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "unicode/ucnv.h"
|
||||
#include "unicode/ustring.h"
|
||||
#include "unicode/putil.h"
|
||||
|
||||
#include "uresimp.h"
|
||||
#include "cmemory.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "reslist.h"
|
||||
#include "unewdata.h"
|
||||
#include "unicode/ures.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "errmsg.h"
|
||||
|
||||
#define BIN_ALIGNMENT 16
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/udata.h"
|
||||
#include "unicode/uclean.h"
|
||||
#include "ucol_imp.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/udata.h"
|
||||
#include "cmemory.h"
|
||||
#include "cstring.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "cmemory.h"
|
||||
#include "cstring.h"
|
||||
#include "pkgtypes.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/uloc.h"
|
||||
#include "cmemory.h"
|
||||
#include "cstring.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/ucnv.h"
|
||||
#include "unicode/ucnv_err.h"
|
||||
#include "filestrm.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue