]> granicus.if.org Git - icu/commitdiff
ICU-12752 fix breakage from r39368 on windows.
authorSteven R. Loomis <srl@icu-project.org>
Wed, 28 Sep 2016 02:26:02 +0000 (02:26 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Wed, 28 Sep 2016 02:26:02 +0000 (02:26 +0000)
X-SVN-Rev: 39374

icu4c/source/common/ucnv2022.cpp
icu4c/source/common/ucnv_io.cpp
icu4c/source/common/ucnv_io.h
icu4c/source/common/ucnvmbcs.cpp
icu4c/source/common/uloc.cpp
icu4c/source/common/umutex.h
icu4c/source/common/unicode/platform.h
icu4c/source/common/uresbund.cpp
icu4c/source/i18n/ucol_res.cpp

index d4c3f5299c6028c3a51ebda87735a05cb9b1e3e8..195c56b18bea5535abddc91516a72250f702be69 100644 (file)
@@ -394,13 +394,13 @@ static void U_CALLCONV
 static void U_CALLCONV
 _ISO2022Reset(UConverter *converter, UConverterResetChoice choice);
 
-static const char  U_CALLCONV*
+static const char * U_CALLCONV
 _ISO2022getName(const UConverter* cnv);
 
 static void  U_CALLCONV
 _ISO_2022_WriteSub(UConverterFromUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err);
 
-static UConverter  U_CALLCONV*
+static UConverter * U_CALLCONV
 _ISO_2022_SafeClone(const UConverter *cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status);
 
 #ifdef U_ENABLE_GENERIC_ISO_2022
@@ -716,7 +716,7 @@ _ISO2022Reset(UConverter *converter, UConverterResetChoice choice) {
     }
 }
 
-static const char U_CALLCONV*
+static const char * U_CALLCONV
 _ISO2022getName(const UConverter* cnv){
     if(cnv->extraInfo){
         UConverterDataISO2022* myData= (UConverterDataISO2022*)cnv->extraInfo;
@@ -3580,7 +3580,7 @@ struct cloneStruct
 };
 
 
-static UConverter U_CALLCONV *
+static UConverter * U_CALLCONV
 _ISO_2022_SafeClone(
             const UConverter *cnv,
             void *stackBuffer,
index 9c94ab3c7080aa4d8c60bb153658d794e86061a3..d656a65066dfe426cdc89398cad781b0626d68a9 100644 (file)
@@ -778,7 +778,7 @@ ucnv_io_countStandardAliases(UEnumeration *enumerator, UErrorCode * /*pErrorCode
     return value;
 }
 
-static const char U_CALLCONV *
+static const char * U_CALLCONV
 ucnv_io_nextStandardAliases(UEnumeration *enumerator,
                             int32_t* resultLength,
                             UErrorCode * /*pErrorCode*/)
@@ -1017,7 +1017,7 @@ ucnv_io_countAllConverters(UEnumeration * /*enumerator*/, UErrorCode * /*pErrorC
     return gMainTable.converterListSize;
 }
 
-static const char U_CALLCONV *
+static const char * U_CALLCONV
 ucnv_io_nextAllConverters(UEnumeration *enumerator,
                             int32_t* resultLength,
                             UErrorCode * /*pErrorCode*/)
@@ -1087,7 +1087,7 @@ ucnv_io_countKnownConverters(UErrorCode *pErrorCode) {
 
 /* alias table swapping ----------------------------------------------------- */
 
-typedef char U_CALLCONV * StripForCompareFn(char *dst, const char *name);
+typedef char * U_CALLCONV StripForCompareFn(char *dst, const char *name);
 
 /*
  * row of a temporary array
index bfaca1794c1b0a60647f120b171b812c0f11b274..c88247cab52e91d65707368bc21d28ec2a9338a7 100644 (file)
@@ -77,10 +77,10 @@ typedef struct UConverterAlias {
 #   error U_CHARSET_FAMILY is not valid
 #endif
 
-U_CAPI char U_CALLCONV * 
+U_CAPI char * U_CALLCONV
 ucnv_io_stripASCIIForCompare(char *dst, const char *name);
 
-U_CAPI char U_CALLCONV *
+U_CAPI char * U_CALLCONV
 ucnv_io_stripEBCDICForCompare(char *dst, const char *name);
 
 /**
index c5ea059cbedf3468ad5e1d51bc28a10d2926830d..d4fa574b56dc71f26cf8c979a5ce504a94053838 100644 (file)
@@ -400,7 +400,7 @@ ucnv_MBCSGetStarters(const UConverter* cnv,
                  UBool starters[256],
                  UErrorCode *pErrorCode);
 
-static const char U_CALLCONV *
+static const char* U_CALLCONV
 ucnv_MBCSGetName(const UConverter *cnv);
 
 static void U_CALLCONV
@@ -1982,7 +1982,7 @@ ucnv_MBCSOpen(UConverter *cnv,
 #endif
 }
 
-static const char U_CALLCONV *
+static const char* U_CALLCONV
 ucnv_MBCSGetName(const UConverter *cnv) {
     if((cnv->options&UCNV_OPTION_SWAP_LFNL)!=0 && cnv->sharedData->mbcs.swapLFNLName!=NULL) {
         return cnv->sharedData->mbcs.swapLFNLName;
index da254a59566603402e6c96a0c2dc3b7319cf8c9e..ec4a30a6229630423473d06ce859970e5589750b 100644 (file)
@@ -1492,7 +1492,7 @@ uloc_kw_countKeywords(UEnumeration *en, UErrorCode * /*status*/) {
     return result;
 }
 
-static const char U_CALLCONV*
+static const char * U_CALLCONV
 uloc_kw_nextKeyword(UEnumeration* en,
                     int32_t* resultLength,
                     UErrorCode* /*status*/) {
index f1fc4bb5d9b4ed60bc35019287155ff391db3d13..de512ff11664c9e188b287ce7cdfad893e276c8e 100644 (file)
@@ -231,7 +231,7 @@ struct UInitOnce {
 U_COMMON_API UBool U_EXPORT2 umtx_initImplPreInit(UInitOnce &);
 U_COMMON_API void  U_EXPORT2 umtx_initImplPostInit(UInitOnce &);
 
-template<class T> void umtx_initOnce(UInitOnce &uio, T *obj, void (T::*U_CALLCONV fp)()) {
+template<class T> void umtx_initOnce(UInitOnce &uio, T *obj, void (U_CALLCONV T::*fp)()) {
     if (umtx_loadAcquire(uio.fState) == 2) {
         return;
     }
@@ -244,7 +244,7 @@ template<class T> void umtx_initOnce(UInitOnce &uio, T *obj, void (T::*U_CALLCON
 
 // umtx_initOnce variant for plain functions, or static class functions.
 //               No context parameter.
-inline void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)()) {
+inline void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)()) {
     if (umtx_loadAcquire(uio.fState) == 2) {
         return;
     }
@@ -256,7 +256,7 @@ inline void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)()) {
 
 // umtx_initOnce variant for plain functions, or static class functions.
 //               With ErrorCode, No context parameter.
-inline void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)(UErrorCode &), UErrorCode &errCode) {
+inline void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)(UErrorCode &), UErrorCode &errCode) {
     if (U_FAILURE(errCode)) {
         return;
     }
@@ -275,7 +275,7 @@ inline void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)(UErrorCode &), U
 
 // umtx_initOnce variant for plain functions, or static class functions,
 //               with a context parameter.
-template<class T> void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)(T), T context) {
+template<class T> void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)(T), T context) {
     if (umtx_loadAcquire(uio.fState) == 2) {
         return;
     }
@@ -287,7 +287,7 @@ template<class T> void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)(T), T
 
 // umtx_initOnce variant for plain functions, or static class functions,
 //               with a context parameter and an error code.
-template<class T> void umtx_initOnce(UInitOnce &uio, void (*U_CALLCONV fp)(T, UErrorCode &), T context, UErrorCode &errCode) {
+template<class T> void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)(T, UErrorCode &), T context, UErrorCode &errCode) {
     if (U_FAILURE(errCode)) {
         return;
     }
index 157c951d04614e68c8299aec69aa62740c20ebd8..b42bef8323415607d7c71dc144d500c7521a5739 100644 (file)
  * When a function is a public ICU API,
  * you must use the U_CAPI and U_EXPORT2 qualifiers.
  *
- * Please note, you need to use U_CALLCONV before the *.
+ * Please note, you need to use U_CALLCONV after the *.
  *
- * YES: "static const char U_CALLCONV *func( . . . )"
- * NO:  "static const char* U_CALLCONV func( . . . )"
+ * NO : "static const char U_CALLCONV *func( . . . )"
+ * YES: "static const char* U_CALLCONV func( . . . )"
  *
  * @stable ICU 2.0
  */
index 2e524eb07ddfa07e01141df87d3ba8701eb898f4..b4393ef4cffea66f3369c4aef25e8d1fab84d6d1 100644 (file)
@@ -2408,7 +2408,7 @@ ures_loc_countLocales(UEnumeration *en, UErrorCode * /*status*/) {
     return ures_getSize(&ctx->installed);
 }
 
-static const char U_CALLCONV *
+static const char * U_CALLCONV
 ures_loc_nextLocale(UEnumeration* en,
                     int32_t* resultLength,
                     UErrorCode* status) {
index b3774fd641701fabe2de25287f3a617ddc98ea2c..314b766ee6db02c3c382dab666ec97808c8231a5 100644 (file)
@@ -78,9 +78,7 @@ ucol_res_cleanup() {
     return TRUE;
 }
 
-U_CDECL_END
-
-U_CAPI void U_CALLCONV
+void U_CALLCONV
 CollationLoader::loadRootRules(UErrorCode &errorCode) {
     if(U_FAILURE(errorCode)) { return; }
     rootBundle = ures_open(U_ICUDATA_COLL, kRootLocaleName, &errorCode);
@@ -94,6 +92,8 @@ CollationLoader::loadRootRules(UErrorCode &errorCode) {
     ucln_i18n_registerCleanup(UCLN_I18N_UCOL_RES, ucol_res_cleanup);
 }
 
+U_CDECL_END
+
 void
 CollationLoader::appendRootRules(UnicodeString &s) {
     UErrorCode errorCode = U_ZERO_ERROR;