pike.git / src / interpret.h

version» Context lines:

pike.git/src/interpret.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $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      #include "global.h"   #include "program.h"   #include "error.h"      struct Pike_interpreter {    /* Swapped variables */
pike.git/src/interpret.h:237:   void slow_check_stack(void);   void cleanup_interpret(void);   void really_clean_up_interpret(void);   /* Prototypes end here */      extern int Pike_stack_size;   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   #define Pike_fp Pike_interpreter.frame_pointer   #define Pike_mark_sp Pike_interpreter.mark_stack_pointer   #ifdef PIKE_THREADS   #define Pike_thread_id Pike_interpreter.thread_id   #endif      #ifndef NO_PIKE_SHORTHAND