emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111997: * src/bytecode.c (struct byt


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111997: * src/bytecode.c (struct byte_stack): Remove `constants' when unused.
Date: Sun, 10 Mar 2013 17:46:55 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111997
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Sun 2013-03-10 17:46:55 -0400
message:
  * src/bytecode.c (struct byte_stack): Remove `constants' when unused.
modified:
  src/ChangeLog
  src/bytecode.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-03-10 17:28:04 +0000
+++ b/src/ChangeLog     2013-03-10 21:46:55 +0000
@@ -1,14 +1,18 @@
+2013-03-10  Stefan Monnier  <address@hidden>
+
+       * bytecode.c (struct byte_stack): Remove `constants' when unused.
+
 2013-03-10  Eli Zaretskii  <address@hidden>
 
        * xdisp.c (display_tool_bar_line, redisplay_tool_bar)
        (redisplay_internal, set_cursor_from_row, try_window)
        (try_window_id, dump_glyph_row, extend_face_to_end_of_line)
        (display_line, notice_overwritten_cursor)
-       (mouse_face_from_buffer_pos, note_mouse_highlight): Use
-       MATRIX_ROW_DISPLAYS_TEXT_P.
+       (mouse_face_from_buffer_pos, note_mouse_highlight):
+       Use MATRIX_ROW_DISPLAYS_TEXT_P.
        (note_mouse_highlight): Use MATRIX_ROW_GLYPH_START.
-       (mouse_face_from_string_pos, fast_find_string_pos): Use
-       MATRIX_ROW_VPOS.
+       (mouse_face_from_string_pos, fast_find_string_pos):
+       Use MATRIX_ROW_VPOS.
 
        * xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
 
@@ -25,8 +29,8 @@
 
        * coding.c (detect_coding): Cound the heading ASCII bytes in the
        case of detection for coding_category_utf_8_auto.
-       (decode_coding_gap) [not CODING_DISABLE_ASCII_OPTIMIZATION]: Skip
-       decoding if all bytes are ASCII.
+       (decode_coding_gap) [not CODING_DISABLE_ASCII_OPTIMIZATION]:
+       Skip decoding if all bytes are ASCII.
 
        * insdel.c (adjust_after_replace): Make it public.  New arg
        text_at_gap_tail.

=== modified file 'src/bytecode.c'
--- a/src/bytecode.c    2013-01-02 16:13:04 +0000
+++ b/src/bytecode.c    2013-03-10 21:46:55 +0000
@@ -313,9 +313,11 @@
   Lisp_Object byte_string;
   const unsigned char *byte_string_start;
 
+#if BYTE_MARK_STACK
   /* The vector of constants used during byte-code execution.  Storing
      this here protects it from GC because mark_byte_stack marks it.  */
   Lisp_Object constants;
+#endif
 
   /* Next entry in byte_stack_list.  */
   struct byte_stack *next;
@@ -379,12 +381,12 @@
 }
 
 
-/* Fetch the next byte from the bytecode stream */
+/* Fetch the next byte from the bytecode stream.  */
 
 #define FETCH *stack.pc++
 
 /* Fetch two bytes from the bytecode stream and make a 16-bit number
-   out of them */
+   out of them.  */
 
 #define FETCH2 (op = FETCH, op + (FETCH << 8))
 
@@ -404,7 +406,7 @@
 #define DISCARD(n) (top -= (n))
 
 /* Get the value which is at the top of the execution stack, but don't
-   pop it. */
+   pop it.  */
 
 #define TOP (*top)
 
@@ -535,7 +537,9 @@
 
   stack.byte_string = bytestr;
   stack.pc = stack.byte_string_start = SDATA (bytestr);
+#if BYTE_MARK_STACK
   stack.constants = vector;
+#endif
   if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth))
     memory_full (SIZE_MAX);
   top = alloca ((XFASTINT (maxdepth) + 1) * sizeof *top);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]