aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-10-31 04:55:02 +0000
committerJim Blandy1992-10-31 04:55:02 +0000
commitd9da9451b5f0899ba1656d66ff8b73efb87228ad (patch)
treea0b8547a561cf0d5600f9d26a0883422ced1fc48 /src
parent39fb55ffbd70c7d5da00100749c4e6a54afdf42f (diff)
downloademacs-d9da9451b5f0899ba1656d66ff8b73efb87228ad.tar.gz
emacs-d9da9451b5f0899ba1656d66ff8b73efb87228ad.zip
* casetab.c (set_case_table): Declare this to be static, and
return a Lisp_Object. Add static declaration for this before Fset_case_table and Fset_standard_case_table. (Fset_case_table, Fset_standard_case_table): Return the return value of set_case_table, instead of returning garbage.
Diffstat (limited to 'src')
-rw-r--r--src/casetab.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/casetab.c b/src/casetab.c
index fa8375ccc69..3ea81e36bf1 100644
--- a/src/casetab.c
+++ b/src/casetab.c
@@ -88,6 +88,8 @@ This is the one used for new buffers.")
88 Fcons (Vascii_eqv_table, Qnil)))); 88 Fcons (Vascii_eqv_table, Qnil))));
89} 89}
90 90
91static Lisp_Object set_case_table ();
92
91DEFUN ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0, 93DEFUN ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0,
92 "Select a new case table for the current buffer.\n\ 94 "Select a new case table for the current buffer.\n\
93A case table is a list (DOWNCASE UPCASE CANONICALIZE EQUIVALENCES)\n\ 95A case table is a list (DOWNCASE UPCASE CANONICALIZE EQUIVALENCES)\n\
@@ -106,7 +108,7 @@ Both CANONICALIZE and EQUIVALENCES may be nil, in which case\n\
106 (table) 108 (table)
107 Lisp_Object table; 109 Lisp_Object table;
108{ 110{
109 set_case_table (table, 0); 111 return set_case_table (table, 0);
110} 112}
111 113
112DEFUN ("set-standard-case-table", 114DEFUN ("set-standard-case-table",
@@ -116,9 +118,10 @@ See `set-case-table' for more info on case tables.")
116 (table) 118 (table)
117 Lisp_Object table; 119 Lisp_Object table;
118{ 120{
119 set_case_table (table, 1); 121 return set_case_table (table, 1);
120} 122}
121 123
124static Lisp_Object
122set_case_table (table, standard) 125set_case_table (table, standard)
123 Lisp_Object table; 126 Lisp_Object table;
124 int standard; 127 int standard;