Home
last modified time | relevance | path

Searched refs:bufpos (Results 1 – 25 of 30) sorted by relevance

12

/third_party/gettext/gettext-tools/src/
Dx-perl.c308 size_t bufpos = 0; in get_here_document() local
393 if (bufpos + read_bytes >= bufmax) in get_here_document()
397 while (bufpos + read_bytes >= bufmax); in get_here_document()
401 strcpy (buffer + bufpos, my_linebuf); in get_here_document()
402 bufpos += read_bytes; in get_here_document()
681 int bufpos = 0; in extract_quotelike_pass1() local
685 buffer[bufpos++] = delim; in extract_quotelike_pass1()
713 if (bufpos + 2 > bufmax) in extract_quotelike_pass1()
721 buffer[bufpos++] = counter_delim; /* will be stripped off later */ in extract_quotelike_pass1()
722 buffer[bufpos++] = '\0'; in extract_quotelike_pass1()
[all …]
Dx-rst.c81 int bufpos; in extract_rst() local
110 bufpos = 0; in extract_rst()
120 if (bufpos >= bufmax) in extract_rst()
127 buffer[bufpos++] = c; in extract_rst()
132 buffer[bufpos] = '\0'; in extract_rst()
136 bufpos = 0; in extract_rst()
156 if (bufpos >= bufmax) in extract_rst()
161 buffer[bufpos++] = c; in extract_rst()
192 if (bufpos >= bufmax) in extract_rst()
197 buffer[bufpos++] = (unsigned char) n; in extract_rst()
[all …]
Dx-smalltalk.c187 int bufpos; in phase2_get() local
254 bufpos = 0; in phase2_get()
269 if (bufpos >= bufmax) in phase2_get()
274 buffer[bufpos++] = c; in phase2_get()
276 if (bufpos >= bufmax) in phase2_get()
281 buffer[bufpos] = 0; in phase2_get()
350 bufpos = 0; in phase2_get()
353 if (bufpos >= bufmax) in phase2_get()
358 buffer[bufpos++] = c; in phase2_get()
376 if (bufpos >= bufmax) in phase2_get()
[all …]
Dx-desktop.c142 size_t bufpos = 0; in extract_desktop_handle_comment() local
144 while (bufpos < buflen in extract_desktop_handle_comment()
145 && c_isspace (buffer[bufpos])) in extract_desktop_handle_comment()
146 ++bufpos; in extract_desktop_handle_comment()
147 while (buflen >= bufpos in extract_desktop_handle_comment()
150 if (bufpos < buflen) in extract_desktop_handle_comment()
154 savable_comment_add (&comment[bufpos]); in extract_desktop_handle_comment()
Dx-c.c1198 int bufpos; in phase5_get() local
1251 bufpos = 0; in phase5_get()
1254 if (bufpos >= bufmax) in phase5_get()
1259 buffer[bufpos++] = c; in phase5_get()
1285 if (bufpos == 2 && buffer[0] == 'u' && buffer[1] == '8') in phase5_get()
1296 && (bufpos == 1 in phase5_get()
1297 || (bufpos == 2 in phase5_get()
1300 || (bufpos == 3 && buffer[0] == 'u' && buffer[1] == '8')) in phase5_get()
1301 && buffer[bufpos - 1] == 'R') in phase5_get()
1305 const bool relevant = (bufpos != 2); in phase5_get()
[all …]
Dpo-lex.c865 size_t bufpos; in po_gram_lex() local
928 bufpos = 0; in po_gram_lex()
931 while (bufpos + mb_len (mbc) >= bufmax) in po_gram_lex()
939 memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc)); in po_gram_lex()
940 bufpos += mb_len (mbc); in po_gram_lex()
944 buf[bufpos] = '\0'; in po_gram_lex()
967 bufpos = 0; in po_gram_lex()
971 while (bufpos + mb_len (mbc) >= bufmax) in po_gram_lex()
992 buf[bufpos++] = control_sequence (); in po_gram_lex()
997 memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc)); in po_gram_lex()
[all …]
Dx-php.c782 int bufpos; in phase4_get() local
845 bufpos = 0; in phase4_get()
848 if (bufpos >= bufmax) in phase4_get()
853 buffer[bufpos++] = c; in phase4_get()
900 if (bufpos >= bufmax) in phase4_get()
905 buffer[bufpos] = 0; in phase4_get()
912 bufpos = 0; in phase4_get()
927 if (bufpos >= bufmax) in phase4_get()
932 buffer[bufpos++] = c; in phase4_get()
934 if (bufpos >= bufmax) in phase4_get()
[all …]
Dx-awk.c382 int bufpos; in x_awk_lex() local
446 bufpos = 0; in x_awk_lex()
449 if (bufpos >= bufmax) in x_awk_lex()
454 buffer[bufpos++] = c; in x_awk_lex()
473 if (bufpos == 1 && buffer[0] == '_' && c == '"') in x_awk_lex()
483 if (bufpos >= bufmax) in x_awk_lex()
488 buffer[bufpos] = '\0'; in x_awk_lex()
516 bufpos = 0; in x_awk_lex()
522 if (bufpos >= bufmax) in x_awk_lex()
527 buffer[bufpos++] = c; in x_awk_lex()
[all …]
Dx-ycp.c426 int bufpos; in phase5_get() local
474 bufpos = 0; in phase5_get()
477 if (bufpos >= bufmax) in phase5_get()
482 buffer[bufpos++] = c; in phase5_get()
501 if (bufpos == 1 && buffer[0] == '_' && c == '(') in phase5_get()
511 if (bufpos >= bufmax) in phase5_get()
516 buffer[bufpos] = '\0'; in phase5_get()
522 bufpos = 0; in phase5_get()
528 if (bufpos >= bufmax) in phase5_get()
533 buffer[bufpos++] = c; in phase5_get()
[all …]
Dcldr-plural.y294 size_t bufpos;
387 bufpos = 0;
390 if (bufpos >= bufmax)
395 buffer[bufpos++] = result;
413 if (bufpos >= bufmax)
418 buffer[bufpos] = '\0';
421 if (bufpos == 1)
Dread-desktop.c220 size_t bufpos; in desktop_lex() local
226 if (bufpos >= bufmax) \ in desktop_lex()
231 buffer[bufpos++] = c; \ in desktop_lex()
235 bufpos = 0; in desktop_lex()
348 locale_start = bufpos; in desktop_lex()
417 value_start = bufpos; in desktop_lex()
427 tp->string = xmemdup (buffer, bufpos); in desktop_lex()
Dx-vala.c633 int bufpos; in phase3_get() local
639 if (bufpos >= bufmax) \ in phase3_get()
644 buffer[bufpos++] = c; \ in phase3_get()
698 bufpos = 0; in phase3_get()
758 bufpos = 0; in phase3_get()
Dx-python.c1245 int bufpos; in phase5_get() local
1247 bufpos = 0; in phase5_get()
1250 if (bufpos >= bufmax) in phase5_get()
1255 buffer[bufpos++] = c; in phase5_get()
1279 if (bufpos >= bufmax) in phase5_get()
1284 buffer[bufpos] = '\0'; in phase5_get()
Dx-javascript.c1190 int bufpos; in phase5_get() local
1192 bufpos = 0; in phase5_get()
1195 if (bufpos >= bufmax) in phase5_get()
1200 buffer[bufpos++] = c; in phase5_get()
1224 if (bufpos >= bufmax) in phase5_get()
1229 buffer[bufpos] = '\0'; in phase5_get()
Dx-java.c1158 int bufpos = 0; in phase5_get() local
1161 if (bufpos >= bufmax) in phase5_get()
1166 buffer[bufpos++] = RED (c); in phase5_get()
1175 if (bufpos >= bufmax) in phase5_get()
1180 buffer[bufpos] = '\0'; in phase5_get()
/third_party/ntfs-3g/ntfsprogs/
Dntfscp.c327 static int next_zero(struct ALLOC_CONTEXT *alctx, s32 bufpos, s32 count) in next_zero() argument
333 while ((index < 0) && (bufpos < count)) { in next_zero()
334 q = alctx->buf[bufpos >> 3]; in next_zero()
336 bufpos = (bufpos | 7) + 1; in next_zero()
338 b = bufpos & 7; in next_zero()
343 index = (bufpos & -8) | b; in next_zero()
345 bufpos = (bufpos | 7) + 1; in next_zero()
359 static int next_one(struct ALLOC_CONTEXT *alctx, s32 bufpos, s32 count) in next_one() argument
365 while ((index < 0) && (bufpos < count)) { in next_one()
366 q = alctx->buf[bufpos >> 3]; in next_one()
[all …]
/third_party/gstreamer/gstplugins_base/gst/tcp/
Dgstmultihandlesink.c605 client->bufpos = -1; in gst_multi_handle_sink_client_init()
807 mhclient->flushcount = mhclient->bufpos + 1; in gst_multi_handle_sink_remove_flush()
1429 result = client->bufpos; in gst_multi_handle_sink_new_client_position()
1439 client->debug, client->bufpos); in gst_multi_handle_sink_new_client_position()
1441 result = find_prev_syncframe (sink, client->bufpos); in gst_multi_handle_sink_new_client_position()
1453 client->bufpos = -1; in gst_multi_handle_sink_new_client_position()
1476 client->bufpos = -1; in gst_multi_handle_sink_new_client_position()
1551 client->bufpos = -1; in gst_multi_handle_sink_new_client_position()
1598 result = client->bufpos; in gst_multi_handle_sink_new_client_position()
1616 client->debug, client, client->bufpos, sink->recover_policy); in gst_multi_handle_sink_recover_client()
[all …]
Dgstmultifdsink.c697 if (mhclient->bufpos == -1) { in gst_multi_fd_sink_handle_client_write()
722 mhclient->bufpos = position; in gst_multi_fd_sink_handle_client_write()
736 buf = g_array_index (mhsink->bufqueue, GstBuffer *, mhclient->bufpos); in gst_multi_fd_sink_handle_client_write()
737 mhclient->bufpos--; in gst_multi_fd_sink_handle_client_write()
751 mhclient->debug, client, mhclient->bufpos); in gst_multi_fd_sink_handle_client_write()
Dgstmultisocketsink.c846 if (mhclient->bufpos == -1) { in gst_multi_socket_sink_handle_client_write()
870 mhclient->bufpos = position; in gst_multi_socket_sink_handle_client_write()
883 buf = g_array_index (mhsink->bufqueue, GstBuffer *, mhclient->bufpos); in gst_multi_socket_sink_handle_client_write()
884 mhclient->bufpos--; in gst_multi_socket_sink_handle_client_write()
898 mhclient->debug, client, mhclient->bufpos); in gst_multi_socket_sink_handle_client_write()
/third_party/iowow/src/kv/
Diwal.c34 uint32_t bufpos; /**< Current position in buffer */ member
139 if (wal->bufpos) { in _flush_wl()
140 uint32_t crc = wal->check_cp_crc ? iwu_crc32(wal->buf, wal->bufpos, 0) : 0; in _flush_wl()
144 .len = wal->bufpos in _flush_wl()
146 size_t wz = wal->bufpos + sizeof(WBSEP); in _flush_wl()
151 wal->bufpos = 0; in _flush_wl()
173 if (bufsz - wal->bufpos < oplen) { in _write_wl()
177 assert(bufsz - wal->bufpos >= oplen); in _write_wl()
178 memcpy(wal->buf + wal->bufpos, op, (size_t) oplen); in _write_wl()
179 wal->bufpos += oplen; in _write_wl()
[all …]
/third_party/eudev/src/libudev/
Dlibudev-monitor.c554 ssize_t bufpos; in udev_monitor_receive_device() local
622 bufpos = buf.nlh.properties_off; in udev_monitor_receive_device()
628 bufpos = strlen(buf.raw) + 1; in udev_monitor_receive_device()
629 if ((size_t)bufpos < sizeof("a@/d") || bufpos >= buflen) { in udev_monitor_receive_device()
641 … udev_device = udev_device_new_from_nulstr(udev_monitor->udev, &buf.raw[bufpos], buflen - bufpos); in udev_monitor_receive_device()
/third_party/ffmpeg/libavformat/
Doggdec.c103 memcpy(os->buf, ost->streams[i].buf, os->bufpos); in ogg_save()
165 os->bufpos = 0; in ogg_reset()
303 if (os->bufsize - os->bufpos < size) { in buf_realloc()
399 readout_buf = os->buf + os->bufpos; in ogg_read_page()
452 memcpy(os->buf + os->bufpos, readout_buf, size); in ogg_read_page()
461 os->bufpos += size; in ogg_read_page()
465 memset(os->buf + os->bufpos, 0, AV_INPUT_BUFFER_PADDING_SIZE); in ogg_read_page()
527 os->codec = ogg_find_codec(os->buf, os->bufpos); in ogg_packet()
621 if(os->pstart == os->bufpos) in ogg_packet()
622 os->bufpos = os->pstart = 0; in ogg_packet()
Doggdec.h64 unsigned int bufpos; member
/third_party/openssl/crypto/asn1/
Dbio_asn1.c47 int bufpos; member
196 ret = BIO_write(next, ctx->buf + ctx->bufpos, ctx->buflen); in asn1_bio_write()
202 ctx->bufpos += ret; in asn1_bio_write()
204 ctx->bufpos = 0; in asn1_bio_write()
/third_party/toybox/lib/
Ddeflate.c67 int bufpos = bb->bitpos>>3; in bitbuf_bit() local
69 if (bufpos == bb->len) { in bitbuf_bit()
71 bufpos = 0; in bitbuf_bit()
74 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; in bitbuf_bit()

12