/* exported to allow conversion of error code to string for compress() and *uncompress()
*/ constchar * ZEXPORT zError(int err) { return ERR_MSG(err);
}
#ifdefined(_WIN32_WCE) && _WIN32_WCE < 0x800 /* The older Microsoft C Run-Time Library for Windows CE doesn't have *errno.Wedefineitasaglobalvariabletosimplifyporting. *Itsvalueisalways0andshouldnotbeused.
*/ int errno = 0; #endif
#ifndef HAVE_MEMCPY
void ZLIB_INTERNAL zmemcpy(void FAR *dst, constvoid FAR *src, z_size_t n) {
uchf *p = dst; const uchf *q = src; while (n) {
*p++ = *q++;
n--;
}
}
int ZLIB_INTERNAL zmemcmp(constvoid FAR *s1, constvoid FAR *s2, z_size_t n) { const uchf *p = s1, *q = s2; while (n) { if (*p++ != *q++) return (int)p[-1] - (int)q[-1];
n--;
} return0;
}
void ZLIB_INTERNAL zmemzero(void FAR *b, z_size_t len) {
uchf *p = b; if (len == 0) return; while (len) {
*p++ = 0;
len--;
}
}
#endif
#ifndef Z_SOLO
#ifdef SYS16BIT
#ifdef __TURBOC__ /* Turbo C in 16-bit mode */
# define MY_ZCALLOC
/* Turbo C malloc() does not allow dynamic allocation of 64K bytes *andfarmalloc(64K)returnsapointerwithanoffsetof8,sowe *mustfixthepointer.Warning:thepointermustbeputbacktoits *originalforminordertofreeit,usezcfree().
*/
local ptr_table table[MAX_PTR]; /* This table is used to remember the original form of pointers *tolargebuffers(64K).Suchpointersarenormalizedwithazerooffset. *SinceMSDOSisnotapreemptivemultitaskingOS,thistableisnot *protectedfromconcurrentaccess.Thishackdoesn'tworkanywayon *aprotectedsystemlikeOS/2.UseMicrosoftCinstead.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.