| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/ |
| H A D | x-ycp.c | 139 static size_t bufmax; in phase2_getc() local 168 if (buflen >= bufmax) in phase2_getc() 170 bufmax = 2 * bufmax + 10; in phase2_getc() 171 buffer = xrealloc (buffer, bufmax); in phase2_getc() 176 if (buflen >= bufmax) in phase2_getc() 178 bufmax = 2 * bufmax + 10; in phase2_getc() 179 buffer = xrealloc (buffer, bufmax); in phase2_getc() 213 if (buflen >= bufmax) in phase2_getc() 215 bufmax = 2 * bufmax + 10; in phase2_getc() 216 buffer = xrealloc (buffer, bufmax); in phase2_getc() [all …]
|
| H A D | x-smalltalk.c | 119 static size_t bufmax; variable 131 if (buflen >= bufmax) in comment_add() 133 bufmax = 2 * bufmax + 10; in comment_add() 134 buffer = xrealloc (buffer, bufmax); in comment_add() 145 if (buflen >= bufmax) in comment_line_end() 147 bufmax = 2 * bufmax + 10; in comment_line_end() 148 buffer = xrealloc (buffer, bufmax); in comment_line_end() 192 static int bufmax; in phase2_get() local 275 if (bufpos >= bufmax) in phase2_get() 277 bufmax = 2 * bufmax + 10; in phase2_get() [all …]
|
| H A D | x-rst.c | 64 static int bufmax; in extract_rst() local 111 if (bufpos >= bufmax) in extract_rst() 113 bufmax = 2 * bufmax + 10; in extract_rst() 114 buffer = xrealloc (buffer, bufmax); in extract_rst() 147 if (bufpos >= bufmax) in extract_rst() 149 bufmax = 2 * bufmax + 10; in extract_rst() 150 buffer = xrealloc (buffer, bufmax); in extract_rst() 183 if (bufpos >= bufmax) in extract_rst() 185 bufmax = 2 * bufmax + 10; in extract_rst() 186 buffer = xrealloc (buffer, bufmax); in extract_rst() [all …]
|
| H A D | x-php.c | 535 static size_t bufmax; variable 547 if (buflen >= bufmax) in comment_add() 549 bufmax = 2 * bufmax + 10; in comment_add() 550 buffer = xrealloc (buffer, bufmax); in comment_add() 562 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end() 564 bufmax = 2 * bufmax + 10; in comment_line_end() 565 buffer = xrealloc (buffer, bufmax); in comment_line_end() 770 static int bufmax; in x_php_lex() local 832 if (bufpos >= bufmax) in x_php_lex() 834 bufmax = 2 * bufmax + 10; in x_php_lex() [all …]
|
| H A D | x-awk.c | 172 static size_t bufmax; in phase2_getc() local 190 if (buflen >= bufmax) in phase2_getc() 192 bufmax = 2 * bufmax + 10; in phase2_getc() 193 buffer = xrealloc (buffer, bufmax); in phase2_getc() 198 if (buflen >= bufmax) in phase2_getc() 200 bufmax = 2 * bufmax + 10; in phase2_getc() 201 buffer = xrealloc (buffer, bufmax); in phase2_getc() 382 static int bufmax; in x_awk_lex() local 450 if (bufpos >= bufmax) in x_awk_lex() 452 bufmax = 2 * bufmax + 10; in x_awk_lex() [all …]
|
| H A D | x-c.c | 621 static size_t bufmax; variable 633 if (buflen >= bufmax) in comment_add() 635 bufmax = 2 * bufmax + 10; in comment_add() 636 buffer = xrealloc (buffer, bufmax); in comment_add() 648 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end() 650 bufmax = 2 * bufmax + 10; in comment_line_end() 651 buffer = xrealloc (buffer, bufmax); in comment_line_end() 965 static int bufmax; in phase5_get() local 1022 if (bufpos >= bufmax) in phase5_get() 1024 bufmax = 2 * bufmax + 10; in phase5_get() [all …]
|
| H A D | x-perl.c | 277 static size_t bufmax = 0; in get_here_document() local 284 if (bufmax == 0) in get_here_document() 288 bufmax = 1; in get_here_document() 363 if (bufpos + read_bytes >= bufmax) in get_here_document() 366 bufmax = 2 * bufmax + 10; in get_here_document() 367 while (bufpos + read_bytes >= bufmax); in get_here_document() 368 buffer = xrealloc (buffer, bufmax); in get_here_document() 425 static size_t bufmax; in phase2_getc() local 454 if (buflen >= bufmax) in phase2_getc() 456 bufmax = 2 * bufmax + 10; in phase2_getc() [all …]
|
| H A D | read-stringtable.c | 365 static size_t bufmax; in parse_escaped_string() local 439 if (buflen >= bufmax) in parse_escaped_string() 441 bufmax = 2 * bufmax + 10; in parse_escaped_string() 442 buffer = xrealloc (buffer, bufmax * sizeof (int)); in parse_escaped_string() 492 static size_t bufmax; variable 509 if (buflen >= bufmax) in comment_add() 511 bufmax = 2 * bufmax + 10; in comment_add() 512 buffer = xrealloc (buffer, bufmax * sizeof (int)); in comment_add() 715 static size_t bufmax; in read_string() local 794 if (buflen >= bufmax) in read_string() [all …]
|
| H A D | read-properties.c | 365 static size_t bufmax; in read_escaped_string() local 404 if (buflen >= bufmax) in read_escaped_string() 406 bufmax += 100; in read_escaped_string() 407 buffer = xrealloc (buffer, bufmax * sizeof (unsigned short)); in read_escaped_string() 490 static size_t bufmax; in properties_parse() local 498 if (buflen >= bufmax) in properties_parse() 500 bufmax += 100; in properties_parse() 501 buffer = xrealloc (buffer, bufmax); in properties_parse()
|
| H A D | x-glade.c | 209 size_t bufmax; member 296 p->bufmax = 0; in start_element_handler() 316 if (p->buflen == p->bufmax) in end_element_handler() 348 if (p->buflen + len > p->bufmax) in character_data_handler() 350 p->bufmax = 2 * p->bufmax; in character_data_handler() 351 if (p->bufmax < p->buflen + len) in character_data_handler() 352 p->bufmax = p->buflen + len; in character_data_handler() 353 p->buffer = (char *) xrealloc (p->buffer, p->bufmax); in character_data_handler()
|
| H A D | po-lex.c | 861 static size_t bufmax; in po_gram_lex() local 929 while (bufpos + mb_len (mbc) >= bufmax) in po_gram_lex() 931 bufmax += 100; in po_gram_lex() 932 buf = xrealloc (buf, bufmax); in po_gram_lex() 969 while (bufpos + mb_len (mbc) >= bufmax) in po_gram_lex() 971 bufmax += 100; in po_gram_lex() 972 buf = xrealloc (buf, bufmax); in po_gram_lex() 1027 if (bufpos + 1 >= bufmax) in po_gram_lex() 1029 bufmax += 100; in po_gram_lex() 1030 buf = xrealloc (buf, bufmax); in po_gram_lex() [all …]
|
| H A D | x-tcl.c | 362 static size_t bufmax; variable 374 if (buflen >= bufmax) in comment_add() 376 bufmax = 2 * bufmax + 10; in comment_add() 377 buffer = xrealloc (buffer, bufmax); in comment_add() 388 if (buflen >= bufmax) in comment_line_end() 390 bufmax = 2 * bufmax + 10; in comment_line_end() 391 buffer = xrealloc (buffer, bufmax); in comment_line_end()
|
| H A D | x-librep.c | 412 static size_t bufmax; variable 424 if (buflen >= bufmax) in comment_add() 426 bufmax = 2 * bufmax + 10; in comment_add() 427 buffer = xrealloc (buffer, bufmax); in comment_add() 439 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end() 441 bufmax = 2 * bufmax + 10; in comment_line_end() 442 buffer = xrealloc (buffer, bufmax); in comment_line_end()
|
| H A D | x-scheme.c | 577 static size_t bufmax; variable 589 if (buflen >= bufmax) in comment_add() 591 bufmax = 2 * bufmax + 10; in comment_add() 592 buffer = xrealloc (buffer, bufmax); in comment_add() 604 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end() 606 bufmax = 2 * bufmax + 10; in comment_line_end() 607 buffer = xrealloc (buffer, bufmax); in comment_line_end()
|
| H A D | x-sh.c | 291 static size_t bufmax; variable 303 if (buflen >= bufmax) in comment_add() 305 bufmax = 2 * bufmax + 10; in comment_add() 306 buffer = xrealloc (buffer, bufmax); in comment_add() 317 if (buflen >= bufmax) in comment_line_end() 319 bufmax = 2 * bufmax + 10; in comment_line_end() 320 buffer = xrealloc (buffer, bufmax); in comment_line_end()
|
| H A D | x-elisp.c | 331 static size_t bufmax; variable 343 if (buflen >= bufmax) in comment_add() 345 bufmax = 2 * bufmax + 10; in comment_add() 346 buffer = xrealloc (buffer, bufmax); in comment_add() 358 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end() 360 bufmax = 2 * bufmax + 10; in comment_line_end() 361 buffer = xrealloc (buffer, bufmax); in comment_line_end()
|
| H A D | x-java.c | 964 static int bufmax; in phase5_get() local 968 if (bufpos >= bufmax) in phase5_get() 970 bufmax = 2 * bufmax + 10; in phase5_get() 971 buffer = xrealloc (buffer, bufmax); in phase5_get() 982 if (bufpos >= bufmax) in phase5_get() 984 bufmax = 2 * bufmax + 10; in phase5_get() 985 buffer = xrealloc (buffer, bufmax); in phase5_get()
|
| /netbsd-src/games/hack/ |
| H A D | hack.objnam.c | 174 size_t bufmax = sizeof(bufr) - PREFIX; in xname() local 191 strlcpy(buf, dn, bufmax); in xname() 194 strlcpy(buf, an, bufmax); in xname() 219 strlcpy(buf, an, bufmax); in xname() 222 Snprintf(buf, bufmax, "%sheavy iron ball", in xname() 236 strlcat(buf, un, bufmax); in xname() 239 strlcat(buf, an, bufmax); in xname() 242 strlcpy(buf, dn, bufmax); in xname() 243 strlcat(buf, " potion", bufmax); in xname() 256 strlcat(buf, an, bufmax); in xname() [all …]
|
| /netbsd-src/external/bsd/tradcpp/dist/ |
| H A D | files.c | 181 size_t bufend, bufmax, linestart, lineend, nextlinestart, tmp; in file_read() local 195 bufmax = 128; in file_read() 199 buf = domalloc(bufmax); in file_read() 212 if (bufend >= bufmax) { in file_read() 214 buf = dorealloc(buf, bufmax, bufmax*2); in file_read() 215 bufmax = bufmax*2; in file_read() 217 if (bufmax > 0xffffffff) { in file_read() 228 result = read(fd, buf+bufend, bufmax - bufend); in file_read() 255 assert(bufend < bufmax); in file_read() 311 dofree(buf, bufmax); in file_read()
|
| H A D | macro.c | 681 size_t bufpos, bufmax; member 701 es->bufmax = 0; in expstate_init() 711 dofree(es->buf, es->bufmax); in expstate_cleanup() 735 assert(es->bufpos <= es->bufmax); in expand_send() 736 if (es->bufpos + len > es->bufmax) { in expand_send() 737 oldmax = es->bufmax; in expand_send() 738 if (es->bufmax == 0) { in expand_send() 739 es->bufmax = 64; in expand_send() 741 while (es->bufpos + len > es->bufmax) { in expand_send() 742 es->bufmax *= 2; in expand_send() [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-runtime/src/ |
| H A D | envsubst.c | 458 static size_t bufmax; in subst_from_stdin() local 487 if (buflen >= bufmax) in subst_from_stdin() 489 bufmax = 2 * bufmax + 10; in subst_from_stdin() 490 buffer = xrealloc (buffer, bufmax); in subst_from_stdin() 521 if (buflen >= bufmax) in subst_from_stdin() 523 bufmax = 2 * bufmax + 10; in subst_from_stdin() 524 buffer = xrealloc (buffer, bufmax); in subst_from_stdin()
|
| /netbsd-src/external/gpl2/gettext/dist/gnulib-local/lib/ |
| H A D | fstrcmp.c | 611 size_t bufmax; in gl_once_define() local 639 bufmax = (size_t) (uintptr_t) gl_tls_get (bufmax_key); in gl_once_define() 640 if (fdiag_len > bufmax) in gl_once_define() 643 bufmax = 2 * bufmax; in gl_once_define() 644 if (fdiag_len > bufmax) in gl_once_define() 645 bufmax = fdiag_len; in gl_once_define() 650 buffer = (int *) xmalloc (bufmax * (2 * sizeof (int))); in gl_once_define() 652 gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax); in gl_once_define()
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/ |
| H A D | fstrcmp.c | 611 size_t bufmax; in gl_once_define() local 639 bufmax = (size_t) (uintptr_t) gl_tls_get (bufmax_key); in gl_once_define() 640 if (fdiag_len > bufmax) in gl_once_define() 643 bufmax = 2 * bufmax; in gl_once_define() 644 if (fdiag_len > bufmax) in gl_once_define() 645 bufmax = fdiag_len; in gl_once_define() 650 buffer = (int *) xmalloc (bufmax * (2 * sizeof (int))); in gl_once_define() 652 gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax); in gl_once_define()
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| H A D | fstrcmp.c | 611 size_t bufmax; in gl_once_define() local 639 bufmax = (size_t) (uintptr_t) gl_tls_get (bufmax_key); in gl_once_define() 640 if (fdiag_len > bufmax) in gl_once_define() 643 bufmax = 2 * bufmax; in gl_once_define() 644 if (fdiag_len > bufmax) in gl_once_define() 645 bufmax = fdiag_len; in gl_once_define() 650 buffer = (int *) xmalloc (bufmax * (2 * sizeof (int))); in gl_once_define() 652 gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax); in gl_once_define()
|
| /netbsd-src/external/mpl/dhcp/dist/omapip/ |
| H A D | trace.c | 430 unsigned bufmax = 0; in trace_file_replay() local 497 &bufmax)) == ISC_R_SUCCESS) { in trace_file_replay() 516 unsigned *bufmax) in trace_get_next_packet() argument 614 if ((*buf == NULL) || (paylen > (*bufmax))) { in trace_get_next_packet() 617 (*bufmax) = ((paylen + 1023) & ~1023U); in trace_get_next_packet() 618 (*buf) = dmalloc ((*bufmax), MDL); in trace_get_next_packet() 621 (*bufmax)); in trace_get_next_packet() 648 unsigned bufmax = 0; in trace_get_packet() local 660 status = trace_get_next_packet (ttp, tpkt, buf, buflen, &bufmax); in trace_get_packet()
|