about summary refs log tree commit homepage
path: root/.gitignore
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-07-31 23:46:21 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-09 01:18:49 -0700
commitfb7f6739c5bc041a28ae45fea80f840459523f8e (patch)
treef4afd31a6d96a36d8865ccf180aaf51fb54229b8 /.gitignore
parente710d55dd171ab560d9cc1b1684f0e415b153c76 (diff)
downloadunicorn-fb7f6739c5bc041a28ae45fea80f840459523f8e.tar.gz
Use Data_Make_Struct instead of Data_Wrap_Struct to avoid extra
steps/code in object allocation.  The GC will also free()
implicitly if no free callback is passed to Data_Make_Struct,
and we don't need an extra method here...

Since we're more comfortable with object management nowadays,
just make the data_get() fail with an assertion failure if it
somehow (very unlikely) ends up getting a NULL parser object.
Unicorn itself has no way of recovering other than throwing
errors to clients anyways and we have bigger problems if there's
a GC bug causing this.

Then, finally, reduce the size of our http_parser struct even
more (we'll add an int back later) since we know it's safe to
do so...
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions