On Wed, 13 Jun 2001, David M. Lloyd wrote:
> Is there a standard way that I can define some C code that is executed
> when my XS module is loaded?
'perldoc perlxs':
The BOOT: Keyword
The BOOT: keyword is used to add code to the extension's
bootstrap function. The bootstrap function is generated
by the xsubpp compiler and normally holds the statements
necessary to register any XSUBs with Perl. With the BOOT:
keyword the programmer can tell the compiler to add extra
statements to the bootstrap function.
This keyword may be used any time after the first MODULE
keyword and should appear on a line by itself. The first
blank line after the keyword will terminate the code
block.
--
Vivek