linker string tables are stateful objects
authorAndy Wingo <wingo@pobox.com>
Sun, 9 Jun 2013 14:03:18 +0000 (16:03 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 9 Jun 2013 14:04:12 +0000 (16:04 +0200)
commitf5473fbaafd3c8332645a6e00b5838ceb758fcb2
tree88c13ee3a781c007826dee4723d3856d73dbaedb
parent90a7976eb862f8b04b92c9b765ae2d49052a16f7
linker string tables are stateful objects

* module/system/vm/linker.scm (make-string-table): Rework to be a
  stateful object instead of a function object.  Works better in this
  case.  Adapt users.
  (string-table-intern!): Rename from string-table-intern, and just
  return the index of the string.
  (link-string-table!): Rename from link-string-table, and set a flag to
  prevent interning strings after linking, as that's not going to work
  well.

* module/language/objcode/elf.scm (bytecode->elf): Adapt.
module/language/objcode/elf.scm
module/system/vm/linker.scm