aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-08-18 16:53:43 -0700
committerPaul Eggert2012-08-18 16:53:43 -0700
commite757f1c6f393cf82057dbee0a4325b07f0fd55c4 (patch)
tree114b122ca03e38109f46b2aac0ab3334bc68a569 /src
parent51e6d6b2f5799ae3fc9c33930e0c4b456e1bbbdd (diff)
downloademacs-e757f1c6f393cf82057dbee0a4325b07f0fd55c4.tar.gz
emacs-e757f1c6f393cf82057dbee0a4325b07f0fd55c4.zip
port new setting code to Sun C 5.8 2005/10/13
* chartab.c, lisp.h (char_table_set, char_table_set_range): Return void, not Lisp_Object. Otherwise, the compiler complains about (A?B:C) where B is void and C is Lisp_Object when compiling CHAR_TABLE_SET, due to the recent change to the API of sub_char_table_set_contents.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/chartab.c6
-rw-r--r--src/lisp.h5
3 files changed, 13 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index beb47d6c998..1956d602e6a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12012-08-18 Paul Eggert <eggert@cs.ucla.edu>
2
3 port new setting code to Sun C 5.8 2005/10/13
4 * chartab.c, lisp.h (char_table_set, char_table_set_range):
5 Return void, not Lisp_Object. Otherwise, the compiler
6 complains about (A?B:C) where B is void and C is Lisp_Object
7 when compiling CHAR_TABLE_SET, due to the recent change to
8 the API of sub_char_table_set_contents.
9
12012-08-18 Chong Yidong <cyd@gnu.org> 102012-08-18 Chong Yidong <cyd@gnu.org>
2 11
3 * xdisp.c (handle_invisible_prop): Obey TEXT_PROP_MEANS_INVISIBLE 12 * xdisp.c (handle_invisible_prop): Obey TEXT_PROP_MEANS_INVISIBLE
diff --git a/src/chartab.c b/src/chartab.c
index 25d331b73e2..711a49ed397 100644
--- a/src/chartab.c
+++ b/src/chartab.c
@@ -411,7 +411,7 @@ sub_char_table_set (Lisp_Object table, int c, Lisp_Object val, int is_uniprop)
411 } 411 }
412} 412}
413 413
414Lisp_Object 414void
415char_table_set (Lisp_Object table, int c, Lisp_Object val) 415char_table_set (Lisp_Object table, int c, Lisp_Object val)
416{ 416{
417 struct Lisp_Char_Table *tbl = XCHAR_TABLE (table); 417 struct Lisp_Char_Table *tbl = XCHAR_TABLE (table);
@@ -434,7 +434,6 @@ char_table_set (Lisp_Object table, int c, Lisp_Object val)
434 if (ASCII_CHAR_P (c)) 434 if (ASCII_CHAR_P (c))
435 set_char_table_ascii (table, char_table_ascii (table)); 435 set_char_table_ascii (table, char_table_ascii (table));
436 } 436 }
437 return val;
438} 437}
439 438
440static void 439static void
@@ -476,7 +475,7 @@ sub_char_table_set_range (Lisp_Object table, int from, int to, Lisp_Object val,
476} 475}
477 476
478 477
479Lisp_Object 478void
480char_table_set_range (Lisp_Object table, int from, int to, Lisp_Object val) 479char_table_set_range (Lisp_Object table, int from, int to, Lisp_Object val)
481{ 480{
482 struct Lisp_Char_Table *tbl = XCHAR_TABLE (table); 481 struct Lisp_Char_Table *tbl = XCHAR_TABLE (table);
@@ -510,7 +509,6 @@ char_table_set_range (Lisp_Object table, int from, int to, Lisp_Object val)
510 if (ASCII_CHAR_P (from)) 509 if (ASCII_CHAR_P (from))
511 set_char_table_ascii (table, char_table_ascii (table)); 510 set_char_table_ascii (table, char_table_ascii (table));
512 } 511 }
513 return val;
514} 512}
515 513
516 514
diff --git a/src/lisp.h b/src/lisp.h
index 4a6edcda53c..f08e7af8959 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2915,9 +2915,8 @@ extern Lisp_Object copy_char_table (Lisp_Object);
2915extern Lisp_Object char_table_ref (Lisp_Object, int); 2915extern Lisp_Object char_table_ref (Lisp_Object, int);
2916extern Lisp_Object char_table_ref_and_range (Lisp_Object, int, 2916extern Lisp_Object char_table_ref_and_range (Lisp_Object, int,
2917 int *, int *); 2917 int *, int *);
2918extern Lisp_Object char_table_set (Lisp_Object, int, Lisp_Object); 2918extern void char_table_set (Lisp_Object, int, Lisp_Object);
2919extern Lisp_Object char_table_set_range (Lisp_Object, int, int, 2919extern void char_table_set_range (Lisp_Object, int, int, Lisp_Object);
2920 Lisp_Object);
2921extern int char_table_translate (Lisp_Object, int); 2920extern int char_table_translate (Lisp_Object, int);
2922extern void map_char_table (void (*) (Lisp_Object, Lisp_Object, 2921extern void map_char_table (void (*) (Lisp_Object, Lisp_Object,
2923 Lisp_Object), 2922 Lisp_Object),