Next: Common Functions, Previous: expression syntax, Up: Template File [Contents][Index]
AutoGen uses Guile to interpret Scheme expressions within AutoGen macros. All of the normal Guile functions are available, plus several extensions (see Common 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.
• SCM ag-fprintf | ag-fprintf - format to autogen stream | |
• SCM ag-function? | ag-function? - test for function | |
• SCM base-name | base-name - base output name | |
• SCM chdir | chdir - Change current directory | |
• SCM count | count - definition count | |
• SCM def-file | def-file - definitions file name | |
• SCM def-file-line | def-file-line - get a definition file+line number | |
• SCM dne | dne - "Do Not Edit" warning | |
• SCM emit | emit - emit the text for each argument | |
• SCM emit-string-table | emit-string-table - output a string table | |
• SCM error | error - display message and exit | |
• SCM exist? | exist? - test for value name | |
• SCM find-file | find-file - locate a file in the search path | |
• SCM first-for? | first-for? - detect first iteration | |
• SCM for-by | for-by - set iteration step | |
• SCM for-from | for-from - set initial index | |
• SCM for-index | for-index - get current loop index | |
• SCM for-sep | for-sep - set loop separation string | |
• SCM for-to | for-to - set ending index | |
• SCM found-for? | found-for? - is current index in list? | |
• SCM get | get - get named value | |
• SCM get-c-name | get-c-name - get named value, mapped to C name syntax | |
• SCM get-down-name | get-down-name - get lower cased named value, mapped to C name syntax | |
• SCM get-up-name | get-up-name - get upper cased named value, mapped to C name syntax | |
• SCM high-lim | high-lim - get highest value index | |
• SCM insert-file | insert-file - insert the contents of a (list of) files. | |
• SCM insert-suspended | insert-suspended - insert a named suspension in current output | |
• SCM last-for? | last-for? - detect last iteration | |
• SCM len | len - get count of values | |
• SCM low-lim | low-lim - get lowest value index | |
• SCM make-header-guard | make-header-guard - make self-inclusion guard | |
• SCM make-tmp-dir | make-tmp-dir - create a temporary directory | |
• SCM match-value? | match-value? - test for matching value | |
• SCM max-file-time | max-file-time - get the maximum input file modification time | |
• SCM mk-gettextable | mk-gettextable - print a string in a gettext-able format | |
• SCM out-delete | out-delete - delete current output file | |
• SCM out-depth | out-depth - output file stack depth | |
• SCM out-emit-suspended | out-emit-suspended - emit the text of suspended output | |
• SCM out-line | out-line - output file line number | |
• SCM out-move | out-move - change name of output file | |
• SCM out-name | out-name - current output file name | |
• SCM out-pop | out-pop - close current output file | |
• SCM out-push-add | out-push-add - append output to file | |
• SCM out-push-new | out-push-new - purge and create output file | |
• SCM out-resume | out-resume - resume suspended output file | |
• SCM out-suspend | out-suspend - suspend current output file | |
• SCM out-switch | out-switch - close and create new output | |
• SCM output-file-next-line | output-file-next-line - print the file name and next line number | |
• SCM set-option | set-option - Set a command line option | |
• SCM set-writable | set-writable - Make the output file be writable | |
• SCM stack | stack - make list of AutoGen values | |
• SCM stack-join | stack-join - stack values then join them | |
• SCM suffix | suffix - get the current suffix | |
• SCM tpl-file | tpl-file - get the template file name | |
• SCM tpl-file-line | tpl-file-line - get the template file+line number | |
• SCM tpl-file-next-line | tpl-file-next-line - get the template file plus next line number | |
• SCM warn | warn - display warning message and continue | |
• SCM autogen-version | autogen-version - “5.18.12” | |
• SCM c-file-line-fmt | format file info as, “#line nn "file" ”
|
Next: Common Functions, Previous: expression syntax, Up: Template File [Contents][Index]