Dropped weird compat thing that wasn't working.

This commit is contained in:
Brad Nelson
2022-01-09 21:24:36 -08:00
parent e76ffdde12
commit 0875f20828
3 changed files with 1 additions and 27 deletions

View File

@ -21,5 +21,4 @@ include common/locals_tests.fs
include common/doloop_tests.fs
include common/conditionals_tests.fs
include common/float_tests.fs
include common/filetools_tests.fs
run-tests

View File

@ -20,17 +20,12 @@
internals definitions
( Leave some room for growth of starting system. )
15000 constant compat-level
0 value saving-base
: park-heap ( -- a ) saving-base ;
: park-forth ( -- a ) saving-base cell+ ;
: 'cold ( -- a ) saving-base 2 cells + ;
: real-heap-start ( -- a ) sp0 'stack-cells @ cells + ;
: setup-saving-base
here real-heap-start - compat-level cells max
real-heap-start + to saving-base
saving-base 16 cells + 'heap !
0 'cold ! ;
here to saving-base 16 cells allot 0 'cold ! ;
: save-name
'heap @ park-heap !

View File

@ -1,20 +0,0 @@
\ Copyright 2021 Bradley D. Nelson
\
\ Licensed under the Apache License, Version 2.0 (the "License");
\ you may not use this file except in compliance with the License.
\ You may obtain a copy of the License at
\
\ http://www.apache.org/licenses/LICENSE-2.0
\
\ Unless required by applicable law or agreed to in writing, software
\ distributed under the License is distributed on an "AS IS" BASIS,
\ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\ See the License for the specific language governing permissions and
\ limitations under the License.
( Test if we've exhaused compat threshold )
internals
: test-compat-level-exhausted
saving-base real-heap-start - compat-level cells =assert
;
forth