This introduces a thread-state object and moves various C globals
commit68b32482437e05f0994c4dd0ab5b0c27d39f0f6d
authorTom Tromey <tromey@redhat.com>
Wed, 15 Aug 2012 18:56:38 +0000 (15 12:56 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Aug 2012 18:56:38 +0000 (15 12:56 -0600)
treefe01584b00d03559210438ebc608a1d170ee00b3
parent5190da91e6ca41287190693a8999a6919a9cd8e6
This introduces a thread-state object and moves various C globals
there.  It also introduces #defines for these globals to avoid a
monster patch.

The #defines mean that this patch also has to rename a few fields
whose names clash with the defines.

There is currently just a single "thread"; so this patch does not
impact Emacs behavior in any significant way.
14 files changed:
src/Makefile.in
src/alloc.c
src/buffer.c
src/buffer.h
src/bytecode.c
src/emacs.c
src/eval.c
src/lisp.h
src/regex.c
src/regex.h
src/search.c
src/thread.c [new file with mode: 0644]
src/thread.h [new file with mode: 0644]
src/window.c