VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/xpcom/base/pure_api.c@ 43213

Last change on this file since 43213 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.6 KB
Line 
1/*
2 * Header file of Pure API function declarations.
3 *
4 * Explicitly no copyright.
5 * You may recompile and redistribute these definitions as required.
6 *
7 * NOTE1: In some situations when compiling with MFC, you should
8 * enable the setting 'Not using precompiled headers' in Visual C++
9 * to avoid a compiler diagnostic.
10 *
11 * NOTE2: This file works through the use of deep magic. Calls to functions
12 * in this file are replaced with calls into the OCI runtime system
13 * when an instrumented version of this program is run.
14 *
15 * NOTE3: The static vars avoidGy_n (where n is a unique number) are used
16 * to prevent optimizing the functions away when compiler option
17 * /Gy is set. This is needed so that NOTE2 works properly.
18 */
19static int avoidGy_1;
20static int avoidGy_2;
21static int avoidGy_3;
22static int avoidGy_4;
23static int avoidGy_5;
24static int avoidGy_6;
25static int avoidGy_7;
26static int avoidGy_8;
27static int avoidGy_9;
28static int avoidGy_10;
29static int avoidGy_11;
30static int avoidGy_12;
31static int avoidGy_13;
32static int avoidGy_14;
33static int avoidGy_15;
34static int avoidGy_16;
35static int avoidGy_17;
36static int avoidGy_18;
37static int avoidGy_19;
38static int avoidGy_20;
39static int avoidGy_21;
40static int avoidGy_22;
41static int avoidGy_23;
42static int avoidGy_24;
43static int avoidGy_25;
44static int avoidGy_26;
45static int avoidGy_27;
46static int avoidGy_28;
47static int avoidGy_29;
48static int avoidGy_30;
49static int avoidGy_31;
50static int avoidGy_32;
51static int avoidGy_33;
52static int avoidGy_34;
53static int avoidGy_35;
54static int avoidGy_36;
55static int avoidGy_37;
56static int avoidGy_38;
57static int avoidGy_39;
58static int avoidGy_40;
59static int avoidGy_41;
60static int avoidGy_42;
61static int avoidGy_43;
62static int avoidGy_44;
63static int avoidGy_45;
64static int avoidGy_46;
65static int avoidGy_47;
66static int avoidGy_48;
67static int avoidGy_49;
68static int avoidGy_50;
69static int avoidGy_51;
70static int avoidGy_52;
71static int avoidGy_53;
72static int avoidGy_54;
73static int avoidGy_55;
74static int avoidGy_56;
75static int avoidGy_57;
76static int avoidGy_58;
77static int avoidGy_59;
78static int avoidGy_60;
79static int avoidGy_PL_01;
80__declspec(dllexport) int __cdecl PurePrintf(const char *fmt, ...) { avoidGy_1++; fmt; return 0; }
81__declspec(dllexport) int __cdecl PurifyIsRunning(void) { avoidGy_2++; return 0; }
82__declspec(dllexport) int __cdecl PurifyPrintf(const char *fmt, ...) { avoidGy_3++; fmt; return 0; }
83__declspec(dllexport) int __cdecl PurifyNewInuse(void) { avoidGy_4++; return 0; }
84__declspec(dllexport) int __cdecl PurifyAllInuse(void) { avoidGy_5++; return 0; }
85__declspec(dllexport) int __cdecl PurifyClearInuse(void) { avoidGy_6++; return 0; }
86__declspec(dllexport) int __cdecl PurifyNewLeaks(void) { avoidGy_7++; return 0; }
87__declspec(dllexport) int __cdecl PurifyAllLeaks(void) { avoidGy_8++; return 0; }
88__declspec(dllexport) int __cdecl PurifyClearLeaks(void) { avoidGy_9++; return 0; }
89__declspec(dllexport) int __cdecl PurifyAllHandlesInuse(void) { avoidGy_10++; return 0; }
90__declspec(dllexport) int __cdecl PurifyNewHandlesInuse(void) { avoidGy_11++; return 0; }
91__declspec(dllexport) int __cdecl PurifyDescribe(void *addr) { avoidGy_12++; addr; return 0; }
92__declspec(dllexport) int __cdecl PurifyWhatColors(void *addr, int size) { avoidGy_13++; addr; size; return 0; }
93__declspec(dllexport) int __cdecl PurifyAssertIsReadable(const void *addr, int size) { avoidGy_14++; addr; size; return 1; }
94__declspec(dllexport) int __cdecl PurifyAssertIsWritable(const void *addr, int size) { avoidGy_15++; addr; size; return 1; }
95__declspec(dllexport) int __cdecl PurifyIsReadable(const void *addr, int size) { avoidGy_16++; addr; size; return 1; }
96__declspec(dllexport) int __cdecl PurifyIsWritable(const void *addr, int size) { avoidGy_17++; addr; size; return 1; }
97__declspec(dllexport) int __cdecl PurifyIsInitialized(const void *addr, int size) { avoidGy_18++; addr; size; return 1; }
98__declspec(dllexport) int __cdecl PurifyRed(void *addr, int size) { avoidGy_19++; addr; size; return 0; }
99__declspec(dllexport) int __cdecl PurifyGreen(void *addr, int size) { avoidGy_20++; addr; size; return 0; }
100__declspec(dllexport) int __cdecl PurifyYellow(void *addr, int size) { avoidGy_21++; addr; size; return 0; }
101__declspec(dllexport) int __cdecl PurifyBlue(void *addr, int size) { avoidGy_22++; addr; size; return 0; }
102__declspec(dllexport) int __cdecl PurifyMarkAsInitialized(void *addr, int size) { avoidGy_23++; addr; size; return 0; }
103__declspec(dllexport) int __cdecl PurifyMarkAsUninitialized(void *addr, int size) { avoidGy_24++; addr; size; return 0; }
104__declspec(dllexport) int __cdecl PurifyMarkForTrap(void *addr, int size) { avoidGy_25++; addr; size; return 0; }
105__declspec(dllexport) int __cdecl PurifyMarkForNoTrap(void *addr, int size) { avoidGy_26++; addr; size; return 0; }
106__declspec(dllexport) int __cdecl PurifyHeapValidate(unsigned int hHeap, unsigned int dwFlags, const void *addr)
107 { avoidGy_27++; hHeap; dwFlags; addr; return 1; }
108__declspec(dllexport) int __cdecl PurifySetLateDetectScanCounter(int counter) { avoidGy_28++; counter; return 0; };
109__declspec(dllexport) int __cdecl PurifySetLateDetectScanInterval(int seconds) { avoidGy_29++; seconds; return 0; };
110__declspec(dllexport) int __cdecl CoverageIsRunning(void) { avoidGy_30++; return 0; }
111__declspec(dllexport) int __cdecl CoverageDisableRecordingData(void) { avoidGy_31++; return 0; }
112__declspec(dllexport) int __cdecl CoverageStartRecordingData(void) { avoidGy_32++; return 0; }
113__declspec(dllexport) int __cdecl CoverageStopRecordingData(void) { avoidGy_33++; return 0; }
114__declspec(dllexport) int __cdecl CoverageClearData(void) { avoidGy_34++; return 0; }
115__declspec(dllexport) int __cdecl CoverageIsRecordingData(void) { avoidGy_35++; return 0; }
116__declspec(dllexport) int __cdecl CoverageAddAnnotation(char *str) { avoidGy_36++; str; return 0; }
117__declspec(dllexport) int __cdecl CoverageSaveData(void) { avoidGy_37++; return 0; }
118__declspec(dllexport) int __cdecl QuantifyIsRunning(void) { avoidGy_42++; return 0; }
119__declspec(dllexport) int __cdecl QuantifyDisableRecordingData(void) { avoidGy_43++; return 0; }
120__declspec(dllexport) int __cdecl QuantifyStartRecordingData(void) { avoidGy_44++; return 0; }
121__declspec(dllexport) int __cdecl QuantifyStopRecordingData(void) { avoidGy_45++; return 0; }
122__declspec(dllexport) int __cdecl QuantifyClearData(void) { avoidGy_46++; return 0; }
123__declspec(dllexport) int __cdecl QuantifyIsRecordingData(void) { avoidGy_47++; return 0; }
124__declspec(dllexport) int __cdecl QuantifyAddAnnotation(char *str) { avoidGy_48++; str; return 0; }
125__declspec(dllexport) int __cdecl QuantifySaveData(void) { avoidGy_49++; return 0; }
126__declspec(dllexport) int __cdecl PurelockIsRunning(void) { avoidGy_PL_01++; return 0; }
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette