ReactOS 0.4.15-dev-7674-gc0b4db1
initterm.c File Reference
#include <precomp.h>
Include dependency graph for initterm.c:

Go to the source code of this file.

Typedefs

typedef void(CDECL_INITTERMFUN) (void)
 
typedef int(CDECL_INITTERM_E_FN) (void)
 

Functions

void CDECL _initterm (_INITTERMFUN *start, _INITTERMFUN *end)
 
int CDECL _initterm_e (_INITTERM_E_FN *table, _INITTERM_E_FN *end)
 

Typedef Documentation

◆ _INITTERM_E_FN

typedef int(CDECL * _INITTERM_E_FN) (void)

Definition at line 4 of file initterm.c.

◆ _INITTERMFUN

typedef void(CDECL * _INITTERMFUN) (void)

Definition at line 3 of file initterm.c.

Function Documentation

◆ _initterm()

void CDECL _initterm ( _INITTERMFUN start,
_INITTERMFUN end 
)

Definition at line 10 of file initterm.c.

11{
13
14 TRACE("(%p,%p)\n",start,end);
15 while (current<end)
16 {
17 if (*current)
18 {
19 TRACE("Call init function %p\n",*current);
20 (**current)();
21 TRACE("returned\n");
22 }
23 current++;
24 }
25}
GLuint start
Definition: gl.h:1545
GLuint GLuint end
Definition: gl.h:1545
void(CDECL * _INITTERMFUN)(void)
Definition: initterm.c:3
struct task_struct * current
Definition: linux.c:32
#define TRACE(s)
Definition: solgame.cpp:4

◆ _initterm_e()

int CDECL _initterm_e ( _INITTERM_E_FN table,
_INITTERM_E_FN end 
)

Definition at line 32 of file initterm.c.

33{
34 int res = 0;
35
36 TRACE("(%p, %p)\n", table, end);
37
38 while (!res && table < end) {
39 if (*table) {
40 TRACE("calling %p\n", **table);
41 res = (**table)();
42 if (res)
43 TRACE("function %p failed: 0x%x\n", *table, res);
44
45 }
46 table++;
47 }
48 return res;
49}
GLuint res
Definition: glext.h:9613