summaryrefslogtreecommitdiff
path: root/xc/extras/Mesa/include/dmesadxe.h
blob: e57d4241dc2cc3bcea3862c2f54c83bbc8cc5dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
 * Dynamic module support v1.1 for Mesa 4.0.4
 *
 *  Copyright (C) 2002 - Borca Daniel
 *  Email : dborca@yahoo.com
 *  Web   : http://www.geocities.com/dborca
 */


#ifndef DMESADXE_H_included
#define DMESADXE_H_included

#include <assert.h>
#include <ctype.h>
#include <dpmi.h>
#include <fcntl.h>
#include <float.h>
#include <math.h>
#include <pc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stubinfo.h>
#include <sys/exceptn.h>
#include <sys/farptr.h>
#include <unistd.h>

extern void __djgpp_hw_exception (void);

#include "dxe2.h"

DXE_EXPORT_TABLE_AUTO (gl_glu_glut)
    DXE_EXPORT (abort)
    DXE_EXPORT (atoi)
    DXE_EXPORT (bsearch)
    DXE_EXPORT (calloc)
    DXE_EXPORT (close)
    DXE_EXPORT (cos)
    DXE_EXPORT (dup)
    DXE_EXPORT (dup2)
    DXE_EXPORT (exp)
    DXE_EXPORT (fclose)
    DXE_EXPORT (fflush)
    DXE_EXPORT (fgets)
    DXE_EXPORT (fopen)
    DXE_EXPORT (fprintf)
    DXE_EXPORT (fputc)
    DXE_EXPORT (fputs)
    DXE_EXPORT (free)
    DXE_EXPORT (fwrite)
    DXE_EXPORT (getc)
    DXE_EXPORT (getenv)
    DXE_EXPORT (inportb)
    DXE_EXPORT (log)
    DXE_EXPORT (malloc)
    DXE_EXPORT (memcpy)
    DXE_EXPORT (memset)
    DXE_EXPORT (movedata)
    DXE_EXPORT (open)
    DXE_EXPORT (outportb)
    DXE_EXPORT (pow)
    DXE_EXPORT (printf)
    DXE_EXPORT (putchar)
    DXE_EXPORT (puts)
    DXE_EXPORT (qsort)
    DXE_EXPORT (realloc)
    DXE_EXPORT (remove)
    DXE_EXPORT (sin)
    DXE_EXPORT (sprintf)
    DXE_EXPORT (sqrt)
    DXE_EXPORT (strcmp)
    DXE_EXPORT (strcpy)
    DXE_EXPORT (strlen)
    DXE_EXPORT (strncmp)
    DXE_EXPORT (strncpy)
    DXE_EXPORT (strstr)
    DXE_EXPORT (tan)
    DXE_EXPORT (tmpnam)
    DXE_EXPORT (ungetc)
    DXE_EXPORT (_farnspeekb)
    DXE_EXPORT (_farnspeekw)
    DXE_EXPORT (_farnspokeb)
    DXE_EXPORT (_farnspokew)
    DXE_EXPORT (_farpeekw)
    DXE_EXPORT (_farpokel)
    DXE_EXPORT (_farsetsel)
    DXE_EXPORT (_go32_dpmi_lock_code)
    DXE_EXPORT (_go32_dpmi_lock_data)
    DXE_EXPORT (_stubinfo)
    DXE_EXPORT (__djgpp_dos_sel)
    DXE_EXPORT (__djgpp_ds_alias)
    DXE_EXPORT (__djgpp_hw_exception)
    DXE_EXPORT (__dj_assert)
    DXE_EXPORT (__dj_ctype_flags)
    DXE_EXPORT (__dj_float_min)
    DXE_EXPORT (__dj_stderr)
    DXE_EXPORT (__dj_stdout)
    DXE_EXPORT (__dpmi_allocate_ldt_descriptors)
    DXE_EXPORT (__dpmi_free_ldt_descriptor)
    DXE_EXPORT (__dpmi_free_physical_address_mapping)
    DXE_EXPORT (__dpmi_get_segment_base_address)
    DXE_EXPORT (__dpmi_int)
    DXE_EXPORT (__dpmi_physical_address_mapping)
    DXE_EXPORT (__dpmi_set_segment_base_address)
    DXE_EXPORT (__dpmi_set_segment_limit)
DXE_EXPORT_END

#ifdef FX
#include "glid3dxe.h"

DECLARE_STATIC_DXE (GLID3)

static void __attribute__((constructor)) GLID3_load (void)
{
 load_GLID3();
}
#endif

DECLARE_STATIC_DXE (GL)
DECLARE_STATIC_DXE (GLU)

static void __attribute__((constructor)) GL_load (void)
{
 load_GL();
}

static void __attribute__((constructor)) GLU_load (void)
{
 load_GLU();
}

#endif