Permalink
Browse files

Merge pull request #118 from bpaquet/master

#116 : refactor to allow url with basic auth a:b@toto.com
  • Loading branch information...
pgriess committed Jul 25, 2012
2 parents 8ee3b0d + a828eda commit fb3eeb7d058148959bc0b7a50b18d2ce8036124c
Showing with 570 additions and 103 deletions.
  1. +1 −0 .gitignore
  2. +7 −1 Makefile
  3. +198 −94 http_parser.c
  4. +2 −1 http_parser.h
  5. +318 −7 test.c
  6. +44 −0 url_parser.c
View
@@ -4,6 +4,7 @@ tags
test
test_g
test_fast
+url_parser
*.mk
*.Makefile
*.so
View
@@ -31,6 +31,12 @@ test_fast: http_parser.o test.o http_parser.h
test.o: test.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) -c test.c -o $@
+url_parser: http_parser_g.o url_parser.o
+ $(CC) $(CFLAGS_DEBUG) $(LDFLAGS) http_parser_g.o url_parser.o -o $@
+
+url_parser.o: url_parser.c http_parser.h Makefile
+ $(CC) $(CPPFLAGS_DEBUG) $(CFLAGS_DEBUG) -c url_parser.c -o $@
+
http_parser.o: http_parser.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) -c http_parser.c
@@ -53,6 +59,6 @@ tags: http_parser.c http_parser.h test.c
ctags $^
clean:
- rm -f *.o *.a test test_fast test_g http_parser.tar tags libhttp_parser.so libhttp_parser.o
+ rm -f *.o *.a test test_fast test_g url_parser http_parser.tar tags libhttp_parser.so libhttp_parser.o
.PHONY: clean package test-run test-run-timed test-valgrind
Oops, something went wrong.

0 comments on commit fb3eeb7

Please sign in to comment.