ReactOS
0.4.16-dev-533-gc7d1aa3
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
20
__do_global_dtors
(
void
)
21
{
22
static
func_ptr
*
p
=
__DTOR_LIST__
+ 1;
23
24
while
(*
p
)
25
{
26
(*(
p
)) ();
27
p
++;
28
}
29
}
30
31
void
32
__do_global_ctors
(
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;
56
__do_global_ctors
();
57
}
58
}
ptrdiff_t
__kernel_ptrdiff_t ptrdiff_t
Definition:
linux.h:247
__main
void __main(void)
Definition:
gccmain.c:51
__do_global_dtors
void __do_global_dtors(void)
Definition:
gccmain.c:20
func_ptr
void(* func_ptr)(void)
Definition:
gccmain.c:11
__CTOR_LIST__
func_ptr __CTOR_LIST__[]
__do_global_ctors
void __do_global_ctors(void)
Definition:
gccmain.c:32
initialized
static int initialized
Definition:
gccmain.c:48
__DTOR_LIST__
func_ptr __DTOR_LIST__[]
p
GLfloat GLfloat p
Definition:
glext.h:8902
i
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
void
Definition:
nsiface.idl:2307
long
#define long
Definition:
qsort.c:33
sdk
lib
crt
startup
gccmain.c
Generated on Sun Jan 19 2025 06:14:05 for ReactOS by
1.9.6