about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-21 10:25:19 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-21 10:25:19 +0000
commitdaecee105fa0463f53adc0c02bd777f37b137321 (patch)
treeccac86e05ba5dfb9a6719600525250d8caa7a2ef /ext
parent77a2cd78ee1cfacc39009971bd0e8908a3cd7c3f (diff)
downloadunicorn-daecee105fa0463f53adc0c02bd777f37b137321.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@202 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'ext')
-rw-r--r--ext/http11/http11.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c
index f73d872..d81f741 100644
--- a/ext/http11/http11.c
+++ b/ext/http11/http11.c
@@ -32,6 +32,8 @@ static VALUE global_mongrel_version;
 static VALUE global_server_software;
 static VALUE global_port_80;
 
+#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.";
 
@@ -63,7 +65,7 @@ void http_field(void *data, const char *field, size_t flen, const char *value, s
   v = rb_str_new(value, vlen);
   f = rb_str_dup(global_http_prefix);
   f = rb_str_buf_cat(f, field, flen);
-  
+
   for(ch = RSTRING(f)->ptr, end = ch + RSTRING(f)->len; ch < end; ch++) {
     if(*ch == '-') {
       *ch = '_';
@@ -100,7 +102,7 @@ void query_string(void *data, const char *at, size_t length)
 {
   VALUE req = (VALUE)data;
   VALUE val = Qnil;
-  
+
   VALIDATE_MAX_LENGTH(length, QUERY_STRING);
 
   val = rb_str_new(at, length);
@@ -337,7 +339,6 @@ void URIClassifier_free(void *data)
 }
 
 
-#define TRIE_INCREASE 30
 
 VALUE URIClassifier_alloc(VALUE klass)
 {