summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2011-06-24 23:25:22 +0200
committerJuanma Barranquero <lekktu@gmail.com>2011-06-24 23:25:22 +0200
commitcd3520a41df21d80a9d894c58af2daba23c8dd24 (patch)
tree945eaef322c65471833954ddce161a7a913ee3c8 /src/lisp.h
parent7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff)
downloademacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 289ed2caa7c..762d34abb9c 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1162,6 +1162,9 @@ struct Lisp_Symbol
#define SYMBOL_CONSTANT_P(sym) XSYMBOL (sym)->constant
+#define DEFSYM(sym, name) \
+ do { (sym) = intern_c_string ((name)); staticpro (&(sym)); } while (0)
+
/***********************************************************************
Hash Tables