Skip to content

Commit 323eb91

Browse files
committed
remove more inlines from functions which don't inline
1 parent 63820dc commit 323eb91

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

ext/hash/hash_gost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
AA(v, l, r); \
204204
}
205205

206-
static inline void Gost(PHP_GOST_CTX *context, uint32_t data[8])
206+
static void Gost(PHP_GOST_CTX *context, uint32_t data[8])
207207
{
208208
int i;
209209
uint32_t l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data;

ext/hash/hash_snefru.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void ph(uint32_t h[16])
3737
}
3838
#endif
3939

40-
static inline void Snefru(uint32_t input[16])
40+
static void Snefru(uint32_t input[16])
4141
{
4242
static const int shifts[4] = {16, 8, 16, 24};
4343
int b, index, rshift, lshift;

ext/hash/hash_tiger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
}
133133
/* }}} */
134134

135-
static inline void TigerFinalize(PHP_TIGER_CTX *context)
135+
static void TigerFinalize(PHP_TIGER_CTX *context)
136136
{
137137
context->passed += (uint64_t) context->length << 3;
138138

ext/json/json_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool php_json_is_valid_double(double d) /* {{{ */
8080
}
8181
/* }}} */
8282

83-
static inline void php_json_encode_double(smart_str *buf, double d, int options) /* {{{ */
83+
static void php_json_encode_double(smart_str *buf, double d, int options) /* {{{ */
8484
{
8585
size_t len;
8686
char num[ZEND_DOUBLE_MAX_LENGTH];

ext/random/engine_mt19937.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ZEND_STATIC_ASSERT(
100100
#define twist(m,u,v) (m ^ (mixBits(u,v) >> 1) ^ ((uint32_t)(-(int32_t)(loBit(v))) & 0x9908b0dfU))
101101
#define twist_php(m,u,v) (m ^ (mixBits(u,v) >> 1) ^ ((uint32_t)(-(int32_t)(loBit(u))) & 0x9908b0dfU))
102102

103-
static inline void mt19937_reload(php_random_status_state_mt19937 *state)
103+
static void mt19937_reload(php_random_status_state_mt19937 *state)
104104
{
105105
uint32_t *p = state->state;
106106

ext/standard/formatted_print.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static const char hexchars[] = "0123456789abcdef";
4545
static const char HEXCHARS[] = "0123456789ABCDEF";
4646

4747
/* php_spintf_appendchar() {{{ */
48-
inline static void
48+
static void
4949
php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add)
5050
{
5151
if ((*pos + 1) >= ZSTR_LEN(*buffer)) {
@@ -58,7 +58,7 @@ php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add)
5858
/* }}} */
5959

6060
/* php_spintf_appendchar() {{{ */
61-
inline static void
61+
static void
6262
php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len)
6363
{
6464
if ((*pos + len) >= ZSTR_LEN(*buffer)) {
@@ -77,7 +77,7 @@ php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len
7777
/* }}} */
7878

7979
/* php_spintf_appendstring() {{{ */
80-
inline static void
80+
static void
8181
php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add,
8282
size_t min_width, size_t max_width, char padding,
8383
size_t alignment, size_t len, bool neg, int expprec, int always_sign)
@@ -134,7 +134,7 @@ php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add,
134134
/* }}} */
135135

136136
/* php_spintf_appendint() {{{ */
137-
inline static void
137+
static void
138138
php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number,
139139
size_t width, char padding, size_t alignment,
140140
int always_sign)
@@ -178,7 +178,7 @@ php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number,
178178
/* }}} */
179179

180180
/* php_spintf_appenduint() {{{ */
181-
inline static void
181+
static void
182182
php_sprintf_appenduint(zend_string **buffer, size_t *pos,
183183
zend_ulong number,
184184
size_t width, char padding, size_t alignment)
@@ -210,7 +210,7 @@ php_sprintf_appenduint(zend_string **buffer, size_t *pos,
210210
/* }}} */
211211

212212
/* php_spintf_appenddouble() {{{ */
213-
inline static void
213+
static void
214214
php_sprintf_appenddouble(zend_string **buffer, size_t *pos,
215215
double number,
216216
size_t width, char padding,
@@ -317,7 +317,7 @@ php_sprintf_appenddouble(zend_string **buffer, size_t *pos,
317317
/* }}} */
318318

319319
/* php_spintf_appendd2n() {{{ */
320-
inline static void
320+
static void
321321
php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number,
322322
size_t width, char padding, size_t alignment, int n,
323323
const char *chartable, int expprec)

ext/standard/html.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static char *get_default_charset(void) {
8686
/* }}} */
8787

8888
/* {{{ get_next_char */
89-
static inline unsigned int get_next_char(
89+
static unsigned int get_next_char(
9090
enum entity_charset charset,
9191
const unsigned char *str,
9292
size_t str_len,
@@ -451,7 +451,7 @@ static inline unsigned char unimap_bsearch(const uni_to_enc *table, unsigned cod
451451
/* }}} */
452452

453453
/* {{{ map_from_unicode */
454-
static inline int map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res)
454+
static int map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res)
455455
{
456456
unsigned char found;
457457
const uni_to_enc *table;

0 commit comments

Comments
 (0)