Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rsky/php-mecab
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: shono0027/php-mecab
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 1, 2022

  1. Add PHP8 and PHP7 Format

    shono committed Feb 1, 2022
    Copy the full SHA
    89921c9 View commit details
Showing with 274 additions and 274 deletions.
  1. +272 −272 mecab/mecab7.c
  2. +2 −2 mecab/php_mecab_compat7.h
544 changes: 272 additions & 272 deletions mecab/mecab7.c

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions mecab/php_mecab_compat7.h
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
name = x##name->ptr;

#define PHP_MECAB_PARSE_PARAMETERS(fmt, ...) { \
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, fmt, __VA_ARGS__) == FAILURE) { \
if (zend_parse_parameters(ZEND_NUM_ARGS(), fmt, __VA_ARGS__) == FAILURE) { \
return; \
} else { \
const php_mecab_object *intern = php_mecab_object_fetch_object(Z_OBJ_P(getThis())); \
@@ -41,7 +41,7 @@
}

#define PHP_MECAB_PARSE_PARAMETERS2(name, fmt, ...) { \
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, fmt, __VA_ARGS__) == FAILURE) { \
if (zend_parse_parameters(ZEND_NUM_ARGS(), fmt, __VA_ARGS__) == FAILURE) { \
return; \
} else { \
const php_mecab_##name##_object *intern = php_mecab_##name##_object_fetch_object(Z_OBJ_P(getThis())); \