diff options
author | Eric Blake <ebb9@byu.net> | 2009-02-13 06:02:22 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-02-13 06:02:22 -0700 |
commit | efb88298e6f6933335f9cdfb1d96753271052efb (patch) | |
tree | 1f0e8d63dd43fe2e23de6c22a8b1b34a20823a26 | |
parent | 8c26ddfb1acdeb708111c2f410027af0dc25978e (diff) | |
download | m4-efb88298e6f6933335f9cdfb1d96753271052efb.tar.gz |
Speed up parsing when detecting input file change.
* m4/input.c (next_char): Clear input_change flag. Bug introduced
2006-10-25.
Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | m4/input.c | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2009-02-13 Eric Blake <ebb9@byu.net> + + Speed up parsing when detecting input file change. + * m4/input.c (next_char): Clear input_change flag. Bug introduced + 2006-10-25. + 2009-02-12 Eric Blake <ebb9@byu.net> Avoid quadratic code when walking definition stack. @@ -1,6 +1,6 @@ /* GNU m4 -- A simple macro processor - Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2006, 2007, 2008 - Free Software Foundation, Inc. + Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2006, 2007, 2008, + 2009 Free Software Foundation, Inc. This file is part of GNU M4. @@ -1287,6 +1287,7 @@ next_char (m4 *context, bool allow_quote, bool allow_argv, bool allow_unget) { m4_set_current_file (context, isp->file); m4_set_current_line (context, isp->line); + input_change = false; } assert (isp->funcs->read_func); |