emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r110558: * alloc.c (Fmake_byte_code):


From: Dmitry Antipov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110558: * alloc.c (Fmake_byte_code): Fix typo in comment.
Date: Tue, 16 Oct 2012 11:56:44 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110558
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Tue 2012-10-16 11:56:44 +0400
message:
  * alloc.c (Fmake_byte_code): Fix typo in comment.
  * print.c (print_interval): Define as static to match prototype.
  * indent.c (disptab_matches_widthtab, recompute_width_table):
  Convert to eassert.
modified:
  src/ChangeLog
  src/alloc.c
  src/indent.c
  src/print.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-10-16 02:22:25 +0000
+++ b/src/ChangeLog     2012-10-16 07:56:44 +0000
@@ -1,5 +1,12 @@
 2012-10-16  Dmitry Antipov  <address@hidden>
 
+       * alloc.c (Fmake_byte_code): Fix typo in comment.
+       * print.c (print_interval): Define as static to match prototype.
+       * indent.c (disptab_matches_widthtab, recompute_width_table):
+       Convert to eassert.
+
+2012-10-16  Dmitry Antipov  <address@hidden>
+
        * editfns.c (get_system_name): Remove.
        * lisp.h (get_system_name): Remove prototype.
        * xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes.

=== modified file 'src/alloc.c'
--- a/src/alloc.c       2012-10-10 15:31:21 +0000
+++ b/src/alloc.c       2012-10-16 07:56:44 +0000
@@ -3100,7 +3100,7 @@
   ptrdiff_t i;
   register struct Lisp_Vector *p;
 
-  /* We used to purecopy everything here, if purify-flga was set.  This worked
+  /* We used to purecopy everything here, if purify-flag was set.  This worked
      OK for Emacs-23, but with Emacs-24's lexical binding code, it can be
      dangerous, since make-byte-code is used during execution to build
      closures, so any closure built during the preload phase would end up

=== modified file 'src/indent.c'
--- a/src/indent.c      2012-10-10 15:10:57 +0000
+++ b/src/indent.c      2012-10-16 07:56:44 +0000
@@ -119,8 +119,7 @@
 {
   int i;
 
-  if (widthtab->header.size != 256)
-    emacs_abort ();
+  eassert (widthtab->header.size == 256);
 
   for (i = 0; i < 256; i++)
     if (character_width (i, disptab)
@@ -141,8 +140,7 @@
   if (!VECTORP (BVAR (buf, width_table)))
     bset_width_table (buf, Fmake_vector (make_number (256), make_number (0)));
   widthtab = XVECTOR (BVAR (buf, width_table));
-  if (widthtab->header.size != 256)
-    emacs_abort ();
+  eassert (widthtab->header.size == 256);
 
   for (i = 0; i < 256; i++)
     XSETFASTINT (widthtab->contents[i], character_width (i, disptab));

=== modified file 'src/print.c'
--- a/src/print.c       2012-09-23 08:44:20 +0000
+++ b/src/print.c       2012-10-16 07:56:44 +0000
@@ -2075,7 +2075,7 @@
 /* Print a description of INTERVAL using PRINTCHARFUN.
    This is part of printing a string that has text properties.  */
 
-void
+static void
 print_interval (INTERVAL interval, Lisp_Object printcharfun)
 {
   if (NILP (interval->plist))


reply via email to

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