Lines Matching refs:buf
138 (void) memcpy(backbuf, pch->buf, backlen);
150 (void) memcpy(och.buf, backbuf, backlen);
177 och.buf[0] = '\\';
186 och.buf[0] = '\n';
193 och.buf[0] = (unsigned char)c;
197 och.len = get_mb(&och.buf[0], (unsigned char)c);
205 extend_buf(char **buf, size_t *size, size_t add)
210 tmp = (char *)Xrealloc(*buf, *size);
211 *buf = tmp;
234 switch (pch->buf[0]) {
237 och.buf[0] = pch->buf[0];
240 och.buf[0] = '\b';
243 och.buf[0] = '\f';
246 och.buf[0] = '\n';
249 och.buf[0] = '\r';
252 och.buf[0] = '\t';
255 och.buf[0] = '\v';
258 och.buf[0] = '\a';
269 c = pch->buf[0];
281 if ((pch->len > 1) || (pch->buf[0] < '0') ||
282 (pch->buf[0] > '7'))
284 c = pch->buf[0];
287 och.buf[0] = (unsigned char)n;
299 och.buf[0] = 'x';
302 c = pch->buf[0];
305 och.buf[0] = 'x';
324 och.buf[0] = (unsigned char)n;
327 c = pch->buf[0];
330 och.buf[0] = (unsigned char)n;
341 och.buf[0] = (unsigned char)n;
345 och.buf[0] = pch->buf[0];
356 char *buf;
370 (void) memcpy(yylval.c.buf, pch->buf, pch->len);
374 switch (pch->buf[0]) {
383 buf = (char *)Xmalloc(buf_size);
387 ((pch->len != 1) || (pch->buf[0] != '\n'))) {
389 extend_buf(&buf, &buf_size, CBUFSIZE);
390 (void) memcpy(buf + buf_pos,
391 pch->buf, pch->len);
395 buf[buf_pos] = '\0';
396 yylval.str = buf;
402 return (pch->buf[0]);
407 buf = (char *)Xmalloc(buf_size);
420 uc = pch->buf[0];
433 extend_buf(&buf, &buf_size,
435 (void) memcpy(buf + buf_pos,
436 pch->buf, pch->len);
440 buf[buf_pos] = '\0';
441 yylval.str = buf;
446 uc = pch->buf[0];
450 buf = (char *)Xmalloc(buf_size);
452 buf[buf_pos++] = (char)uc;
456 (isalpha(uc = pch->buf[0]) ||
459 extend_buf(&buf, &buf_size,
461 buf[buf_pos++] = (char)uc;
466 buf[buf_pos] = '\0';
467 yylval.str = buf;
473 if (strcmp(buf, KW_DOMAIN) == 0) {
474 free(buf);
476 } else if (strcmp(buf, KW_MSGID) == 0) {
477 free(buf);
479 } else if (strcmp(buf, KW_MSGID_PLURAL) == 0) {
480 free(buf);
482 } else if (strcmp(buf, KW_MSGSTR) == 0) {
483 free(buf);
486 free(buf);
493 buf = (char *)Xmalloc(buf_size);
495 buf[buf_pos++] = (char)uc;
499 isdigit(uc = pch->buf[0])) {
501 extend_buf(&buf, &buf_size,
503 buf[buf_pos++] = (char)uc;
508 buf[buf_pos] = '\0';
509 yylval.num = atoi(buf);
510 free(buf);
515 yylval.c.buf[0] = uc;