summaryrefslogtreecommitdiff
path: root/src/freeze.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2007-11-05 20:37:52 -0700
committerEric Blake <ebb9@byu.net>2007-11-05 20:37:52 -0700
commit892295b5672cc38a55b1a727fc11297d145cfe18 (patch)
tree77f727c6dad27603437cf299548396ba77f0062a /src/freeze.c
parent94692e6c0e3287149061f5e0bd1c4d5dc02e2fd8 (diff)
downloadm4-892295b5672cc38a55b1a727fc11297d145cfe18.tar.gz
Use assert, rather than INTERNAL ERROR.
* src/m4.h: Include <assert.h>. * src/builtin.c (m4_dumpdef, define_macro, m4_defn): Use assert. * src/debug.c (trace_pre): Likewise. * src/eval.c (evaluate, cmp_term, shift_term, mult_term): Likewise. * src/freeze.c (produce_frozen_state): Likewise. * src/input.c (push_string_init, pop_input, init_macro_token) (peek_input, next_char_1, set_word_regexp): Likewise. * src/m4.c (main): Likewise. * src/macro.c (expand_token, expand_argument, call_macro): Likewise. * src/output.c (make_diversion): Likewise. * src/symtab.c (symtab_init): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'src/freeze.c')
-rw-r--r--src/freeze.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/freeze.c b/src/freeze.c
index 18280f7b..2858e64d 100644
--- a/src/freeze.c
+++ b/src/freeze.c
@@ -115,8 +115,7 @@ produce_frozen_state (const char *name)
bp = find_builtin_by_addr (SYMBOL_FUNC (sym));
if (bp == NULL)
{
- M4ERROR ((warning_status, 0, "\
-INTERNAL ERROR: builtin not found in builtin table!"));
+ assert (!"produce_frozen_state");
abort ();
}
xfprintf (file, "F%d,%d\n",
@@ -132,8 +131,7 @@ INTERNAL ERROR: builtin not found in builtin table!"));
break;
default:
- M4ERROR ((warning_status, 0, "\
-INTERNAL ERROR: bad token data type in freeze_one_symbol ()"));
+ assert (!"produce_frozen_state");
abort ();
break;
}