X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftoken.c;h=7a6100793d2493f614d2c82d8eb431d04ca5b1a5;hb=1124354f4666e9d10d9ad3acfa45fdba3b99cfc6;hp=1b4cc5ea01026214f9b19b75fd8c441b3259a0af;hpb=a0f437f26cd0f121ee911a55327a68a3544bf15f;p=m6w6%2Fext-psi diff --git a/src/token.c b/src/token.c index 1b4cc5e..7a61007 100644 --- a/src/token.c +++ b/src/token.c @@ -23,7 +23,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include @@ -46,7 +50,7 @@ struct psi_token *psi_token_init(token_t token_typ, const char *token_txt, T->col = col; T->line = line; T->file = zend_string_copy(file); - T->text = zend_string_init_interned(token_txt, token_len, 1); + T->text = psi_string_init_interned(token_txt, token_len, 1); #if PSI_DEBUG_TOKEN_ALLOC PSI_DEBUG_PRINT(cpp->parser, "PSI: token_init %p\n", T); #endif