mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-3004 An AIX machine set to the tr_TR locale complains bitterly about some "builtin" functions defined in stdlib.h.
Include it in fewer places so that fewer warnings appear, and make sure that it's more difficult to accidentally use the C malloc and free. X-SVN-Rev: 16912
This commit is contained in:
parent
a0ab77176b
commit
937bd376ff
8 changed files with 9 additions and 6 deletions
|
@ -18,8 +18,9 @@
|
|||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
#include "cmemory.h"
|
||||
#include "unicode/uclean.h"
|
||||
#include "cmemory.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
/* uprv_malloc(0) returns a pointer to this read-only data. */
|
||||
static const int32_t zeroMem[] = {0, 0, 0, 0, 0, 0};
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#define CMEMORY_H
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ The main root for C API tests
|
|||
#include "unicode/utypes.h"
|
||||
#include "unicode/putil.h"
|
||||
#include "unicode/ctest.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef U_USE_DEPRECATED_API
|
||||
#define U_USE_DEPRECATED_API 1
|
||||
|
|
|
@ -2110,7 +2110,7 @@ static void TestResourceLevelAliasing(void) {
|
|||
|
||||
if(U_FAILURE(status)) {
|
||||
log_err("%s trying to read binary BreakDictionaryData\n");
|
||||
} else if(binSeqLen != binLen || uprv_memcmp(binSequence, binary, binSeqLen) != 0) {
|
||||
} else if(binSeqLen != binLen || memcmp(binSequence, binary, binSeqLen) != 0) {
|
||||
log_err("Referencing alias didn't get the right data\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include "sfwdchit.h"
|
||||
#include "cmemory.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
void
|
||||
CollationAPITest::doAssert(UBool condition, const char *message)
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "reslist.h"
|
||||
#include "unicode/ustring.h"
|
||||
#include "unicode/putil.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/* Number of tokens to read ahead of the current stream position */
|
||||
#define MAX_LOOKAHEAD 3
|
||||
|
|
|
@ -17,11 +17,8 @@
|
|||
*******************************************************************************
|
||||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/ucnv.h"
|
||||
#include "filestrm.h"
|
||||
#include "cmemory.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef UCBUF_H
|
||||
#define UCBUF_H 1
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
********************************************************************/
|
||||
|
||||
#include "uperf.h"
|
||||
#include "cmemory.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static const char delim = '/';
|
||||
static int32_t execCount = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue