X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fbytecode.c;h=72f5d62a67970432a229ebf6fb9cda63afd6b5b2;hb=096307f5ab2ee53e50d94562e1eadb6966fcaa40;hp=58ebc0c170dba790ba9e87c4f8ec543180590ee9;hpb=dbf2768f7b146e97e37a27316f70bb313f1acf15;p=chise%2Fxemacs-chise.git diff --git a/src/bytecode.c b/src/bytecode.c index 58ebc0c..72f5d62 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -1476,7 +1476,7 @@ execute_rare_opcode (Lisp_Object *stack_ptr, } default: - abort(); + ABORT(); break; } return stack_ptr; @@ -1624,7 +1624,7 @@ optimize_byte_code (/* in */ int from; int to; }; - struct jump * const jumps = alloca_array (struct jump, comfy_size); + struct jump * const jumps = xnew_array (struct jump, comfy_size); struct jump *jumps_ptr = jumps; Opbyte *program_ptr = program; @@ -1859,7 +1859,7 @@ optimize_byte_code (/* in */ break; default: - abort(); + ABORT(); break; } } @@ -1868,6 +1868,7 @@ optimize_byte_code (/* in */ /* *program_ptr++ = 0; */ *program_length = program_ptr - program; + xfree(jumps); } /* Optimize the byte code and store the optimized program, only @@ -1893,7 +1894,8 @@ optimize_compiled_function (Lisp_Object compiled_function) program = alloca_array (Opbyte, 1 + 2 * XSTRING_LENGTH (f->instructions)); optimize_byte_code (f->instructions, f->constants, program, &program_length, &varbind_count); - f->specpdl_depth = XINT (Flength (f->arglist)) + varbind_count; + f->specpdl_depth = (unsigned short) (XINT (Flength (f->arglist)) + + varbind_count); f->instructions = make_opaque (program, program_length * sizeof (Opbyte)); } @@ -2357,7 +2359,7 @@ If the byte code for compiled function FUNCTION is lazy-loaded, fetch it now. f->constants = XCDR (tem); return function; } - abort (); + ABORT (); return Qnil; /* not reached */ }