]> granicus.if.org Git - icu/commitdiff
ICU-10920 enable "io" library to build (with no APIs) with UCONFIG_NO_CONVERSION...
authorSteven R. Loomis <srl@icu-project.org>
Fri, 5 Sep 2014 21:27:11 +0000 (21:27 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Fri, 5 Sep 2014 21:27:11 +0000 (21:27 +0000)
X-SVN-Rev: 36367

15 files changed:
icu4c/source/io/locbund.cpp
icu4c/source/io/sprintf.c
icu4c/source/io/sscanf.c
icu4c/source/io/ufile.c
icu4c/source/io/ufile.h
icu4c/source/io/ufmt_cmn.c
icu4c/source/io/unicode/ustdio.h
icu4c/source/io/unicode/ustream.h
icu4c/source/io/uprintf.cpp
icu4c/source/io/uprntf_p.c
icu4c/source/io/uscanf.c
icu4c/source/io/uscanf.h
icu4c/source/io/uscanf_p.c
icu4c/source/io/ustdio.c
icu4c/source/io/ustream.cpp

index ddf81679d11ceebd468bfd577411f29f7bc4350a..594ecc3b02ff6d93843cb16cbd56a10a21ee0d35 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
 *
-*   Copyright (C) 1998-2013, International Business Machines
+*   Copyright (C) 1998-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 *******************************************************************************
@@ -18,7 +18,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "locbund.h"
 
index 91d29c56f061ac5a1f3a22f45dd9c544630a78d7..9f86e254812a8c5409ddd3413bbf109184268740 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 2001-2008, International Business Machines
+*   Copyright (C) 2001-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -20,7 +20,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/ustdio.h"
 #include "unicode/ustring.h"
index eb0bedfb84e7817122e80df964a30a10ec6a5672..ffc850c84f4a762c3219124eebe3e13885ae54e5 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 2000-2004, International Business Machines
+*   Copyright (C) 2000-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -17,7 +17,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/putil.h"
 #include "unicode/ustdio.h"
index 11a235e27fae3e207d3b8e3a00c91f965db1ba34..a8d8f0a3a60a6b7e9d0bf76b950925dad7923ff2 100644 (file)
@@ -27,6 +27,9 @@
 
 #include "locmap.h"
 #include "unicode/ustdio.h"
+
+#if !UCONFIG_NO_CONVERSION
+
 #include "ufile.h"
 #include "unicode/uloc.h"
 #include "unicode/ures.h"
@@ -342,3 +345,4 @@ U_CAPI const UNumberFormat* U_EXPORT2 u_fgetNumberFormat(UFILE *file)
 }
 #endif
 
+#endif
index 33056429169679089f07c1953435aa6c7ec026ab..42be4662c6e28eb83d718729a06d11f613350b1c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *******************************************************************************
  *
- *   Copyright (C) 1998-2010, International Business Machines
+ *   Copyright (C) 1998-2014, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  *
  *******************************************************************************
@@ -20,6 +20,9 @@
 #define UFILE_H
 
 #include "unicode/utypes.h"
+
+#if !UCONFIG_NO_CONVERSION
+
 #include "unicode/ucnv.h"
 #include "unicode/utrans.h"
 #include "locbund.h"
@@ -130,3 +133,4 @@ ufile_flush_io(UFILE *f);
 
 
 #endif
+#endif
index e4e09033911bfe1947c895909ff5d074a58242ea..90eaf8b7919b6bd093dfc8a3db1c30a3603490b8 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1998-2006, International Business Machines
+*   Copyright (C) 1998-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -25,6 +25,9 @@
 #include "unicode/ucnv.h"
 #include "ustr_cnv.h"
 
+#if !UCONFIG_NO_CONVERSION
+
+
 #define DIGIT_0     0x0030
 #define DIGIT_9     0x0039
 #define LOWERCASE_A 0x0061
@@ -251,3 +254,4 @@ ufmt_defaultCPToUnicode(const char *s, int32_t sSize,
 }
 
 
+#endif
index b98ae6a74cedc5385f0f7d3ce3caaa8805f1281a..d31dbe51970893969392a77248d28d783610f0df 100644 (file)
@@ -31,6 +31,8 @@
 #include "unicode/localpointer.h"
 #include "unicode/unum.h"
 
+#if !UCONFIG_NO_CONVERSION
+
 /*
     TODO
  The following is a small list as to what is currently wrong/suggestions for
@@ -1006,6 +1008,8 @@ u_vsscanf_u(const UChar *buffer,
         const UChar     *patternSpecification,
         va_list         ap);
 
+
+#endif
 #endif
 #endif
 
index dbb3098b49f126c78e0eb33b66347b55bb7bef5f..41ccf5ae036c67a192bfaa0b5e80f942be43d0eb 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "unicode/unistr.h"
 
+#if !UCONFIG_NO_CONVERSION  // not available without conversion
+
 /**
  * \file
  * \brief C++ API: Unicode iostream like API
@@ -63,3 +65,4 @@ U_NAMESPACE_END
 /* No operator for UChar because it can conflict with wchar_t  */
 
 #endif
+#endif
index 02788adb474aa6cdfab0f9b14000492c6e36ae34..a7e79f8ea894205f2eaa45ca01f6c836cc638ba2 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/ustdio.h"
 #include "unicode/ustring.h"
index 78c2e5da7595bcf6f6bfb8e034562165d63ef4be..09ae6bad85793a0e35b4145eb4866b6e76a1b397 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1998-2011, International Business Machines
+*   Copyright (C) 1998-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -19,7 +19,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/ustring.h"
 #include "unicode/utf16.h"
index 5743f6519917bb1a7a5c15f58738be0b6eb4116c..3ef9b3c7bee8d16c5b5dd444d22024f917cd342e 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1998-2004, International Business Machines
+*   Copyright (C) 1998-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -18,7 +18,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/putil.h"
 #include "unicode/ustdio.h"
index dd8b8546a1029abeba7746c3d440e3762ef74665..c192d66537cf2cea0c6872bb20529233d01934c5 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1998-2004, International Business Machines
+*   Copyright (C) 1998-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -21,7 +21,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/ustdio.h"
 
index e6b22e326f26cb4ad509d3b5f369bb9344482234..8219b55688fc3621cb98b53c9ccf7302d1101fa8 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
 *
-*   Copyright (C) 1998-2011, International Business Machines
+*   Copyright (C) 1998-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 *******************************************************************************
@@ -18,7 +18,7 @@
 
 #include "unicode/utypes.h"
 
-#if !UCONFIG_NO_FORMATTING
+#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_CONVERSION
 
 #include "unicode/uchar.h"
 #include "unicode/ustring.h"
index df4c4f1c37c4441f49d09e8f81eac7843c35db24..3e6f71765872da99d93690f0dffd9706e925657a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  ******************************************************************************
  *
- *   Copyright (C) 1998-2011, International Business Machines
+ *   Copyright (C) 1998-2014, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  *
  ******************************************************************************
@@ -18,6 +18,9 @@
  */
 
 #include "unicode/ustdio.h"
+
+#if !UCONFIG_NO_CONVERSION
+
 #include "unicode/putil.h"
 #include "cmemory.h"
 #include "cstring.h"
@@ -724,3 +727,4 @@ u_file_read(    UChar        *chars,
 
     return read;
 }
+#endif
index fb5f8880150ddef11a95295a568519f0221b22d4..be02dd05427e6b9202a0540d5c50ac50a7abc7ac 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (C) 2001-2011, International Business Machines
+*   Copyright (C) 2001-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *  FILE NAME : ustream.cpp
@@ -13,6 +13,9 @@
 */
 
 #include "unicode/utypes.h"
+
+#if !UCONFIG_NO_CONVERSION
+
 #include "unicode/uobject.h"
 #include "unicode/ustream.h"
 #include "unicode/ucnv.h"
@@ -165,3 +168,4 @@ STOP_READING:
 U_NAMESPACE_END
 
 #endif
+#endif