Re: ZEND_APIifying zendparse()
| From: | Nikita Popov | Date: | Thu, 22 Jan 2015 10:00:22 +0000 |
| Subject: | Re: ZEND_APIifying zendparse() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80965@lists.php.net to get a copy of this message | ||
On Thu, Jan 22, 2015 at 10:28 AM, Sara Golemon <pollita@php.net> wrote:
> http://github.com/sgolemon/astkit (See the README.md)
>
> I'm using zendparse() to generate an AST but *not* compile it to
> bytecode. In order to get this extension building, I have to patch
> php-src to export the zendparse symbol. Anyone object to me pushing
> that change?
>
> diff --git a/Zend/zend_globals_macros.h b/Zend/zend_globals_macros.h
> index b8fb763..190905f 100644
> --- a/Zend/zend_globals_macros.h
> +++ b/Zend/zend_globals_macros.h
> @@ -36,7 +36,7 @@ BEGIN_EXTERN_C()
> # define CG(v) (compiler_globals.v)
> extern ZEND_API struct _zend_compiler_globals compiler_globals;
> #endif
> -int zendparse(void);
> +ZEND_API int zendparse(void);
>
>
> /* Executor */
>
Looks reasonable :)
Nikita