fixing lazy

This commit is contained in:
Brad Nelson
2022-02-01 23:16:49 -08:00
parent 49b231260f
commit 8e40e7d7d9
7 changed files with 30 additions and 9 deletions

View File

@ -449,8 +449,6 @@ e: test-windows-forth-namespace
e: test-posix-forth-namespace
internals voclist
out: web-interface
out: httpd
out: sockets
out: ansi
out: editor
@ -492,8 +490,6 @@ e: test-esp32-forth-namespace
internals voclist
out: ansi
out: registers
out: web-interface
out: httpd
out: oled
out: bluetooth
out: rtos

View File

@ -26,7 +26,7 @@ DEFINED? windows [IF]
[THEN]
( Support for eval tests )
20000 constant expect-limit
40000 constant expect-limit
create expect-buffer expect-limit allot
create result-buffer expect-limit allot
variable expect-used variable result-used

View File

@ -100,3 +100,11 @@ e: test-string-strides
see test8
out: : test8 1 0BRANCH s" ------->" type ;
;e
e: test-noname
:noname dup * ;
2 over execute
swap execute
. cr
out: 16
;e

View File

@ -134,7 +134,7 @@ variable see-tally
['] tally-type is type
see-all
['] default-type is type
see-tally @ 35000 >assert
see-tally @ 25000 >assert
;
(

View File

@ -12,8 +12,10 @@
\ See the License for the specific language governing permissions and
\ limitations under the License.
( Server Terminal )
( Lazy loaded Server Terminal )
:noname [ ' web-interface >body @ ] literal execute
r|
also streams also WiFi also web-interface definitions
: ip# dup 255 and n. [char] . emit 256 / ;
@ -28,3 +30,7 @@ also forth definitions
: webui ( z z -- ) login 80 server ;
only forth definitions
web-interface
| evaluate ; is web-interface
: login web-interface r| login | evaluate ;
: webui web-interface r| webui | evaluate ;

View File

@ -12,7 +12,10 @@
\ See the License for the specific language governing permissions and
\ limitations under the License.
( HTTP Daemon )
( Lazy loaded HTTP Daemon )
: httpd r|
vocabulary httpd httpd definitions also sockets
1 constant max-connections
@ -87,3 +90,5 @@ variable goal variable goal#
: notfound-response ( mime$ -- ) s" text/plain" s" Not Found" 404 response ;
only forth definitions
httpd
| evaluate ;

View File

@ -12,8 +12,11 @@
\ See the License for the specific language governing permissions and
\ limitations under the License.
( Server Terminal )
( Lazy loaded Server Terminal )
defer web-interface
:noname r~
httpd
also streams also httpd
vocabulary web-interface also web-interface definitions
@ -149,3 +152,6 @@ create out-string out-size 1+ allot align
;
only forth definitions
web-interface
~ evaluate ; is web-interface