| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * | 3 * |
| 4 * Copyright (C) 2003-2011, International Business Machines | 4 * Copyright (C) 2003-2014, International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ******************************************************************************* | 7 ******************************************************************************* |
| 8 * file name: pkgitems.cpp | 8 * file name: pkgitems.cpp |
| 9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
| 10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
| 11 * indentation:4 | 11 * indentation:4 |
| 12 * | 12 * |
| 13 * created on: 2005sep18 | 13 * created on: 2005sep18 |
| 14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 #include <string.h> | 36 #include <string.h> |
| 37 | 37 |
| 38 /* item formats in common */ | 38 /* item formats in common */ |
| 39 | 39 |
| 40 #include "uresdata.h" | 40 #include "uresdata.h" |
| 41 #include "ucnv_bld.h" | 41 #include "ucnv_bld.h" |
| 42 #include "ucnv_io.h" | 42 #include "ucnv_io.h" |
| 43 | 43 |
| 44 // general definitions ----------------------------------------------------- *** | 44 // general definitions ----------------------------------------------------- *** |
| 45 | 45 |
| 46 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) | |
| 47 | |
| 48 U_CDECL_BEGIN | 46 U_CDECL_BEGIN |
| 49 | 47 |
| 50 static void U_CALLCONV | 48 static void U_CALLCONV |
| 51 printError(void *context, const char *fmt, va_list args) { | 49 printError(void *context, const char *fmt, va_list args) { |
| 52 vfprintf((FILE *)context, fmt, args); | 50 vfprintf((FILE *)context, fmt, args); |
| 53 } | 51 } |
| 54 | 52 |
| 55 U_CDECL_END | 53 U_CDECL_END |
| 56 | 54 |
| 57 // a data item in native-platform form ------------------------------------- *** | 55 // a data item in native-platform form ------------------------------------- *** |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 break; | 621 break; |
| 624 } | 622 } |
| 625 | 623 |
| 626 if(U_FAILURE(errorCode)) { | 624 if(U_FAILURE(errorCode)) { |
| 627 exit(errorCode); | 625 exit(errorCode); |
| 628 } | 626 } |
| 629 } | 627 } |
| 630 } | 628 } |
| 631 | 629 |
| 632 U_NAMESPACE_END | 630 U_NAMESPACE_END |
| OLD | NEW |