about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-21 11:14:46 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-21 11:16:29 -0700
commit44d731cebec9c95e3a5cfc1fe7b7aeafcb3fe3b4 (patch)
tree6314df91feba8944b0104cd631b659d4267a435c /GNUmakefile
parent7b6512704b53065fc12fedf1341657435c91d0a4 (diff)
downloadunicorn-44d731cebec9c95e3a5cfc1fe7b7aeafcb3fe3b4.tar.gz
There's no point in having redefinable callbacks if they're
always going to be pointed to the same function.  This reduces
the size of the http_parser structure to half its original size.

This change may actually make more sense in servers Mongrel/Thin
than Unicorn since Unicorn only has one parser per-process while
other servers can have hundreds or even thousands.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 7b871d4..833e990 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -26,12 +26,12 @@ T_r_log := $(subst .r,$(log_suffix),$(T_r))
 test_prefix = $(CURDIR)/test/install-$(RUBY_VERSION)
 
 http11_deps := $(addprefix ext/unicorn/http11/, \
-                 ext_help.h http11.c http11_parser.c http11_parser.h \
+                 ext_help.h http11.c http11_parser.h \
                  http11_parser.rl http11_parser_common.rl)
 inst_deps := $(wildcard bin/*) $(wildcard lib/*.rb) \
   $(wildcard lib/*/*.rb) $(http11_deps)
 
-ext/unicorn/http11/http11_parser.c: $(wildcard ext/unicorn/http11/*.rl)
+ext/unicorn/http11/http11_parser.h: $(wildcard ext/unicorn/http11/*.rl)
         cd $(@D) && ragel http11_parser.rl -C -G2 -o $(@F)
         $(ruby) -i -p -e '$$_.gsub!(%r{[ \t]*$$},"")' $@
 ext/unicorn/http11/Makefile: ext/unicorn/http11/extconf.rb $(http11_deps)