comparison src/http/ngx_http_parse.c @ 441:da8c5707af39

nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
author Igor Sysoev <igor@sysoev.ru>
date Tue, 28 Sep 2004 08:34:51 +0000
parents 11362a3e3911
children 42d11f017717
comparison
equal deleted inserted replaced
440:f390d1775430 441:da8c5707af39
1
2 /*
3 * Copyright (C) 2002-2004 Igor Sysoev
4 */
5
1 6
2 #include <ngx_config.h> 7 #include <ngx_config.h>
3 #include <ngx_core.h> 8 #include <ngx_core.h>
4 #include <ngx_http.h> 9 #include <ngx_http.h>
5 10
37 p = b->pos; 42 p = b->pos;
38 43
39 while (p < b->last && state < sw_done) { 44 while (p < b->last && state < sw_done) {
40 ch = *p++; 45 ch = *p++;
41 46
42 /* gcc 2.95.2 and vc 6.0 compile this switch as an jump table */ 47 /* gcc 2.95.2 and msvc 6.0 compile this switch as an jump table */
43 48
44 switch (state) { 49 switch (state) {
45 50
46 /* HTTP methods: GET, HEAD, POST */ 51 /* HTTP methods: GET, HEAD, POST */
47 case sw_start: 52 case sw_start: