From cc53bdc6dc8918258e51c011f91125a1403849d3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Mar 2009 18:44:16 -0700 Subject: http11: remove unnecessary CPP definitions --- ext/unicorn/http11/http11.c | 3 --- ext/unicorn/http11/http11_parser.h | 4 ---- 2 files changed, 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 -#if defined(_WIN32) -#include -#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); -- cgit v1.2.3-24-ge0c7