mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-7752 tools: rename generated *_props_data.c files to .h and add #ifndef guard
X-SVN-Rev: 30816
This commit is contained in:
parent
20934ac953
commit
7b666417fd
4 changed files with 17 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2004-2010, International Business Machines
|
||||
* Copyright (C) 2004-2011, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -384,8 +384,11 @@ generateData(const char *dataDir, UBool csource) {
|
|||
|
||||
if(csource) {
|
||||
/* write .c file for hardcoded data */
|
||||
FILE *f=usrc_create(dataDir, "ubidi_props_data.c");
|
||||
FILE *f=usrc_create(dataDir, "ubidi_props_data.h");
|
||||
if(f!=NULL) {
|
||||
fputs("#ifndef INCLUDED_FROM_UBIDI_PROPS_C\n"
|
||||
"# error This file must be #included from ubidi_props.c only.\n"
|
||||
"#endif\n\n", f);
|
||||
usrc_writeArray(f,
|
||||
"static const UVersionInfo ubidi_props_dataVersion={",
|
||||
dataInfo.dataVersion, 8, 4,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2004-2010, International Business Machines
|
||||
* Copyright (C) 2004-2011, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -1120,8 +1120,11 @@ generateData(const char *dataDir, UBool csource) {
|
|||
|
||||
if(csource) {
|
||||
/* write .c file for hardcoded data */
|
||||
FILE *f=usrc_create(dataDir, "ucase_props_data.c");
|
||||
FILE *f=usrc_create(dataDir, "ucase_props_data.h");
|
||||
if(f!=NULL) {
|
||||
fputs("#ifndef INCLUDED_FROM_UCASE_CPP\n"
|
||||
"# error This file must be #included from ucase.cpp only.\n"
|
||||
"#endif\n\n", f);
|
||||
usrc_writeArray(f,
|
||||
"static const UVersionInfo ucase_props_dataVersion={",
|
||||
dataInfo.dataVersion, 8, 4,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1999-2010, International Business Machines
|
||||
* Copyright (C) 1999-2011, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -735,7 +735,7 @@ parseName(char *name, int16_t length) {
|
|||
}
|
||||
}
|
||||
|
||||
static UBool U_INLINE
|
||||
static UBool
|
||||
isWordChar(char c) {
|
||||
return ('A'<=c && c<='I') || /* EBCDIC-safe check for letters */
|
||||
('J'<=c && c<='R') ||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1999-2010, International Business Machines
|
||||
* Copyright (C) 1999-2011, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -426,8 +426,11 @@ generateData(const char *dataDir, UBool csource) {
|
|||
|
||||
if(csource) {
|
||||
/* write .c file for hardcoded data */
|
||||
FILE *f=usrc_create(dataDir, "uchar_props_data.c");
|
||||
FILE *f=usrc_create(dataDir, "uchar_props_data.h");
|
||||
if(f!=NULL) {
|
||||
fputs("#ifndef INCLUDED_FROM_UCHAR_C\n"
|
||||
"# error This file must be #included from uchar.c only.\n"
|
||||
"#endif\n\n", f);
|
||||
/* unused
|
||||
usrc_writeArray(f,
|
||||
"static const UVersionInfo formatVersion={",
|
||||
|
|
Loading…
Add table
Reference in a new issue