Re: [tablix-list] Freelesson module

From: Tomaz Solc <tomaz.solcREMOVE@THISsiol.net>
Date: Sun Jun 05 2005 - 21:15:48 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> I've had a stab at it. The module options are passed to the init function okay
> and I can get at the options easily. Unfortunately, the opt param to the
> precalc function is being passed as NULL. I've had a quick look in modsup.c
> and (I think) I have confirmed this. I can't see an easy way of passing it
> the opt param within modsup or xmlsup. For the time being, I've created a
> module global to store it.

Pointer to module options is passed only to the module_init() function.
After that the memory is freed so the pointer is no longer valid when
the precalc function is called. You have to parse the options in
module_init() and store information in a global variable.

Best regards
Tomaz Solc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCo09jsAlAlRhL9q8RArFZAJ9e0T6OSVOBwJgXhCF0ruNZ5if5AwCggXCz
ZUktBTIqMj6HGWOJYGkLMQQ=
=z9AQ
-----END PGP SIGNATURE-----
Received on Sun Jun 05 21:11:05 2005

This archive was generated by hypermail 2.1.8 : Tue Aug 16 2005 - 20:43:51 CEST