Skip to content

Commit

Permalink
Rename Rev to Coolio in HTTP client
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Arcieri committed Nov 6, 2010
1 parent 9f1f374 commit 723fc7f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ext/http11_client/http11_client.c
Expand Up @@ -10,7 +10,7 @@
#include "http11_parser.h"
#include <ctype.h>

static VALUE mRev;
static VALUE mCoolio;
static VALUE cHttpClientParser;
static VALUE eHttpClientParserError;

Expand Down Expand Up @@ -284,11 +284,11 @@ VALUE HttpClientParser_nread(VALUE self)
void Init_http11_client()
{

mRev = rb_define_module("Rev");
mCoolio = rb_define_module("Coolio");

eHttpClientParserError = rb_define_class_under(mRev, "HttpClientParserError", rb_eIOError);
eHttpClientParserError = rb_define_class_under(mCoolio, "HttpClientParserError", rb_eIOError);

cHttpClientParser = rb_define_class_under(mRev, "HttpClientParser", rb_cObject);
cHttpClientParser = rb_define_class_under(mCoolio, "HttpClientParser", rb_cObject);
rb_define_alloc_func(cHttpClientParser, HttpClientParser_alloc);
rb_define_method(cHttpClientParser, "initialize", HttpClientParser_init,0);
rb_define_method(cHttpClientParser, "reset", HttpClientParser_reset,0);
Expand All @@ -297,6 +297,4 @@ void Init_http11_client()
rb_define_method(cHttpClientParser, "error?", HttpClientParser_has_error,0);
rb_define_method(cHttpClientParser, "finished?", HttpClientParser_is_finished,0);
rb_define_method(cHttpClientParser, "nread", HttpClientParser_nread,0);
}


}

0 comments on commit 723fc7f

Please sign in to comment.