sb                218 global/global.c 	STRBUF *sb = NULL;
sb                307 global/global.c 		sb = strbuf_open(0);
sb                308 global/global.c 		strbuf_puts(sb, getenv("GTAGSLIBPATH"));
sb                309 global/global.c 		for (libdir = strbuf_value(sb); libdir; libdir = nextp) {
sb                326 global/global.c 		strbuf_close(sb);
sb                629 global/global.c 		STRBUF	*sb = strbuf_open(0);
sb                636 global/global.c 		strbuf_puts(sb, quote_shell(gtags_path));
sb                637 global/global.c 		strbuf_puts(sb, " -i");
sb                639 global/global.c 			strbuf_puts(sb, " -v");
sb                648 global/global.c 			strbuf_puts(sb, " --single-update=");
sb                649 global/global.c 			strbuf_putc(sb, '"');
sb                650 global/global.c 			strbuf_puts(sb, single_update);
sb                651 global/global.c 			strbuf_putc(sb, '"');
sb                653 global/global.c 		strbuf_putc(sb, ' ');
sb                654 global/global.c 		strbuf_puts(sb, dbpath);
sb                655 global/global.c 		if (system(strbuf_value(sb)))
sb                657 global/global.c 		strbuf_close(sb);
sb                697 global/global.c 		STRBUF *sb = strbuf_open(0);
sb                699 global/global.c 		strbuf_putc(sb, '.');
sb                703 global/global.c 				strbuf_putc(sb, '/');
sb                704 global/global.c 			strbuf_puts(sb, p);
sb                706 global/global.c 		strbuf_putc(sb, '/');
sb                707 global/global.c 		localprefix = check_strdup(strbuf_value(sb));
sb                708 global/global.c 		strbuf_close(sb);
sb                808 global/global.c 		STRBUF *sb = strbuf_open(0);
sb                817 global/global.c 		strbuf_putc(sb, '^');
sb                818 global/global.c 		strbuf_puts(sb, prefix);
sb                819 global/global.c 		if (regcomp(&preg, strbuf_value(sb), REG_ICASE) != 0)
sb                835 global/global.c 			strbuf_reset(sb);
sb                836 global/global.c 			strbuf_putc(sb, firstchar[i]);
sb                837 global/global.c 			for (gtp = gtags_first(gtop, strbuf_value(sb), flags); gtp; gtp = gtags_next(gtop)) {
sb                845 global/global.c 		strbuf_close(sb);
sb                880 global/global.c 		STRBUF *sb = strbuf_open(0);
sb                883 global/global.c 		strbuf_puts(sb, getenv("GTAGSLIBPATH"));
sb                887 global/global.c 		for (libdir = strbuf_value(sb); libdir; libdir = nextp) {
sb                904 global/global.c 		strbuf_close(sb);
sb                919 global/global.c 	STRBUF *sb = strbuf_open(0);
sb                931 global/global.c 	strbuf_puts(sb, lid);
sb                932 global/global.c 	strbuf_sprintf(sb, " --file='%s/ID'", dbpath);
sb                933 global/global.c 	strbuf_puts(sb, " --key=token");
sb                935 global/global.c 		strbuf_puts(sb, " --ignore-case");
sb                936 global/global.c 	strbuf_putc(sb, ' ');
sb                937 global/global.c 	strbuf_putc(sb, '"');
sb                938 global/global.c 	strbuf_putc(sb, '^');
sb                939 global/global.c 	strbuf_puts(sb, prefix);
sb                940 global/global.c 	strbuf_putc(sb, '"');
sb                942 global/global.c 		fprintf(stderr, "completion_idutils: %s\n", strbuf_value(sb));
sb                945 global/global.c 	if (!(ip = popen(strbuf_value(sb), "r")))
sb                946 global/global.c 		die("cannot execute '%s'.", strbuf_value(sb));
sb                947 global/global.c 	while ((line = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) {
sb                958 global/global.c 	strbuf_close(sb);
sb               1443 global/global.c 	STRBUF *sb = strbuf_open(0);
sb               1463 global/global.c 	if (getconfs("langmap", sb))
sb               1464 global/global.c 		langmap = check_strdup(strbuf_value(sb));
sb               1467 global/global.c 	strbuf_reset(sb);
sb               1468 global/global.c 	if (getconfs("gtags_parser", sb))
sb               1469 global/global.c 		plugin_parser = strbuf_value(sb);
sb               1544 global/global.c 	strbuf_close(sb);
sb               1577 global/global.c 	STRBUF *sb = NULL, *ib = NULL;
sb               1597 global/global.c 			sb = strbuf_open(0);
sb               1598 global/global.c 			strbuf_putc(sb, '^');
sb               1599 global/global.c 			strbuf_puts(sb, pattern);
sb               1600 global/global.c 			strbuf_putc(sb, '$');
sb               1601 global/global.c 			pattern = strbuf_value(sb);
sb               1776 global/global.c 	if (sb)
sb               1777 global/global.c 		strbuf_close(sb);
sb               1811 global/global.c 		STRBUF *sb = strbuf_open(0);
sb               1814 global/global.c 		strbuf_puts(sb, getenv("GTAGSLIBPATH"));
sb               1818 global/global.c 		for (libdir = strbuf_value(sb); libdir; libdir = nextp) {
sb               1838 global/global.c 		strbuf_close(sb);
sb                197 global/literal.c 				STATIC_STRBUF(sb);
sb                199 global/literal.c 				strbuf_clear(sb);
sb                200 global/literal.c 				strbuf_nputs(sb, linep, p - linep);
sb                201 global/literal.c 				strbuf_unputc(sb, '\n');
sb                202 global/literal.c 				strbuf_unputc(sb, '\r');
sb                203 global/literal.c 				convert_put_using(cv, encoded_pattern, file, lineno, strbuf_value(sb), NULL);
sb                114 gozilla/gozilla.c 	STRBUF *sb = strbuf_open(0);
sb                132 gozilla/gozilla.c 	while ((p = strbuf_fgets(sb, ip, flag)) != NULL) {
sb                138 gozilla/gozilla.c 		if (strbuf_unputc(sb, '\\')) {
sb                158 gozilla/gozilla.c 	strbuf_close(sb);
sb                360 gozilla/gozilla.c 	STRBUF *sb = strbuf_open(0);
sb                368 gozilla/gozilla.c 	while ((p = strbuf_fgets(sb, fp, STRBUF_NOCRLF)) != NULL) {
sb                385 gozilla/gozilla.c 	strbuf_close(sb);
sb                399 gozilla/gozilla.c 	STRBUF *sb = strbuf_open(0);
sb                404 gozilla/gozilla.c 	if (p != NULL && convertpath(dbpath, htmldir, p, sb) == 0)
sb                405 gozilla/gozilla.c 		makefileurl(strbuf_value(sb), linenumber, URL);
sb                408 gozilla/gozilla.c 	strbuf_close(sb);
sb                445 gozilla/gozilla.c convertpath(const char *dbpath, const char *htmldir, const char *path, STRBUF *sb)
sb                452 gozilla/gozilla.c 	strbuf_reset(sb);
sb                453 gozilla/gozilla.c 	strbuf_puts(sb, htmldir);
sb                454 gozilla/gozilla.c 	strbuf_puts(sb, "/S/");
sb                459 gozilla/gozilla.c 		int tag1 = strbuf_getlen(sb);
sb                467 gozilla/gozilla.c 		strbuf_puts(sb, p);
sb                469 gozilla/gozilla.c 			int tag2 = strbuf_getlen(sb);
sb                470 gozilla/gozilla.c 			strbuf_puts(sb, suffix[i]);
sb                471 gozilla/gozilla.c 			if (test("f", strbuf_value(sb)))
sb                473 gozilla/gozilla.c 			strbuf_puts(sb, gz);
sb                474 gozilla/gozilla.c 			if (test("f", strbuf_value(sb)))
sb                476 gozilla/gozilla.c 			strbuf_setlen(sb, tag2);
sb                478 gozilla/gozilla.c 		strbuf_setlen(sb, tag1);
sb                484 gozilla/gozilla.c 		strbuf_putc(sb, (*p == '/') ? ' ' : *p);
sb                486 gozilla/gozilla.c 		int tag = strbuf_getlen(sb);
sb                487 gozilla/gozilla.c 		strbuf_puts(sb, suffix[i]);
sb                488 gozilla/gozilla.c 		if (test("f", strbuf_value(sb)))
sb                490 gozilla/gozilla.c 		strbuf_puts(sb, gz);
sb                491 gozilla/gozilla.c 		if (test("f", strbuf_value(sb)))
sb                493 gozilla/gozilla.c 		strbuf_setlen(sb, tag);
sb                173 gtags/gtags.c  	STRBUF *sb = strbuf_open(0);
sb                447 gtags/gtags.c  	strbuf_reset(sb);
sb                448 gtags/gtags.c  	if (getconfs("langmap", sb))
sb                449 gtags/gtags.c  		langmap = check_strdup(strbuf_value(sb));
sb                450 gtags/gtags.c  	strbuf_reset(sb);
sb                451 gtags/gtags.c  	if (getconfs("gtags_parser", sb))
sb                452 gtags/gtags.c  		gtags_parser = check_strdup(strbuf_value(sb));
sb                497 gtags/gtags.c  		strbuf_reset(sb);
sb                498 gtags/gtags.c  		strbuf_puts(sb, "mkid");
sb                500 gtags/gtags.c  			strbuf_puts(sb, " -v");
sb                501 gtags/gtags.c  		strbuf_sprintf(sb, " --file='%s/ID'", dbpath);
sb                506 gtags/gtags.c  			strbuf_puts(sb, " 1>&2");
sb                508 gtags/gtags.c  			strbuf_puts(sb, " >" NULL_DEVICE);
sb                511 gtags/gtags.c  			fprintf(stderr, "executing mkid like: %s\n", strbuf_value(sb));
sb                512 gtags/gtags.c  		if (system(strbuf_value(sb)))
sb                513 gtags/gtags.c  			die("mkid failed: %s", strbuf_value(sb));
sb                521 gtags/gtags.c  	strbuf_close(sb);
sb                857 gtags/gtags.c  	STRBUF *sb = strbuf_open(0);
sb                913 gtags/gtags.c  	strbuf_reset(sb);
sb                914 gtags/gtags.c  	if (getconfs("GTAGS_extra", sb)) {
sb                916 gtags/gtags.c  		if (system(strbuf_value(sb)))
sb                917 gtags/gtags.c  			fprintf(stderr, "GTAGS_extra command failed: %s\n", strbuf_value(sb));
sb                920 gtags/gtags.c  	strbuf_reset(sb);
sb                921 gtags/gtags.c  	if (getconfs("GRTAGS_extra", sb)) {
sb                923 gtags/gtags.c  		if (system(strbuf_value(sb)))
sb                924 gtags/gtags.c  			fprintf(stderr, "GRTAGS_extra command failed: %s\n", strbuf_value(sb));
sb                927 gtags/gtags.c  	strbuf_close(sb);
sb                946 gtags/gtags.c  		STRBUF *sb = strbuf_open(0);
sb                947 gtags/gtags.c  		if (getconfs(name, sb))
sb                948 gtags/gtags.c  			fprintf(stdout, "%s\n", strbuf_value(sb));
sb                951 gtags/gtags.c  		strbuf_close(sb);
sb                227 htags/common.c 	STATIC_STRBUF(sb);
sb                229 htags/common.c 	strbuf_clear(sb);
sb                230 htags/common.c 	strbuf_sprintf(sb, "../%s", dir);
sb                231 htags/common.c 	return strbuf_value(sb);
sb                241 htags/common.c 	STATIC_STRBUF(sb);
sb                245 htags/common.c 	strbuf_clear(sb);
sb                247 htags/common.c 		strbuf_putc(sb, c);
sb                249 htags/common.c 			int curpos = strbuf_getlen(sb);
sb                254 htags/common.c 					strbuf_value(sb) + start_position,
sb                257 htags/common.c 					strbuf_setlen(sb, start_position);
sb                258 htags/common.c 					strbuf_puts(sb, parent_dir);
sb                269 htags/common.c 	return strbuf_value(sb);
sb                319 htags/common.c 	STATIC_STRBUF(sb);
sb                333 htags/common.c 	strbuf_clear(sb);
sb                340 htags/common.c 			strbuf_puts_nl(sb, "<?xml version='1.0' encoding='ISO-8859-1'?>");
sb                341 htags/common.c 			strbuf_sprintf(sb, "<?xml-stylesheet type='text/css' href='%sstyle.css'?>\n", dir);
sb                352 htags/common.c 			strbuf_puts_nl(sb, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'>");
sb                354 htags/common.c 			strbuf_puts_nl(sb, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>");
sb                356 htags/common.c 			strbuf_puts_nl(sb, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
sb                358 htags/common.c 	strbuf_puts_nl(sb, html_begin);
sb                359 htags/common.c 	strbuf_puts_nl(sb, html_head_begin);
sb                360 htags/common.c 	strbuf_puts(sb, html_title_begin);
sb                361 htags/common.c 	strbuf_puts(sb, title);
sb                362 htags/common.c 	strbuf_puts_nl(sb, html_title_end);
sb                363 htags/common.c 	strbuf_sprintf(sb, "<meta name='robots' content='noindex,nofollow'%s>\n", empty_element);
sb                364 htags/common.c 	strbuf_sprintf(sb, "<meta name='generator' content='GLOBAL-%s'%s>\n", get_version(), empty_element);
sb                366 htags/common.c 		strbuf_sprintf(sb, "<meta http-equiv='Content-Style-Type' content='text/css'%s>\n", empty_element);
sb                367 htags/common.c 		strbuf_sprintf(sb, "<link rel='stylesheet' type='text/css' href='%sstyle.css'%s>\n", dir, empty_element);
sb                370 htags/common.c 		strbuf_puts(sb, header_item);		/* internal use */
sb                372 htags/common.c 		strbuf_puts(sb, html_header);		/* --html-header=file */
sb                373 htags/common.c 	strbuf_puts(sb, html_head_end);
sb                374 htags/common.c 	return strbuf_value(sb);
sb                432 htags/common.c 	STATIC_STRBUF(sb);
sb                435 htags/common.c 	strbuf_clear(sb);
sb                437 htags/common.c 		strbuf_sprintf(sb, "<img class='icon' src='%s/%s.%s' alt='[%s]'%s>",
sb                440 htags/common.c 		strbuf_sprintf(sb, "<img src='%s/%s.%s' alt='[%s]' %s%s>",
sb                442 htags/common.c 	return strbuf_value(sb);
sb                463 htags/common.c 	STATIC_STRBUF(sb);
sb                465 htags/common.c 	strbuf_clear(sb);
sb                473 htags/common.c 			strbuf_sprintf(sb, "<a id='%s'></a>", name);
sb                475 htags/common.c 			strbuf_sprintf(sb, "<a id='%s' name='%s'></a>", name, name);
sb                477 htags/common.c 		strbuf_sprintf(sb, "<a name='%s'></a>", name);
sb                479 htags/common.c 	return strbuf_value(sb);
sb                499 htags/common.c 	STATIC_STRBUF(sb);
sb                501 htags/common.c 	strbuf_clear(sb);
sb                506 htags/common.c 	strbuf_puts(sb, "<a href='");
sb                509 htags/common.c 			strbuf_puts(sb, dir);
sb                510 htags/common.c 			strbuf_putc(sb, '/');
sb                512 htags/common.c 		strbuf_puts(sb, file);
sb                514 htags/common.c 			strbuf_putc(sb, '.');
sb                515 htags/common.c 			strbuf_puts(sb, suffix);
sb                519 htags/common.c 		strbuf_putc(sb, '#');
sb                525 htags/common.c 			strbuf_putc(sb, 'L');
sb                526 htags/common.c 		strbuf_puts(sb, key);
sb                528 htags/common.c 	strbuf_putc(sb, '\'');
sb                530 htags/common.c 		strbuf_sprintf(sb, " target='%s'", fix_attr_value(target));
sb                532 htags/common.c 		strbuf_sprintf(sb, " title='%s'", fix_attr_value(title));
sb                533 htags/common.c 	strbuf_putc(sb, '>');
sb                534 htags/common.c 	return strbuf_value(sb);
sb                583 htags/common.c 	STATIC_STRBUF(sb);
sb                585 htags/common.c 	if (strbuf_empty(sb)) {
sb                586 htags/common.c 		strbuf_clear(sb);
sb                589 htags/common.c 				strbuf_sprintf(sb, "%s\n%s%s%s%s",
sb                596 htags/common.c 				strbuf_sprintf(sb, "%s\n%s%s%s%s",
sb                604 htags/common.c 			strbuf_puts(sb, verbatim_begin);
sb                607 htags/common.c 	return strbuf_value(sb);
sb                617 htags/common.c 	STATIC_STRBUF(sb);
sb                622 htags/common.c 	strbuf_clear(sb);
sb                631 htags/common.c 		strbuf_puts(sb, current_row_begin);
sb                633 htags/common.c 			strbuf_puts(sb, "<td class='tag'>");
sb                634 htags/common.c 			strbuf_puts(sb, gen_href_begin(srcdir, fid, HTML, ptable.part[PART_LNO].start));
sb                635 htags/common.c 			strbuf_puts(sb, ptable.part[PART_TAG].start);
sb                636 htags/common.c 			strbuf_puts(sb, gen_href_end());
sb                637 htags/common.c 			strbuf_sprintf(sb, "</td><td class='line'>%s</td><td class='file'>%s</td><td class='code'>",
sb                640 htags/common.c 			strbuf_puts(sb, "<td nowrap='nowrap'>");
sb                641 htags/common.c 			strbuf_puts(sb, gen_href_begin(srcdir, fid, HTML, ptable.part[PART_LNO].start));
sb                642 htags/common.c 			strbuf_puts(sb, ptable.part[PART_TAG].start);
sb                643 htags/common.c 			strbuf_puts(sb, gen_href_end());
sb                644 htags/common.c 			strbuf_sprintf(sb, "</td><td nowrap='nowrap' align='right'>%s</td>"
sb                652 htags/common.c 				strbuf_puts(sb, quote_amp);
sb                654 htags/common.c 				strbuf_puts(sb, quote_little);
sb                656 htags/common.c 				strbuf_puts(sb, quote_great);
sb                658 htags/common.c 				strbuf_puts(sb, quote_space);
sb                660 htags/common.c 				strbuf_puts(sb, quote_space);
sb                661 htags/common.c 				strbuf_puts(sb, quote_space);
sb                663 htags/common.c 				strbuf_putc(sb, c);
sb                665 htags/common.c 		strbuf_puts(sb, "</td>");
sb                666 htags/common.c 		strbuf_puts(sb, current_row_end);
sb                670 htags/common.c 		strbuf_puts(sb, current_line_begin);
sb                671 htags/common.c 		strbuf_puts(sb, gen_href_begin(srcdir, fid, HTML, ptable.part[PART_LNO].start));
sb                672 htags/common.c 		strbuf_puts(sb, ptable.part[PART_TAG].start);
sb                673 htags/common.c 		strbuf_puts(sb, gen_href_end());
sb                678 htags/common.c 			strbuf_putc(sb, *p);
sb                680 htags/common.c 		strbuf_puts(sb, path);
sb                686 htags/common.c 				strbuf_puts(sb, quote_amp);
sb                688 htags/common.c 				strbuf_puts(sb, quote_little);
sb                690 htags/common.c 				strbuf_puts(sb, quote_great);
sb                692 htags/common.c 				strbuf_putc(sb, c);
sb                694 htags/common.c 		strbuf_puts(sb, current_line_end);
sb                696 htags/common.c 	return strbuf_value(sb);
sb                714 htags/common.c 	STATIC_STRBUF(sb);
sb                716 htags/common.c 	strbuf_clear(sb);
sb                717 htags/common.c 	strbuf_sprintf(sb, "<form method='get' action='%s'", fix_attr_value(action));
sb                719 htags/common.c 		strbuf_sprintf(sb, " target='%s'", fix_attr_value(target));
sb                720 htags/common.c 	strbuf_puts(sb, ">");
sb                721 htags/common.c 	return strbuf_value(sb);
sb                772 htags/common.c 	STATIC_STRBUF(sb);
sb                774 htags/common.c 	strbuf_clear(sb);
sb                775 htags/common.c 	strbuf_puts(sb, "<input");
sb                777 htags/common.c 		strbuf_sprintf(sb, " type='%s'", type);
sb                779 htags/common.c 		strbuf_sprintf(sb, " name='%s' id='%s'", name, name);
sb                781 htags/common.c 		strbuf_sprintf(sb, " value='%s'", fix_attr_value(value));
sb                784 htags/common.c 			strbuf_puts(sb, " checked='checked'");
sb                786 htags/common.c 			strbuf_puts(sb, " checked");
sb                789 htags/common.c 		strbuf_sprintf(sb, " title='%s'", fix_attr_value(title));
sb                790 htags/common.c 	strbuf_sprintf(sb, "%s>", empty_element);
sb                791 htags/common.c 	return strbuf_value(sb);
sb                801 htags/common.c 	STATIC_STRBUF(sb);
sb                803 htags/common.c 	strbuf_clear(sb);
sb                804 htags/common.c 	strbuf_sprintf(sb, "<frameset %s>", contents);
sb                805 htags/common.c 	return strbuf_value(sb);
sb                824 htags/common.c 	STATIC_STRBUF(sb);
sb                826 htags/common.c 	strbuf_clear(sb);
sb                827 htags/common.c 	strbuf_sprintf(sb, "<frame name='%s' id='%s' src='%s'%s>", name, name, src, empty_element);
sb                828 htags/common.c 	return strbuf_value(sb);
sb                842 htags/common.c 	STATIC_STRBUF(sb);
sb                846 htags/common.c 	strbuf_clear(sb);
sb                851 htags/common.c 			strbuf_puts(sb, "&#39;");
sb                853 htags/common.c 			strbuf_putc(sb, c);
sb                856 htags/common.c 	return strbuf_value(sb);
sb                 55 htags/defineindex.c 	STRBUF *sb = strbuf_open(0);
sb                105 htags/defineindex.c 	while ((_ = strbuf_fgets(sb, TAGS, STRBUF_NOCRLF)) != NULL) {
sb                289 htags/defineindex.c 	strbuf_close(sb);
sb                 53 htags/dupindex.c 	STRBUF *sb = strbuf_open(0);
sb                 99 htags/dupindex.c 		while ((ctags_xid = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) {
sb                209 htags/dupindex.c 	strbuf_close(sb);
sb                253 htags/fileindex.c 	STATIC_STRBUF(sb);
sb                255 htags/fileindex.c 	strbuf_clear(sb);
sb                256 htags/fileindex.c 	strbuf_puts(sb, path);
sb                257 htags/fileindex.c 	strbuf_putc(sb, '/');
sb                258 htags/fileindex.c 	return strbuf_value(sb);
sb                485 htags/fileindex.c 	STATIC_STRBUF(sb);
sb                490 htags/fileindex.c 	strbuf_clear(sb);
sb                491 htags/fileindex.c 	strbuf_puts(sb, removedotslash(dir));
sb                492 htags/fileindex.c 	strbuf_putc(sb, '/');
sb                493 htags/fileindex.c 	fputs_nl(gen_page_begin(strbuf_value(sb), SUBDIR), op);
sb                496 htags/fileindex.c 	strbuf_clear(sb);
sb                497 htags/fileindex.c  	strbuf_sprintf(sb, "%s%sroot%s/", header_begin, gen_href_begin(NULL, top, normal_suffix, NULL), gen_href_end());
sb                498 htags/fileindex.c 	fputs(strbuf_value(sb), op);
sb                599 htags/fileindex.c 	STATIC_STRBUF(sb);
sb                615 htags/fileindex.c 	strbuf_clear(sb);
sb                617 htags/fileindex.c 		strbuf_puts(sb, fitem_begin);
sb                619 htags/fileindex.c 		strbuf_puts(sb, item_begin);
sb                624 htags/fileindex.c 	strbuf_puts(sb, gen_href_begin_with_title_target(level == 0 ? SRCS: upperdir(SRCS),
sb                636 htags/fileindex.c 		strbuf_puts(sb, gen_image(level == 0 ? CURRENT : PARENT, text_icon, removedotslash(path)));
sb                637 htags/fileindex.c 		strbuf_puts(sb, quote_space);
sb                639 htags/fileindex.c 	strbuf_puts(sb, full_path ? removedotslash(path) : lastpart(path));
sb                640 htags/fileindex.c 	strbuf_puts(sb, gen_href_end());
sb                642 htags/fileindex.c 		strbuf_puts(sb, fitem_end);
sb                644 htags/fileindex.c 		strbuf_puts(sb, item_end);
sb                646 htags/fileindex.c 		strbuf_puts(sb, br);
sb                647 htags/fileindex.c 	strbuf_putc(sb, '\n');
sb                648 htags/fileindex.c 	return (const char *)strbuf_value(sb);
sb                660 htags/fileindex.c 	STATIC_STRBUF(sb);
sb                668 htags/fileindex.c 	strbuf_clear(sb);
sb                670 htags/fileindex.c 		strbuf_puts(sb, fitem_begin);
sb                672 htags/fileindex.c 		strbuf_puts(sb, item_begin);
sb                673 htags/fileindex.c 	strbuf_puts(sb, gen_href_begin_with_title(level == 0 ? "files" : NULL,
sb                676 htags/fileindex.c 		strbuf_puts(sb, gen_image(level == 0 ? CURRENT : PARENT, dir_icon, appendslash(path)));
sb                677 htags/fileindex.c 		strbuf_puts(sb, quote_space);
sb                679 htags/fileindex.c 	strbuf_sprintf(sb, "%s/%s", lastpart(path), gen_href_end());
sb                681 htags/fileindex.c 		strbuf_puts(sb, fitem_end);
sb                683 htags/fileindex.c 		strbuf_puts(sb, item_end);
sb                685 htags/fileindex.c 		strbuf_puts(sb, br);
sb                686 htags/fileindex.c 	strbuf_putc(sb, '\n');
sb                687 htags/fileindex.c 	return (const char *)strbuf_value(sb);
sb                698 htags/fileindex.c 	STATIC_STRBUF(sb);
sb                721 htags/fileindex.c 	strbuf_clear(sb);
sb                722 htags/fileindex.c 	strbuf_puts(sb, "\\.(");
sb                729 htags/fileindex.c 				strbuf_putc(sb, '\\');
sb                732 htags/fileindex.c 			strbuf_putc(sb, c);
sb                735 htags/fileindex.c 	strbuf_puts(sb, ")$");
sb                736 htags/fileindex.c 	if (regcomp(&is_include_file, strbuf_value(sb), flags) != 0)
sb                737 htags/fileindex.c 		die("cannot compile regular expression '%s'.", strbuf_value(sb));
sb                456 htags/htags.c  	STRBUF *sb = strbuf_open(0);
sb                504 htags/htags.c  	strbuf_putc(sb, '(');
sb                506 htags/htags.c  		strbuf_puts(sb, tab[i].name);
sb                507 htags/htags.c  		strbuf_putc(sb, '|');
sb                509 htags/htags.c  	strbuf_unputc(sb, '|');
sb                510 htags/htags.c  	strbuf_putc(sb, ')');
sb                511 htags/htags.c  	if (regcomp(&preg, strbuf_value(sb), REG_EXTENDED) != 0)
sb                516 htags/htags.c  	strbuf_reset(sb);
sb                517 htags/htags.c  	strbuf_sprintf(sb, "%s/gtags/%s.tmpl", datadir, file);
sb                518 htags/htags.c  	ip = fopen(strbuf_value(sb), "r");
sb                521 htags/htags.c  		strbuf_reset(sb);
sb                522 htags/htags.c  		strbuf_sprintf(sb, "%s/gtags/%s", datadir, file);
sb                523 htags/htags.c  		ip = fopen(strbuf_value(sb), "r");
sb                526 htags/htags.c  			die("skeleton file '%s' not found.", strbuf_value(sb));
sb                528 htags/htags.c  	strbuf_reset(sb);
sb                532 htags/htags.c  	while ((_ = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) {
sb                566 htags/htags.c  	strbuf_close(sb);
sb                714 htags/htags.c  	STATIC_STRBUF(sb);
sb                716 htags/htags.c  	strbuf_clear(sb);
sb                717 htags/htags.c  	strbuf_puts(sb, header_begin);
sb                719 htags/htags.c  		strbuf_puts(sb, gen_href_begin(NULL, "search", normal_suffix, NULL));
sb                720 htags/htags.c  	strbuf_puts(sb, "SEARCH");
sb                722 htags/htags.c  		strbuf_puts(sb, gen_href_end());
sb                723 htags/htags.c  	strbuf_puts_nl(sb, header_end);
sb                725 htags/htags.c  		strbuf_puts(sb, "Please input object name and select [Search]. POSIX's regular expression is allowed.");
sb                726 htags/htags.c  		strbuf_puts_nl(sb, br);
sb                728 htags/htags.c  	strbuf_puts_nl(sb, gen_form_begin(target));
sb                729 htags/htags.c  	strbuf_puts_nl(sb, gen_input("pattern", NULL, NULL));
sb                730 htags/htags.c  	strbuf_puts_nl(sb, gen_input("id", sitekey, "hidden"));
sb                731 htags/htags.c  	strbuf_puts_nl(sb, gen_input(NULL, "Search", "submit"));
sb                732 htags/htags.c  	strbuf_puts(sb, gen_input(NULL, "Reset", "reset"));
sb                733 htags/htags.c  	strbuf_puts_nl(sb, br);
sb                734 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "definition", 1, "Retrieve the definition place of the specified symbol."));
sb                735 htags/htags.c  	strbuf_puts_nl(sb, target ? "Def" : "Definition");
sb                736 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "reference", 0, "Retrieve the reference place of the specified symbol."));
sb                737 htags/htags.c  	strbuf_puts_nl(sb, target ? "Ref" : "Reference");
sb                738 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "symbol", 0, "Retrieve the place of the specified symbol is used."));
sb                739 htags/htags.c  	strbuf_puts_nl(sb, target ? "Sym" : "Other symbol");
sb                740 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "path", 0, "Look for path name which matches to the specified pattern."));
sb                741 htags/htags.c  	strbuf_puts_nl(sb, target ? "Path" : "Path name");
sb                743 htags/htags.c  		strbuf_puts(sb, gen_input_radio("type", "grep", 0, "Retrieve lines which matches to the specified pattern."));
sb                744 htags/htags.c  		strbuf_puts_nl(sb, target ? "Grep" : "Grep pattern");
sb                747 htags/htags.c  		strbuf_puts(sb, gen_input_radio("type", "idutils", 0, "Retrieve lines which matches to the specified pattern using idutils(1)."));
sb                748 htags/htags.c  		strbuf_puts_nl(sb, target ? "Id" : "Id pattern");
sb                750 htags/htags.c  	strbuf_puts_nl(sb, br);
sb                751 htags/htags.c  	strbuf_puts(sb, gen_input_checkbox("icase", NULL, "Ignore case distinctions in the pattern."));
sb                752 htags/htags.c  	strbuf_puts_nl(sb, target ? "Icase" : "Ignore case");
sb                754 htags/htags.c  		strbuf_puts(sb, gen_input_checkbox("other", NULL, "Files other than the source code are also retrieved."));
sb                755 htags/htags.c  		strbuf_puts_nl(sb, target ? "Other" : "Other files");
sb                758 htags/htags.c  		strbuf_puts_nl(sb, br);
sb                759 htags/htags.c  		strbuf_puts(sb, "('Other files' is effective only to 'Path name'");
sb                761 htags/htags.c  			strbuf_puts(sb, " and 'Grep pattern'");
sb                762 htags/htags.c  		strbuf_puts_nl(sb, ".)");
sb                764 htags/htags.c  	strbuf_puts_nl(sb, gen_form_end());
sb                765 htags/htags.c  	return strbuf_value(sb);
sb                982 htags/htags.c  	STRBUF *sb = strbuf_open(0);
sb                986 htags/htags.c  	while (strbuf_fgets(sb, ip, STRBUF_NOCRLF) != NULL)
sb                987 htags/htags.c  		strbuf_puts_nl(result, strbuf_value(sb));
sb                989 htags/htags.c  	strbuf_close(sb);
sb               1035 htags/htags.c  	STRBUF *sb = strbuf_open(0);
sb               1041 htags/htags.c  	strbuf_puts(sb, title_begin);
sb               1042 htags/htags.c  	strbuf_puts(sb, title);
sb               1043 htags/htags.c  	strbuf_puts_nl(sb, title_end);
sb               1044 htags/htags.c  	strbuf_puts_nl(sb, poweredby_begin);
sb               1045 htags/htags.c  	strbuf_sprintf(sb, "Last updated %s%s\n", now(), br);
sb               1048 htags/htags.c  		strbuf_puts(sb, gen_href_begin_with_title_target(NULL, www, NULL, NULL, tips,"_top"));
sb               1049 htags/htags.c  		strbuf_puts(sb, gen_image(CURRENT, "pglobe", buf));
sb               1050 htags/htags.c  		strbuf_puts(sb, gen_href_end());
sb               1051 htags/htags.c  		strbuf_puts(sb, br);
sb               1053 htags/htags.c  		strbuf_sprintf(sb, "Powered by %sGLOBAL-%s%s.%s\n",
sb               1059 htags/htags.c  	strbuf_puts_nl(sb, poweredby_end);
sb               1060 htags/htags.c  	strbuf_puts_nl(sb, hr);
sb               1068 htags/htags.c  				strbuf_puts_nl(sb, caution_begin);
sb               1069 htags/htags.c  				strbuf_sprintf(sb, "<font size='+2' color='red'>CAUTION</font>%s\n", br);
sb               1070 htags/htags.c  				strbuf_sprintf(sb, "This hypertext consist of %d files.\n", html_count);
sb               1071 htags/htags.c  				strbuf_puts_nl(sb, "Please don't download whole hypertext using hypertext copy tools.");
sb               1072 htags/htags.c  				strbuf_puts_nl(sb, "Our network cannot afford such traffic.");
sb               1073 htags/htags.c  				strbuf_puts_nl(sb, "Instead, you can generate same thing in your computer using");
sb               1074 htags/htags.c  				strbuf_puts(sb, gen_href_begin_with_title_target(NULL, www, NULL, NULL, NULL, "_top"));
sb               1075 htags/htags.c  				strbuf_puts(sb, "GLOBAL source code tag system");
sb               1076 htags/htags.c  				strbuf_puts_nl(sb, gen_href_end());
sb               1077 htags/htags.c  				strbuf_puts_nl(sb, "Thank you.");
sb               1078 htags/htags.c  				strbuf_puts_nl(sb, caution_end);
sb               1079 htags/htags.c  				strbuf_sprintf(sb, "\n%s\n", hr);
sb               1084 htags/htags.c  				strbuf_puts(sb, makesearchpart(NULL));
sb               1085 htags/htags.c  				strbuf_puts_nl(sb, hr);
sb               1090 htags/htags.c  				strbuf_puts(sb, header_begin);
sb               1092 htags/htags.c  					strbuf_puts(sb, gen_href_begin(NULL, "call", normal_suffix, NULL));
sb               1093 htags/htags.c  					strbuf_puts(sb, title_call_tree);
sb               1094 htags/htags.c  					strbuf_puts(sb, gen_href_end());
sb               1097 htags/htags.c  					strbuf_puts(sb, " / ");
sb               1099 htags/htags.c  					strbuf_puts(sb, gen_href_begin(NULL, "callee", normal_suffix, NULL));
sb               1100 htags/htags.c  					strbuf_puts(sb, title_callee_tree);
sb               1101 htags/htags.c  					strbuf_puts(sb, gen_href_end());
sb               1103 htags/htags.c  				strbuf_puts_nl(sb, header_end);
sb               1104 htags/htags.c  				strbuf_puts_nl(sb, hr);
sb               1108 htags/htags.c  			strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end);
sb               1114 htags/htags.c  			strbuf_puts_nl(sb, gen_list_begin());
sb               1119 htags/htags.c  				strbuf_puts_nl(sb, gen_list_body(SRCS, ctags_x, fid));
sb               1121 htags/htags.c  			strbuf_puts_nl(sb, gen_list_end());
sb               1124 htags/htags.c  			strbuf_puts_nl(sb, hr);
sb               1128 htags/htags.c  				strbuf_puts(sb, header_begin);
sb               1129 htags/htags.c  				strbuf_puts(sb, title_define_index);
sb               1130 htags/htags.c  				strbuf_puts_nl(sb, header_end);
sb               1131 htags/htags.c  				strbuf_puts(sb, defines);
sb               1133 htags/htags.c  				strbuf_puts(sb, header_begin);
sb               1134 htags/htags.c  				strbuf_puts(sb, gen_href_begin(NULL, "defines", normal_suffix, NULL));
sb               1135 htags/htags.c  				strbuf_puts(sb, title_define_index);
sb               1136 htags/htags.c  				strbuf_puts(sb, gen_href_end());
sb               1137 htags/htags.c  				strbuf_puts_nl(sb, header_end);
sb               1139 htags/htags.c  			strbuf_puts_nl(sb, hr);
sb               1143 htags/htags.c  				strbuf_puts(sb, header_begin);
sb               1144 htags/htags.c  				strbuf_puts(sb, gen_href_begin(NULL, "files", normal_suffix, NULL));
sb               1145 htags/htags.c  				strbuf_puts(sb, title_file_index);
sb               1146 htags/htags.c  				strbuf_puts(sb, gen_href_end());
sb               1147 htags/htags.c  				strbuf_puts_nl(sb, header_end);
sb               1149 htags/htags.c  				strbuf_puts(sb, header_begin);
sb               1150 htags/htags.c  				strbuf_puts(sb, title_file_index);
sb               1151 htags/htags.c  				strbuf_puts_nl(sb, header_end);
sb               1153 htags/htags.c  					strbuf_puts_nl(sb, tree_control);
sb               1154 htags/htags.c  					strbuf_puts_nl(sb, tree_begin);
sb               1156 htags/htags.c  					strbuf_puts_nl(sb, flist_begin);
sb               1158 htags/htags.c  					strbuf_puts_nl(sb, list_begin);
sb               1159 htags/htags.c  				strbuf_puts(sb, files);
sb               1161 htags/htags.c  					strbuf_puts_nl(sb, tree_end);
sb               1163 htags/htags.c  					strbuf_puts_nl(sb, flist_end);
sb               1165 htags/htags.c  					strbuf_puts_nl(sb, list_end);
sb               1167 htags/htags.c  					strbuf_puts_nl(sb, br);
sb               1169 htags/htags.c  			strbuf_puts_nl(sb, hr);
sb               1178 htags/htags.c  	return strbuf_value(sb);
sb               1212 htags/htags.c  	STRBUF *sb = strbuf_open(0);
sb               1262 htags/htags.c  	strbuf_reset(sb);
sb               1263 htags/htags.c  	if (!getconfs("datadir", sb))
sb               1265 htags/htags.c  	strlimcpy(datadir, strbuf_value(sb), sizeof(datadir));
sb               1266 htags/htags.c  	strbuf_reset(sb);
sb               1267 htags/htags.c  	if (!getconfs("localstatedir", sb))
sb               1269 htags/htags.c  	strlimcpy(localstatedir, strbuf_value(sb), sizeof(localstatedir));
sb               1282 htags/htags.c  	strbuf_reset(sb);
sb               1283 htags/htags.c  	if (getconfs("gzipped_suffix", sb))
sb               1284 htags/htags.c  		gzipped_suffix = check_strdup(strbuf_value(sb));
sb               1285 htags/htags.c  	strbuf_reset(sb);
sb               1286 htags/htags.c  	if (getconfs("normal_suffix", sb))
sb               1287 htags/htags.c  		normal_suffix = check_strdup(strbuf_value(sb));
sb               1290 htags/htags.c  	strbuf_reset(sb);
sb               1291 htags/htags.c  	if (getconfs("prolog_script", sb))
sb               1292 htags/htags.c  		prolog_script = check_strdup(strbuf_value(sb));
sb               1293 htags/htags.c  	strbuf_reset(sb);
sb               1294 htags/htags.c  	if (getconfs("epilog_script", sb))
sb               1295 htags/htags.c  		epilog_script = check_strdup(strbuf_value(sb));
sb               1298 htags/htags.c  	strbuf_reset(sb);
sb               1299 htags/htags.c  	if (getconfs("script_alias", sb)) {
sb               1300 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1307 htags/htags.c  	strbuf_reset(sb);
sb               1308 htags/htags.c  	if (getconfs("body_begin", sb)) {
sb               1309 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1310 htags/htags.c  		strbuf_reset(sb);
sb               1311 htags/htags.c  		if (getconfs("body_end", sb)) {
sb               1312 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1319 htags/htags.c  	strbuf_reset(sb);
sb               1320 htags/htags.c  	if (getconfs("table_begin", sb)) {
sb               1321 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1322 htags/htags.c  		strbuf_reset(sb);
sb               1323 htags/htags.c  		if (getconfs("table_end", sb)) {
sb               1324 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1331 htags/htags.c  	strbuf_reset(sb);
sb               1332 htags/htags.c  	if (getconfs("title_begin", sb)) {
sb               1333 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1334 htags/htags.c  		strbuf_reset(sb);
sb               1335 htags/htags.c  		if (getconfs("title_end", sb)) {
sb               1336 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1343 htags/htags.c  	strbuf_reset(sb);
sb               1344 htags/htags.c  	if (getconfs("comment_begin", sb)) {
sb               1345 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1346 htags/htags.c  		strbuf_reset(sb);
sb               1347 htags/htags.c  		if (getconfs("comment_end", sb)) {
sb               1348 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1355 htags/htags.c  	strbuf_reset(sb);
sb               1356 htags/htags.c  	if (getconfs("sharp_begin", sb)) {
sb               1357 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1358 htags/htags.c  		strbuf_reset(sb);
sb               1359 htags/htags.c  		if (getconfs("sharp_end", sb)) {
sb               1360 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1367 htags/htags.c  	strbuf_reset(sb);
sb               1368 htags/htags.c  	if (getconfs("brace_begin", sb)) {
sb               1369 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1370 htags/htags.c  		strbuf_reset(sb);
sb               1371 htags/htags.c  		if (getconfs("brace_end", sb)) {
sb               1372 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1379 htags/htags.c  	strbuf_reset(sb);
sb               1380 htags/htags.c  	if (getconfs("reserved_begin", sb)) {
sb               1381 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1382 htags/htags.c  		strbuf_reset(sb);
sb               1383 htags/htags.c  		if (getconfs("reserved_end", sb)) {
sb               1384 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1391 htags/htags.c  	strbuf_reset(sb);
sb               1392 htags/htags.c  	if (getconfs("position_begin", sb)) {
sb               1393 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1394 htags/htags.c  		strbuf_reset(sb);
sb               1395 htags/htags.c  		if (getconfs("position_end", sb)) {
sb               1396 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1403 htags/htags.c  	strbuf_reset(sb);
sb               1404 htags/htags.c  	if (getconfs("warned_line_begin", sb)) {
sb               1405 htags/htags.c  		p = check_strdup(strbuf_value(sb));
sb               1406 htags/htags.c  		strbuf_reset(sb);
sb               1407 htags/htags.c  		if (getconfs("warned_line_end", sb)) {
sb               1408 htags/htags.c  			q = check_strdup(strbuf_value(sb));
sb               1415 htags/htags.c  	strbuf_reset(sb);
sb               1416 htags/htags.c  	if (getconfs("include_file_suffixes", sb))
sb               1417 htags/htags.c  		include_file_suffixes = check_strdup(strbuf_value(sb));
sb               1418 htags/htags.c  	strbuf_reset(sb);
sb               1419 htags/htags.c  	if (getconfs("langmap", sb))
sb               1420 htags/htags.c  		langmap = check_strdup(strbuf_value(sb));
sb               1421 htags/htags.c  	strbuf_reset(sb);
sb               1422 htags/htags.c  	if (getconfs("xhtml_version", sb))
sb               1423 htags/htags.c  		xhtml_version = check_strdup(strbuf_value(sb));
sb               1425 htags/htags.c  	strbuf_reset(sb);
sb               1426 htags/htags.c  	if (getconfs("htags_options", sb))
sb               1427 htags/htags.c  		htags_options = check_strdup(strbuf_value(sb));
sb               1428 htags/htags.c  	strbuf_close(sb);
sb               1437 htags/htags.c  	STRBUF *sb = strbuf_open(0);
sb               1450 htags/htags.c  	while (strbuf_fgets(sb, ip, STRBUF_NOCRLF) != NULL) {
sb               1451 htags/htags.c  		for (p = strbuf_value(sb); *p; p++) {
sb               1464 htags/htags.c  	strbuf_close(sb);
sb               1505 htags/htags.c  	STRBUF *sb = strbuf_open(0);
sb               1523 htags/htags.c  				strbuf_putc(sb, c);
sb               1525 htags/htags.c  			strbuf_putc(sb, c);
sb               1529 htags/htags.c  			strbuf_putc(sb, '\0');
sb               1535 htags/htags.c  			strbuf_putc(sb, *p);
sb               1540 htags/htags.c  	p = strbuf_value(sb);
sb               1620 htags/htags.c  				STATIC_STRBUF(sb);
sb               1623 htags/htags.c  				loadfile_asis(optarg, sb);
sb               1624 htags/htags.c  				html_header = strbuf_value(sb);
sb               1809 htags/htags.c  		STRBUF *sb = strbuf_open(0);
sb               1811 htags/htags.c  		strbuf_puts(sb, gtags_path);
sb               1813 htags/htags.c  			strbuf_puts(sb, " -v");
sb               1815 htags/htags.c  			strbuf_puts(sb, " -w");
sb               1817 htags/htags.c  			strbuf_puts(sb, " -I");
sb               1819 htags/htags.c  			strbuf_putc(sb, ' ');
sb               1820 htags/htags.c  			strbuf_puts(sb, arg_dbpath);
sb               1822 htags/htags.c  		if (system(strbuf_value(sb)))
sb               1824 htags/htags.c  		strbuf_close(sb);
sb               1874 htags/htags.c  		STRBUF *sb = strbuf_open(0);
sb               1901 htags/htags.c  			strbuf_fgets(sb, ip, STRBUF_NOCRLF);
sb               1906 htags/htags.c  		else if (!strcmp(distpath, strbuf_value(sb)))
sb               1928 htags/htags.c  		strbuf_close(sb);
sb               2030 htags/htags.c  		STATIC_STRBUF(sb);
sb               2031 htags/htags.c  		strbuf_clear(sb);
sb               2032 htags/htags.c  		strbuf_puts_nl(sb, "<script type='text/javascript' src='js/jquery.js'></script>");
sb               2034 htags/htags.c  			loadfile("jscode_suggest", sb);
sb               2036 htags/htags.c  			loadfile("jscode_treeview", sb);
sb               2037 htags/htags.c  		jscode = strbuf_value(sb);
sb                200 htags/src2html.c 	STATIC_STRBUF(sb);
sb                203 htags/src2html.c 	strbuf_clear(sb);
sb                211 htags/src2html.c 		strbuf_sprintf(sb, "%sroot%s/", gen_href_begin_simple(root), gen_href_end());
sb                218 htags/src2html.c 			strbuf_puts(sb, unit);
sb                223 htags/src2html.c 		strbuf_puts(sb, gen_href_begin("../files", path2fid(path), HTML, NULL));
sb                224 htags/src2html.c 		strbuf_puts(sb, unit);
sb                225 htags/src2html.c 		strbuf_puts(sb, gen_href_end());
sb                226 htags/src2html.c 		strbuf_putc(sb, '/');
sb                228 htags/src2html.c         return strbuf_value(sb);
sb                241 htags/src2html.c 	STATIC_STRBUF(sb);
sb                246 htags/src2html.c 	strbuf_clear(sb);
sb                249 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("..", "mains", normal_suffix, NULL));
sb                251 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("..", "help", normal_suffix, NULL));
sb                261 htags/src2html.c 			strbuf_puts(sb, gen_href_begin(NULL, NULL, NULL, key));
sb                266 htags/src2html.c 			strbuf_puts(sb, gen_image(PARENT, tmp, label[i]));
sb                268 htags/src2html.c 			strbuf_sprintf(sb, "[%s]", label[i]);
sb                271 htags/src2html.c 			strbuf_puts(sb, gen_href_end());
sb                273 htags/src2html.c         return strbuf_value(sb);
sb                287 htags/src2html.c 	STATIC_STRBUF(sb);
sb                289 htags/src2html.c 	strbuf_clear(sb);
sb                290 htags/src2html.c 	strbuf_puts(sb, "<!-- beginning of fixed guide -->\n");
sb                291 htags/src2html.c 	strbuf_puts(sb, guide_begin);
sb                292 htags/src2html.c 	strbuf_putc(sb, '\n');
sb                296 htags/src2html.c 		strbuf_puts(sb, guide_unit_begin);
sb                301 htags/src2html.c 				strbuf_puts(sb, gen_href_begin(NULL, NULL, NULL, (i == A_FIRST) ? "TOP" : "BOTTOM"));
sb                305 htags/src2html.c 				strbuf_puts(sb, gen_href_begin(NULL, NULL, NULL, lineno));
sb                309 htags/src2html.c 			strbuf_puts(sb, gen_href_begin(NULL, NULL, NULL, "TOP"));
sb                312 htags/src2html.c 			strbuf_puts(sb, gen_href_begin(NULL, NULL, NULL, "BOTTOM"));
sb                315 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("..", "mains", normal_suffix, NULL));
sb                318 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("..", "help", normal_suffix, NULL));
sb                325 htags/src2html.c 			strbuf_puts(sb, gen_image(PARENT, anchor_icons[i], anchor_label[i]));
sb                327 htags/src2html.c 			strbuf_sprintf(sb, "[%s]", anchor_label[i]);
sb                328 htags/src2html.c 		strbuf_puts(sb, gen_href_end());
sb                329 htags/src2html.c 		strbuf_puts(sb, guide_unit_end);
sb                330 htags/src2html.c 		strbuf_putc(sb, '\n');
sb                332 htags/src2html.c 	strbuf_puts(sb, guide_path_begin);
sb                333 htags/src2html.c 	strbuf_puts(sb, anchors);
sb                334 htags/src2html.c 	strbuf_puts(sb, guide_path_end);
sb                335 htags/src2html.c 	strbuf_putc(sb, '\n');
sb                336 htags/src2html.c 	strbuf_puts(sb, guide_end);
sb                337 htags/src2html.c 	strbuf_putc(sb, '\n');
sb                338 htags/src2html.c 	strbuf_puts(sb, "<!-- end of fixed guide -->\n");
sb                340 htags/src2html.c 	return strbuf_value(sb);
sb                351 htags/src2html.c 	STATIC_STRBUF(sb);
sb                354 htags/src2html.c 	strbuf_clear(sb);
sb                361 htags/src2html.c 			strbuf_putc(sb, ' ');
sb                362 htags/src2html.c 	strbuf_sprintf(sb, "%s/* ", comment_begin);
sb                363 htags/src2html.c 	strbuf_puts(sb, link_format(anchor_getlinks(lineno)));
sb                365 htags/src2html.c 		strbuf_sprintf(sb, "%s%s[+%d %s]%s",
sb                367 htags/src2html.c 	strbuf_sprintf(sb, " */%s", comment_end);
sb                369 htags/src2html.c 	return strbuf_value(sb);
sb                385 htags/src2html.c 	STATIC_STRBUF(sb);
sb                387 htags/src2html.c 	strbuf_clear(sb);
sb                390 htags/src2html.c 			strbuf_puts(sb, "Included from");
sb                392 htags/src2html.c 			strbuf_puts(sb, "Defined at");
sb                394 htags/src2html.c 			strbuf_puts(sb, "Used at");
sb                396 htags/src2html.c 			strbuf_puts(sb, "Referred from");
sb                397 htags/src2html.c 		strbuf_putc(sb, ' ');
sb                398 htags/src2html.c 		strbuf_putn(sb, lno);
sb                400 htags/src2html.c 			strbuf_puts(sb, " in ");
sb                401 htags/src2html.c 			strbuf_puts(sb, opt);
sb                404 htags/src2html.c 		strbuf_puts(sb, "Multiple ");
sb                406 htags/src2html.c 			strbuf_puts(sb, "included from");
sb                408 htags/src2html.c 			strbuf_puts(sb, "defined in");
sb                410 htags/src2html.c 			strbuf_puts(sb, "used in");
sb                412 htags/src2html.c 			strbuf_puts(sb, "referred from");
sb                413 htags/src2html.c 		strbuf_putc(sb, ' ');
sb                414 htags/src2html.c 		strbuf_puts(sb, opt);
sb                415 htags/src2html.c 		strbuf_putc(sb, ' ');
sb                416 htags/src2html.c 		strbuf_puts(sb, "places");
sb                418 htags/src2html.c 	strbuf_putc(sb, '.');
sb                419 htags/src2html.c 	return strbuf_value(sb);
sb                461 htags/src2html.c 				STATIC_STRBUF(sb);
sb                463 htags/src2html.c 				strbuf_clear(sb);
sb                464 htags/src2html.c 				strbuf_puts(sb, action);
sb                465 htags/src2html.c 				strbuf_putc(sb, '?');
sb                466 htags/src2html.c 				strbuf_puts(sb, "pattern=");
sb                467 htags/src2html.c 				strbuf_puts(sb, name);
sb                468 htags/src2html.c 				strbuf_puts(sb, quote_amp);
sb                470 htags/src2html.c 					strbuf_puts(sb, "id=");
sb                471 htags/src2html.c 					strbuf_puts(sb, sitekey);
sb                472 htags/src2html.c 					strbuf_puts(sb, quote_amp);
sb                474 htags/src2html.c 				strbuf_puts(sb, "type=");
sb                476 htags/src2html.c 					strbuf_puts(sb, "definitions");
sb                478 htags/src2html.c 					strbuf_puts(sb, "reference");
sb                480 htags/src2html.c 					strbuf_puts(sb, "symbol");
sb                481 htags/src2html.c 				file = strbuf_value(sb);
sb                528 htags/src2html.c 	STATIC_STRBUF(sb);
sb                531 htags/src2html.c 	strbuf_clear(sb);
sb                532 htags/src2html.c 	strbuf_nputs(sb, name, length);
sb                534 htags/src2html.c 	put_anchor(strbuf_value(sb), 'R', lineno);
sb                744 htags/src2html.c encode(STRBUF *sb, const char *url)
sb                750 htags/src2html.c 			strbuf_putc(sb, c);
sb                752 htags/src2html.c 			strbuf_putc(sb, '%');
sb                753 htags/src2html.c 			strbuf_putc(sb, "0123456789abcdef"[c >> 4]);
sb                754 htags/src2html.c 			strbuf_putc(sb, "0123456789abcdef"[c & 0x0f]);
sb                845 htags/src2html.c 		STATIC_STRBUF(sb);
sb                848 htags/src2html.c 		strbuf_clear(sb);
sb                849 htags/src2html.c 		strbuf_puts(sb, cvsweb_url);
sb                852 htags/src2html.c 			encode(sb, module);
sb                853 htags/src2html.c 			strbuf_putc(sb, '/');
sb                854 htags/src2html.c 			encode(sb, basename);
sb                856 htags/src2html.c 			encode(sb, src);
sb                859 htags/src2html.c 			strbuf_puts(sb, "?cvsroot=");
sb                860 htags/src2html.c 			strbuf_puts(sb, cvsweb_cvsroot);
sb                863 htags/src2html.c 		fputs(gen_href_begin_simple(strbuf_value(sb)), out);
sb                884 htags/src2html.c 		STRBUF *sb = strbuf_open(0);
sb                889 htags/src2html.c 		while ((_ = strbuf_fgets(sb, in, STRBUF_NOCRLF)) != NULL) {
sb                894 htags/src2html.c 		strbuf_close(sb);
sb                108 libdb/bt_open.c 	struct stat sb;
sb                233 libdb/bt_open.c 	if (fstat(t->bt_fd, &sb))
sb                235 libdb/bt_open.c 	if (sb.st_size) {
sb                278 libdb/bt_open.c 			b.psize = sb.st_blksize;
sb                 82 libdb/mpool.c  	struct stat sb;
sb                 92 libdb/mpool.c  	if (fstat(fd, &sb))
sb                 94 libdb/mpool.c  	if (!S_ISREG(sb.st_mode)) {
sb                106 libdb/mpool.c  	mp->npages = sb.st_size / pagesize;
sb                 95 libparser/C.c  	STRBUF *sb = strbuf_open(0);
sb                133 libparser/C.c  					strbuf_reset(sb);
sb                134 libparser/C.c  					strbuf_puts(sb, sp);
sb                135 libparser/C.c  					saveline = strbuf_value(sb);
sb                467 libparser/C.c  	strbuf_close(sb);
sb                 83 libparser/Cpp.c 	STRBUF *sb = strbuf_open(0);
sb                116 libparser/Cpp.c 					strbuf_reset(sb);
sb                117 libparser/Cpp.c 					strbuf_puts(sb, sp);
sb                118 libparser/Cpp.c 					saveline = strbuf_value(sb);
sb                518 libparser/Cpp.c 	strbuf_close(sb);
sb                 66 libparser/parser.c 	STRBUF *sb = strbuf_open(0);
sb                 74 libparser/parser.c 		strbuf_puts0(sb, p);
sb                 80 libparser/parser.c 	p = (char *)check_malloc(strbuf_getlen(sb) + 1);
sb                 81 libparser/parser.c 	memcpy(p, strbuf_value(sb), strbuf_getlen(sb) + 1);
sb                 87 libparser/parser.c 	strbuf_close(sb);
sb                113 libutil/args.c 	STATIC_STRBUF(sb);
sb                115 libutil/args.c 	strbuf_clear(sb);
sb                124 libutil/args.c 		p = strbuf_fgets(sb, ip, STRBUF_NOCRLF);
sb                133 libutil/args.c 			p = strbuf_fgets(sb, ip, STRBUF_NOCRLF);
sb                 77 libutil/char.c 	STATIC_STRBUF(sb);
sb                 79 libutil/char.c 	strbuf_clear(sb);
sb                 82 libutil/char.c 			strbuf_putc(sb, '\\');
sb                 83 libutil/char.c 		strbuf_putc(sb, *s);
sb                 85 libutil/char.c 	return strbuf_value(sb);
sb                 98 libutil/char.c 	STATIC_STRBUF(sb);
sb                100 libutil/char.c 	strbuf_clear(sb);
sb                103 libutil/char.c 			strbuf_putc(sb, '\\');
sb                104 libutil/char.c 		strbuf_putc(sb, *s);
sb                106 libutil/char.c 	return strbuf_value(sb);
sb                125 libutil/char.c 	STATIC_STRBUF(sb);
sb                127 libutil/char.c 	strbuf_clear(sb);
sb                128 libutil/char.c 	strbuf_putc(sb, SHELL_QUOTE);
sb                130 libutil/char.c 	strbuf_puts(sb, s);
sb                134 libutil/char.c 			strbuf_putc(sb, SHELL_QUOTE);
sb                135 libutil/char.c 			strbuf_putc(sb, '\\');
sb                136 libutil/char.c 			strbuf_putc(sb, SHELL_QUOTE);
sb                137 libutil/char.c 			strbuf_putc(sb, SHELL_QUOTE);
sb                139 libutil/char.c 			strbuf_putc(sb, *s);
sb                142 libutil/char.c 	strbuf_putc(sb, SHELL_QUOTE);
sb                143 libutil/char.c 	return strbuf_value(sb);
sb                182 libutil/compress.c 	STATIC_STRBUF(sb);
sb                187 libutil/compress.c 	strbuf_clear(sb);
sb                196 libutil/compress.c 				strbuf_putc(sb, '@');
sb                197 libutil/compress.c 				strbuf_putc(sb, '{');
sb                198 libutil/compress.c 				strbuf_putn(sb, spaces);
sb                199 libutil/compress.c 				strbuf_putc(sb, '}');
sb                201 libutil/compress.c 				strbuf_putc(sb, '@');
sb                202 libutil/compress.c 				strbuf_putn(sb, spaces);
sb                204 libutil/compress.c 				strbuf_nputc(sb, ' ', spaces);
sb                209 libutil/compress.c 			strbuf_puts(sb, "@@");
sb                212 libutil/compress.c 			strbuf_puts(sb, "@n");
sb                220 libutil/compress.c 					strbuf_putc(sb, '@');
sb                221 libutil/compress.c 					strbuf_putc(sb, ab[i].c);
sb                227 libutil/compress.c 				strbuf_putc(sb, *p);
sb                231 libutil/compress.c 			strbuf_putc(sb, *p);
sb                237 libutil/compress.c 			strbuf_nputc(sb, ' ', spaces);
sb                239 libutil/compress.c 			strbuf_putc(sb, '@');
sb                240 libutil/compress.c 			strbuf_putn(sb, spaces);
sb                242 libutil/compress.c 			strbuf_putc(sb, '@');
sb                243 libutil/compress.c 			strbuf_putc(sb, '{');
sb                244 libutil/compress.c 			strbuf_putn(sb, spaces);
sb                245 libutil/compress.c 			strbuf_putc(sb, '}');
sb                248 libutil/compress.c 	return strbuf_value(sb);
sb                261 libutil/compress.c 	STATIC_STRBUF(sb);
sb                265 libutil/compress.c 	strbuf_clear(sb);
sb                272 libutil/compress.c 				strbuf_putc(sb, '@');
sb                275 libutil/compress.c 				strbuf_puts(sb, name);
sb                298 libutil/compress.c 					strbuf_puts(sb, ab2name[i].name);
sb                301 libutil/compress.c 			strbuf_nputc(sb, ' ', spaces);
sb                303 libutil/compress.c 			strbuf_putc(sb, *p);
sb                306 libutil/compress.c 	return strbuf_value(sb);
sb                175 libutil/conf.c includelabel(STRBUF *sb, const char *label, int	level)
sb                186 libutil/conf.c 		strbuf_nputs(sb, p, q - p);
sb                190 libutil/conf.c 		includelabel(sb, strbuf_value(inc), level);
sb                194 libutil/conf.c 	strbuf_puts(sb, p);
sb                203 libutil/conf.c 	STATIC_STRBUF(sb);
sb                206 libutil/conf.c 	strbuf_clear(sb);
sb                211 libutil/conf.c 		strbuf_puts(sb, getenv("GTAGSCONF"));
sb                216 libutil/conf.c 		strbuf_puts(sb, makepath(p, GTAGSRC, NULL));
sb                219 libutil/conf.c 		strbuf_puts(sb, makepath(p, DOS_GTAGSRC, NULL));
sb                222 libutil/conf.c 		strbuf_puts(sb, GTAGSCONF);
sb                224 libutil/conf.c 		strbuf_puts(sb, OLD_GTAGSCONF);
sb                226 libutil/conf.c 		strbuf_puts(sb, DEBIANCONF);
sb                228 libutil/conf.c 		strbuf_puts(sb, OLD_DEBIANCONF);
sb                230 libutil/conf.c 		strbuf_puts(sb, makepath(SYSCONFDIR, "gtags.conf", NULL));
sb                233 libutil/conf.c 	return strbuf_value(sb);
sb                244 libutil/conf.c 	STRBUF *sb;
sb                287 libutil/conf.c 		sb = strbuf_open(0);
sb                288 libutil/conf.c 		includelabel(sb, label, 0);
sb                289 libutil/conf.c 		confline = check_strdup(strbuf_value(sb));
sb                291 libutil/conf.c 		strbuf_close(sb);
sb                297 libutil/conf.c 	sb = strbuf_open(0);
sb                298 libutil/conf.c 	strbuf_puts(sb, confline);
sb                299 libutil/conf.c 	strbuf_unputc(sb, ':');
sb                302 libutil/conf.c 		strbuf_puts(sb, ":langmap=");
sb                303 libutil/conf.c 		strbuf_puts(sb, quote_chars(DEFAULTLANGMAP, ':'));
sb                306 libutil/conf.c 		strbuf_puts(sb, ":skip=");
sb                307 libutil/conf.c 		strbuf_puts(sb, DEFAULTSKIP);
sb                309 libutil/conf.c 	strbuf_unputc(sb, ':');
sb                310 libutil/conf.c 	strbuf_putc(sb, ':');
sb                311 libutil/conf.c 	confline = check_strdup(strbuf_value(sb));
sb                312 libutil/conf.c 	strbuf_close(sb);
sb                348 libutil/conf.c getconfs(const char *name, STRBUF *sb)
sb                362 libutil/conf.c 		if (exist && sb)
sb                363 libutil/conf.c 			strbuf_putc(sb, ',');		
sb                368 libutil/conf.c 			if (sb)
sb                369 libutil/conf.c 				strbuf_putc(sb, *p);
sb                380 libutil/conf.c 			strbuf_puts(sb, BINDIR);
sb                389 libutil/conf.c 				strbuf_puts(sb, DATADIR);
sb                393 libutil/conf.c 					strbuf_nputs(sb, _pgmptr, name+1 - _pgmptr);
sb                394 libutil/conf.c 				strbuf_puts(sb, "..\\share");
sb                397 libutil/conf.c 			strbuf_puts(sb, DATADIR);
sb                401 libutil/conf.c 			strbuf_puts(sb, LOCALSTATEDIR);
sb                404 libutil/conf.c 			strbuf_puts(sb, SYSCONFDIR);
sb                714 libutil/dbop.c 		STRBUF *sb = strbuf_open(256);
sb                729 libutil/dbop.c 		while (strbuf_fgets(sb, dbop->sortin, STRBUF_NOCRLF)) {
sb                730 libutil/dbop.c 			for (p = strbuf_value(sb); *p && *p != SORT_SEP; p++)
sb                735 libutil/dbop.c 			dbop_put(dbop, strbuf_value(sb), p);
sb                738 libutil/dbop.c 		strbuf_close(sb);
sb                 56 libutil/env.c  	STRBUF *sb = strbuf_open(0);
sb                 58 libutil/env.c  	strbuf_sprintf(sb, "%s=%s", var, val);
sb                 59 libutil/env.c  	putenv(strbuf_value(sb));
sb                145 libutil/find.c 	STRBUF *sb = strbuf_open(0);
sb                161 libutil/find.c 	strbuf_reset(sb);
sb                162 libutil/find.c 	if (getconfs("langmap", sb)) {
sb                163 libutil/find.c 		langmap =  check_strdup(strbuf_value(sb));
sb                165 libutil/find.c 	strbuf_reset(sb);
sb                166 libutil/find.c 	make_suffixes(langmap ? langmap : DEFAULTLANGMAP, sb);
sb                167 libutil/find.c 	sufflist = check_strdup(strbuf_value(sb));
sb                172 libutil/find.c 		strbuf_reset(sb);
sb                173 libutil/find.c 		strbuf_puts(sb, "\\.(");       /* ) */
sb                179 libutil/find.c 					strbuf_putc(sb, '\\');
sb                180 libutil/find.c 				strbuf_putc(sb, *p);
sb                185 libutil/find.c 			strbuf_putc(sb, '|');
sb                188 libutil/find.c 		strbuf_puts(sb, ")$");
sb                192 libutil/find.c 		if (regcomp(&suff_area, strbuf_value(sb), flags) != 0)
sb                195 libutil/find.c 	strbuf_close(sb);
sb                385 libutil/find.c 	STRBUF *sb;
sb                461 libutil/find.c getdirs(const char *dir, STRBUF *sb)
sb                485 libutil/find.c 			strbuf_putc(sb, 'd');
sb                487 libutil/find.c 			strbuf_putc(sb, 'f');
sb                489 libutil/find.c 			strbuf_putc(sb, ' ');
sb                490 libutil/find.c 		strbuf_puts(sb, dp->d_name);
sb                491 libutil/find.c 		strbuf_putc(sb, '\0');
sb                529 libutil/find.c 	curp->sb = strbuf_open(0);
sb                531 libutil/find.c 	if (getdirs(dir, curp->sb) < 0)
sb                533 libutil/find.c 	curp->start = curp->p = strbuf_value(curp->sb);
sb                534 libutil/find.c 	curp->end   = curp->start + strbuf_getlen(curp->sb);
sb                664 libutil/find.c 				STRBUF *sb = strbuf_open(0);
sb                668 libutil/find.c 				if (getdirs(dir, sb) < 0) {
sb                669 libutil/find.c 					strbuf_close(sb);
sb                679 libutil/find.c 				curp->sb = sb;
sb                680 libutil/find.c 				curp->start = curp->p = strbuf_value(sb);
sb                681 libutil/find.c 				curp->end   = curp->start + strbuf_getlen(sb);
sb                684 libutil/find.c 		strbuf_close(curp->sb);
sb                685 libutil/find.c 		curp->sb = NULL;
sb                209 libutil/getdbpath.c 	struct stat sb;
sb                226 libutil/getdbpath.c 		if (stat(p, &sb) || !S_ISDIR(sb.st_mode)) {
sb                246 libutil/getdbpath.c 			if (stat(p, &sb) || !S_ISDIR(sb.st_mode)) {
sb                287 libutil/getdbpath.c 			STRBUF *sb;
sb                300 libutil/getdbpath.c 			sb = strbuf_open(0);
sb                301 libutil/getdbpath.c 			s = strbuf_fgets(sb, fp, STRBUF_NOCRLF);
sb                315 libutil/getdbpath.c 			strbuf_close(sb);
sb                155 libutil/gpathop.c 	STATIC_STRBUF(sb);
sb                169 libutil/gpathop.c 	strbuf_clear(sb);
sb                170 libutil/gpathop.c 	strbuf_puts0(sb, fid);
sb                172 libutil/gpathop.c 		strbuf_puts0(sb, "o");
sb                173 libutil/gpathop.c 	dbop_put_withlen(dbop, path, strbuf_value(sb), strbuf_getlen(sb));
sb                177 libutil/gpathop.c 	strbuf_clear(sb);
sb                178 libutil/gpathop.c 	strbuf_puts0(sb, path);
sb                180 libutil/gpathop.c 		strbuf_puts0(sb, "o");
sb                181 libutil/gpathop.c 	dbop_put_withlen(dbop, fid, strbuf_value(sb), strbuf_getlen(sb));
sb                444 libutil/gtagsop.c 		gtop->sb = strbuf_open(0);	/* This buffer is used for working area. */
sb                508 libutil/gtagsop.c 	strbuf_reset(gtop->sb);
sb                509 libutil/gtagsop.c 	strbuf_puts(gtop->sb, fid);
sb                510 libutil/gtagsop.c 	strbuf_putc(gtop->sb, ' ');
sb                511 libutil/gtagsop.c 	strbuf_puts(gtop->sb, (gtop->format & GTAGS_COMPNAME) ? compress(tag, key) : tag);
sb                512 libutil/gtagsop.c 	strbuf_putc(gtop->sb, ' ');
sb                513 libutil/gtagsop.c 	strbuf_putn(gtop->sb, lno);
sb                514 libutil/gtagsop.c 	strbuf_putc(gtop->sb, ' ');
sb                515 libutil/gtagsop.c 	strbuf_puts(gtop->sb, (gtop->format & GTAGS_COMPRESS) ? compress(img, key) : img);
sb                516 libutil/gtagsop.c 	dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
sb                793 libutil/gtagsop.c 	if (gtop->sb)
sb                794 libutil/gtagsop.c 		strbuf_close(gtop->sb);
sb                848 libutil/gtagsop.c 		strbuf_reset(gtop->sb);
sb                849 libutil/gtagsop.c 		strbuf_puts(gtop->sb, s_fid);
sb                850 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
sb                852 libutil/gtagsop.c 			strbuf_puts(gtop->sb, compress(entry->name, key));
sb                854 libutil/gtagsop.c 			strbuf_puts(gtop->sb, entry->name);
sb                856 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
sb                857 libutil/gtagsop.c 		header_offset = strbuf_getlen(gtop->sb);
sb                877 libutil/gtagsop.c 						if (strbuf_getlen(gtop->sb) == header_offset)
sb                878 libutil/gtagsop.c 							strbuf_putn(gtop->sb, n);
sb                887 libutil/gtagsop.c 						strbuf_putc(gtop->sb, '-');
sb                888 libutil/gtagsop.c 						strbuf_putn(gtop->sb, last - cont);
sb                891 libutil/gtagsop.c 					if (strbuf_getlen(gtop->sb) > header_offset) {
sb                892 libutil/gtagsop.c 						strbuf_putc(gtop->sb, ',');
sb                893 libutil/gtagsop.c 						strbuf_putn(gtop->sb, n - last);
sb                895 libutil/gtagsop.c 						strbuf_putn(gtop->sb, n);
sb                897 libutil/gtagsop.c 					if (strbuf_getlen(gtop->sb) > DBOP_PAGESIZE / 4) {
sb                898 libutil/gtagsop.c 						dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
sb                899 libutil/gtagsop.c 						strbuf_setlen(gtop->sb, header_offset);
sb                905 libutil/gtagsop.c 				strbuf_putc(gtop->sb, '-');
sb                906 libutil/gtagsop.c 				strbuf_putn(gtop->sb, last - cont);
sb                918 libutil/gtagsop.c 				if (strbuf_getlen(gtop->sb) > header_offset)
sb                919 libutil/gtagsop.c 					strbuf_putc(gtop->sb, ',');
sb                920 libutil/gtagsop.c 				strbuf_putn(gtop->sb, n);
sb                921 libutil/gtagsop.c 				if (strbuf_getlen(gtop->sb) > DBOP_PAGESIZE / 4) {
sb                922 libutil/gtagsop.c 					dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
sb                923 libutil/gtagsop.c 					strbuf_setlen(gtop->sb, header_offset);
sb                928 libutil/gtagsop.c 		if (strbuf_getlen(gtop->sb) > header_offset) {
sb                929 libutil/gtagsop.c 			dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
sb                137 libutil/gtagsop.h 	STRBUF *sb;			/**< string buffer */
sb                137 libutil/langmap.c make_suffixes(const char *langmap, STRBUF *sb)
sb                158 libutil/langmap.c 					strbuf_putc(sb, ',');
sb                160 libutil/langmap.c 				strbuf_putc(sb, *p);
sb                 67 libutil/linetable.c 	struct stat sb;
sb                 70 libutil/linetable.c 	if (stat(path, &sb) < 0)
sb                 72 libutil/linetable.c 	ib = strbuf_open(sb.st_size);
sb                 72 libutil/makepath.c 	STATIC_STRBUF(sb);
sb                 76 libutil/makepath.c 	strbuf_clear(sb);
sb                 86 libutil/makepath.c 		strbuf_puts(sb, dir);
sb                 87 libutil/makepath.c 		strbuf_unputc(sb, sep);
sb                 88 libutil/makepath.c 		strbuf_putc(sb, sep);
sb                 90 libutil/makepath.c 	strbuf_puts(sb, file);
sb                 93 libutil/makepath.c 			strbuf_putc(sb, '.');
sb                 94 libutil/makepath.c 		strbuf_puts(sb, suffix);
sb                 96 libutil/makepath.c 	if ((length = strlen(strbuf_value(sb))) > MAXPATHLEN)
sb                 97 libutil/makepath.c 		die("path name too long. '%s'\n", strbuf_value(sb));
sb                 98 libutil/makepath.c 	return strbuf_value(sb);
sb                196 libutil/path.c 	STRBUF *sb;
sb                203 libutil/path.c 	sb = strbuf_open(0);
sb                204 libutil/path.c 	strbuf_puts(sb, base);
sb                211 libutil/path.c 		strbuf_putc(sb, SEP);
sb                212 libutil/path.c 		strbuf_nputs(sb, p, q - p);
sb                213 libutil/path.c 		p = strbuf_value(sb);
sb                222 libutil/path.c 				strbuf_close(sb);
sb                229 libutil/path.c 	strbuf_close(sb);
sb                 89 libutil/pathconvert.c 	STATIC_STRBUF(sb);
sb                 94 libutil/pathconvert.c 	strbuf_clear(sb);
sb                102 libutil/pathconvert.c 			strbuf_putc(sb, h2int(c1) * 16 + h2int(c2));
sb                104 libutil/pathconvert.c 			strbuf_putc(sb, *p);
sb                106 libutil/pathconvert.c 	return strbuf_value(sb);
sb                118 libutil/statistics.c static STRBUF *sb;
sb                126 libutil/statistics.c 	assert(sb == NULL);
sb                127 libutil/statistics.c 	sb = strbuf_open(0);
sb                137 libutil/statistics.c 	strbuf_reset(sb);
sb                140 libutil/statistics.c 	strbuf_vsprintf(sb, fmt, ap);
sb                143 libutil/statistics.c 	t = check_malloc(offsetof(STATISTICS_TIME, name) + strbuf_getlen(sb) + 1);
sb                145 libutil/statistics.c 	t->name_len = strbuf_getlen(sb);
sb                146 libutil/statistics.c 	strcpy(t->name, strbuf_value(sb));
sb                462 libutil/statistics.c 	strbuf_close(sb);
sb                464 libutil/statistics.c 	sb = NULL;
sb                 98 libutil/strbuf.c __strbuf_expandbuf(STRBUF *sb, int length)
sb                100 libutil/strbuf.c 	int count = sb->curp - sb->sbuf;
sb                101 libutil/strbuf.c 	int newsize = sb->sbufsize + (length > EXPANDSIZE ? length : EXPANDSIZE);
sb                104 libutil/strbuf.c 	if (sb->alloc_failed)
sb                106 libutil/strbuf.c 	newbuf = (char *)check_realloc(sb->sbuf, newsize + 1);
sb                107 libutil/strbuf.c 	sb->sbufsize = newsize;
sb                108 libutil/strbuf.c 	sb->sbuf = newbuf;
sb                110 libutil/strbuf.c 	sb->curp = sb->sbuf + count;
sb                111 libutil/strbuf.c 	sb->endp = sb->sbuf + sb->sbufsize;
sb                123 libutil/strbuf.c 	STRBUF *sb = (STRBUF *)check_calloc(sizeof(STRBUF), 1);
sb                125 libutil/strbuf.c 	sb->sbufsize = (init > 0) ? init : INITIALSIZE;
sb                126 libutil/strbuf.c 	sb->sbuf = (char *)check_malloc(sb->sbufsize + 1);
sb                127 libutil/strbuf.c 	sb->curp = sb->sbuf;
sb                128 libutil/strbuf.c 	sb->endp = sb->sbuf + sb->sbufsize;
sb                130 libutil/strbuf.c 	return sb;
sb                138 libutil/strbuf.c strbuf_reset(STRBUF *sb)
sb                140 libutil/strbuf.c 	sb->curp = sb->sbuf;
sb                141 libutil/strbuf.c 	sb->alloc_failed = 0;
sb                152 libutil/strbuf.c strbuf_clear(STRBUF *sb)
sb                154 libutil/strbuf.c 	if (sb == NULL)
sb                156 libutil/strbuf.c 	if (strbuf_empty(sb)) {
sb                157 libutil/strbuf.c 		sb->sbufsize = INITIALSIZE;
sb                158 libutil/strbuf.c 		sb->sbuf = (char *)check_malloc(sb->sbufsize + 1);
sb                159 libutil/strbuf.c 		sb->curp = sb->sbuf;
sb                160 libutil/strbuf.c 		sb->endp = sb->sbuf + sb->sbufsize;
sb                162 libutil/strbuf.c 		strbuf_reset(sb);
sb                173 libutil/strbuf.c strbuf_nputs(STRBUF *sb, const char *s, int len)
sb                175 libutil/strbuf.c 	if (!sb->alloc_failed && len > 0) {
sb                176 libutil/strbuf.c 		if (sb->curp + len > sb->endp)
sb                177 libutil/strbuf.c 			__strbuf_expandbuf(sb, len);
sb                179 libutil/strbuf.c 			*sb->curp++ = *s++;
sb                192 libutil/strbuf.c strbuf_nputc(STRBUF *sb, int c, int len)
sb                194 libutil/strbuf.c 	if (!sb->alloc_failed && len > 0) {
sb                195 libutil/strbuf.c 		if (sb->curp + len > sb->endp)
sb                196 libutil/strbuf.c 			__strbuf_expandbuf(sb, len);
sb                198 libutil/strbuf.c 			*sb->curp++ = c;
sb                208 libutil/strbuf.c strbuf_puts(STRBUF *sb, const char *s)
sb                210 libutil/strbuf.c 	if (!sb->alloc_failed) {
sb                212 libutil/strbuf.c 			if (sb->curp >= sb->endp)
sb                213 libutil/strbuf.c 				__strbuf_expandbuf(sb, 0);
sb                214 libutil/strbuf.c 			*sb->curp++ = *s++;
sb                227 libutil/strbuf.c strbuf_puts_withterm(STRBUF *sb, const char *s, int c)
sb                229 libutil/strbuf.c 	if (!sb->alloc_failed) {
sb                231 libutil/strbuf.c 			if (sb->curp >= sb->endp)
sb                232 libutil/strbuf.c 				__strbuf_expandbuf(sb, 0);
sb                233 libutil/strbuf.c 			*sb->curp++ = *s++;
sb                244 libutil/strbuf.c strbuf_puts_nl(STRBUF *sb, const char *s)
sb                246 libutil/strbuf.c 	if (!sb->alloc_failed) {
sb                248 libutil/strbuf.c 			if (sb->curp >= sb->endp)
sb                249 libutil/strbuf.c 				__strbuf_expandbuf(sb, 0);
sb                250 libutil/strbuf.c 			*sb->curp++ = *s++;
sb                252 libutil/strbuf.c 		if (sb->curp >= sb->endp)
sb                253 libutil/strbuf.c 			__strbuf_expandbuf(sb, 0);
sb                254 libutil/strbuf.c 		*sb->curp++ = '\n';
sb                264 libutil/strbuf.c strbuf_putn(STRBUF *sb, int n)
sb                267 libutil/strbuf.c 		strbuf_putc(sb, '0');
sb                279 libutil/strbuf.c 			strbuf_putc(sb, num[i]);
sb                290 libutil/strbuf.c strbuf_unputc(STRBUF *sb, int c)
sb                292 libutil/strbuf.c 	if (sb->curp > sb->sbuf && *(sb->curp - 1) == c) {
sb                293 libutil/strbuf.c 		sb->curp--;
sb                305 libutil/strbuf.c strbuf_value(STRBUF *sb)
sb                307 libutil/strbuf.c 	*sb->curp = 0;
sb                308 libutil/strbuf.c 	return sb->sbuf;
sb                316 libutil/strbuf.c strbuf_trim(STRBUF *sb)
sb                318 libutil/strbuf.c 	char *p = sb->curp;
sb                320 libutil/strbuf.c 	while (p > sb->sbuf && isblank(*(p - 1)))
sb                322 libutil/strbuf.c 	sb->curp = p;
sb                340 libutil/strbuf.c strbuf_fgets(STRBUF *sb, FILE *ip, int flags)
sb                343 libutil/strbuf.c 		strbuf_reset(sb);
sb                345 libutil/strbuf.c 	if (sb->curp >= sb->endp)
sb                346 libutil/strbuf.c 		__strbuf_expandbuf(sb, EXPANDSIZE);	/* expand buffer */
sb                347 libutil/strbuf.c 	if (sb->alloc_failed)
sb                348 libutil/strbuf.c 		return sb->sbuf;
sb                351 libutil/strbuf.c 		if (!fgets(sb->curp, sb->endp - sb->curp, ip)) {
sb                352 libutil/strbuf.c 			if (sb->curp == sb->sbuf)
sb                356 libutil/strbuf.c 		if (flags & STRBUF_SHARPSKIP && *(sb->curp) == '#')
sb                358 libutil/strbuf.c 		sb->curp += strlen(sb->curp);
sb                359 libutil/strbuf.c 		if (sb->curp > sb->sbuf && *(sb->curp - 1) == '\n')
sb                362 libutil/strbuf.c 			return sb->sbuf;
sb                364 libutil/strbuf.c 		__strbuf_expandbuf(sb, EXPANDSIZE);	/* expand buffer */
sb                365 libutil/strbuf.c 		if (sb->alloc_failed)
sb                366 libutil/strbuf.c 			return sb->sbuf;
sb                369 libutil/strbuf.c 		if (*(sb->curp - 1) == '\n')
sb                370 libutil/strbuf.c 			*(--sb->curp) = 0;
sb                371 libutil/strbuf.c 		if (sb->curp > sb->sbuf && *(sb->curp - 1) == '\r')
sb                372 libutil/strbuf.c 			*(--sb->curp) = 0;
sb                374 libutil/strbuf.c 	return sb->sbuf;
sb                385 libutil/strbuf.c strbuf_sprintf(STRBUF *sb, const char *s, ...)
sb                390 libutil/strbuf.c 	strbuf_vsprintf(sb, s, ap);
sb                403 libutil/strbuf.c strbuf_vsprintf(STRBUF *sb, const char *s, va_list ap)
sb                405 libutil/strbuf.c 	if (sb->alloc_failed)
sb                416 libutil/strbuf.c 				strbuf_nputs(sb, s, p - s);
sb                428 libutil/strbuf.c 				strbuf_putc(sb, c);
sb                455 libutil/strbuf.c 				strbuf_puts(sb, buf);
sb                457 libutil/strbuf.c 				strbuf_puts(sb, va_arg(ap, char *));
sb                459 libutil/strbuf.c 				strbuf_putn(sb, va_arg(ap, int));
sb                472 libutil/strbuf.c strbuf_close(STRBUF *sb)
sb                474 libutil/strbuf.c 	if (sb->name)
sb                475 libutil/strbuf.c 		(void)free(sb->name);
sb                476 libutil/strbuf.c 	(void)free(sb->sbuf);
sb                477 libutil/strbuf.c 	(void)free(sb);
sb                500 libutil/strbuf.c 	STATIC_STRBUF(sb);
sb                504 libutil/strbuf.c 	strbuf_clear(sb);
sb                505 libutil/strbuf.c 	return sb;
sb                508 libutil/strbuf.c strbuf_release_tempbuf(STRBUF *sb)
sb                 96 libutil/strbuf.h #define STATIC_STRBUF(sb) static STRBUF sb[1]
sb                 98 libutil/strbuf.h #define strbuf_empty(sb) (sb->sbufsize == 0)
sb                100 libutil/strbuf.h #define strbuf_putc(sb, c)	do {\
sb                101 libutil/strbuf.h 	if (!sb->alloc_failed) {\
sb                102 libutil/strbuf.h 		if (sb->curp >= sb->endp)\
sb                103 libutil/strbuf.h 			__strbuf_expandbuf(sb, 0);\
sb                104 libutil/strbuf.h 		*sb->curp++ = c;\
sb                108 libutil/strbuf.h #define strbuf_puts0(sb, s) do {\
sb                109 libutil/strbuf.h 	strbuf_puts(sb, s);\
sb                110 libutil/strbuf.h 	strbuf_putc(sb, '\0');\
sb                113 libutil/strbuf.h #define strbuf_getlen(sb) (sb->curp - sb->sbuf)
sb                114 libutil/strbuf.h #define strbuf_setlen(sb, len) do {\
sb                116 libutil/strbuf.h 	if (!sb->alloc_failed) {\
sb                117 libutil/strbuf.h 		if (_length < strbuf_getlen(sb))\
sb                118 libutil/strbuf.h 			sb->curp = sb->sbuf + _length;\
sb                119 libutil/strbuf.h 		else if (_length > strbuf_getlen(sb))\
sb                120 libutil/strbuf.h 			__strbuf_expandbuf(sb, _length - strbuf_getlen(sb));\
sb                123 libutil/strbuf.h #define strbuf_lastchar(sb) (*(sb->curp - 1))
sb                 49 libutil/strmake.c 	STATIC_STRBUF(sb);
sb                 52 libutil/strmake.c 	strbuf_clear(sb);
sb                 57 libutil/strmake.c 		strbuf_putc(sb,*p);
sb                 60 libutil/strmake.c 	return strbuf_value(sb);
sb                 89 libutil/strmake.c 	STATIC_STRBUF(sb);
sb                 92 libutil/strmake.c 	strbuf_clear(sb);
sb                105 libutil/strmake.c 					cut_off = strbuf_getlen(sb);
sb                106 libutil/strmake.c 				strbuf_putc(sb,*p);
sb                109 libutil/strmake.c 			strbuf_putc(sb,*p);
sb                117 libutil/strmake.c 		strbuf_setlen(sb, cut_off);
sb                119 libutil/strmake.c 		*len = strbuf_getlen(sb);
sb                120 libutil/strmake.c 	return strbuf_value(sb);
sb                 96 libutil/test.c 	static struct stat sb;
sb                100 libutil/test.c 		if (stat(path, &sb) < 0)
sb                109 libutil/test.c 	 		if (!S_ISREG(sb.st_mode))
sb                113 libutil/test.c 	 		if (!S_ISDIR(sb.st_mode))
sb                121 libutil/test.c 			if (sb.st_size == 0)
sb                133 libutil/test.c 			if (!S_ISREG(sb.st_mode))
sb                160 libutil/test.c 	struct stat sb;
sb                162 libutil/test.c 	if (stat(path, &sb) < 0)
sb                164 libutil/test.c 	return sb.st_size;
sb                 57 libutil/usable.c 	STRBUF *sb;
sb                 87 libutil/usable.c 	sb = strbuf_open(0);
sb                 88 libutil/usable.c 	strbuf_puts(sb, getenv("PATH"));
sb                 89 libutil/usable.c 	p = strbuf_value(sb);
sb                107 libutil/usable.c 	strbuf_close(sb);
sb                381 libutil/xargs.c xargs_open_with_strbuf(const char *command, int max_args, STRBUF *sb)
sb                386 libutil/xargs.c 	xp->curp = strbuf_value(sb);
sb                387 libutil/xargs.c 	xp->endp = xp->curp + strbuf_getlen(sb);