ReactOS  0.4.15-dev-3442-gc05a45e
gccmain.c
Go to the documentation of this file.
1 
7 //#include <windows.h>
8 #include <stdlib.h>
9 #include <setjmp.h>
10 
11 typedef void (*func_ptr) (void);
12 extern func_ptr __CTOR_LIST__[];
13 extern func_ptr __DTOR_LIST__[];
14 
15 void __do_global_dtors (void);
16 void __do_global_ctors (void);
17 void __main (void);
18 
19 void
21 {
22  static func_ptr *p = __DTOR_LIST__ + 1;
23 
24  while (*p)
25  {
26  (*(p)) ();
27  p++;
28  }
29 }
30 
31 void
33 {
34  unsigned long nptrs = (unsigned long) (ptrdiff_t) __CTOR_LIST__[0];
35  unsigned long i;
36 
37  if (nptrs == (unsigned long) -1)
38  {
39  for (nptrs = 0; __CTOR_LIST__[nptrs + 1] != 0; nptrs++);
40  }
41 
42  for (i = nptrs; i >= 1; i--)
43  {
44  __CTOR_LIST__[i] ();
45  }
46 }
47 
48 static int initialized = 0;
49 
50 void
51 __main (void)
52 {
53  if (!initialized)
54  {
55  initialized = 1;
57  }
58 }
func_ptr __CTOR_LIST__[]
void __main(void)
Definition: gccmain.c:51
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
void __do_global_ctors(void)
Definition: gccmain.c:32
func_ptr __DTOR_LIST__[]
static int initialized
Definition: gccmain.c:48
void __do_global_dtors(void)
Definition: gccmain.c:20
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define long
Definition: qsort.c:33
__kernel_ptrdiff_t ptrdiff_t
Definition: linux.h:247
void(* func_ptr)(void)
Definition: gccmain.c:11
GLfloat GLfloat p
Definition: glext.h:8902