Lines Matching defs:lines

462                      plus zero or more extra lines starting with whitespace.\n\
849 /* Output the original dir lines unless marked for deletion. */
870 parse_input (const struct line_data *lines, int nlines,
886 /* Loop here processing lines from the input file. Each
895 && !strncmp ("INFO-DIR-SECTION ", lines[i].start, prefix_length))
899 next->name = copy_string (lines[i].start + prefix_length,
900 lines[i].size - prefix_length);
915 if (!strncmp ("START-INFO-DIR-ENTRY", lines[i].start, lines[i].size)
916 && sizeof ("START-INFO-DIR-ENTRY") - 1 == lines[i].size)
936 start_of_this_entry = lines[i + 1].start;
940 if ((!strncmp ("* ", lines[i].start, 2)
941 && lines[i].start > start_of_this_entry)
943 lines[i].start, lines[i].size)
944 && sizeof ("END-INFO-DIR-ENTRY") - 1 == lines[i].size))
953 lines[i].start - start_of_this_entry);
954 next->text_len = lines[i].start - start_of_this_entry;
961 lines[i].start, lines[i].size)
962 && sizeof ("END-INFO-DIR-ENTRY") - 1 == lines[i].size)
965 start_of_this_entry = lines[i].start;
968 lines[i].start, lines[i].size)
969 && sizeof ("END-INFO-DIR-ENTRY") - 1 == lines[i].size)
998 parse_dir_file (struct line_data *lines, int nlines, struct node **nodes,
1008 /* Parse node header lines. */
1012 for (j = 0; j < lines[i].size; j++)
1014 if (!strncmp ("Node:", lines[i].start + j, 5))
1016 char *line = lines[i].start;
1032 if (*lines[i].start == 037)
1058 /* Notice the lines that start menus. */
1059 if (*nodes != 0 && !strncmp ("* Menu:", lines[i].start, 7))
1060 (*nodes)->menu_start = lines[i + 1].start;
1065 && *lines[i].start != '\n'
1066 && *lines[i].start != '*'
1067 && *lines[i].start != ' '
1068 && *lines[i].start != '\t')
1078 next->name = copy_string (lines[i].start, lines[i].size);
1091 if (*lines[i].start == '*')
1094 char *p = lines[i].start;
1109 lines[i].delete = 1;
1121 lines[i].delete = 1;
1128 /* Treat lines that start with whitespace
1131 else if (i > 0 && (*lines[i].start == ' ' || *lines[i].start == '\t'))
1133 lines[i].delete = lines[i - 1].delete;
1157 and as a sequence of lines. */
1171 as lines, and as nodes. */
1331 /* Read the Info file and parse it into lines, unless we're deleting. */
1508 /* Divide the text at DATA (of SIZE bytes) into lines.
1509 Return a vector of struct line_data describing the lines.
1519 struct line_data *lines
1530 lines = xrealloc (lines, (lines_allocated + 1)
1533 lines[filled].start = &data[i];
1534 lines[filled].add_entries_before = 0;
1535 lines[filled].add_sections_before = 0;
1536 lines[filled].delete = 0;
1538 lines[filled - 1].size
1539 = lines[filled].start - lines[filled - 1].start - 1;
1545 lines[filled - 1].size = &data[i] - lines[filled - 1].start - lineflag;
1548 lines[filled].start = NULL;
1549 lines[filled].add_entries_before = NULL;
1550 lines[filled].add_sections_before = 0;
1551 lines[filled].delete = 0;
1552 lines[filled].size = 0;
1555 return lines;