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

code for handler procedure

With this attribute, you provide the code for your handler procedure in the option definition file. In this case, your main() procedure specification might look something like this:

 
main = {
  main-type    = for-each;
  handler-proc = my_handler;
  my_handler-code = <<- EndOfMyCode
	/* whatever you want to do */
	EndOfMyCode;
};

and instead of an emitted external reference, a procedure will be emitted that looks like this:

 
static int
my_handler( char const* pz_entry )
{
    int res = 0;
    <<my_handler-code goes here>>
    return res;
}

This document was generated by Bruce Korb on October 16, 2013 using texi2html 1.82.