Lines Matching full:done
125 static NEOERR * _read_line (CGI *cgi, char **s, int *l, int *done)
178 *done = 1;
203 static NEOERR * _read_header_line (CGI *cgi, STRING *line, int *done)
209 err = _read_line (cgi, &s, &l, done);
211 if (*done || (l == 0)) return STATUS_OK;
219 err = _read_line (cgi, &s, &l, done);
222 if (*done) break;
244 static BOOL _is_boundary (char *boundary, char *s, int l, int *done)
268 *done = 1;
274 static NEOERR * _find_boundary (CGI *cgi, char *boundary, int *done)
280 *done = 0;
283 err = _read_line (cgi, &s, &l, done);
285 if ((l == 0) || (*done)) {
286 *done = 1;
289 if (_is_boundary(boundary, s, l, done))
357 static NEOERR * _read_part (CGI *cgi, char *boundary, int *done)
374 err = _read_header_line (cgi, &str, done);
376 if (*done) break;
428 while (!(*done))
433 err = _read_line (cgi, &s, &l, done);
435 if (*done || (l == 0)) break;
436 if (_is_boundary(boundary, s, l, done)) break;
557 int done = 0;
574 err = _find_boundary(cgi, boundary, &done);
575 while (!err && !done)
577 err = _read_part (cgi, boundary, &done);