changeset 46545:99d1224dfe6c

(struct byte_stack): Pointers into byte string now point to const.
author Ken Raeburn <raeburn@raeburn.org>
date Fri, 19 Jul 2002 14:26:46 +0000
parents 513411cc4308
children 254af4bff749
files src/bytecode.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/bytecode.c	Fri Jul 19 13:32:53 2002 +0000
+++ b/src/bytecode.c	Fri Jul 19 14:26:46 2002 +0000
@@ -239,7 +239,7 @@
 {
   /* Program counter.  This points into the byte_string below
      and is relocated when that string is relocated.  */
-  unsigned char *pc;
+  const unsigned char *pc;
 
   /* Top and bottom of stack.  The bottom points to an area of memory
      allocated with alloca in Fbyte_code.  */
@@ -249,7 +249,7 @@
      Storing this here protects it from GC because mark_byte_stack
      marks it.  */
   Lisp_Object byte_string;
-  unsigned char *byte_string_start;
+  const unsigned char *byte_string_start;
 
   /* The vector of constants used during byte-code execution.  Storing
      this here protects it from GC because mark_byte_stack marks it.  */