Lines Matching defs:line

101 	struct archive_string	 line;
291 archive_string_free(&mtree->line);
340 * | Previous lines | line being parsed nl extra |
359 * Read bytes more while it does not reach the end of line.
367 * Place an arbitrary limit on the line length.
368 * mtree is almost free-form input and without line length limits,
512 /* Test whether there are blank characters in the line. */
532 /* Test whether there is a correct key in the line. */
614 /* The form D accepts only a single line for an entry. */
687 /* The terminal character of the line should be
688 * a new line character, '\r\n' or '\n'. */
699 /* Skip comment or empty line. */
706 /* A continuance line; the terminal
707 * character of previous line was '\' character. */
732 /* This line is not `form D'. */
742 /* This line continues. */
756 /* This line continues. */
762 /* This line continues. */
768 /* Test next line. */
785 * attributes for each file. For those entries, only the last line
789 * The parsing is done in two steps. First, it is decided if a line
791 * Otherwise, the options of the line are merged with the current
841 struct mtree_option **global, const char *line)
847 line += 4;
849 next = line + strspn(line, " \t\r\n");
852 line = next;
853 next = line + strcspn(line, " \t\r\n");
854 eq = strchr(line, '=');
856 len = next - line;
858 len = eq - line;
860 remove_option(global, line, len);
861 r = add_option(a, global, line, next - line);
864 line = next;
870 struct mtree_option **global, const char *line)
875 line += 6;
876 if (strchr(line, '=') != NULL) {
883 next = line + strspn(line, " \t\r\n");
886 line = next;
887 len = strcspn(line, " \t\r\n");
889 if (len == 3 && strncmp(line, "all", 3) == 0) {
893 remove_option(global, line, len);
896 line += len;
902 struct mtree_option **global, const char *line, ssize_t line_len,
929 /* Filename is last item on line. */
932 char last_character = line[line_len - 1];
943 name = line;
945 if (line[i] == '\r'
946 || line[i] == '\n'
947 || line[i] == '\t'
948 || line[i] == ' ') {
949 name = line + i + 1;
952 name_len = line + line_len - name;
955 /* Filename is first item on line */
956 name_len = strcspn(line, " \t\r\n");
957 name = line;
958 line += name_len;
959 end = line + line_len;
961 /* name/name_len is the name within the line. */
962 /* line..end brackets the entire line except the name */
993 next = line + strspn(line, " \t\r\n");
998 line = next;
999 next = line + strcspn(line, " \t\r\n");
1000 eq = strchr(line, '=');
1002 len = next - line;
1004 len = eq - line;
1006 remove_option(&entry->options, line, len);
1007 r = add_option(a, &entry->options, line, next - line);
1010 line = next;
1084 "Can't parse line %ju", counter);
1171 /* Parse options from this line. */
1384 * Each line contains a sequence of keywords.
2046 * Returns length of line (including trailing newline)
2048 * point to first character of line.
2061 /* Accumulate line in a line buffer. */
2080 if (archive_string_ensure(&mtree->line,
2087 memcpy(mtree->line.s + total_size, t, bytes_read);
2090 mtree->line.s[total_size] = '\0';
2092 for (u = mtree->line.s + find_off; *u; ++u) {
2095 *start = mtree->line.s;
2107 mtree->line.s[total_size] = '\0';
2115 find_off = u - mtree->line.s;