summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-08-17 17:07:52 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-08-17 17:07:52 -0700
commit3f22b86fc7d9b66ff3e332b9a56350e93ddbd0aa (patch)
treecbdad3a66ebab38dba4f41ec3ad861252618b4fd /src/terminal.c
parent15dbb4d6ba5dea7d3e0f45ab3fd038c2b305a145 (diff)
downloademacs-3f22b86fc7d9b66ff3e332b9a56350e93ddbd0aa.tar.gz
* termhooks.h (TSET): Remove.
Replace all uses with calls to new setter functions. Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. (TERMHOOKS_INLINE): New macro. (tset_charset_list, tset_selection_alist): New setter functions. * terminal.c (TERMHOOKS_INLINE): Define to EXTERN_INLINE, so that the corresponding functions are compiled into code. (tset_param_alist): New setter function. Fixes: debbugs:12215
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 53610d9736f..d94164a4e40 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
+
+#define TERMHOOKS_INLINE EXTERN_INLINE
+
#include <stdio.h>
#include <setjmp.h>
@@ -39,6 +42,13 @@ struct terminal *initial_terminal;
static void delete_initial_terminal (struct terminal *);
+/* This setter is used only in this file, so it can be private. */
+static inline void
+tset_param_alist (struct terminal *t, Lisp_Object val)
+{
+ t->param_alist = val;
+}
+
void
@@ -446,7 +456,7 @@ store_terminal_param (struct terminal *t, Lisp_Object parameter, Lisp_Object val
Lisp_Object old_alist_elt = Fassq (parameter, t->param_alist);
if (EQ (old_alist_elt, Qnil))
{
- TSET (t, param_alist, Fcons (Fcons (parameter, value), t->param_alist));
+ tset_param_alist (t, Fcons (Fcons (parameter, value), t->param_alist));
return Qnil;
}
else