Back to index

lightning-sunbird  0.9+nobinonly
pure_api.c
Go to the documentation of this file.
00001 /*
00002  * Header file of Pure API function declarations.
00003  *
00004  * Explicitly no copyright.
00005  * You may recompile and redistribute these definitions as required.
00006  *
00007  * NOTE1: In some situations when compiling with MFC, you should
00008  *        enable the setting 'Not using precompiled headers' in Visual C++
00009  *        to avoid a compiler diagnostic.
00010  *
00011  * NOTE2: This file works through the use of deep magic.  Calls to functions
00012  *        in this file are replaced with calls into the OCI runtime system
00013  *        when an instrumented version of this program is run.
00014  *
00015  * NOTE3: The static vars avoidGy_n (where n is a unique number) are used
00016  *        to prevent optimizing the functions away when compiler option
00017  *        /Gy is set. This is needed so that NOTE2 works properly.
00018  */
00019 static int avoidGy_1;
00020 static int avoidGy_2;
00021 static int avoidGy_3;
00022 static int avoidGy_4;
00023 static int avoidGy_5;
00024 static int avoidGy_6;
00025 static int avoidGy_7;
00026 static int avoidGy_8;
00027 static int avoidGy_9;
00028 static int avoidGy_10;
00029 static int avoidGy_11;
00030 static int avoidGy_12;
00031 static int avoidGy_13;
00032 static int avoidGy_14;
00033 static int avoidGy_15;
00034 static int avoidGy_16;
00035 static int avoidGy_17;
00036 static int avoidGy_18;
00037 static int avoidGy_19;
00038 static int avoidGy_20;
00039 static int avoidGy_21;
00040 static int avoidGy_22;
00041 static int avoidGy_23;
00042 static int avoidGy_24;
00043 static int avoidGy_25;
00044 static int avoidGy_26;
00045 static int avoidGy_27;
00046 static int avoidGy_28;
00047 static int avoidGy_29;
00048 static int avoidGy_30;
00049 static int avoidGy_31;
00050 static int avoidGy_32;
00051 static int avoidGy_33;
00052 static int avoidGy_34;
00053 static int avoidGy_35;
00054 static int avoidGy_36;
00055 static int avoidGy_37;
00056 static int avoidGy_38;
00057 static int avoidGy_39;
00058 static int avoidGy_40;
00059 static int avoidGy_41;
00060 static int avoidGy_42;
00061 static int avoidGy_43;
00062 static int avoidGy_44;
00063 static int avoidGy_45;
00064 static int avoidGy_46;
00065 static int avoidGy_47;
00066 static int avoidGy_48;
00067 static int avoidGy_49;
00068 static int avoidGy_50;
00069 static int avoidGy_51;
00070 static int avoidGy_52;
00071 static int avoidGy_53;
00072 static int avoidGy_54;
00073 static int avoidGy_55;
00074 static int avoidGy_56;
00075 static int avoidGy_57;
00076 static int avoidGy_58;
00077 static int avoidGy_59;
00078 static int avoidGy_60;
00079 static int avoidGy_PL_01;
00080 __declspec(dllexport) int __cdecl PurePrintf(const char *fmt, ...) { avoidGy_1++; fmt; return 0; }
00081 __declspec(dllexport) int __cdecl PurifyIsRunning(void) { avoidGy_2++; return 0; }
00082 __declspec(dllexport) int __cdecl PurifyPrintf(const char *fmt, ...) { avoidGy_3++; fmt; return 0; }
00083 __declspec(dllexport) int __cdecl PurifyNewInuse(void) { avoidGy_4++; return 0; }
00084 __declspec(dllexport) int __cdecl PurifyAllInuse(void) { avoidGy_5++; return 0; }
00085 __declspec(dllexport) int __cdecl PurifyClearInuse(void) { avoidGy_6++; return 0; }
00086 __declspec(dllexport) int __cdecl PurifyNewLeaks(void) { avoidGy_7++; return 0; }
00087 __declspec(dllexport) int __cdecl PurifyAllLeaks(void) { avoidGy_8++; return 0; }
00088 __declspec(dllexport) int __cdecl PurifyClearLeaks(void) { avoidGy_9++; return 0; }
00089 __declspec(dllexport) int __cdecl PurifyAllHandlesInuse(void) { avoidGy_10++; return 0; }
00090 __declspec(dllexport) int __cdecl PurifyNewHandlesInuse(void) { avoidGy_11++; return 0; }
00091 __declspec(dllexport) int __cdecl PurifyDescribe(void *addr) { avoidGy_12++; addr; return 0; }
00092 __declspec(dllexport) int __cdecl PurifyWhatColors(void *addr, int size) { avoidGy_13++; addr; size; return 0; }
00093 __declspec(dllexport) int __cdecl PurifyAssertIsReadable(const void *addr, int size) { avoidGy_14++; addr; size; return 1; }
00094 __declspec(dllexport) int __cdecl PurifyAssertIsWritable(const void *addr, int size) { avoidGy_15++; addr; size; return 1; }
00095 __declspec(dllexport) int __cdecl PurifyIsReadable(const void *addr, int size) { avoidGy_16++; addr; size; return 1; }
00096 __declspec(dllexport) int __cdecl PurifyIsWritable(const void *addr, int size) { avoidGy_17++; addr; size; return 1; }
00097 __declspec(dllexport) int __cdecl PurifyIsInitialized(const void *addr, int size) { avoidGy_18++; addr; size; return 1; }
00098 __declspec(dllexport) int __cdecl PurifyRed(void *addr, int size) { avoidGy_19++; addr; size; return 0; }
00099 __declspec(dllexport) int __cdecl PurifyGreen(void *addr, int size) { avoidGy_20++; addr; size; return 0; }
00100 __declspec(dllexport) int __cdecl PurifyYellow(void *addr, int size) { avoidGy_21++; addr; size; return 0; }
00101 __declspec(dllexport) int __cdecl PurifyBlue(void *addr, int size) { avoidGy_22++; addr; size; return 0; }
00102 __declspec(dllexport) int __cdecl PurifyMarkAsInitialized(void *addr, int size) { avoidGy_23++; addr; size; return 0; }
00103 __declspec(dllexport) int __cdecl PurifyMarkAsUninitialized(void *addr, int size) { avoidGy_24++; addr; size; return 0; }
00104 __declspec(dllexport) int __cdecl PurifyMarkForTrap(void *addr, int size) { avoidGy_25++; addr; size; return 0; }
00105 __declspec(dllexport) int __cdecl PurifyMarkForNoTrap(void *addr, int size) { avoidGy_26++; addr; size; return 0; }
00106 __declspec(dllexport) int __cdecl PurifyHeapValidate(unsigned int hHeap, unsigned int dwFlags, const void *addr) 
00107  { avoidGy_27++; hHeap; dwFlags; addr; return 1; }
00108 __declspec(dllexport) int __cdecl PurifySetLateDetectScanCounter(int counter) { avoidGy_28++; counter; return 0; };
00109 __declspec(dllexport) int __cdecl PurifySetLateDetectScanInterval(int seconds) { avoidGy_29++; seconds; return 0; };
00110 __declspec(dllexport) int __cdecl CoverageIsRunning(void) { avoidGy_30++; return 0; }
00111 __declspec(dllexport) int __cdecl CoverageDisableRecordingData(void) { avoidGy_31++; return 0; }
00112 __declspec(dllexport) int __cdecl CoverageStartRecordingData(void) { avoidGy_32++; return 0; }
00113 __declspec(dllexport) int __cdecl CoverageStopRecordingData(void) { avoidGy_33++; return 0; }
00114 __declspec(dllexport) int __cdecl CoverageClearData(void) { avoidGy_34++; return 0; }
00115 __declspec(dllexport) int __cdecl CoverageIsRecordingData(void) { avoidGy_35++; return 0; }
00116 __declspec(dllexport) int __cdecl CoverageAddAnnotation(char *str) { avoidGy_36++; str; return 0; }
00117 __declspec(dllexport) int __cdecl CoverageSaveData(void) { avoidGy_37++; return 0; }
00118 __declspec(dllexport) int __cdecl QuantifyIsRunning(void) { avoidGy_42++; return 0; }
00119 __declspec(dllexport) int __cdecl QuantifyDisableRecordingData(void) { avoidGy_43++; return 0; }
00120 __declspec(dllexport) int __cdecl QuantifyStartRecordingData(void) { avoidGy_44++; return 0; }
00121 __declspec(dllexport) int __cdecl QuantifyStopRecordingData(void) { avoidGy_45++; return 0; }
00122 __declspec(dllexport) int __cdecl QuantifyClearData(void) { avoidGy_46++; return 0; }
00123 __declspec(dllexport) int __cdecl QuantifyIsRecordingData(void) { avoidGy_47++; return 0; }
00124 __declspec(dllexport) int __cdecl QuantifyAddAnnotation(char *str) { avoidGy_48++; str; return 0; }
00125 __declspec(dllexport) int __cdecl QuantifySaveData(void) { avoidGy_49++; return 0; }
00126 __declspec(dllexport) int __cdecl PurelockIsRunning(void) { avoidGy_PL_01++; return 0; }