mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Restore use of inline
This commit is contained in:
parent
c8e453c060
commit
cd5f8608e2
2 changed files with 4 additions and 4 deletions
|
@ -290,7 +290,7 @@ static inline void handle_val(STD_PARA, char quotes, char type)
|
||||||
#define scdebug(x)
|
#define scdebug(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void mainloop(url_adapt_state_ex_t *ctx, const char *newdata, size_t newlen TSRMLS_DC)
|
static inline void xx_mainloop(url_adapt_state_ex_t *ctx, const char *newdata, size_t newlen TSRMLS_DC)
|
||||||
{
|
{
|
||||||
char *end, *q;
|
char *end, *q;
|
||||||
char *xp;
|
char *xp;
|
||||||
|
@ -828,7 +828,7 @@ char *url_adapt_ext(const char *src, size_t srclen, const char *name, const char
|
||||||
|
|
||||||
smart_str_sets(&ctx->q_name, name);
|
smart_str_sets(&ctx->q_name, name);
|
||||||
smart_str_sets(&ctx->q_value, value);
|
smart_str_sets(&ctx->q_value, value);
|
||||||
mainloop(ctx, src, srclen TSRMLS_CC);
|
xx_mainloop(ctx, src, srclen TSRMLS_CC);
|
||||||
|
|
||||||
*newlen = ctx->result.len;
|
*newlen = ctx->result.len;
|
||||||
if (!ctx->result.c) {
|
if (!ctx->result.c) {
|
||||||
|
|
|
@ -230,7 +230,7 @@ static inline void handle_val(STD_PARA, char quotes, char type)
|
||||||
#define scdebug(x)
|
#define scdebug(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void mainloop(url_adapt_state_ex_t *ctx, const char *newdata, size_t newlen TSRMLS_DC)
|
static inline void xx_mainloop(url_adapt_state_ex_t *ctx, const char *newdata, size_t newlen TSRMLS_DC)
|
||||||
{
|
{
|
||||||
char *end, *q;
|
char *end, *q;
|
||||||
char *xp;
|
char *xp;
|
||||||
|
@ -344,7 +344,7 @@ char *url_adapt_ext(const char *src, size_t srclen, const char *name, const char
|
||||||
|
|
||||||
smart_str_sets(&ctx->q_name, name);
|
smart_str_sets(&ctx->q_name, name);
|
||||||
smart_str_sets(&ctx->q_value, value);
|
smart_str_sets(&ctx->q_value, value);
|
||||||
mainloop(ctx, src, srclen TSRMLS_CC);
|
xx_mainloop(ctx, src, srclen TSRMLS_CC);
|
||||||
|
|
||||||
*newlen = ctx->result.len;
|
*newlen = ctx->result.len;
|
||||||
if (!ctx->result.c) {
|
if (!ctx->result.c) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue