From 2b5d06afb9847d09ed6e9e721a93740f1e7c2828 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 4 Jan 2010 13:00:43 +0100 Subject: [PATCH] wpp: Reset the line position when parsing a new file. --- libs/wpp/wpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/wpp/wpp.c b/libs/wpp/wpp.c index bce968aaea5..47989f18adb 100644 --- a/libs/wpp/wpp.c +++ b/libs/wpp/wpp.c @@ -168,6 +168,8 @@ int wpp_parse( const char *input, FILE *output ) int ret; pp_status.input = NULL; + pp_status.line_number = 0; + pp_status.char_number = 0; pp_status.state = 0; ret = pp_push_define_state();