User: vins
Date: 06/08/03 02:24:39
Branch: xemacs/src release-21-4
Modified: xemacs/src ChangeLog bytecode.c
Log:
Replace alloca with malloc/free.
Revision Changes Path
1.290.2.112 +4 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.290.2.111
retrieving revision 1.290.2.112
diff -u -p -r1.290.2.111 -r1.290.2.112
--- ChangeLog 2006/07/04 13:14:11 1.290.2.111
+++ ChangeLog 2006/08/03 00:24:24 1.290.2.112
@@ -1,3 +1,7 @@
+2006-07-31 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * bytecode.c: Use xnew_array instead of alloca.
+
2006-07-04 Vin Shelton <acs(a)xemacs.org>
* redisplay-msw.c: Fix tiny, but crucial typo.
1.14.2.3 +2 -1 XEmacs/xemacs/src/bytecode.c
Index: bytecode.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/bytecode.c,v
retrieving revision 1.14.2.2
retrieving revision 1.14.2.3
diff -u -p -r1.14.2.2 -r1.14.2.3
--- bytecode.c 2005/01/31 02:55:04 1.14.2.2
+++ bytecode.c 2006/08/03 00:24:32 1.14.2.3
@@ -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;
@@ -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
Show replies by date