Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygeninitterm.c
Go to the documentation of this file.
00001 #include <precomp.h> 00002 00003 typedef void (CDECL *_INITTERMFUN)(void); 00004 typedef int (CDECL *_INITTERM_E_FN)(void); 00005 00006 00007 /********************************************************************* 00008 * _initterm (MSVCRT.@) 00009 */ 00010 void CDECL _initterm(_INITTERMFUN *start,_INITTERMFUN *end) 00011 { 00012 _INITTERMFUN* current = start; 00013 00014 TRACE("(%p,%p)\n",start,end); 00015 while (current<end) 00016 { 00017 if (*current) 00018 { 00019 TRACE("Call init function %p\n",*current); 00020 (**current)(); 00021 TRACE("returned\n"); 00022 } 00023 current++; 00024 } 00025 } 00026 00027 /********************************************************************* 00028 * _initterm_e (MSVCRT.@) 00029 * 00030 * call an array of application initialization functions and report the return value 00031 */ 00032 int CDECL _initterm_e(_INITTERM_E_FN *table, _INITTERM_E_FN *end) 00033 { 00034 int res = 0; 00035 00036 TRACE("(%p, %p)\n", table, end); 00037 00038 while (!res && table < end) { 00039 if (*table) { 00040 TRACE("calling %p\n", **table); 00041 res = (**table)(); 00042 if (res) 00043 TRACE("function %p failed: 0x%x\n", *table, res); 00044 00045 } 00046 table++; 00047 } 00048 return res; 00049 } Generated on Sat May 26 2012 04:35:28 for ReactOS by
1.7.6.1
|