Lines Matching defs:line_buf
986 static char *line_buf = 0;
991 char *copy_p = line_buf;
993 if (line_buf == 0)
996 line_buf = xmalloc (line_buf_size);
999 copy_p = line_buf;
1001 /* Make a copy of the input string in line_buf, expanding as necessary. */
1014 if (copy_p + size - line_buf >= line_buf_size)
1016 int offset = copy_p - line_buf;
1019 line_buf = xrealloc (line_buf, line_buf_size);
1020 copy_p = line_buf + offset;
1032 if (copy_p - line_buf == line_buf_size)
1034 int offset = copy_p - line_buf;
1036 line_buf = xrealloc (line_buf, line_buf_size);
1037 copy_p = line_buf + offset;
1042 if (copy_p + 2 - line_buf >= line_buf_size)
1044 int offset = copy_p - line_buf;
1046 line_buf = xrealloc (line_buf, line_buf_size);
1047 copy_p = line_buf + offset;
1052 return (got_unexpanded ? savestring (line_buf, copy_p - line_buf) : 0);