@ -58,7 +58,7 @@ do { \
FOR # # _mark = p ; \
} while ( 0 )
# define CALLBACK _NOCLEAR (FOR) \
# define CALLBACK (FOR) \
do { \
if ( FOR # # _mark ) { \
if ( settings - > on_ # # FOR ) { \
@ -70,14 +70,8 @@ do { \
return ( p - data ) ; \
} \
} \
} \
} while ( 0 )
# define CALLBACK(FOR) \
do { \
CALLBACK_NOCLEAR ( FOR ) ; \
FOR # # _mark = NULL ; \
} \
} while ( 0 )
@ -1736,12 +1730,12 @@ size_t http_parser_execute (http_parser *parser,
}
}
CALLBACK _NOCLEAR ( header_field ) ;
CALLBACK _NOCLEAR ( header_value ) ;
CALLBACK _NOCLEAR ( fragment ) ;
CALLBACK _NOCLEAR ( query_string ) ;
CALLBACK _NOCLEAR ( path ) ;
CALLBACK _NOCLEAR ( url ) ;
CALLBACK ( header_field ) ;
CALLBACK ( header_value ) ;
CALLBACK ( fragment ) ;
CALLBACK ( query_string ) ;
CALLBACK ( path ) ;
CALLBACK ( url ) ;
parser - > state = state ;
parser - > header_state = header_state ;