]> git.eshelyaron.com Git - emacs.git/commitdiff
port new setting code to Sun C 5.8 2005/10/13
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Aug 2012 23:53:43 +0000 (16:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Aug 2012 23:53:43 +0000 (16:53 -0700)
* 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.

src/ChangeLog
src/chartab.c
src/lisp.h

index beb47d6c998cda164e6e7e2e87e8d16b1847623e..1956d602e6a52dca2290d7dffda3782541ba7659 100644 (file)
@@ -1,3 +1,12 @@
+2012-08-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
 2012-08-18  Chong Yidong  <cyd@gnu.org>
 
        * xdisp.c (handle_invisible_prop): Obey TEXT_PROP_MEANS_INVISIBLE
index 25d331b73e2e0d89c525a4c87444d4136732c047..711a49ed3973e37588b69ab0ed21dce310d7dbf2 100644 (file)
@@ -411,7 +411,7 @@ sub_char_table_set (Lisp_Object table, int c, Lisp_Object val, int is_uniprop)
     }
 }
 
-Lisp_Object
+void
 char_table_set (Lisp_Object table, int c, Lisp_Object val)
 {
   struct Lisp_Char_Table *tbl = XCHAR_TABLE (table);
@@ -434,7 +434,6 @@ char_table_set (Lisp_Object table, int c, Lisp_Object val)
       if (ASCII_CHAR_P (c))
        set_char_table_ascii (table, char_table_ascii (table));
     }
-  return val;
 }
 
 static void
@@ -476,7 +475,7 @@ sub_char_table_set_range (Lisp_Object table, int from, int to, Lisp_Object val,
 }
 
 
-Lisp_Object
+void
 char_table_set_range (Lisp_Object table, int from, int to, Lisp_Object val)
 {
   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)
       if (ASCII_CHAR_P (from))
        set_char_table_ascii (table, char_table_ascii (table));
     }
-  return val;
 }
 
 \f
index 4a6edcda53c91d88cb1008f10251893b3ad67732..f08e7af89591aeefdc99f6029046884300dcb90a 100644 (file)
@@ -2915,9 +2915,8 @@ extern Lisp_Object copy_char_table (Lisp_Object);
 extern Lisp_Object char_table_ref (Lisp_Object, int);
 extern Lisp_Object char_table_ref_and_range (Lisp_Object, int,
                                              int *, int *);
-extern Lisp_Object char_table_set (Lisp_Object, int, Lisp_Object);
-extern Lisp_Object char_table_set_range (Lisp_Object, int, int,
-                                         Lisp_Object);
+extern void char_table_set (Lisp_Object, int, Lisp_Object);
+extern void char_table_set_range (Lisp_Object, int, int, Lisp_Object);
 extern int char_table_translate (Lisp_Object, int);
 extern void map_char_table (void (*) (Lisp_Object, Lisp_Object,
                             Lisp_Object),