Lines Matching refs:buf
503 smart_str_appendl(&ctx->buf, newdata, newlen);
505 YYCURSOR = ZSTR_VAL(ctx->buf.s);
506 YYLIMIT = ZSTR_VAL(ctx->buf.s) + ZSTR_LEN(ctx->buf.s);
577 …scdebug(("stopped in state %d at pos %d (%d:%c) %d\n", STATE, YYCURSOR - ctx->buf.c, *YYCURSOR, *Y…
580 if (rest) memmove(ZSTR_VAL(ctx->buf.s), start, rest);
581 ZSTR_LEN(ctx->buf.s) = rest;
589 smart_str buf = {0};
611 append_modified_url(&surl, &buf, &url_app, PG(arg_separator).output);
613 smart_str_0(&buf);
614 if (newlen) *newlen = ZSTR_LEN(buf.s);
615 result = estrndup(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s));
618 smart_str_free(&buf);
638 smart_str_append(&ctx->result, ctx->buf.s);
639 *newlen += ZSTR_LEN(ctx->buf.s);
640 smart_str_free(&ctx->buf);
675 smart_str_free(&ctx->buf);
703 if (ctx->buf.s && ZSTR_LEN(ctx->buf.s)) {
704 smart_str_append(&ctx->result, ctx->buf.s);
708 *handled_output_len = ZSTR_LEN(ctx->buf.s) + output_len;
710 smart_str_free(&ctx->buf);