Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

little clean ups

  • Loading branch information...
commit 841944665177944e9b0560bc14d47d13a1778d51 1 parent c547ffe
@ry ry authored
Showing with 11 additions and 10 deletions.
  1. +4 −1 Makefile
  2. +3 −2 README
  3. +3 −1 doc/index.html
  4. +1 −6 ebb_request_parser.rl
View
5 Makefile
@@ -99,4 +99,7 @@ uninstall:
rm -f ${PREFIX}/include/ebb.h
rm -f ${PREFIX}/include/ebb_request_parser.h
-.PHONY: all options clean clobber dist install uninstall test examples
+upload_website:
+ scp -r doc/index.html doc/icon.png rydahl@tinyclouds.org:~/web/public/libebb
+
+.PHONY: all options clean clobber dist install uninstall test examples upload_website
View
5 README
@@ -5,8 +5,9 @@ git repository: http://github.com/ry/libebb/tree/master
To build libebb please edit config.mk to reflect your system's parameters.
-(The MIT) LICENSE
-Copyright © 2008 Ryan Dahl (ry@tinyclouds.org)
+LICENSE (http://www.gnu.org/licenses/license-list.html#X11License)
+
+Copyright (c) 2008 Ryan Dahl (ry@ndahl.us)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
4 doc/index.html
@@ -75,7 +75,9 @@
list</a>. A release will be made when it proves stable.
</p>
- <p>libebb is released under the MIT license.</p>
+ <p>libebb is released under <a
+ href="http://www.gnu.org/licenses/license-list.html#X11License">the
+ X11 license</a>.</p>
<h2>Usage</h2>
View
7 ebb_request_parser.rl
@@ -43,12 +43,9 @@ static int unhex[] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
#define FALSE 0
#define MIN(a,b) (a < b ? a : b)
-
#define REMAINING (pe - p)
#define CURRENT (parser->current_request)
#define CONTENT_LENGTH (parser->current_request->content_length)
-
-#define LEN(FROM) (p - parser->FROM##_mark)
#define CALLBACK(FOR) \
if(parser->FOR##_mark && CURRENT->on_##FOR) { \
CURRENT->on_##FOR( CURRENT \
@@ -369,9 +366,7 @@ size_t ebb_request_parser_execute(ebb_request_parser *parser, const char *buffer
pe = buffer+len;
if(0 < parser->chunk_size && parser->eating) {
- /*
- * eat body
- */
+ /* eat body */
size_t eat = MIN(len, parser->chunk_size);
skip_body(&p, parser, eat);
}
Please sign in to comment.
Something went wrong with that request. Please try again.