11 extern void exit
OF((
int));
35 for (j = 0; j <
len; j++) {
36 if (s1[j] != s2[j])
return 2*(s1[
j] > s2[
j])-1;
52 #if defined( MSDOS ) && defined( __TURBOC__ ) && !defined( MY_ZCALLOC )
53 #if (defined( __BORLANDC__) || !defined(SMALL_MEDIUM)) && !defined(__32BIT__)
68 local int next_ptr = 0;
70 typedef struct ptr_table_s {
86 ulg bsize = (
ulg)items*size;
92 buf = farmalloc(bsize);
93 if (*(
ush*)&buf != 0)
return buf;
95 buf = farmalloc(bsize + 16L);
97 if (buf ==
NULL || next_ptr >= MAX_PTR)
return NULL;
98 table[next_ptr].org_ptr =
buf;
101 *((
ush*)&buf+1) += ((
ush)((
uch*)buf-0) + 15) >> 4;
103 table[next_ptr++].new_ptr =
buf;
110 if (*(
ush*)&ptr != 0) {
115 for (n = 0; n < next_ptr; n++) {
116 if (ptr != table[n].new_ptr)
continue;
118 farfree(table[n].org_ptr);
119 while (++n < next_ptr) {
120 table[n-1] = table[
n];
126 Assert(0,
"zcfree: ptr not found");
132 #if defined(M_I86) && !defined(__32BIT__) && !defined( MY_ZCALLOC )
137 #if (!defined(_MSC_VER) || (_MSC_VER <= 600))
138 # define _halloc halloc
139 # define _hfree hfree
144 if (opaque) opaque = 0;
145 return _halloc((
long)items, size);
150 if (opaque) opaque = 0;
169 if (opaque) items += size -
size;
GLenum GLsizei GLenum GLenum const GLvoid * table
void zmemzero(Bytef *dest, uInt len)
void zmemcpy(Bytef *dest, const Bytef *source, uInt len)
void zcfree(voidpf opaque, voidpf ptr)
int zmemcmp(Bytef *s1, const Bytef *s2, uInt len) const
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
voidpf zcalloc(voidpf opaque, unsigned items, unsigned size)
GLenum GLuint GLsizei const GLchar * buf
#define Assert(cond, msg)
GLsizei GLsizei GLchar * source