ICU 52.1
52.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
common
unicode
uclean.h
Go to the documentation of this file.
1
/*
2
******************************************************************************
3
* Copyright (C) 2001-2013, International Business Machines
4
* Corporation and others. All Rights Reserved.
5
******************************************************************************
6
* file name: uclean.h
7
* encoding: US-ASCII
8
* tab size: 8 (not used)
9
* indentation:4
10
*
11
* created on: 2001July05
12
* created by: George Rhoten
13
*/
14
15
#ifndef __UCLEAN_H__
16
#define __UCLEAN_H__
17
18
#include "
unicode/utypes.h
"
50
U_STABLE
void
U_EXPORT2
51
u_init
(
UErrorCode
*status);
52
53
#ifndef U_HIDE_SYSTEM_API
54
99
U_STABLE
void
U_EXPORT2
100
u_cleanup
(
void
);
101
102
111
typedef
void
*
U_CALLCONV
UMemAllocFn
(
const
void
*context,
size_t
size);
120
typedef
void
*
U_CALLCONV
UMemReallocFn
(
const
void
*context,
void
*mem,
size_t
size);
131
typedef
void
U_CALLCONV
UMemFreeFn
(
const
void
*context,
void
*mem);
132
149
U_STABLE
void
U_EXPORT2
150
u_setMemoryFunctions
(
const
void
*context,
UMemAllocFn
*a,
UMemReallocFn
*r,
UMemFreeFn
*f,
151
UErrorCode
*status);
152
153
154
/*********************************************************************************
155
*
156
* Deprecated Functions
157
*
158
* The following functions for user supplied mutexes are no longer supported.
159
* Any attempt to use them will return a U_UNSUPPORTED_ERROR.
160
*
161
**********************************************************************************/
162
170
typedef
void
*
UMTX
;
171
188
typedef
void
U_CALLCONV
UMtxInitFn
(
const
void
*context,
UMTX
*mutex,
UErrorCode
* status);
189
190
200
typedef
void
U_CALLCONV
UMtxFn
(
const
void
*context,
UMTX
*mutex);
201
202
220
U_DEPRECATED
void
U_EXPORT2
221
u_setMutexFunctions
(
const
void
*context,
UMtxInitFn
*init,
UMtxFn
*destroy,
UMtxFn
*lock,
UMtxFn
*unlock,
222
UErrorCode
*status);
223
224
233
typedef
int32_t
U_CALLCONV
UMtxAtomicFn
(
const
void
*context, int32_t *p);
234
250
U_DEPRECATED
void
U_EXPORT2
251
u_setAtomicIncDecFunctions
(
const
void
*context,
UMtxAtomicFn
*inc,
UMtxAtomicFn
*dec,
252
UErrorCode
*status);
253
254
#endif
/* U_HIDE_SYSTEM_API */
255
256
#endif
Generated on Fri Oct 4 2013 14:10:21 for ICU 52.1 by
1.8.1.2