| 1 |
@node Environment implementation |
| 2 |
@section Environment implementation |
| 3 |
|
| 4 |
@cindex Environment implementation |
| 5 |
|
| 6 |
@cppindex cl_env_struct |
| 7 |
@cppindex cl_env_ptr |
| 8 |
|
| 9 |
@c @deftp {@cind} cl_env_struct |
| 10 |
@c @deftpx {@cind} cl_env_ptr |
| 11 |
@c Structure responsible for holding the environment. Each native thread |
| 12 |
@c has its own instance of this structure. Pointer @code{cl_env_struct*} is |
| 13 |
@c type-defined to @code{cl_env_ptr}. |
| 14 |
|
| 15 |
@c Compiler environment is in @code{c_env} pointer member. |
| 16 |
@c @end deftp |
| 17 |
|
| 18 |
@c @deftp {@cind} cl_compiler_env |
| 19 |
@c variables - variables, tags, functions, etc: the env. |
| 20 |
@c macros - macros and function bindings |
| 21 |
@c lexical-level - =0 if toplevel form |
| 22 |
@c constants - constants for this form |
| 23 |
@c load-time-forms - that have to be rebuilt |
| 24 |
@c lex-env - lexical env. for eval-when |
| 25 |
@c code-walker - value of si:*code-walker* |
| 26 |
|
| 27 |
@c env-depth |
| 28 |
@c env-size |
| 29 |
|
| 30 |
@c mode - one of FLAG_EXECUTE, FLAG_LOAD, FLAG_ONLY_LOAD, FLAG_COMPILE |
| 31 |
@c stepping - used by bytecodes interpreter for stepping purposes (set in |
| 32 |
@c @code{si:eval-with-env}). |
| 33 |
@c @end eftp |