[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ ? ]

3.4 AutoGen Scheme Functions

AutoGen uses Guile to interpret Scheme expressions within AutoGen macros. All of the normal Guile functions are available, plus several extensions (see section Common Scheme Functions) have been added to augment the repertoire of string manipulation functions and manage the state of AutoGen processing.

This section describes those functions that are specific to AutoGen. Please take note that these AutoGen specific functions are not loaded and thus not made available until after the command line options have been processed and the AutoGen definitions have been loaded. They may, of course, be used in Scheme functions that get defined at those times, but they cannot be invoked.

3.4.1 ‘ag-fprintf’ - format to autogen stream
3.4.2 ‘ag-function?’ - test for function
3.4.3 ‘base-name’ - base output name
3.4.4 ‘chdir’ - Change current directory
3.4.5 ‘count’ - definition count
3.4.6 ‘def-file’ - definitions file name
3.4.7 ‘def-file-line’ - get a definition file+line number
3.4.8 ‘dne’ - "Do Not Edit" warning
3.4.9 ‘emit’ - emit the text for each argument
3.4.10 ‘emit-string-table’ - output a string table
3.4.11 ‘error’ - display message and exit
3.4.12 ‘exist?’ - test for value name
3.4.13 ‘find-file’ - locate a file in the search path
3.4.14 ‘first-for?’ - detect first iteration
3.4.15 ‘for-by’ - set iteration step
3.4.16 ‘for-from’ - set initial index
3.4.17 ‘for-index’ - get current loop index
3.4.18 ‘for-sep’ - set loop separation string
3.4.19 ‘for-to’ - set ending index
3.4.20 ‘found-for?’ - is current index in list?
3.4.21 ‘get’ - get named value
3.4.22 ‘get-c-name’ - get named value, mapped to C name syntax
3.4.23 ‘get-down-name’ - get lower cased named value, mapped to C name syntax
3.4.24 ‘get-up-name’ - get upper cased named value, mapped to C name syntax
3.4.25 ‘high-lim’ - get highest value index
3.4.26 ‘insert-file’ - insert the contents of a (list of) files.
3.4.27 ‘insert-suspended’ - insert a named suspension in current output
3.4.28 ‘last-for?’ - detect last iteration
3.4.29 ‘len’ - get count of values
3.4.30 ‘low-lim’ - get lowest value index
3.4.31 ‘make-header-guard’ - make self-inclusion guard
3.4.32 ‘make-tmp-dir’ - create a temporary directory
3.4.33 ‘match-value?’ - test for matching value
3.4.34 ‘max-file-time’ - get the maximum input file modification time
3.4.35 ‘mk-gettextable’ - print a string in a gettext-able format
3.4.36 ‘out-delete’ - delete current output file
3.4.37 ‘out-depth’ - output file stack depth
3.4.38 ‘out-emit-suspended’ - emit the text of suspended output
3.4.39 ‘out-line’ - output file line number
3.4.40 ‘out-move’ - change name of output file
3.4.41 ‘out-name’ - current output file name
3.4.42 ‘out-pop’ - close current output file
3.4.43 ‘out-push-add’ - append output to file
3.4.44 ‘out-push-new’ - purge and create output file
3.4.45 ‘out-resume’ - resume suspended output file
3.4.46 ‘out-suspend’ - suspend current output file
3.4.47 ‘out-switch’ - close and create new output
3.4.48 ‘output-file-next-line’ - print the file name and next line number
3.4.49 ‘set-option’ - Set a command line option
3.4.50 ‘set-writable’ - Make the output file be writable
3.4.51 ‘stack’ - make list of AutoGen values
3.4.52 ‘stack-join’ - stack values then join them
3.4.53 ‘suffix’ - get the current suffix
3.4.54 ‘tpl-file’ - get the template file name
3.4.55 ‘tpl-file-line’ - get the template file+line number
3.4.56 ‘tpl-file-next-line’ - get the template file plus next line number
3.4.57 ‘warn’ - display warning message and continue
3.4.58 ‘autogen-version’ - autogen version numberautogen-version’ - “5.18.6pre15”
3.4.59 format file info as, “#line nn "file"

[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ ? ]

This document was generated by Bruce Korb on August 21, 2015 using texi2html 1.82.

AltStyle によって変換されたページ (->オリジナル) /