Skip to content
Snippets Groups Projects
Commit b28dd174 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

comment added

Rev: src/interpret.h:1.50
parent 06220895
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -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 #ifndef INTERPRET_H
#define INTERPRET_H #define INTERPRET_H
...@@ -244,6 +244,17 @@ struct callback; ...@@ -244,6 +244,17 @@ struct callback;
extern struct callback_list evaluator_callbacks; extern struct callback_list evaluator_callbacks;
extern void call_callback(struct callback_list *, void *); 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; extern struct Pike_interpreter Pike_interpreter;
#define Pike_sp Pike_interpreter.stack_pointer #define Pike_sp Pike_interpreter.stack_pointer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment