ReactOS 0.4.16-dev-336-gb667d82
gccmain.c File Reference
#include <stdlib.h>
#include <setjmp.h>
Include dependency graph for gccmain.c:

Go to the source code of this file.

Typedefs

typedef void(* func_ptr) (void)
 

Functions

void __do_global_dtors (void)
 
void __do_global_ctors (void)
 
void __main (void)
 

Variables

func_ptr __CTOR_LIST__ []
 
func_ptr __DTOR_LIST__ []
 
static int initialized = 0
 

Typedef Documentation

◆ func_ptr

typedef void(* func_ptr) (void)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.

Definition at line 11 of file gccmain.c.

Function Documentation

◆ __do_global_ctors()

void __do_global_ctors ( void  )

Definition at line 32 of file gccmain.c.

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}
__kernel_ptrdiff_t ptrdiff_t
Definition: linux.h:247
func_ptr __CTOR_LIST__[]
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

Referenced by __main().

◆ __do_global_dtors()

void __do_global_dtors ( void  )

Definition at line 20 of file gccmain.c.

21{
22 static func_ptr *p = __DTOR_LIST__ + 1;
23
24 while (*p)
25 {
26 (*(p)) ();
27 p++;
28 }
29}
void(* func_ptr)(void)
Definition: gccmain.c:11
func_ptr __DTOR_LIST__[]
GLfloat GLfloat p
Definition: glext.h:8902

◆ __main()

void __main ( void  )

Definition at line 51 of file gccmain.c.

52{
53 if (!initialized)
54 {
55 initialized = 1;
57 }
58}
void __do_global_ctors(void)
Definition: gccmain.c:32
static int initialized
Definition: gccmain.c:48

Variable Documentation

◆ __CTOR_LIST__

func_ptr __CTOR_LIST__[]
extern

Referenced by __do_global_ctors().

◆ __DTOR_LIST__

func_ptr __DTOR_LIST__[]
extern

Referenced by __do_global_dtors().

◆ initialized

int initialized = 0
static

Definition at line 48 of file gccmain.c.

Referenced by __main().