ReactOS 0.4.15-dev-8138-g1e75ea8
gccmain.c
Go to the documentation of this file.
1
7//#include <windows.h>
8#include <stdlib.h>
9#include <setjmp.h>
10
11typedef void (*func_ptr) (void);
12extern func_ptr __CTOR_LIST__[];
13extern func_ptr __DTOR_LIST__[];
14
15void __do_global_dtors (void);
16void __do_global_ctors (void);
17void __main (void);
18
19void
21{
22 static func_ptr *p = __DTOR_LIST__ + 1;
23
24 while (*p)
25 {
26 (*(p)) ();
27 p++;
28 }
29}
30
31void
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
48static int initialized = 0;
49
50void
51__main (void)
52{
53 if (!initialized)
54 {
55 initialized = 1;
57 }
58}
__kernel_ptrdiff_t ptrdiff_t
Definition: linux.h:247
void __main(void)
Definition: gccmain.c:51
void __do_global_dtors(void)
Definition: gccmain.c:20
void(* func_ptr)(void)
Definition: gccmain.c:11
func_ptr __CTOR_LIST__[]
void __do_global_ctors(void)
Definition: gccmain.c:32
static int initialized
Definition: gccmain.c:48
func_ptr __DTOR_LIST__[]
GLfloat GLfloat p
Definition: glext.h:8902
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