fs 60 maint/gnulib/lib/argp-fmtstream.c argp_fmtstream_t fs; fs 62 maint/gnulib/lib/argp-fmtstream.c fs = (struct argp_fmtstream *) malloc (sizeof (struct argp_fmtstream)); fs 63 maint/gnulib/lib/argp-fmtstream.c if (fs != NULL) fs 65 maint/gnulib/lib/argp-fmtstream.c fs->stream = stream; fs 67 maint/gnulib/lib/argp-fmtstream.c fs->lmargin = lmargin; fs 68 maint/gnulib/lib/argp-fmtstream.c fs->rmargin = rmargin; fs 69 maint/gnulib/lib/argp-fmtstream.c fs->wmargin = wmargin; fs 70 maint/gnulib/lib/argp-fmtstream.c fs->point_col = 0; fs 71 maint/gnulib/lib/argp-fmtstream.c fs->point_offs = 0; fs 73 maint/gnulib/lib/argp-fmtstream.c fs->buf = (char *) malloc (INIT_BUF_SIZE); fs 74 maint/gnulib/lib/argp-fmtstream.c if (! fs->buf) fs 76 maint/gnulib/lib/argp-fmtstream.c free (fs); fs 77 maint/gnulib/lib/argp-fmtstream.c fs = 0; fs 81 maint/gnulib/lib/argp-fmtstream.c fs->p = fs->buf; fs 82 maint/gnulib/lib/argp-fmtstream.c fs->end = fs->buf + INIT_BUF_SIZE; fs 86 maint/gnulib/lib/argp-fmtstream.c return fs; fs 97 maint/gnulib/lib/argp-fmtstream.c __argp_fmtstream_free (argp_fmtstream_t fs) fs 99 maint/gnulib/lib/argp-fmtstream.c __argp_fmtstream_update (fs); fs 100 maint/gnulib/lib/argp-fmtstream.c if (fs->p > fs->buf) fs 103 maint/gnulib/lib/argp-fmtstream.c __fxprintf (fs->stream, "%.*s", (int) (fs->p - fs->buf), fs->buf); fs 105 maint/gnulib/lib/argp-fmtstream.c fwrite_unlocked (fs->buf, 1, fs->p - fs->buf, fs->stream); fs 108 maint/gnulib/lib/argp-fmtstream.c free (fs->buf); fs 109 maint/gnulib/lib/argp-fmtstream.c free (fs); fs 121 maint/gnulib/lib/argp-fmtstream.c __argp_fmtstream_update (argp_fmtstream_t fs) fs 127 maint/gnulib/lib/argp-fmtstream.c buf = fs->buf + fs->point_offs; fs 128 maint/gnulib/lib/argp-fmtstream.c while (buf < fs->p) fs 132 maint/gnulib/lib/argp-fmtstream.c if (fs->point_col == 0 && fs->lmargin != 0) fs 135 maint/gnulib/lib/argp-fmtstream.c const size_t pad = fs->lmargin; fs 136 maint/gnulib/lib/argp-fmtstream.c if (fs->p + pad < fs->end) fs 140 maint/gnulib/lib/argp-fmtstream.c memmove (buf + pad, buf, fs->p - buf); fs 141 maint/gnulib/lib/argp-fmtstream.c fs->p += pad; /* Compensate for bigger buffer. */ fs 152 maint/gnulib/lib/argp-fmtstream.c if (_IO_fwide (fs->stream, 0) > 0) fs 153 maint/gnulib/lib/argp-fmtstream.c putwc_unlocked (L' ', fs->stream); fs 156 maint/gnulib/lib/argp-fmtstream.c putc_unlocked (' ', fs->stream); fs 159 maint/gnulib/lib/argp-fmtstream.c fs->point_col = pad; fs 162 maint/gnulib/lib/argp-fmtstream.c len = fs->p - buf; fs 165 maint/gnulib/lib/argp-fmtstream.c if (fs->point_col < 0) fs 166 maint/gnulib/lib/argp-fmtstream.c fs->point_col = 0; fs 172 maint/gnulib/lib/argp-fmtstream.c if (fs->point_col + len < fs->rmargin) fs 177 maint/gnulib/lib/argp-fmtstream.c fs->point_col += len; fs 183 maint/gnulib/lib/argp-fmtstream.c nl = fs->p; fs 185 maint/gnulib/lib/argp-fmtstream.c else if (fs->point_col + (nl - buf) < (ssize_t) fs->rmargin) fs 189 maint/gnulib/lib/argp-fmtstream.c fs->point_col = 0; fs 195 maint/gnulib/lib/argp-fmtstream.c r = fs->rmargin - 1; fs 197 maint/gnulib/lib/argp-fmtstream.c if (fs->wmargin < 0) fs 201 maint/gnulib/lib/argp-fmtstream.c if (nl < fs->p) fs 203 maint/gnulib/lib/argp-fmtstream.c memmove (buf + (r - fs->point_col), nl, fs->p - nl); fs 204 maint/gnulib/lib/argp-fmtstream.c fs->p -= buf + (r - fs->point_col) - nl; fs 206 maint/gnulib/lib/argp-fmtstream.c fs->point_col = 0; fs 214 maint/gnulib/lib/argp-fmtstream.c fs->point_col += len; fs 215 maint/gnulib/lib/argp-fmtstream.c fs->p -= fs->point_col - r; fs 228 maint/gnulib/lib/argp-fmtstream.c p = buf + (r + 1 - fs->point_col); fs 246 maint/gnulib/lib/argp-fmtstream.c p = buf + (r + 1 - fs->point_col); fs 255 maint/gnulib/lib/argp-fmtstream.c fs->point_col = 0; fs 275 maint/gnulib/lib/argp-fmtstream.c ? fs->end - nl < fs->wmargin + 1 fs 276 maint/gnulib/lib/argp-fmtstream.c : nextline - (nl + 1) < fs->wmargin) fs 277 maint/gnulib/lib/argp-fmtstream.c && fs->p > nextline) fs 280 maint/gnulib/lib/argp-fmtstream.c if (fs->end - fs->p > fs->wmargin + 1) fs 283 maint/gnulib/lib/argp-fmtstream.c size_t mv = fs->p - nextline; fs 284 maint/gnulib/lib/argp-fmtstream.c memmove (nl + 1 + fs->wmargin, nextline, mv); fs 285 maint/gnulib/lib/argp-fmtstream.c nextline = nl + 1 + fs->wmargin; fs 293 maint/gnulib/lib/argp-fmtstream.c __fxprintf (fs->stream, "%.*s\n", fs 294 maint/gnulib/lib/argp-fmtstream.c (int) (nl - fs->buf), fs->buf); fs 296 maint/gnulib/lib/argp-fmtstream.c if (nl > fs->buf) fs 297 maint/gnulib/lib/argp-fmtstream.c fwrite_unlocked (fs->buf, 1, nl - fs->buf, fs->stream); fs 298 maint/gnulib/lib/argp-fmtstream.c putc_unlocked ('\n', fs->stream); fs 301 maint/gnulib/lib/argp-fmtstream.c len += buf - fs->buf; fs 302 maint/gnulib/lib/argp-fmtstream.c nl = buf = fs->buf; fs 310 maint/gnulib/lib/argp-fmtstream.c if (nextline - nl >= fs->wmargin fs 311 maint/gnulib/lib/argp-fmtstream.c || (nextline == buf + len + 1 && fs->end - nextline >= fs->wmargin)) fs 313 maint/gnulib/lib/argp-fmtstream.c for (i = 0; i < fs->wmargin; ++i) fs 316 maint/gnulib/lib/argp-fmtstream.c for (i = 0; i < fs->wmargin; ++i) fs 318 maint/gnulib/lib/argp-fmtstream.c if (_IO_fwide (fs->stream, 0) > 0) fs 319 maint/gnulib/lib/argp-fmtstream.c putwc_unlocked (L' ', fs->stream); fs 322 maint/gnulib/lib/argp-fmtstream.c putc_unlocked (' ', fs->stream); fs 334 maint/gnulib/lib/argp-fmtstream.c fs->p = nl + len; fs 339 maint/gnulib/lib/argp-fmtstream.c fs->point_col = fs->wmargin ? fs->wmargin : -1; fs 344 maint/gnulib/lib/argp-fmtstream.c fs->point_offs = fs->p - fs->buf; fs 350 maint/gnulib/lib/argp-fmtstream.c __argp_fmtstream_ensure (struct argp_fmtstream *fs, size_t amount) fs 352 maint/gnulib/lib/argp-fmtstream.c if ((size_t) (fs->end - fs->p) < amount) fs 357 maint/gnulib/lib/argp-fmtstream.c __argp_fmtstream_update (fs); fs 360 maint/gnulib/lib/argp-fmtstream.c __fxprintf (fs->stream, "%.*s", (int) (fs->p - fs->buf), fs->buf); fs 361 maint/gnulib/lib/argp-fmtstream.c wrote = fs->p - fs->buf; fs 363 maint/gnulib/lib/argp-fmtstream.c wrote = fwrite_unlocked (fs->buf, 1, fs->p - fs->buf, fs->stream); fs 365 maint/gnulib/lib/argp-fmtstream.c if (wrote == fs->p - fs->buf) fs 367 maint/gnulib/lib/argp-fmtstream.c fs->p = fs->buf; fs 368 maint/gnulib/lib/argp-fmtstream.c fs->point_offs = 0; fs 372 maint/gnulib/lib/argp-fmtstream.c fs->p -= wrote; fs 373 maint/gnulib/lib/argp-fmtstream.c fs->point_offs -= wrote; fs 374 maint/gnulib/lib/argp-fmtstream.c memmove (fs->buf, fs->buf + wrote, fs->p - fs->buf); fs 378 maint/gnulib/lib/argp-fmtstream.c if ((size_t) (fs->end - fs->buf) < amount) fs 381 maint/gnulib/lib/argp-fmtstream.c size_t old_size = fs->end - fs->buf; fs 385 maint/gnulib/lib/argp-fmtstream.c if (new_size < old_size || ! (new_buf = realloc (fs->buf, new_size))) fs 391 maint/gnulib/lib/argp-fmtstream.c fs->buf = new_buf; fs 392 maint/gnulib/lib/argp-fmtstream.c fs->end = new_buf + new_size; fs 393 maint/gnulib/lib/argp-fmtstream.c fs->p = fs->buf; fs 401 maint/gnulib/lib/argp-fmtstream.c __argp_fmtstream_printf (struct argp_fmtstream *fs, const char *fmt, ...) fs 411 maint/gnulib/lib/argp-fmtstream.c if (! __argp_fmtstream_ensure (fs, size_guess)) fs 415 maint/gnulib/lib/argp-fmtstream.c avail = fs->end - fs->p; fs 416 maint/gnulib/lib/argp-fmtstream.c out = __vsnprintf (fs->p, avail, fmt, args); fs 423 maint/gnulib/lib/argp-fmtstream.c fs->p += out; fs 51 maint/gnulib/lib/argp-fmtstream.h #define __argp_fmtstream_putc(fs,ch) putc(ch,fs) fs 52 maint/gnulib/lib/argp-fmtstream.h #define argp_fmtstream_putc(fs,ch) putc(ch,fs) fs 53 maint/gnulib/lib/argp-fmtstream.h #define __argp_fmtstream_puts(fs,str) fputs(str,fs) fs 54 maint/gnulib/lib/argp-fmtstream.h #define argp_fmtstream_puts(fs,str) fputs(str,fs) fs 55 maint/gnulib/lib/argp-fmtstream.h #define __argp_fmtstream_write(fs,str,len) fwrite(str,1,len,fs) fs 56 maint/gnulib/lib/argp-fmtstream.h #define argp_fmtstream_write(fs,str,len) fwrite(str,1,len,fs) fs 1681 maint/gnulib/lib/argp-help.c argp_fmtstream_t fs; fs 1693 maint/gnulib/lib/argp-help.c fs = __argp_make_fmtstream (stream, 0, uparams.rmargin, 0); fs 1694 maint/gnulib/lib/argp-help.c if (! fs) fs 1725 maint/gnulib/lib/argp-help.c int old_wm = __argp_fmtstream_set_wmargin (fs, uparams.usage_indent); fs 1729 maint/gnulib/lib/argp-help.c __argp_fmtstream_printf (fs, "%s %s", fs 1733 maint/gnulib/lib/argp-help.c __argp_fmtstream_printf (fs, "%s %s", fs 1739 maint/gnulib/lib/argp-help.c old_lm = __argp_fmtstream_set_lmargin (fs, uparams.usage_indent); fs 1745 maint/gnulib/lib/argp-help.c __argp_fmtstream_puts (fs, dgettext (argp->argp_domain, fs 1751 maint/gnulib/lib/argp-help.c hol_usage (hol, fs); fs 1755 maint/gnulib/lib/argp-help.c more_patterns = argp_args_usage (argp, state, &levels, 1, fs); fs 1757 maint/gnulib/lib/argp-help.c __argp_fmtstream_set_wmargin (fs, old_wm); fs 1758 maint/gnulib/lib/argp-help.c __argp_fmtstream_set_lmargin (fs, old_lm); fs 1760 maint/gnulib/lib/argp-help.c __argp_fmtstream_putc (fs, '\n'); fs 1769 maint/gnulib/lib/argp-help.c anything |= argp_doc (argp, state, 0, 0, 1, fs); fs 1773 maint/gnulib/lib/argp-help.c __argp_fmtstream_printf (fs, dgettext (argp->argp_domain, "\ fs 1786 maint/gnulib/lib/argp-help.c __argp_fmtstream_putc (fs, '\n'); fs 1787 maint/gnulib/lib/argp-help.c hol_help (hol, state, fs); fs 1794 maint/gnulib/lib/argp-help.c anything |= argp_doc (argp, state, 1, anything, 0, fs); fs 1799 maint/gnulib/lib/argp-help.c __argp_fmtstream_putc (fs, '\n'); fs 1800 maint/gnulib/lib/argp-help.c __argp_fmtstream_printf (fs, dgettext (argp->argp_domain, fs 1813 maint/gnulib/lib/argp-help.c __argp_fmtstream_free (fs); fs 60 maint/gnulib/lib/regexec.c static reg_errcode_t push_fail_stack (struct re_fail_stack_t *fs, fs 68 maint/gnulib/lib/regexec.c static reg_errcode_t free_fail_stack_return (struct re_fail_stack_t *fs); fs 1202 maint/gnulib/lib/regexec.c struct re_fail_stack_t *fs) fs 1235 maint/gnulib/lib/regexec.c else if (fs != NULL fs 1236 maint/gnulib/lib/regexec.c && push_fail_stack (fs, *pidx, candidate, nregs, regs, fs 1258 maint/gnulib/lib/regexec.c if (fs != NULL) fs 1293 maint/gnulib/lib/regexec.c if (fs && (*pidx > mctx->match_last || mctx->state_log[*pidx] == NULL fs 1306 maint/gnulib/lib/regexec.c push_fail_stack (struct re_fail_stack_t *fs, Idx str_idx, Idx dest_node, fs 1311 maint/gnulib/lib/regexec.c Idx num = fs->num++; fs 1312 maint/gnulib/lib/regexec.c if (fs->num == fs->alloc) fs 1315 maint/gnulib/lib/regexec.c new_array = re_realloc (fs->stack, struct re_fail_stack_ent_t, fs 1316 maint/gnulib/lib/regexec.c fs->alloc * 2); fs 1319 maint/gnulib/lib/regexec.c fs->alloc *= 2; fs 1320 maint/gnulib/lib/regexec.c fs->stack = new_array; fs 1322 maint/gnulib/lib/regexec.c fs->stack[num].idx = str_idx; fs 1323 maint/gnulib/lib/regexec.c fs->stack[num].node = dest_node; fs 1324 maint/gnulib/lib/regexec.c fs->stack[num].regs = re_malloc (regmatch_t, 2 * nregs); fs 1325 maint/gnulib/lib/regexec.c if (fs->stack[num].regs == NULL) fs 1327 maint/gnulib/lib/regexec.c memcpy (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs); fs 1328 maint/gnulib/lib/regexec.c memcpy (fs->stack[num].regs + nregs, prevregs, sizeof (regmatch_t) * nregs); fs 1329 maint/gnulib/lib/regexec.c err = re_node_set_init_copy (&fs->stack[num].eps_via_nodes, eps_via_nodes); fs 1334 maint/gnulib/lib/regexec.c pop_fail_stack (struct re_fail_stack_t *fs, Idx *pidx, Idx nregs, fs 1338 maint/gnulib/lib/regexec.c if (fs == NULL || fs->num == 0) fs 1340 maint/gnulib/lib/regexec.c Idx num = --fs->num; fs 1341 maint/gnulib/lib/regexec.c *pidx = fs->stack[num].idx; fs 1342 maint/gnulib/lib/regexec.c memcpy (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs); fs 1343 maint/gnulib/lib/regexec.c memcpy (prevregs, fs->stack[num].regs + nregs, sizeof (regmatch_t) * nregs); fs 1345 maint/gnulib/lib/regexec.c re_free (fs->stack[num].regs); fs 1346 maint/gnulib/lib/regexec.c *eps_via_nodes = fs->stack[num].eps_via_nodes; fs 1347 maint/gnulib/lib/regexec.c DEBUG_ASSERT (0 <= fs->stack[num].node); fs 1348 maint/gnulib/lib/regexec.c return fs->stack[num].node; fs 1370 maint/gnulib/lib/regexec.c struct re_fail_stack_t *fs; fs 1379 maint/gnulib/lib/regexec.c fs = &fs_body; fs 1380 maint/gnulib/lib/regexec.c fs->stack = re_malloc (struct re_fail_stack_ent_t, fs->alloc); fs 1381 maint/gnulib/lib/regexec.c if (fs->stack == NULL) fs 1385 maint/gnulib/lib/regexec.c fs = NULL; fs 1393 maint/gnulib/lib/regexec.c free_fail_stack_return (fs); fs 1404 maint/gnulib/lib/regexec.c || (fs && re_node_set_contains (&eps_via_nodes, cur_node))) fs 1408 maint/gnulib/lib/regexec.c if (fs) fs 1413 maint/gnulib/lib/regexec.c cur_node = pop_fail_stack (fs, &idx, nmatch, pmatch, fs 1422 maint/gnulib/lib/regexec.c return free_fail_stack_return (fs); fs 1429 maint/gnulib/lib/regexec.c &eps_via_nodes, fs); fs 1437 maint/gnulib/lib/regexec.c free_fail_stack_return (fs); fs 1440 maint/gnulib/lib/regexec.c cur_node = pop_fail_stack (fs, &idx, nmatch, pmatch, fs 1446 maint/gnulib/lib/regexec.c free_fail_stack_return (fs); fs 1453 maint/gnulib/lib/regexec.c return free_fail_stack_return (fs); fs 1457 maint/gnulib/lib/regexec.c free_fail_stack_return (struct re_fail_stack_t *fs) fs 1459 maint/gnulib/lib/regexec.c if (fs) fs 1462 maint/gnulib/lib/regexec.c for (fs_idx = 0; fs_idx < fs->num; ++fs_idx) fs 1464 maint/gnulib/lib/regexec.c re_node_set_free (&fs->stack[fs_idx].eps_via_nodes); fs 1465 maint/gnulib/lib/regexec.c re_free (fs->stack[fs_idx].regs); fs 1467 maint/gnulib/lib/regexec.c re_free (fs->stack);