Lines Matching defs:buf
57 char buf[4096];
66 buf[bufp] = 0;
67 line = data_node_string(eat_asterisk_space(buf));
74 if (bufp + 1 >= sizeof(buf))
77 buf[bufp++] = c;
140 static char *next_token2(FILE *f, char *buf, size_t buf_len, struct data_node *doc)
156 if (i == 0 || buf[i-1] != '\\')
161 buf[i++] = c;
182 buf[i++] = c;
190 buf[i++] = c;
211 buf[i] = 0;
212 return buf;
217 static char buf[4096];
219 return next_token2(f, buf, sizeof(buf), doc);
239 char buf[256], *fname;
243 if (!fscanf(f, "%s\n", buf))
246 if (buf[0] != '"')
249 fname = buf + 1;
251 if (!buf[0])
381 char buf[2][2048] = {};
386 if (!(token = next_token2(f, buf[cur_buf], sizeof(buf[cur_buf]), NULL)))
389 if (!strcmp(token, "=") && !strcmp(buf[prev_buf], arr_id)) {
400 if (strcmp(buf[cur_buf], "]") && strcmp(buf[cur_buf], "[")) {
550 static void macro_get_string(FILE *f, char *buf, char *buf_end)
553 char *buf_start = buf;
560 *buf = 0;
563 if (buf == buf_start || buf[-1] != '\\') {
564 *buf = 0;
567 buf[-1] = '"';
570 if (buf < buf_end)
571 *(buf++) = c;
576 static void macro_get_val(FILE *f, char *buf, size_t buf_len)
579 char *buf_end = buf + buf_len - 1;
584 macro_get_string(f, buf, buf_end);
592 buf--;
594 *buf = 0;
599 *buf = 0;
605 if (buf < buf_end)
606 *(buf++) = c;