fixing lazy
This commit is contained in:
@ -449,8 +449,6 @@ e: test-windows-forth-namespace
|
|||||||
|
|
||||||
e: test-posix-forth-namespace
|
e: test-posix-forth-namespace
|
||||||
internals voclist
|
internals voclist
|
||||||
out: web-interface
|
|
||||||
out: httpd
|
|
||||||
out: sockets
|
out: sockets
|
||||||
out: ansi
|
out: ansi
|
||||||
out: editor
|
out: editor
|
||||||
@ -492,8 +490,6 @@ e: test-esp32-forth-namespace
|
|||||||
internals voclist
|
internals voclist
|
||||||
out: ansi
|
out: ansi
|
||||||
out: registers
|
out: registers
|
||||||
out: web-interface
|
|
||||||
out: httpd
|
|
||||||
out: oled
|
out: oled
|
||||||
out: bluetooth
|
out: bluetooth
|
||||||
out: rtos
|
out: rtos
|
||||||
|
|||||||
@ -26,7 +26,7 @@ DEFINED? windows [IF]
|
|||||||
[THEN]
|
[THEN]
|
||||||
|
|
||||||
( Support for eval tests )
|
( Support for eval tests )
|
||||||
20000 constant expect-limit
|
40000 constant expect-limit
|
||||||
create expect-buffer expect-limit allot
|
create expect-buffer expect-limit allot
|
||||||
create result-buffer expect-limit allot
|
create result-buffer expect-limit allot
|
||||||
variable expect-used variable result-used
|
variable expect-used variable result-used
|
||||||
|
|||||||
@ -100,3 +100,11 @@ e: test-string-strides
|
|||||||
see test8
|
see test8
|
||||||
out: : test8 1 0BRANCH s" ------->" type ;
|
out: : test8 1 0BRANCH s" ------->" type ;
|
||||||
;e
|
;e
|
||||||
|
|
||||||
|
e: test-noname
|
||||||
|
:noname dup * ;
|
||||||
|
2 over execute
|
||||||
|
swap execute
|
||||||
|
. cr
|
||||||
|
out: 16
|
||||||
|
;e
|
||||||
|
|||||||
@ -134,7 +134,7 @@ variable see-tally
|
|||||||
['] tally-type is type
|
['] tally-type is type
|
||||||
see-all
|
see-all
|
||||||
['] default-type is type
|
['] default-type is type
|
||||||
see-tally @ 35000 >assert
|
see-tally @ 25000 >assert
|
||||||
;
|
;
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|||||||
@ -12,8 +12,10 @@
|
|||||||
\ See the License for the specific language governing permissions and
|
\ See the License for the specific language governing permissions and
|
||||||
\ limitations under the License.
|
\ 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
|
also streams also WiFi also web-interface definitions
|
||||||
|
|
||||||
: ip# dup 255 and n. [char] . emit 256 / ;
|
: ip# dup 255 and n. [char] . emit 256 / ;
|
||||||
@ -28,3 +30,7 @@ also forth definitions
|
|||||||
: webui ( z z -- ) login 80 server ;
|
: webui ( z z -- ) login 80 server ;
|
||||||
|
|
||||||
only forth definitions
|
only forth definitions
|
||||||
|
web-interface
|
||||||
|
| evaluate ; is web-interface
|
||||||
|
: login web-interface r| login | evaluate ;
|
||||||
|
: webui web-interface r| webui | evaluate ;
|
||||||
|
|||||||
@ -12,7 +12,10 @@
|
|||||||
\ See the License for the specific language governing permissions and
|
\ See the License for the specific language governing permissions and
|
||||||
\ limitations under the License.
|
\ limitations under the License.
|
||||||
|
|
||||||
( HTTP Daemon )
|
( Lazy loaded HTTP Daemon )
|
||||||
|
|
||||||
|
: httpd r|
|
||||||
|
|
||||||
vocabulary httpd httpd definitions also sockets
|
vocabulary httpd httpd definitions also sockets
|
||||||
|
|
||||||
1 constant max-connections
|
1 constant max-connections
|
||||||
@ -87,3 +90,5 @@ variable goal variable goal#
|
|||||||
: notfound-response ( mime$ -- ) s" text/plain" s" Not Found" 404 response ;
|
: notfound-response ( mime$ -- ) s" text/plain" s" Not Found" 404 response ;
|
||||||
|
|
||||||
only forth definitions
|
only forth definitions
|
||||||
|
httpd
|
||||||
|
| evaluate ;
|
||||||
|
|||||||
@ -12,8 +12,11 @@
|
|||||||
\ See the License for the specific language governing permissions and
|
\ See the License for the specific language governing permissions and
|
||||||
\ limitations under the License.
|
\ limitations under the License.
|
||||||
|
|
||||||
( Server Terminal )
|
( Lazy loaded Server Terminal )
|
||||||
|
|
||||||
|
defer web-interface
|
||||||
|
:noname r~
|
||||||
|
httpd
|
||||||
also streams also httpd
|
also streams also httpd
|
||||||
vocabulary web-interface also web-interface definitions
|
vocabulary web-interface also web-interface definitions
|
||||||
|
|
||||||
@ -149,3 +152,6 @@ create out-string out-size 1+ allot align
|
|||||||
;
|
;
|
||||||
|
|
||||||
only forth definitions
|
only forth definitions
|
||||||
|
web-interface
|
||||||
|
~ evaluate ; is web-interface
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user