fix package.xml
[m6w6/ext-psi] / src / token.c
index 1b4cc5ea01026214f9b19b75fd8c441b3259a0af..7a6100793d2493f614d2c82d8eb431d04ca5b1a5 100644 (file)
  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 <ctype.h>
 
@@ -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