On Tue, 12 Nov 2002 17:48:08 +0100 (CET)
Derick Rethans <[EMAIL PROTECTED]> wrote:

> On Tue, 12 Nov 2002, Pierre-Alain Joye wrote:
..
> #define FILTER_MAX    2

Already done :)

> typedef image_filter  {
>       void (function*)(INTERNAL_FUNCTION_PARAMETERS);
> } image_filter;
> 
> image_filter filters[] = {
>       { image_filter_none },
>       { image_filter_negate },
>       { image_filter_blur }
> };

That s what I used

> PHP_FUNCTION(image_filter_none)
> {
>       /* do stuff */
> }
> and then have:
> 
> filters[filter_type]->function(INTERNAL_FUNCTION_PARAMETERS);

OK, there are the 2 points I missed, I ll try them tonight :-).

Thank's :)

pa

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to