--- gforth/httpd.fs 2004/05/16 21:16:36 1.16 +++ gforth/httpd.fs 2004/12/31 13:23:57 1.18 @@ -1,6 +1,6 @@ #! /usr/local/bin/gforth -\ Copyright (C) 2000,2002,2003 Free Software Foundation, Inc. +\ Copyright (C) 2000,2002,2003,2004 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -94,9 +94,9 @@ Variable maxnum : ?cr ( -- ) #tib @ 1 >= IF source 1- + c@ #cr = #tib +! THEN ; -: refill-loop ( -- flag ) +: refill-loop ( -- flag ) base @ >r base off BEGIN refill ?cr WHILE ['] interpret catch drop >in @ 0= UNTIL - true ELSE maxnum off false THEN ; + true ELSE maxnum off false THEN r> base ! ; : get-input ( -- flag ior ) s" /nosuchfile" url $! s" HTTP/1.0" protocol $! s" close" connection $!