projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
cpp
[m6w6/ext-psi]
/
src
/
module.c
diff --git
a/src/module.c
b/src/module.c
index b253e0a68d1b632d129b6f95d2969a52d95bc77b..1db2adff529377b922a848f262fbf71e6a680449 100644
(file)
--- a/
src/module.c
+++ b/
src/module.c
@@
-143,14
+143,7
@@
static PHP_FUNCTION(psi_validate)
RETURN_FALSE;
}
RETURN_FALSE;
}
- while (0 < psi_parser_scan(&P)) {
- psi_parser_parse(&P, psi_token_alloc(&P));
- if (P.num == PSI_T_EOF) {
- break;
- }
- }
- psi_parser_parse(&P, NULL);
-
+ psi_parser_parse(&P);
psi_data_ctor(&D, P.error, P.flags);
RETVAL_BOOL(psi_data_validate(&D, PSI_DATA(&P)) && !P.errors);
psi_data_dtor(&D);
psi_data_ctor(&D, P.error, P.flags);
RETVAL_BOOL(psi_data_validate(&D, PSI_DATA(&P)) && !P.errors);
psi_data_dtor(&D);
@@
-180,14
+173,7
@@
static PHP_FUNCTION(psi_validate_string)
RETURN_FALSE;
}
RETURN_FALSE;
}
- while (0 < psi_parser_scan(&P)) {
- psi_parser_parse(&P, psi_token_alloc(&P));
- if (P.num == PSI_T_EOF) {
- break;
- }
- }
- psi_parser_parse(&P, NULL);
-
+ psi_parser_parse(&P);
psi_data_ctor(&D, P.error, P.flags);
RETVAL_BOOL(psi_data_validate(&D, PSI_DATA(&P)) && !P.errors);
psi_data_dtor(&D);
psi_data_ctor(&D, P.error, P.flags);
RETVAL_BOOL(psi_data_validate(&D, PSI_DATA(&P)) && !P.errors);
psi_data_dtor(&D);