diff options
| author | Jim Blandy | 1992-10-31 04:55:02 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-10-31 04:55:02 +0000 |
| commit | d9da9451b5f0899ba1656d66ff8b73efb87228ad (patch) | |
| tree | a0b8547a561cf0d5600f9d26a0883422ced1fc48 /src | |
| parent | 39fb55ffbd70c7d5da00100749c4e6a54afdf42f (diff) | |
| download | emacs-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.c | 7 |
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 | ||
| 91 | static Lisp_Object set_case_table (); | ||
| 92 | |||
| 91 | DEFUN ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0, | 93 | DEFUN ("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\ |
| 93 | A case table is a list (DOWNCASE UPCASE CANONICALIZE EQUIVALENCES)\n\ | 95 | A 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 | ||
| 112 | DEFUN ("set-standard-case-table", | 114 | DEFUN ("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 | ||
| 124 | static Lisp_Object | ||
| 122 | set_case_table (table, standard) | 125 | set_case_table (table, standard) |
| 123 | Lisp_Object table; | 126 | Lisp_Object table; |
| 124 | int standard; | 127 | int standard; |