Skip to content

Commit 9004725

Browse files
chore: standardize the visibility of functions. (#10708)
Co-authored-by: Marcos Marcolin <marcos@ixcsoft.com.br>
1 parent 07fe46f commit 9004725

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

ext/spl/spl_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ static const zend_object_iterator_funcs spl_array_it_funcs = {
10541054
spl_array_it_get_gc,
10551055
};
10561056

1057-
zend_object_iterator *spl_array_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
1057+
static zend_object_iterator *spl_array_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
10581058
{
10591059
zend_object_iterator *iterator = emalloc(sizeof(zend_object_iterator));
10601060
zend_iterator_init(iterator);

ext/spl/spl_directory.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ static inline HashTable *spl_filesystem_object_get_debug_info(zend_object *objec
695695
}
696696
/* }}} */
697697

698-
zend_function *spl_filesystem_object_get_method_check(zend_object **object, zend_string *method, const zval *key) /* {{{ */
698+
static zend_function *spl_filesystem_object_get_method_check(zend_object **object, zend_string *method, const zval *key) /* {{{ */
699699
{
700700
spl_filesystem_object *fsobj = spl_filesystem_from_obj(*object);
701701

@@ -711,7 +711,7 @@ zend_function *spl_filesystem_object_get_method_check(zend_object **object, zend
711711
#define DIT_CTOR_FLAGS 0x00000001
712712
#define DIT_CTOR_GLOB 0x00000002
713713

714-
void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, zend_long ctor_flags) /* {{{ */
714+
static void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, zend_long ctor_flags) /* {{{ */
715715
{
716716
spl_filesystem_object *intern;
717717
zend_string *path;
@@ -1637,7 +1637,7 @@ static const zend_object_iterator_funcs spl_filesystem_dir_it_funcs = {
16371637
/* }}} */
16381638

16391639
/* {{{ spl_ce_dir_get_iterator */
1640-
zend_object_iterator *spl_filesystem_dir_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
1640+
static zend_object_iterator *spl_filesystem_dir_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
16411641
{
16421642
spl_filesystem_iterator *iterator;
16431643
spl_filesystem_object *dir_object;
@@ -1830,7 +1830,7 @@ static const zend_object_iterator_funcs spl_filesystem_tree_it_funcs = {
18301830
/* }}} */
18311831

18321832
/* {{{ spl_ce_dir_get_iterator */
1833-
zend_object_iterator *spl_filesystem_tree_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
1833+
static zend_object_iterator *spl_filesystem_tree_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
18341834
{
18351835
spl_filesystem_iterator *iterator;
18361836
spl_filesystem_object *dir_object;

ext/spl/spl_dllist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ static const zend_object_iterator_funcs spl_dllist_it_funcs = {
12231223
NULL, /* get_gc */
12241224
}; /* }}} */
12251225

1226-
zend_object_iterator *spl_dllist_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
1226+
static zend_object_iterator *spl_dllist_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
12271227
{
12281228
spl_dllist_object *dllist_object = Z_SPLDLLIST_P(object);
12291229

ext/spl/spl_fixedarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ static const zend_object_iterator_funcs spl_fixedarray_it_funcs = {
927927
NULL, /* get_gc */
928928
};
929929

930-
zend_object_iterator *spl_fixedarray_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
930+
static zend_object_iterator *spl_fixedarray_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
931931
{
932932
spl_fixedarray_it *iterator;
933933

ext/spl/spl_heap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ static const zend_object_iterator_funcs spl_pqueue_it_funcs = {
10851085
NULL, /* get_gc */
10861086
};
10871087

1088-
zend_object_iterator *spl_heap_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
1088+
static zend_object_iterator *spl_heap_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
10891089
{
10901090
if (by_ref) {
10911091
zend_throw_error(NULL, "An iterator cannot be used with foreach by reference");
@@ -1104,7 +1104,7 @@ zend_object_iterator *spl_heap_get_iterator(zend_class_entry *ce, zval *object,
11041104
}
11051105
/* }}} */
11061106

1107-
zend_object_iterator *spl_pqueue_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
1107+
static zend_object_iterator *spl_pqueue_get_iterator(zend_class_entry *ce, zval *object, int by_ref) /* {{{ */
11081108
{
11091109
if (by_ref) {
11101110
zend_throw_error(NULL, "An iterator cannot be used with foreach by reference");

ext/spl/spl_iterators.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,7 +2901,7 @@ int spl_append_it_next_iterator(spl_dual_it_object *intern) /* {{{*/
29012901
}
29022902
} /* }}} */
29032903

2904-
void spl_append_it_fetch(spl_dual_it_object *intern) /* {{{*/
2904+
static void spl_append_it_fetch(spl_dual_it_object *intern) /* {{{*/
29052905
{
29062906
while (spl_dual_it_valid(intern) != SUCCESS) {
29072907
intern->u.append.iterator->funcs->move_forward(intern->u.append.iterator);
@@ -2912,7 +2912,7 @@ void spl_append_it_fetch(spl_dual_it_object *intern) /* {{{*/
29122912
spl_dual_it_fetch(intern, 0);
29132913
} /* }}} */
29142914

2915-
void spl_append_it_next(spl_dual_it_object *intern) /* {{{ */
2915+
static void spl_append_it_next(spl_dual_it_object *intern) /* {{{ */
29162916
{
29172917
if (spl_dual_it_valid(intern) == SUCCESS) {
29182918
spl_dual_it_next(intern, 1);

ext/spl/spl_observer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static spl_SplObjectStorageElement *spl_object_storage_attach_handle(spl_SplObje
173173
return pelement;
174174
} /* }}} */
175175

176-
spl_SplObjectStorageElement *spl_object_storage_attach(spl_SplObjectStorage *intern, zend_object *obj, zval *inf) /* {{{ */
176+
static spl_SplObjectStorageElement *spl_object_storage_attach(spl_SplObjectStorage *intern, zend_object *obj, zval *inf) /* {{{ */
177177
{
178178
if (EXPECTED(!(intern->flags & SOS_OVERRIDDEN_WRITE_DIMENSION))) {
179179
return spl_object_storage_attach_handle(intern, obj, inf);
@@ -238,7 +238,7 @@ static zend_result spl_object_storage_detach(spl_SplObjectStorage *intern, zend_
238238
return ret;
239239
} /* }}}*/
240240

241-
void spl_object_storage_addall(spl_SplObjectStorage *intern, spl_SplObjectStorage *other) { /* {{{ */
241+
static void spl_object_storage_addall(spl_SplObjectStorage *intern, spl_SplObjectStorage *other) { /* {{{ */
242242
spl_SplObjectStorageElement *element;
243243

244244
ZEND_HASH_FOREACH_PTR(&other->storage, element) {
@@ -406,7 +406,7 @@ static zend_object *spl_SplObjectStorage_new(zend_class_entry *class_type)
406406
/* }}} */
407407

408408
/* Returns true if the SplObjectStorage contains an entry for getHash(obj), even if the corresponding value is null. */
409-
bool spl_object_storage_contains(spl_SplObjectStorage *intern, zend_object *obj) /* {{{ */
409+
static bool spl_object_storage_contains(spl_SplObjectStorage *intern, zend_object *obj) /* {{{ */
410410
{
411411
if (EXPECTED(!intern->fptr_get_hash)) {
412412
return zend_hash_index_find(&intern->storage, obj->handle) != NULL;

0 commit comments

Comments
 (0)