From: Phil Burk Date: Sat, 5 Sep 2020 00:16:20 +0000 (-0700) Subject: Merge pull request #77 from philburk/privatize X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/commitdiff_plain/e476e087a64494c5965330887a248069c69e706e?hp=47a1084ddee779dc12d3ecc9ca4903adc250ee0d Merge pull request #77 from philburk/privatize Add PRIVATIZE to history.fth --- diff --git a/fth/history.fth b/fth/history.fth index 42c2696..eed5e46 100644 --- a/fth/history.fth +++ b/fth/history.fth @@ -494,6 +494,7 @@ variable KH-INSIDE ( true if we are scrolling inside the history buffer ) THEN ; +privatize : AUTO.INIT auto.init diff --git a/fth/private.fth b/fth/private.fth index d7d465d..6c0c55e 100644 --- a/fth/private.fth +++ b/fth/private.fth @@ -24,16 +24,20 @@ variable private-stop $ 20 constant FLAG_SMUDGE : PRIVATE{ + private-start @ 0= not abort" ERROR: Missing PRIVATIZE" + private-stop @ 0= not abort" ERROR: Missing PRIVATIZE" latest private-start ! 0 private-stop ! ; + : }PRIVATE - private-stop @ 0= not abort" Extra }PRIVATE" + private-stop @ 0= not abort" ERROR: Extra }PRIVATE" latest private-stop ! ; + : PRIVATIZE ( -- , smudge all words between PRIVATE{ and }PRIVATE ) - private-start @ 0= abort" Missing PRIVATE{" - private-stop @ 0= abort" Missing }PRIVATE" + private-start @ 0= abort" ERROR: Missing PRIVATE{" + private-stop @ 0= abort" ERROR: Missing }PRIVATE" private-stop @ BEGIN dup private-start @ u> \ 19970701