aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2012-10-16 11:56:44 +0400
committerDmitry Antipov2012-10-16 11:56:44 +0400
commit12fbe7552ce1614d54728736ea11a75fc5e0761f (patch)
treed507cc09a104c185eb43cf5a924bff2e4b6f8b86 /src
parent61655b89f454597079c7f1ddf680d654c2c5f4e8 (diff)
downloademacs-12fbe7552ce1614d54728736ea11a75fc5e0761f.tar.gz
emacs-12fbe7552ce1614d54728736ea11a75fc5e0761f.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/alloc.c2
-rw-r--r--src/indent.c6
-rw-r--r--src/print.c2
4 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 26bd1925a5f..3c62dffc3e0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12012-10-16 Dmitry Antipov <dmantipov@yandex.ru> 12012-10-16 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 * alloc.c (Fmake_byte_code): Fix typo in comment.
4 * print.c (print_interval): Define as static to match prototype.
5 * indent.c (disptab_matches_widthtab, recompute_width_table):
6 Convert to eassert.
7
82012-10-16 Dmitry Antipov <dmantipov@yandex.ru>
9
3 * editfns.c (get_system_name): Remove. 10 * editfns.c (get_system_name): Remove.
4 * lisp.h (get_system_name): Remove prototype. 11 * lisp.h (get_system_name): Remove prototype.
5 * xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes. 12 * xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes.
diff --git a/src/alloc.c b/src/alloc.c
index 95be8db1614..0afe446d269 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3100,7 +3100,7 @@ usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INT
3100 ptrdiff_t i; 3100 ptrdiff_t i;
3101 register struct Lisp_Vector *p; 3101 register struct Lisp_Vector *p;
3102 3102
3103 /* We used to purecopy everything here, if purify-flga was set. This worked 3103 /* We used to purecopy everything here, if purify-flag was set. This worked
3104 OK for Emacs-23, but with Emacs-24's lexical binding code, it can be 3104 OK for Emacs-23, but with Emacs-24's lexical binding code, it can be
3105 dangerous, since make-byte-code is used during execution to build 3105 dangerous, since make-byte-code is used during execution to build
3106 closures, so any closure built during the preload phase would end up 3106 closures, so any closure built during the preload phase would end up
diff --git a/src/indent.c b/src/indent.c
index 81a63455ecb..bbc944d2518 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -119,8 +119,7 @@ disptab_matches_widthtab (struct Lisp_Char_Table *disptab, struct Lisp_Vector *w
119{ 119{
120 int i; 120 int i;
121 121
122 if (widthtab->header.size != 256) 122 eassert (widthtab->header.size == 256);
123 emacs_abort ();
124 123
125 for (i = 0; i < 256; i++) 124 for (i = 0; i < 256; i++)
126 if (character_width (i, disptab) 125 if (character_width (i, disptab)
@@ -141,8 +140,7 @@ recompute_width_table (struct buffer *buf, struct Lisp_Char_Table *disptab)
141 if (!VECTORP (BVAR (buf, width_table))) 140 if (!VECTORP (BVAR (buf, width_table)))
142 bset_width_table (buf, Fmake_vector (make_number (256), make_number (0))); 141 bset_width_table (buf, Fmake_vector (make_number (256), make_number (0)));
143 widthtab = XVECTOR (BVAR (buf, width_table)); 142 widthtab = XVECTOR (BVAR (buf, width_table));
144 if (widthtab->header.size != 256) 143 eassert (widthtab->header.size == 256);
145 emacs_abort ();
146 144
147 for (i = 0; i < 256; i++) 145 for (i = 0; i < 256; i++)
148 XSETFASTINT (widthtab->contents[i], character_width (i, disptab)); 146 XSETFASTINT (widthtab->contents[i], character_width (i, disptab));
diff --git a/src/print.c b/src/print.c
index 49b491faec8..ccf0e8ed7cc 100644
--- a/src/print.c
+++ b/src/print.c
@@ -2075,7 +2075,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
2075/* Print a description of INTERVAL using PRINTCHARFUN. 2075/* Print a description of INTERVAL using PRINTCHARFUN.
2076 This is part of printing a string that has text properties. */ 2076 This is part of printing a string that has text properties. */
2077 2077
2078void 2078static void
2079print_interval (INTERVAL interval, Lisp_Object printcharfun) 2079print_interval (INTERVAL interval, Lisp_Object printcharfun)
2080{ 2080{
2081 if (NILP (interval->plist)) 2081 if (NILP (interval->plist))