--- gforth/doc/makedoc.fs 2004/06/13 21:44:53 1.9 +++ gforth/doc/makedoc.fs 2007/07/06 12:54:56 1.11 @@ -1,6 +1,6 @@ \ create a documentation file -\ Copyright (C) 1995,1999,2000,2003 Free Software Foundation, Inc. +\ Copyright (C) 1995,1999,2000,2003,2004 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -72,9 +72,18 @@ s" \ automatically generated by makedoc. if s" " >fileCR s" make-doc " >file - >in @ >r - [char] ( parse 2drop - [char] ) parse + >in @ >r + parse-name 2dup s" (" str= if + 2drop ') parse + else + 2dup s" {" str= if + 2drop '} parse + else \ no stack comment or locals + 2drop + r@ >in ! \ restore "\" + s" unknown " \ default stack comment + endif + endif [char] \ parse 2drop >in @ bl word dup c@ @@ -89,7 +98,8 @@ s" \ automatically generated by makedoc. ELSE drop >in ! THEN - latest name>string >file + latest name>string >file + s" " >file >file s" )" >file POSTPONE \g