Lines Matching refs:line
82 struct line struct
88 struct line *next; /* Next in linked list. */ argument
102 struct line *line_start; /* Head of list of pointers to lines. */
103 struct line *curr_line; /* The line start record currently in use. */
110 static void save_line_to_file (const struct cstring *line);
280 clear_line_control (struct line *p) in clear_line_control()
289 static struct line *
292 struct line *p = xmalloc (sizeof *p); in new_line_control()
306 struct line *l; in keep_new_line()
392 for (struct line *l = buf->line_start; l;) in free_buffer()
394 struct line *n = l->next; in free_buffer()
521 struct cstring *line; /* Return value. */ in remove_line() local
522 struct line *l; /* For convenience. */ in remove_line()
540 line = &l->starts[l->retrieve_index]; in remove_line()
557 return line; in remove_line()
579 struct line *l; in find_line()
624 struct cstring *line; in write_to_file() local
642 line = remove_line (); in write_to_file()
643 if (line == nullptr) in write_to_file()
650 save_line_to_file (line); in write_to_file()
659 struct cstring *line; in dump_rest_of_file() local
661 while ((line = remove_line ()) != nullptr) in dump_rest_of_file()
662 save_line_to_file (line); in dump_rest_of_file()
705 struct cstring *line = remove_line (); in process_line_count() local
706 if (line == nullptr) in process_line_count()
708 save_line_to_file (line); in process_line_count()
751 struct cstring *line; /* From input file. */ in process_regexp() local
767 line = find_line (++current_line); in process_regexp()
768 if (line == nullptr) in process_regexp()
782 line_len = line->len; in process_regexp()
783 if (line->str[line_len - 1] == '\n') in process_regexp()
785 ret = re_search (&p->re_compiled, line->str, line_len, in process_regexp()
794 line = remove_line (); in process_regexp()
796 save_line_to_file (line); in process_regexp()
807 line = find_line (++current_line); in process_regexp()
808 if (line == nullptr) in process_regexp()
822 line_len = line->len; in process_regexp()
823 if (line->str[line_len - 1] == '\n') in process_regexp()
825 ret = re_search (&p->re_compiled, line->str, line_len, in process_regexp()
1004 save_line_to_file (const struct cstring *line) in save_line_to_file() argument
1006 idx_t l = fwrite (line->str, sizeof (char), line->len, output_stream); in save_line_to_file()
1007 if (l != line->len) in save_line_to_file()
1013 bytes_written += line->len; in save_line_to_file()