openbsd-ports/lang/gforth/patches/patch-engine_main_c
jasper 3b4f1cb46c import gforth 0.6.2
Gforth is a fast and portable implementation of the ANS Forth language.
It works nicely with the Emacs editor, offers some nice features such as
input completion and history, backtraces, a decompiler and a powerful
locals facility, and it even has a manual. Gforth combines traditional
implementation techniques with newer techniques for portability and
performance performance: its inner innerpreter is direct threaded with
several optimizations, but you can also use a traditional-style indirect
threaded interpreter.

originally based on a port by jack woehr, but completely overhauled since.
2008-10-25 10:40:37 +00:00

24 lines
487 B
Plaintext

$OpenBSD: patch-engine_main_c,v 1.1.1.1 2008/10/25 10:40:37 jasper Exp $
--- engine/main.c.orig Sat Oct 25 00:36:45 2008
+++ engine/main.c Sat Oct 25 00:38:05 2008
@@ -70,8 +70,18 @@ va_alist clist;
void engine_callback(Xt* fcall, void * alist)
{
+ Cell *rp = RP;
+ Cell *sp = SP;
+ Float *fp = FP;
+ Address lp = LP;
+
clist = (va_alist)alist;
- engine(fcall, SP, RP, FP, LP);
+ engine(fcall, sp, rp, fp, lp);
+
+ RP = rp;
+ SP = sp;
+ FP = fp;
+ LP = lp;
}
#endif