Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1094)

Side by Side Diff: source/tools/icuinfo/testplug.c

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/tools/icuinfo/icuinfo.vcxproj ('k') | source/tools/icuinfo/testplug.vcxproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ****************************************************************************** 2 ******************************************************************************
3 * 3 *
4 * Copyright (C) 2009-2010, International Business Machines 4 * Copyright (C) 2009-2015, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ****************************************************************************** 7 ******************************************************************************
8 * 8 *
9 * FILE NAME : testplug.c 9 * FILE NAME : testplug.c
10 * 10 *
11 * Date Name Description 11 * Date Name Description
12 * 10/29/2009 srl New. 12 * 10/29/2009 srl New.
13 ****************************************************************************** 13 ******************************************************************************
14 * 14 *
15 * 15 *
16 * This file implements a number of example ICU plugins. 16 * This file implements a number of example ICU plugins.
17 * 17 *
18 */ 18 */
19 19
20 #include "unicode/icuplug.h" 20 #include "unicode/icuplug.h"
21
22 #if UCONFIG_ENABLE_PLUGINS
23 /* This file isn't usually compiled except on Windows. Guard it. */
24
21 #include <stdio.h> /* for fprintf */ 25 #include <stdio.h> /* for fprintf */
22 #include <stdlib.h> /* for malloc */ 26 #include <stdlib.h> /* for malloc */
23 #include "udbgutil.h" 27 #include "udbgutil.h"
24 #include "unicode/uclean.h" 28 #include "unicode/uclean.h"
25 #include "cmemory.h" 29 #include "cmemory.h"
26 30
27 /** 31 /**
28 * Prototypes 32 * Prototypes
29 */ 33 */
30 #define DECLARE_PLUGIN(x) U_CAPI UPlugTokenReturn U_EXPORT2 x (UPlugData *data, UPlugReason reason, UErrorCode *status) 34 #define DECLARE_PLUGIN(x) U_CAPI UPlugTokenReturn U_EXPORT2 x (UPlugData *data, UPlugReason reason, UErrorCode *status)
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 u_setMemoryFunctions(uplug_getContext(data), &myMemAlloc, &myMemRealloc, &myMemFree, status); 199 u_setMemoryFunctions(uplug_getContext(data), &myMemAlloc, &myMemRealloc, &myMemFree, status);
196 fprintf(stderr, "MEM: status now %s\n", u_errorName(*status)); 200 fprintf(stderr, "MEM: status now %s\n", u_errorName(*status));
197 } else if(reason==UPLUG_REASON_UNLOAD) { 201 } else if(reason==UPLUG_REASON_UNLOAD) {
198 fprintf(stderr, "MEM: not possible to unload this plugin (no way to rese t memory functions)...\n"); 202 fprintf(stderr, "MEM: not possible to unload this plugin (no way to rese t memory functions)...\n");
199 uplug_setPlugNoUnload(data, TRUE); 203 uplug_setPlugNoUnload(data, TRUE);
200 } 204 }
201 205
202 return UPLUG_TOKEN; 206 return UPLUG_TOKEN;
203 } 207 }
204 208
209 #endif
OLDNEW
« no previous file with comments | « source/tools/icuinfo/icuinfo.vcxproj ('k') | source/tools/icuinfo/testplug.vcxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698