Subversion Repositories Kolibri OS

Rev

Rev 6617 | Rev 6847 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6617 Rev 6639
Line 105... Line 105...
105
;end if
105
;end if
106
;    return flags;
106
;    return flags;
107
	ret
107
	ret
108
endp
108
endp
Line 109... Line -...
109
 
-
 
110
;if DEBUG
-
 
111
 
-
 
112
;#    define verbose 0
-
 
113
;int z_verbose = verbose;
-
 
114
 
109
 
115
;void (m)
110
;void (m)
116
;    char *m;
111
;    char *m
117
align 4
112
align 4
118
proc z_error, m:dword
113
proc z_error, m:dword
119
;    fprintf(stderr, "%s\n", m);
114
;    fprintf(stderr, "%s\n", m);
120
;    exit(1);
115
;    exit(1);
121
	ret
116
	ret
122
endp
-
 
Line 123... Line 117...
123
;end if
117
endp
124
 
118
 
Line 125... Line 119...
125
; exported to allow conversion of error code to string for compress() and
119
; exported to allow conversion of error code to string for compress() and
126
; uncompress()
120
; uncompress()
127
 
121
 
128
;const char * (err)
122
;const char * (err)
129
;    int err;
123
;    int err
-
 
124
align 4
130
align 4
125
proc zError uses ecx, err:dword
131
proc zError, err:dword
126
	ERR_MSG [err]
Line 132... Line 127...
132
;    return ERR_MSG(err);
127
	mov eax,ecx
Line 133... Line 128...
133
	ret
128
	ret
134
endp
129
endp
135
 
130
 
136
;#ifndef HAVE_MEMCPY
131
;#ifndef HAVE_MEMCPY
137
 
132
 
138
;void (dest, source, len)
133
;void (dest, source, len)
139
;    Bytef* dest;
134
;    Bytef* dest
140
;    const Bytef* source;
135
;    const Bytef* source
141
;    uInt  len;
136
;    uInt  len
Line 153... Line 148...
153
	.end0:
148
	.end0:
154
	ret
149
	ret
155
endp
150
endp
Line 156... Line 151...
156
 
151
 
157
;int (s1, s2, len)
152
;int (s1, s2, len)
158
;    const Bytef* s1;
153
;    const Bytef* s1
159
;    const Bytef* s2;
154
;    const Bytef* s2
160
;    uInt  len;
155
;    uInt  len
161
align 4
156
align 4
162
proc zmemcmp, s1:dword, s2:dword, len:dword
157
proc zmemcmp, s1:dword, s2:dword, len:dword
Line 163... Line 158...
163
;    uInt j;
158
;    uInt j;
Line 168... Line 163...
168
;    return 0;
163
;    return 0;
169
	ret
164
	ret
170
endp
165
endp
Line 171... Line 166...
171
 
166
 
172
;void (dest, len)
167
;void (dest, len)
173
;    Bytef* dest;
168
;    Bytef* dest
174
;    uInt  len;
169
;    uInt  len
175
align 4
170
align 4
176
proc zmemzero, dest:dword, len:dword
171
proc zmemzero, dest:dword, len:dword
177
;    if (len == 0) return;
172
;    if (len == 0) return;
178
;    do {
173
;    do {
179
;        *dest++ = 0;  /* ??? to be unrolled */
174
;        *dest++ = 0;  /* ??? to be unrolled */
180
;    } while (--len != 0);
175
;    } while (--len != 0);
181
	ret
176
	ret
182
endp
177
endp
Line 183... Line -...
183
;end if
-
 
184
 
-
 
185
;#ifndef Z_SOLO
178
;end if
186
 
179
 
187
;voidpf (voidpf opaque, unsigned items, unsigned size)
180
;voidpf (voidpf opaque, unsigned items, unsigned size)
188
align 4
181
align 4
189
proc zcalloc uses ebx ecx, opaque:dword, items:dword, size:dword
182
proc zcalloc uses ebx ecx, opaque:dword, items:dword, size:dword
Line 198... Line 191...
198
proc zcfree uses eax ebx ecx, opaque:dword, p2ptr:dword
191
proc zcfree uses eax ebx ecx, opaque:dword, p2ptr:dword
199
	mcall SF_SYS_MISC, SSF_MEM_FREE, [p2ptr]
192
	mcall SF_SYS_MISC, SSF_MEM_FREE, [p2ptr]
200
	ret
193
	ret
201
endp
194
endp
Line 202... Line -...
202
 
-