extension prototypes
| From: | Kamen TOMOV | Date: | Thu, 13 May 2004 10:23:56 +0000 |
| Subject: | extension prototypes | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-637@lists.php.net to get a copy of this message | ||
Hello,
I'm writing a PHP extension so I'm following the procedures in the
tutorials on the pecl.php.net web site.
I created a file with function prototypes and descriptions:
primer.def
~~~~~~~~~
array primer_load(string file)
Loads the parses a file
Then I generated an extension with ext_skel and I got such file:
primer.c
~~~~~~~
...
/* {{{ proto array primer_load(string file)
*/
PHP_FUNCTION(primer_load)
{
...
/* {{{ proto ()
Loads the parses a file */
PHP_FUNCTION()
{
...
As you can see there is a problem because for every line a
PHP_FUNCTION is generated. Can you tell me where is the bug?
I'm using php-4.3.3 on GNU/Linux.
Regards,
--
Kamen A. TOMOV