diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-09 18:44:16 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-10 18:40:43 -0700 |
commit | cc53bdc6dc8918258e51c011f91125a1403849d3 (patch) | |
tree | de9f936978f063ac2680ffedb17bbcc5c8f27da7 /ext/unicorn | |
parent | abd98f4bb5b90fcb740cfa659bf41a73be5aec4d (diff) | |
download | unicorn-cc53bdc6dc8918258e51c011f91125a1403849d3.tar.gz |
Diffstat (limited to 'ext/unicorn')
-rw-r--r-- | ext/unicorn/http11/http11.c | 3 | ||||
-rw-r--r-- | ext/unicorn/http11/http11_parser.h | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/ext/unicorn/http11/http11.c b/ext/unicorn/http11/http11.c index 82982e7..bd22274 100644 --- a/ext/unicorn/http11/http11.c +++ b/ext/unicorn/http11/http11.c @@ -19,7 +19,6 @@ static VALUE mUnicorn; static VALUE cHttpParser; static VALUE eHttpParserError; -#define id_handler_map rb_intern("@handler_map") #define HTTP_PREFIX "HTTP_" #define HTTP_PREFIX_LEN (sizeof(HTTP_PREFIX) - 1) @@ -44,8 +43,6 @@ static VALUE global_http_host; static VALUE global_port_80; static VALUE global_localhost; -#define TRIE_INCREASE 30 - /** Defines common length and error messages for input length validation. */ #define DEF_MAX_LENGTH(N,length) const size_t MAX_##N##_LENGTH = length; const char *MAX_##N##_LENGTH_ERR = "HTTP element " # N " is longer than the " # length " allowed length." diff --git a/ext/unicorn/http11/http11_parser.h b/ext/unicorn/http11/http11_parser.h index 8d074ba..c96b3a0 100644 --- a/ext/unicorn/http11/http11_parser.h +++ b/ext/unicorn/http11/http11_parser.h @@ -8,10 +8,6 @@ #include <sys/types.h> -#if defined(_WIN32) -#include <stddef.h> -#endif - typedef void (*element_cb)(void *data, const char *at, size_t length); typedef void (*field_cb)(void *data, const char *field, size_t flen, const char *value, size_t vlen); |