From b28dd174c990a441a4a497b146dfcc4d01a90ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 6 Jul 2000 20:01:24 -0700 Subject: [PATCH] comment added Rev: src/interpret.h:1.50 --- src/interpret.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/interpret.h b/src/interpret.h index 273984c8fd..1e62f66031 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 -- GitLab