mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
ICU-1828 Rename error.c -> errmsg.c
X-SVN-Rev: 8500
This commit is contained in:
parent
3b30dd9146
commit
fbaa901902
10 changed files with 56 additions and 56 deletions
|
@ -29,7 +29,7 @@ DERB = derb
|
|||
CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
|
||||
LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
|
||||
|
||||
OBJECTS = error.o genrb.o parse.o read.o reslist.o ustr.o util.o \
|
||||
OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o util.o \
|
||||
wrtjava.o rle.o
|
||||
DERB_OBJ = derb.o
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include "cstring.h"
|
||||
#include "error.h"
|
||||
#include "errmsg.h"
|
||||
|
||||
void error(uint32_t linenumber, const char *msg, ...)
|
||||
{
|
31
icu4c/source/tools/genrb/errmsg.h
Normal file
31
icu4c/source/tools/genrb/errmsg.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1998-1999, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
*
|
||||
* File error.h
|
||||
*
|
||||
* Modification History:
|
||||
*
|
||||
* Date Name Description
|
||||
* 05/28/99 stephen Creation.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H 1
|
||||
|
||||
extern const char *gCurrentFileName;
|
||||
|
||||
void error (uint32_t linenumber, const char *msg, ...);
|
||||
void warning (uint32_t linenumber, const char *msg, ...);
|
||||
|
||||
|
||||
/* Show warnings? */
|
||||
U_CFUNC void setShowWarning(UBool val);
|
||||
U_CFUNC UBool getShowWarning(void);
|
||||
|
||||
#endif
|
|
@ -1,46 +0,0 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1998-1999, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
*
|
||||
* File error.h
|
||||
*
|
||||
* Modification History:
|
||||
*
|
||||
* Date Name Description
|
||||
* 05/28/99 stephen Creation.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H 1
|
||||
|
||||
#define U_APPEND_CHAR32(c,target,len) { \
|
||||
if (c <= 0xffff) \
|
||||
{ \
|
||||
*(target)++ = (UChar) c; \
|
||||
len=1; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
c -= 0x0010000; \
|
||||
*(target)++ = (UChar) (0xd800 + (UChar) (c >> 10)); \
|
||||
*(target)++ = (UChar) (0xdc00 + (UChar) (c & 0x3ff)); \
|
||||
len=2; \
|
||||
} \
|
||||
}
|
||||
|
||||
extern const char *gCurrentFileName;
|
||||
|
||||
void error (uint32_t linenumber, const char *msg, ...);
|
||||
void warning (uint32_t linenumber, const char *msg, ...);
|
||||
|
||||
|
||||
/* Show warnings? */
|
||||
U_CFUNC void setShowWarning(UBool val);
|
||||
U_CFUNC UBool getShowWarning(void);
|
||||
|
||||
#endif
|
|
@ -107,7 +107,7 @@ SOURCE="$(InputPath)"
|
|||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\error.c
|
||||
SOURCE=.\errmsg.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
|
@ -147,7 +147,7 @@ SOURCE=.\wrtjava.c
|
|||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\error.h
|
||||
SOURCE=.\errmsg.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "ucol_imp.h"
|
||||
#include "parse.h"
|
||||
#include "error.h"
|
||||
#include "errmsg.h"
|
||||
#include "uhash.h"
|
||||
#include "cmemory.h"
|
||||
#include "cstring.h"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
#include "read.h"
|
||||
#include "error.h"
|
||||
#include "errmsg.h"
|
||||
#include "unicode/ustring.h"
|
||||
|
||||
#define OPENBRACE 0x007B
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "reslist.h"
|
||||
#include "unewdata.h"
|
||||
#include "unicode/ures.h"
|
||||
#include "error.h"
|
||||
#include "errmsg.h"
|
||||
|
||||
#define BIN_ALIGNMENT 16
|
||||
|
||||
|
|
|
@ -20,6 +20,21 @@
|
|||
|
||||
#include "unicode/utypes.h"
|
||||
|
||||
#define U_APPEND_CHAR32(c,target,len) { \
|
||||
if (c <= 0xffff) \
|
||||
{ \
|
||||
*(target)++ = (UChar) c; \
|
||||
len=1; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
c -= 0x0010000; \
|
||||
*(target)++ = (UChar) (0xd800 + (UChar) (c >> 10)); \
|
||||
*(target)++ = (UChar) (0xdc00 + (UChar) (c & 0x3ff)); \
|
||||
len=2; \
|
||||
} \
|
||||
}
|
||||
|
||||
/* A C representation of a string "object" (to avoid realloc all the time) */
|
||||
struct UString {
|
||||
UChar *fChars;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "reslist.h"
|
||||
#include "unewdata.h"
|
||||
#include "unicode/ures.h"
|
||||
#include "error.h"
|
||||
#include "errmsg.h"
|
||||
#include "filestrm.h"
|
||||
#include "cstring.h"
|
||||
#include "unicode/ucnv.h"
|
||||
|
@ -40,8 +40,8 @@ static const char copyRight[] =
|
|||
" *\n"
|
||||
" *******************************************************************************\n"
|
||||
" * $Source: /xsrl/Nsvn/icu/icu/source/tools/genrb/wrtjava.c,v $ \n"
|
||||
" * $Date: 2002/04/04 02:43:27 $ \n"
|
||||
" * $Revision: 1.9 $ \n"
|
||||
" * $Date: 2002/04/23 22:25:43 $ \n"
|
||||
" * $Revision: 1.10 $ \n"
|
||||
" *******************************************************************************\n"
|
||||
" */\n\n";
|
||||
static const char warningMsg[] =
|
||||
|
|
Loading…
Add table
Reference in a new issue