| 40 | } |
| 41 | #define SP(_c) ((_c)=='\t' || (_c)==' ') |
| 42 | inline static char* eat_lws_end(const char* p, const char* pend) |
| 43 | { |
| 44 | while(p<pend) { |
| 45 | if (SP(*p)) p++; |
| 46 | /* BTW--I really dislike line folding; -jiri */ |
| 47 | else if (*p=='\n' && p+1<pend && SP(*(p+1))) p+=2; |
| 48 | else if (*p=='\r' && p+2<pend && *(p+1)=='\n' |
| 49 | && SP(*(p+2))) p+=3; |
| 50 | else break; /* no whitespace encountered */ |
| 51 | } |
| 52 | return (char *)p; |
| 53 | } |
| 54 | |
| 55 | |
| 56 |
no outgoing calls
no test coverage detected