Mercurial > hg > xemacs-beta
diff src/bytecode.c @ 4970:5c89ceb69819
fix compile problems
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-02-04 Ben Wing <ben@xemacs.org>
* bytecode.c (assert_failed_with_remembered_ops):
* bytecode.c (init_opcode_table_multi_op):
Declare some things const to shut up G++ v4 warnings.
* redisplay.c (add_ibyte_string_runes):
* redisplay.c (add_string_to_fstring_db_runes):
* redisplay.c (generate_fstring_runes):
* redisplay.c (window_line_number):
* redisplay.c (decode_mode_spec):
Use Ascbyte instead of char in various places.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Thu, 04 Feb 2010 05:39:00 -0600 |
parents | cbe181529c34 |
children | fe0d3106cc36 |
line wrap: on
line diff
--- a/src/bytecode.c Wed Feb 03 21:46:21 2010 -0600 +++ b/src/bytecode.c Thu Feb 04 05:39:00 2010 -0600 @@ -155,7 +155,7 @@ static void assert_failed_with_remembered_ops (const Ascbyte *file, int line, - Ascbyte *msg_to_abort_with) + const Ascbyte *msg_to_abort_with) { Ascbyte *msg = alloca_array (Ascbyte, @@ -184,7 +184,7 @@ } else { - Ascbyte *opname = opcode_name_table[op]; + const Ascbyte *opname = opcode_name_table[op]; if (!opname) { stderr_out ("Internal error! NULL pointer in opcode_name_table, opcode %d\n", op); @@ -2817,7 +2817,7 @@ static void init_opcode_table_multi_op (Opcode op) { - Ascbyte *basename = opcode_name_table[op]; + const Ascbyte *basename = opcode_name_table[op]; Ascbyte temp[300]; int i;