diff --git a/src/interpret.h b/src/interpret.h index 273984c8fd17eca045fb2481a53da86f5079798c..1e62f660316a72c558bc84ec585fc9b5fbe6864a 100644 --- a/src/interpret.h +++ b/src/interpret.h @@ -5,7 +5,7 @@ \*/ /* - * $Id: interpret.h,v 1.49 2000/07/07 01:24:14 hubbe Exp $ + * $Id: interpret.h,v 1.50 2000/07/07 03:01:24 hubbe Exp $ */ #ifndef INTERPRET_H #define INTERPRET_H @@ -244,6 +244,17 @@ struct callback; extern struct callback_list evaluator_callbacks; extern void call_callback(struct callback_list *, void *); +/* Things to try: + * we could reduce thread swapping to a pointer operation if + * we do something like: + * #define Pike_interpreter (*Pike_interpreter_pointer) + * + * Since global variables are usually accessed through indirection + * anyways, it might not make any speed differance. + * + * The above define could also be used to facilitate dynamic loading + * on Win32.. + */ extern struct Pike_interpreter Pike_interpreter; #define Pike_sp Pike_interpreter.stack_pointer