/dports/security/clamav-lts/clamav-0.103.5/libclamav/jsparse/ |
H A D | textbuf.h | 32 if (txtbuf->pos + len > txtbuf->capacity) { in textbuffer_ensure_capacity() 34 unsigned capacity = MAX(txtbuf->pos + len, txtbuf->capacity + 4096); in textbuffer_ensure_capacity() 35 d = cli_realloc(txtbuf->data, capacity); in textbuffer_ensure_capacity() 38 txtbuf->capacity = capacity; in textbuffer_ensure_capacity() 39 txtbuf->data = d; in textbuffer_ensure_capacity() 46 if (textbuffer_ensure_capacity(txtbuf, len) == -1) in textbuffer_append_len() 48 memcpy(&txtbuf->data[txtbuf->pos], s, len); in textbuffer_append_len() 49 txtbuf->pos += len; in textbuffer_append_len() 56 return textbuffer_append_len(txtbuf, s, len); in textbuffer_append() 61 if (textbuffer_ensure_capacity(txtbuf, 1) == -1) in textbuffer_putc() [all …]
|
/dports/security/clamav/clamav-0.104.2/libclamav/jsparse/ |
H A D | textbuf.h | 32 if (txtbuf->pos + len > txtbuf->capacity) { in textbuffer_ensure_capacity() 34 unsigned capacity = MAX(txtbuf->pos + len, txtbuf->capacity + 4096); in textbuffer_ensure_capacity() 35 d = cli_realloc(txtbuf->data, capacity); in textbuffer_ensure_capacity() 38 txtbuf->capacity = capacity; in textbuffer_ensure_capacity() 39 txtbuf->data = d; in textbuffer_ensure_capacity() 46 if (textbuffer_ensure_capacity(txtbuf, len) == -1) in textbuffer_append_len() 48 memcpy(&txtbuf->data[txtbuf->pos], s, len); in textbuffer_append_len() 49 txtbuf->pos += len; in textbuffer_append_len() 56 return textbuffer_append_len(txtbuf, s, len); in textbuffer_append() 61 if (textbuffer_ensure_capacity(txtbuf, 1) == -1) in textbuffer_putc() [all …]
|
/dports/x11/xmotd/xmotd-1.17.3b/ |
H A D | xmotd.c | 84 char *txtbuf; /* file is loaded into this malloc'd pointer */ variable 229 if(txtbuf) free(txtbuf); in displayMessage() 231 txtbuf=(char *)calloc(1, (motdstat.st_size+1)*sizeof(char)); in displayMessage() 233 if(!txtbuf) in displayMessage() 242 fread(txtbuf,(int)motdstat.st_size,1,fp); in displayMessage() 250 HTMLSetText(text,txtbuf,NULL,NULL,0,NULL,NULL); in displayMessage() 253 XtVaSetValues(text, XmNvalue, txtbuf, NULL); in displayMessage() 260 HTMLSetText(text,txtbuf,NULL,NULL,0,NULL,NULL); in displayMessage() 263 XtVaSetValues(text, XtNstring, txtbuf, NULL); in displayMessage()
|
H A D | textmode.c | 71 char *txtbuf; local 84 txtbuf=(char *)calloc(1, (motdstat.st_size+1)*sizeof(char)); 85 if(!txtbuf) 91 fread(txtbuf,(int)motdstat.st_size,1,fp); 94 fprintf(stdout, "%s", txtbuf); 95 free(txtbuf);
|
/dports/emulators/tiemu3/tiemu-3.03/src/gui/logger/ |
H A D | log_link.c | 38 static GtkTextBuffer *txtbuf; variable 66 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in display_loglink_dbox() 127 gtk_text_buffer_insert_at_cursor(txtbuf, str, strlen(str)); in display_loglink_dbox() 140 gtk_text_buffer_insert_at_cursor(txtbuf, str, strlen(str)); in display_loglink_dbox() 153 gtk_text_buffer_insert_at_cursor(txtbuf, str, strlen(str)); in display_loglink_dbox() 204 gtk_text_buffer_get_bounds(txtbuf, &start, &end); in on_button9_clicked() 205 txt = gtk_text_buffer_get_text(txtbuf, &start, &end, TRUE); in on_button9_clicked() 246 GtkTextBuffer *txtbuf; in on_button11_clicked() local 249 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in on_button11_clicked() 250 gtk_text_buffer_get_bounds(txtbuf, &start, &end); in on_button11_clicked() [all …]
|
/dports/devel/libsigrok/libsigrok-0.5.2/src/dmm/ |
H A D | bm86x.c | 111 char *txtbuf, float *value, char *temp_unit, int *digits, int signflag) in brymen_bm86x_parse_digits() argument 118 txtptr = txtbuf; in brymen_bm86x_parse_digits() 146 ret = value ? sr_atof_ascii(txtbuf, value) : SR_OK; in brymen_bm86x_parse_digits() 148 sr_dbg("invalid float string: '%s'", txtbuf); in brymen_bm86x_parse_digits() 162 char txtbuf[16], temp_unit; in brymen_bm86x_parse() local 174 (void)brymen_bm86x_parse_digits(&buf[9], 4, txtbuf, in brymen_bm86x_parse() 176 is_diode = strcmp(txtbuf, "diod") == 0; in brymen_bm86x_parse() 177 ret = brymen_bm86x_parse_digits(&buf[2], 6, txtbuf, in brymen_bm86x_parse() 179 over_limit = strstr(txtbuf, "0L") || strstr(txtbuf, "0.L"); in brymen_bm86x_parse() 285 (void)brymen_bm86x_parse_digits(&buf[2], 6, txtbuf, in brymen_bm86x_parse() [all …]
|
/dports/net/udpxy/udpxy-1.0-24.1/chipmunk/test/ |
H A D | test_txtf.c | 10 char txtbuf[2048]; in main() local 18 n = txtf_read (argv[1], txtbuf, sizeof(txtbuf), stderr); in main() 24 (void) printf ("%s\n", txtbuf); in main()
|
/dports/comms/tilp2/tilp2-1.18/src/ |
H A D | fileprop.c | 35 static GtkTextBuffer *txtbuf; variable 42 gtk_text_buffer_insert_at_cursor(txtbuf, message, strlen(message)); in new_log_handler() 43 gtk_text_buffer_insert_at_cursor(txtbuf, "\r\n", 2); in new_log_handler() 66 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in display_properties_dbox()
|
H A D | manpage.c | 40 GtkTextBuffer *txtbuf; in display_manpage_dbox() local 85 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in display_manpage_dbox() 86 gtk_text_buffer_set_text(txtbuf, buffer, len); in display_manpage_dbox()
|
H A D | release.c | 40 GtkTextBuffer *txtbuf; in display_release_dbox() local 89 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in display_release_dbox() 90 gtk_text_buffer_set_text(txtbuf, buffer, len); in display_release_dbox()
|
/dports/finance/moneymanagerex/bakefile-0.2.9/src/ |
H A D | bottlenecks.c | 93 char *output, *txtbuf; in doEvalExpr() local 103 output = txtbuf = textbuf[textbufCurrent]; in doEvalExpr() 116 ENSURE_BUFFER(output - txtbuf + textlen); in doEvalExpr() 133 ENSURE_BUFFER(output - txtbuf + size); in doEvalExpr() 167 ENSURE_BUFFER(output - txtbuf + size); in doEvalExpr() 210 ENSURE_BUFFER(len + output - txtbuf); in doEvalExpr() 229 ENSURE_BUFFER(output - txtbuf + size); in doEvalExpr() 239 return txtbuf; in doEvalExpr()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/src/ |
H A D | fs_tts.c | 74 char txtbuf[2048] = { 0 }; in main() local 199 while(read(STDIN_FILENO, txtbuf + len, 1) == 1) { in main() 200 if(++len == sizeof(txtbuf) - 1) break; in main() 210 len = read(fd, txtbuf, sizeof(txtbuf) - 1); in main() 215 text = txtbuf; in main()
|
/dports/irc/irc/irc2.11.2p3/iauth/ |
H A D | mod_socks.c | 523 static char txtbuf[80]; in socks_init() local 535 tmpbuf[0] = txtbuf[0] = '\0'; in socks_init() 543 strcat(txtbuf, ", Delayed"); in socks_init() 549 strcat(txtbuf, ", Log"); in socks_init() 555 strcat(txtbuf, ", Reject"); in socks_init() 567 strcat(txtbuf, ", Paranoid"); in socks_init() 573 strcat(txtbuf, ", Careful"); in socks_init() 579 strcat(txtbuf, ", V4only"); in socks_init() 585 strcat(txtbuf, ", V5only"); in socks_init() 611 strcat(txtbuf, cbuf); in socks_init() [all …]
|
H A D | mod_webproxy.c | 314 static char txtbuf[80]; in proxy_init() local 327 tmpbuf[0] = txtbuf[0] = '\0'; in proxy_init() 335 strcat(txtbuf, ", Delayed"); in proxy_init() 341 strcat(txtbuf, ", Log"); in proxy_init() 347 strcat(txtbuf, ", Reject"); in proxy_init() 353 strcat(txtbuf, ", Careful"); in proxy_init() 368 strcat(txtbuf, cbuf); in proxy_init() 373 return txtbuf+2; in proxy_init()
|
/dports/emulators/tiemu3/tiemu-3.03/src/gui/ |
H A D | manpage.c | 44 GtkTextBuffer *txtbuf; in display_manpage_dbox() local 84 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in display_manpage_dbox() 85 gtk_text_buffer_set_text(txtbuf, buffer, len); in display_manpage_dbox()
|
H A D | release.c | 43 GtkTextBuffer *txtbuf; in display_release_dbox() local 89 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); in display_release_dbox() 90 gtk_text_buffer_set_text(txtbuf, buffer, len); in display_release_dbox()
|
/dports/audio/yoshimi/yoshimi-2.1.2.2/src/UI/ |
H A D | ConsoleUI.fl | 85 txtbuf = new Fl_Text_Buffer(bufsize); 88 logText->buffer(txtbuf); 110 txtbuf->append(msg.c_str()); 113 if (txtbuf->length() > (bufsize - 256)) 114 txtbuf->remove(0, txtbuf->line_end(256));} {} 176 decl {Fl_Text_Buffer *txtbuf;} {private local
|
/dports/graphics/azpainterb/azpainterb-1.1.3/translation/ |
H A D | mtrconv.c | 381 static int _create_list(CONVERTDAT *p,char *txtbuf) in _create_list() argument 385 for(pc = txtbuf; 1; pc = next) in _create_list() 599 char *txtbuf; in _convert_file() local 608 txtbuf = _read_text(inputname); in _convert_file() 609 if(!txtbuf) in _convert_file() 617 ret = _create_list(&dat, txtbuf); in _convert_file() 619 free(txtbuf); in _convert_file()
|
/dports/graphics/azpainter/azpainter-2.1.7/translation/ |
H A D | mtrconv.c | 381 static int _create_list(CONVERTDAT *p,char *txtbuf) in _create_list() argument 385 for(pc = txtbuf; 1; pc = next) in _create_list() 599 char *txtbuf; in _convert_file() local 608 txtbuf = _read_text(inputname); in _convert_file() 609 if(!txtbuf) in _convert_file() 617 ret = _create_list(&dat, txtbuf); in _convert_file() 619 free(txtbuf); in _convert_file()
|
/dports/games/rockdodger/rockdodger-1.1.4/ |
H A D | intro.c | 49 static char txtbuf[8001]; variable 57 char readbuf[sizeof(txtbuf) - sizeof(intro_default_text) - 3]; in init_intro() 62 strcpy(txtbuf, "Intro data is kaputt... Game may be borked... "); in init_intro() 73 snprintf(txtbuf, sizeof(txtbuf), intro_default_text, readbuf); in init_intro() 82 rockiptr->scroller = init_scroller(txtbuf, 440, 3.141, target->w); in init_intro()
|
/dports/comms/gpredict/gpredict-2.2.1/src/ |
H A D | gpredict-help.c | 51 GtkTextBuffer *txtbuf; in gpredict_help_show_txt() local 108 txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)); in gpredict_help_show_txt() 110 gtk_text_buffer_set_text(txtbuf, buff, -1); in gpredict_help_show_txt()
|
/dports/deskutils/coolreader/coolreader-cr3.2.55/crengine/src/ |
H A D | rtfimp.cpp | 382 , txtbuf(NULL) in LVRtfParser() 415 if ( txtpos==0 || !txtbuf ) in CommitText() 417 txtbuf[txtpos] = 0; in CommitText() 420 lString32 s = txtbuf; in CommitText() 425 m_stack.getDestination()->OnText( txtbuf, txtpos, TXTFLG_RTF ); in CommitText() 447 txtbuf[txtpos++] = ch; in AddChar() 497 txtbuf = new lChar32[ MAX_TXT_SIZE+1 ]; in Parse() 622 delete[] txtbuf; in Parse() 623 txtbuf = NULL; in Parse()
|
/dports/devel/premake5/premake-5.0.0-alpha16-src/contrib/curl/lib/ |
H A D | strerror.c | 735 char txtbuf[80]; in Curl_sspi_strerror() local 1012 str = txtbuf; in Curl_sspi_strerror() 1013 snprintf(txtbuf, sizeof(txtbuf), "%s (0x%08X)", txt, err); in Curl_sspi_strerror() 1014 txtbuf[sizeof(txtbuf)-1] = '\0'; in Curl_sspi_strerror()
|
/dports/games/0ad/0ad-0.0.23b-alpha/build/premake/premake5/contrib/curl/lib/ |
H A D | strerror.c | 735 char txtbuf[80]; in Curl_sspi_strerror() local 1012 str = txtbuf; in Curl_sspi_strerror() 1013 snprintf(txtbuf, sizeof(txtbuf), "%s (0x%08X)", txt, err); in Curl_sspi_strerror() 1014 txtbuf[sizeof(txtbuf)-1] = '\0'; in Curl_sspi_strerror()
|
/dports/sysutils/brut/brut-1.55/ |
H A D | about.c | 35 GtkTextBuffer *txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW (txt)); in about() local 36 gtk_text_buffer_set_text(txtbuf, l.about, strlen(l.about)); in about()
|