Lines Matching defs:line

101 	struct archive_string	 line;
312 archive_string_free(&mtree->line);
361 * | Previous lines | line being parsed nl extra |
380 * Read bytes more while it does not reach the end of line.
388 * Place an arbitrary limit on the line length.
389 * mtree is almost free-form input and without line length limits,
533 /* Test whether there are blank characters in the line. */
553 /* Test whether there is a correct key in the line. */
635 /* The form D accepts only a single line for an entry. */
708 /* The terminal character of the line should be
709 * a new line character, '\r\n' or '\n'. */
720 /* Skip comment or empty line. */
727 /* A continuance line; the terminal
728 * character of previous line was '\' character. */
753 /* This line is not `form D'. */
763 /* This line continues. */
777 /* This line continues. */
783 /* This line continues. */
789 /* Test next line. */
806 * attributes for each file. For those entries, only the last line
810 * The parsing is done in two steps. First, it is decided if a line
812 * Otherwise, the options of the line are merged with the current
862 struct mtree_option **global, const char *line)
868 line += 4;
870 next = line + strspn(line, " \t\r\n");
873 line = next;
874 next = line + strcspn(line, " \t\r\n");
875 eq = strchr(line, '=');
877 len = next - line;
879 len = eq - line;
881 remove_option(global, line, len);
882 r = add_option(a, global, line, next - line);
885 line = next;
891 struct mtree_option **global, const char *line)
896 line += 6;
897 if (strchr(line, '=') != NULL) {
904 next = line + strspn(line, " \t\r\n");
907 line = next;
908 len = strcspn(line, " \t\r\n");
910 if (len == 3 && strncmp(line, "all", 3) == 0) {
914 remove_option(global, line, len);
917 line += len;
923 struct mtree_option **global, const char *line, ssize_t line_len,
950 /* Filename is last item on line. */
953 char last_character = line[line_len - 1];
964 name = line;
966 if (line[i] == '\r'
967 || line[i] == '\n'
968 || line[i] == '\t'
969 || line[i] == ' ') {
970 name = line + i + 1;
973 name_len = line + line_len - name;
976 /* Filename is first item on line */
977 name_len = strcspn(line, " \t\r\n");
978 name = line;
979 line += name_len;
980 end = line + line_len;
982 /* name/name_len is the name within the line. */
983 /* line..end brackets the entire line except the name */
1014 next = line + strspn(line, " \t\r\n");
1019 line = next;
1020 next = line + strcspn(line, " \t\r\n");
1021 eq = strchr(line, '=');
1023 len = next - line;
1025 len = eq - line;
1027 remove_option(&entry->options, line, len);
1028 r = add_option(a, &entry->options, line, next - line);
1031 line = next;
1105 "Can't parse line %ju", counter);
1192 /* Parse options from this line. */
1405 * Each line contains a sequence of keywords.
2067 * Returns length of line (including trailing newline)
2069 * point to first character of line.
2082 /* Accumulate line in a line buffer. */
2101 if (archive_string_ensure(&mtree->line,
2108 memcpy(mtree->line.s + total_size, t, bytes_read);
2111 mtree->line.s[total_size] = '\0';
2113 for (u = mtree->line.s + find_off; *u; ++u) {
2116 *start = mtree->line.s;
2128 mtree->line.s[total_size] = '\0';
2136 find_off = u - mtree->line.s;