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

5.8 load-functions option (-F)

This is the “load scheme function library” option.

This option has some usage constraints. It:

This option is used to load Guile-scheme functions. The automatically called initialization routine scm_init must be used to register these routines or data. This routine can be generated by using the following command and the ‘snarf.tpl’ template. Read the introductory comment in ‘snarf.tpl’ to see what the ‘getdefs(1AG)’ comment must contain.

First, create a config file for getdefs, and then invoke getdefs loading that file:

 
cat > getdefs.cfg <<EOF
subblock    exparg=arg_name,arg_desc,arg_optional,arg_list
defs-to-get gfunc
template    snarf
srcfile
linenum
assign      group = name_of_some_group
assign      init  = _init
EOF

getdefs load=getdefs.cfg <<source-file-list>>

Note, however, that your functions must be named:

 
name_of_some_group_scm_<<function_name>>(...)

so you may wish to use a shorter group name.


This document was generated by Bruce Korb on November 16, 2010 using texi2html 1.82.

Viewable With Any Browser   autogen Home