use vectors for symbol slots
authorBT Templeton <bt@hcoop.net>
Sat, 21 Sep 2013 07:24:01 +0000 (03:24 -0400)
committerRobin Templeton <robin@terpri.org>
Sun, 19 Apr 2015 07:43:03 +0000 (03:43 -0400)
commit844e0de1bc2bf56118b749f50a4880db7c918fd5
treeef27c03d3fcd084a5f6ccd27783c6f01029799ee
parent026b174672c427b035009911de305992a94098d6
use vectors for symbol slots

* src/alloc.c (initialize_symbol): Use Guile vectors to store symbol
  slots.

* src/lisp.h (lisp_h_SET_SYMBOL_VAL, lisp_h_SYMBOL_CONSTANT_P)
  (lisp_h_SYMBOL_VAL): Use Guile vectors to store symbol slots.
  (sym_t): New typedef.
  (SYMBOL_SELF, SET_SYMBOL_SELF, SYMBOL_REDIRECT, SET_SYMBOL_REDIRECT)
  (SYMBOL_CONSTANT, SET_SYMBOL_CONSTANT, SYMBOL_DECLARED_SPECIAL)
  (SET_SYMBOL_DECLARED_SPECIAL): New macros.
  (struct Lisp_Symbol): Change all field names. All references changed
  to use `sym_t' and the above macros instead.
src/alloc.c
src/buffer.c
src/bytecode.c
src/data.c
src/eval.c
src/font.c
src/frame.c
src/lisp.h
src/lread.c