dnl $Id: m4.html,v 10.117 2008/01/08 20:58:21 bostic Exp $ dnl ################################################################### dnl Fonts. dnl ################################################################### dnl Bold font define(m4_bold, $1) dnl Constant width bold font -- same as m4_bold in HTML define(m4_cbold, $1) dnl Italic font define(m4_italic, $1) dnl Environmental variable. dnl #1: variable define(m4_envvar, $1) dnl Pathname. dnl #1: path define(m4_path, $1) dnl Function argument. dnl #1: argument name define(m4_arg, $1) dnl Utility option/flag. define(m4_option, -$1) dnl Utility argument define(m4_utilarg, __LB__-$1__RB__) dnl UNIX manual reference. dnl #1: man page name dnl #2: section define(m4_manref, [$1($2)]) dnl ################################################################### dnl Special Characters, Escapes. dnl ################################################################### dnl Superimposed define(m4_sup, [$1$2]) dnl Backslash preceded string. dnl #1: characters after the backslash define(m4_backslash, [\$1]) dnl Angle-bracket quoted string. define(m4_htmlquote, [<$1>]) dnl C include file dnl #1: include file name define(m4_include, [__OCT__include <$1>]) dnl ################################################################### dnl Miscellaneous. dnl ################################################################### dnl Berkeley DB define(m4_db, [Berkeley DB]) dnl Comment define(m4_comment, ) dnl Copyright strings. define(m4_copyright_source, [dnl ]) define(m4_copyright_footer, [dnl
Copyright (c) 1996,2008 Oracle. All rights reserved.])
dnl M4_meta definition moved to html.sed to prevent line breaks
define(m4_meta, __M4_META__)
dnl Just discard.
define(m4_ignore,)
dnl ###################################################################
dnl Layout: basic.
dnl ###################################################################
dnl Header
define(m4_header,
$1)
dnl Section
define(m4_section, $1)
dnl Subsection
define(m4_subsection,
$1
]) dnl Horizontal line. define(m4_hl, []) dnl Literal text block. dnl #1: string define(m4_literal,
$1) dnl Indent literal text block. dnl #1: string define(m4_indent,
) dnl Indent text block. dnl #1: string define(m4_indentv,$1
$1) dnl PicGif display - Pic for ROFF/Gif for HTML dnl #1: align, e.g., center dnl #2: img src, e.g., M4RELDIR/ref/xxx dnl #3: alternate string define(m4_picgif, [
])
dnl ###################################################################
dnl Layout: headers, titles and page bottoms.
dnl ###################################################################
dnl Reference Guide page leader.
dnl #1: section
dnl #2: page name
dnl #3: index entries
dnl #4,#5: prev, next
define(m4_ref_title, [dnl
ifelse($#, 5, , [errprint([$0: arg mismatch
])])
define(__m4_pagename, [$2])
m4_copyright_source
|
dnl
ifelse($4,,,
![]() ![]() ![]() |
$2
define(m4_page_footer, [dnldnl
ifelse($4,,,
![]() ![]() ![]() |
$1
define(m4_page_footer, [dnl m4_copyright_footer ])]) dnl General purpose page header, included by specific page headers. dnl #1: page title string dnl #2: section header dnl #3: API/Ref links in header/footer {yes, no} define(m4_page_header, [dnl define(__m4_pagename, [$1]) m4_copyright_source[$2] | ifelse([$3],,, [dnl
![]() ![]() | ])
![]() ![]() |
m4_incextra([$3]) ifelse([$2],,, [dnlm4_pf_description([$1])]) dnl Page header for Tcl manual pages. dnl #1: tcl command name dnl #2: tcl command name (correctly formatted) dnl #3: utility Synopsis line define(m4_tcl_header, [dnl m4_page_header([$1], [$2], yes)$2])
$3Description($1)]) dnl Page header for utilities. dnl #1: utility name dnl #2: utility Synopsis line define(m4_util_header, [dnl m4_page_header([$1], [$1])
$2Description]) dnl ################################################################### dnl HTML links dnl ################################################################### dnl m4_link dnl Link to titled DB Reference Guide page. dnl #1: page dnl #2: string define(m4_link, [$2]) dnl m4_linkpage dnl Link to specific address in any HTML page. dnl #1: page dnl #2: address (optional) dnl #2/3: string to display define(m4_linkpage, [dnl ifelse($#, 3, [$3],dnl [$2])]) dnl m4_linkweb: dnl Link to specific address in any page. dnl #1: page dnl #2: address (optional) dnl #2/3: string to display define(m4_linkweb, [dnl ifelse($#, 3, [$3],dnl [$2])]) dnl m4_mailto dnl Mailto construct. dnl #1: address dnl #2: string define(m4_mailto, [$2]) dnl ################################################################### dnl Three forms of lists: dnl - tagged dnl - numbered dnl - bullet item dnl ################################################################### dnl m4_tagbegin define(m4_tagbegin,