Skip to content
Commits on Jun 19, 2011
  1. @pgriess

    Re-jigger Makefile.

    pgriess committed
    - Uses more standard $CFLAGS and $CPPFLAGS variables to populate the set
      of flags to build with.
    - Allow extending compilation and linking flags with
      $CPPFLAGS_DEBUG_EXTRA, $CPPFLAGS_FAST_EXTRA, $CFLAGS_DEBUG_EXTRA, and
      $CFLAGS_FAST_EXTRA.
    
    Closes #40.
  2. @pgriess

    Facility to report detailed parsing errors.

    pgriess committed
    - Add http_errno enum w/ values for many parsing error conditions. Stash
      this in http_parser.state if the 0x80 bit is set.
    - Report line numbers on error generation if the (new) HTTP_PARSER_DEBUG
      cpp symbol is set. Increases http_parser struct size by 8 bytes in
      this case.
    - Add http_errno_*() methods to help turning errno values into
      human-readable messages.
Commits on May 28, 2011
  1. @pgriess @ry

    IS_* macros for char classes.

    pgriess committed with ry
    - Add IS_ALPHA(), IS_NUM(), IS_HOST_CHAR(), etc. macros for determining
      membership in a character class. HTTP_PARSER_STRICT causes some of
      these definitions to change.
    - Support '_' character in hostnames in non-strict mode.
    - Support leading digits in hostnames when the method is HTTP_CONNECT.
    - Don't re-define HTTP_PARSER_STRICT in http_parser.h if it's already
      defined.
    - Tweak Makefile to run non-strict-mode unit tests. Rearrange non-strict
      mode unit tests in test.c.
    - Add test_fast to .gitignore.
    
    Fixes #44
Something went wrong with that request. Please try again.