1 {+ AutoGen5 template -*- nroff -*-
3 ## ---------------------------------------------------------------------
4 ## aginfo3.tpl -- Template for function texi doc
6 ## AutoOpts copyright 1992-2002 Bruce Korb
8 ## Time-stamp: "2002-05-07 21:01:49 bkorb"
9 ## Author: Bruce Korb <bkorb@gnu.org>
10 ## Maintainer: Bruce Korb <bkorb@gnu.org>
11 ## Created: Mon Jun 28 15:35:12 1999
13 ## ---------------------------------------------------------------------
14 ## $Id: aginfo3.tpl,v 2.3 2002/05/11 21:19:58 bkorb Exp $
15 ## ---------------------------------------------------------------------
19 (setenv "SHELL" "/bin/sh")
23 (out-push-new (sprintf "%s.menu" (base-name)))
24 (define node-name (sprintf "lib%s procedures" (get "library")))
25 (define sec-name (sprintf "lib%s External Procedures" (get "library")))
27 (define doc-level (getenv "LEVEL"))
28 (if (not (string? doc-level))
29 (set! doc-level "section"))
30 (sprintf "* %-28s %s\n" (string-append node-name "::") sec-name) +}{+
32 +}@node {+ (. node-name) +}
33 @{+ (. doc-level) +} {+ (. sec-name) +}
37 IF (not (exist? "lib-description"))
39 +}These are the publicly exported procedures from the lib@i{library}
40 library. Any other functions mentioned in the @i{header} file are
41 for the private use of the library.{+
43 ELSE +}{+ lib-description +}{+
49 IF (not (exist? "private")) +}
50 * lib{+(sprintf "%-24s" (string-append
51 (get "library") "-" (get "name") "::"))
59 This {+(. doc-level)+} was automatically generated by AutoGen
60 using extracted information and the {+(tpl-file)+} template.{+
63 IF (not (exist? "private"))
67 @node lib{+library+}-{+name+}
68 @{+CASE (. doc-level)+}{+
71 = subsection +}subsub{+
72 ESAC +}section {+name+}
80 {+ % ret-type "%s res = "
82 IF (exist? "arg") +} {+
83 FOR arg ", " +}{+arg-name+}{+
87 IF (or (exist? "arg") (exist? "ret-type")) +}
89 Where the arguments are:
90 @multitable @columnfractions .05 .15 .20 .55
91 @item @tab Name @tab Type @tab Description
92 @item @tab ----- @tab ----- @tab -------------{+
94 @item @tab {+arg-name+} @tab @code{{+arg-type+}}
97 IF (exist? "ret-type") +}
98 @item @tab returns @tab {+ret-type+}
108 {+ % err "\n%s\n" +}{+