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>
Mon, 9 Feb 2015 18:04:23 +0000 (13:04 -0500)
commitdb633ecc0e854c3a6dd9a4b96b1c255aa4136091
treea230d99a05f7f87d92b2a9ad947969507eb8a7d8
parent4b7d1e022e69376e9ab76fd9f8ef0e3c77019bfe
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