ReactOS  0.4.15-dev-1206-g731eddf
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 
48 }
func_ptr __CTOR_LIST__[]
int __cdecl atexit(void(__cdecl *)(void))
Definition: atonexit.c:56
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 __do_global_dtors(void)
Definition: gccmain.c:20
#define long
Definition: qsort.c:33
__kernel_ptrdiff_t ptrdiff_t
Definition: linux.h:247

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 }
func_ptr __DTOR_LIST__[]
void(* func_ptr)(void)
Definition: gccmain.c:11
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by __do_global_ctors().

◆ __main()

void __main ( void  )

Definition at line 53 of file gccmain.c.

54 {
55  if (!initialized)
56  {
57  initialized = 1;
59  }
60 }
void __do_global_ctors(void)
Definition: gccmain.c:32
static int initialized
Definition: gccmain.c:50

Referenced by __declspec().

Variable Documentation

◆ __CTOR_LIST__

func_ptr __CTOR_LIST__[]

Referenced by __do_global_ctors().

◆ __DTOR_LIST__

func_ptr __DTOR_LIST__[]

Referenced by __do_global_dtors().

◆ initialized

int initialized = 0
static

Definition at line 50 of file gccmain.c.

Referenced by __main().