http: generic C string vs VALUEs comparison function
commit60b4397f51894d5e679a6eed73a8cde957f03c4a
authorEric Wong <normalperson@yhbt.net>
Sun, 2 Aug 2009 23:16:28 +0000 (2 16:16 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 9 Aug 2009 08:29:40 +0000 (9 01:29 -0700)
tree9da48622b713dd0f3913f83a83a4c0e420f936ff
parent074dc90aaefc17dd5a60c3f67187305924849b05
http: generic C string vs VALUEs comparison function

The macro version lets us painlessly compare Ruby strings
against constant C strings.  It wraps a C version of the
function which is necessary to avoid double evaluation while
preventing the user from having to type sizeof or strlen.
ext/unicorn_http/ext_help.h
ext/unicorn_http/unicorn_http.rl