From bb4e0ee773eaf35086d4a6cb742a8754946f7cde Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Sun, 7 Jan 2024 13:53:58 -0800 Subject: [PATCH] Add syspath to SRC" search and move system scripts there --- images/apple/PLFORTH.PO | Bin 143360 -> 143360 bytes src/mkrel | 44 ++++++++++++++++++++++------------ src/toolsrc/plforth.pla | 8 +++++++ src/vmsrc/apple/a1cmd.pla | 2 +- src/vmsrc/apple/cmd.pla | 2 +- src/vmsrc/apple/cmdjit.pla | 2 +- src/vmsrc/apple/sossys.pla | 2 +- src/vmsrc/apple/sossysjit.pla | 2 +- 8 files changed, 42 insertions(+), 20 deletions(-) diff --git a/images/apple/PLFORTH.PO b/images/apple/PLFORTH.PO index 643f673dc89c53a1ec847666ac559ffaaefbb5f1..980ed0294c058b363489013cdfb9814d279a7d69 100755 GIT binary patch delta 1254 zcmXZWe@xVM9LMqZ_j})iGlE^h2+jN6_lr`9(wNbk7Zh^~T(_xvzjqP%5MJ}t6uKs9Bwc6ZRN*m>mpw%KNdLsSt_;P0BsT`#eo8({O zP|!_eEqk@da4=)3uvI`S%CuZ{@rV?WOD$JpI3nf5a?9OPU)LO$2Pq*d{lw3Is>*mO zHuJZVNI&|^3yP9Rjr}@7*?aX7l`?VtKFZ?tD@*0dY#qX5D+X}P=F`(c%L*Yc~acf=zd(pKV))>~4ncBv8A$4&3E|4+69AW=fYh|e`^22VPz(5{!^uHn<*8wARy{E zZXiD>Y9m_FjveU15QdRyv4c{SVph={axMdyiY%=yX;TdIgbm> zr|Fx4VQg_rBS5uG0xx%oX6Mfeq*e&zvcY{_vg8@KsHRx zDKfL{VpE(AyaT+;OutiQ-fmZ$Vn0BC$n-f8Q@5jQ7}PPSH`m%tvni{YLskd| z(Hi3I6EaCC`uYtP4J2ARNTlFPjROBz;3V*$Vi{D_U?Q#Aa+fuy%jhf4rKP0kuS{#BZR6SJ(vEB<$CAPNhD@6y^^^_C(shfiwoZ1@)5((i)p~)}o#ZE4 zwo5m;KdG&=dI)oNpkZI5oFJY~8rkN|UU`RnHU2;`XPx@gPWhlla?+b9D^A+(k3Qkf zg+ys_(p;ZymM`ez3Bzg2w8~|2r5z+UHOY^ZYP%%sH11|KNsHP`78}c()b;#HhS5K-ac-f8G6%`==Hx&hrbaw6u45VNe_P5B|4RKQJ5@{VIAB zqF=x`Ds9oL5yg6JK|4Be3FDZ?Eap%^EGha1q|uFjoc8Am8!K~aM_AOZu((b*qV|#Z zqXV5dj8||3NAWs(a14Do!Mnk*;eLdna6p}B=Hp9zg;9KuU+^2Ia0|B~rl>MAC+=#~ zP*KW8Q`~K)?mlH2?sijG4*h@`bPv%Fn*nv4J16lT^E1qcxHCe&NdAU=h1~@5%nHnm zh_04JL{(u0Ow^(dacsiY9LF|1fv1r|6IzhP9_&X4x+3Df9Wj(kejjHrgkgM&&)AQ$ zA0vN@EBFpS;Ac#*|D8WIL%xMO$OSBMms*BfWf`i*67?|Zn8mHNZUeJMay$DManK5= zF7`)o6mQ}f-oi= SRCREFS puts("Too many nested SRC") _quit_ fin inref[srclevel] = fileio:open(a) + if !inref[srclevel] and ^a < 16 + strcpy(@syssrc, cmdsys:syspath) + strcat(@syssrc, "scripts/") + strcat(@syssrc, a) + inref[srclevel] = fileio:open(@syssrc) + fin if inref[srclevel] fileio:newline(inref[srclevel], $7F, $0D) infunc = @filein diff --git a/src/vmsrc/apple/a1cmd.pla b/src/vmsrc/apple/a1cmd.pla index 8c9bd95f..24d4821e 100755 --- a/src/vmsrc/apple/a1cmd.pla +++ b/src/vmsrc/apple/a1cmd.pla @@ -1155,7 +1155,7 @@ def parsecmd(strptr)#1 return cmd end def execmod(modfile)#1 - byte moddci[17] + byte moddci[63] word saveheap, savesym, saveflags perr = 1 diff --git a/src/vmsrc/apple/cmd.pla b/src/vmsrc/apple/cmd.pla index 91743a01..673d5325 100755 --- a/src/vmsrc/apple/cmd.pla +++ b/src/vmsrc/apple/cmd.pla @@ -1298,7 +1298,7 @@ def execsys(sysfile)#0 fin end def execmod(modfile)#1 - byte moddci[17] + byte moddci[63] word saveheap, savesym, saveflags perr = 1 diff --git a/src/vmsrc/apple/cmdjit.pla b/src/vmsrc/apple/cmdjit.pla index d574be3c..63ac8b95 100755 --- a/src/vmsrc/apple/cmdjit.pla +++ b/src/vmsrc/apple/cmdjit.pla @@ -1364,7 +1364,7 @@ def execsys(sysfile)#0 fin end def execmod(modfile)#1 - byte moddci[17] + byte moddci[63] word saveheap, savexheap, savesym, saveflags perr = 1 diff --git a/src/vmsrc/apple/sossys.pla b/src/vmsrc/apple/sossys.pla index 8be64645..a89ef5e8 100755 --- a/src/vmsrc/apple/sossys.pla +++ b/src/vmsrc/apple/sossys.pla @@ -1224,7 +1224,7 @@ def loadmod(mod)#1 return initcode end def execmod(modfile)#1 - byte moddci[17] + byte moddci[63] word saveheap, savesym, saveflags perr = 1 diff --git a/src/vmsrc/apple/sossysjit.pla b/src/vmsrc/apple/sossysjit.pla index be9d6415..38cf259c 100755 --- a/src/vmsrc/apple/sossysjit.pla +++ b/src/vmsrc/apple/sossysjit.pla @@ -1247,7 +1247,7 @@ def loadmod(mod)#1 return initcode end def execmod(modfile)#1 - byte moddci[17] + byte moddci[63] word saveheap, savesym, saveflags perr = 1