ReactOS  0.4.13-dev-66-gc714b7f
zutil.c File Reference
#include "zutil.h"
Include dependency graph for zutil.c:

Go to the source code of this file.

Functions

void exit OF ((int))
 
void zmemcpy (Bytef *dest, const Bytef *source, uInt len)
 
int zmemcmp (Bytef *s1, const Bytef *s2, uInt len) const
 
void zmemzero (Bytef *dest, uInt len)
 
voidp ft_scalloc OF ((uInt items, uInt size))
 
void ft_sfree OF ((voidpf ptr))
 
voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
 
void zcfree (voidpf opaque, voidpf ptr)
 

Function Documentation

◆ OF() [1/3]

void exit OF ( (int )

◆ OF() [2/3]

◆ OF() [3/3]

void ft_sfree OF ( (voidpf ptr )

◆ zcalloc()

voidpf zcalloc ( voidpf  opaque,
unsigned  items,
unsigned  size 
)

Definition at line 164 of file zutil.c.

168 {
169  if (opaque) items += size - size; /* make compiler happy */
170  return (voidpf)ft_scalloc(items, size);
171 }
#define ft_scalloc
Definition: ftstdlib.h:132
GLsizeiptr size
Definition: glext.h:5919
Byte FAR * voidpf
Definition: zconf.h:413
static TCHAR * items[]
Definition: page1.c:45

Referenced by deflateInit2_(), inflateBackInit_(), and inflateInit2_().

◆ zcfree()

void zcfree ( voidpf  opaque,
voidpf  ptr 
)

Definition at line 173 of file zutil.c.

176 {
177  ft_sfree(ptr);
178  if (opaque) return; /* make compiler happy */
179 }
static PVOID ptr
Definition: dispmode.c:27
#define ft_sfree
Definition: ftstdlib.h:133

Referenced by deflateInit2_(), inflateBackInit_(), and inflateInit2_().

◆ zmemcmp()

int zmemcmp ( Bytef s1,
const Bytef s2,
uInt  len 
) const

Definition at line 28 of file zutil.c.

32 {
33  uInt j;
34 
35  for (j = 0; j < len; j++) {
36  if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1;
37  }
38  return 0;
39 }
struct S2 s2
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 GLint GLint j
Definition: glfuncs.h:250
struct S1 s1
GLenum GLsizei len
Definition: glext.h:6722
unsigned int uInt
Definition: zconf.h:393

◆ zmemcpy()

void zmemcpy ( Bytef dest,
const Bytef source,
uInt  len 
)

Definition at line 17 of file zutil.c.

21 {
22  if (len == 0) return;
23  do {
24  *dest++ = *source++; /* ??? to be unrolled */
25  } while (--len != 0);
26 }
GLenum GLsizei len
Definition: glext.h:6722
static char * dest
Definition: rtl.c:135

Referenced by _tr_stored_block(), deflate(), deflate_stored(), deflateCopy(), deflateGetDictionary(), fill_window(), flush_pending(), inflate(), inflate_blocks(), inflate_flush(), inflateBack(), inflateCopy(), inflateGetDictionary(), read_buf(), and updatewindow().

◆ zmemzero()

void zmemzero ( Bytef dest,
uInt  len 
)

Definition at line 41 of file zutil.c.

44 {
45  if (len == 0) return;
46  do {
47  *dest++ = 0; /* ??? to be unrolled */
48  } while (--len != 0);
49 }
GLenum GLsizei len
Definition: glext.h:6722
static char * dest
Definition: rtl.c:135

Referenced by fill_window().