• Pieter Noordhuis's avatar
    States for positive/negative integers · 3672c746
    Pieter Noordhuis authored
    This enables the parser to bail out on the first character that causes
    an overflow instead of checking for an overflow on the LF character.
    Doing this without separate states requires too much branching in the
    main loop that consumes integers (positive/negative overflow boundaries
    are different).
    3672c746
parser.c 10.1 KB