Alexandre Julliard : wpp: Reset the line position when parsing a new file.

Alexandre Julliard julliard at winehq.org
Mon Jan 4 10:54:19 CST 2010


Module: wine
Branch: master
Commit: 2b5d06afb9847d09ed6e9e721a93740f1e7c2828
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2b5d06afb9847d09ed6e9e721a93740f1e7c2828

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan  4 13:00:43 2010 +0100

wpp: Reset the line position when parsing a new file.

---

 libs/wpp/wpp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libs/wpp/wpp.c b/libs/wpp/wpp.c
index bce968a..47989f1 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();




More information about the wine-cvs mailing list