Lines Matching refs:line
30 char *line = NULL; in main() local
56 if ((len = getline (&line, &line_len, f)) <= 0 in main()
57 || strncmp (line, "# PCRE", 6) != 0) in main()
61 free (line); in main()
67 while ((len = getline (&line, &line_len, f)) > 0) in main()
74 if (line[len - 1] == '\n') in main()
75 line[--len] = '\0'; in main()
77 if (line[0] == '#') in main()
80 if (line[0] == '\0') in main()
89 if (line[0] == '/') in main()
92 p = strrchr (line + 1, '/'); in main()
98 printf ("%zd: Invalid pattern line: %s\n", linenum, line); in main()
107 printf ("%zd: Invalid pattern line: %s\n", linenum, line); in main()
112 if (pattern_alloced < (size_t) (p - line)) in main()
114 pattern = realloc (pattern, p - line); in main()
121 pattern_alloced = p - line; in main()
124 memcpy (pattern, line + 1, p - line - 1); in main()
125 pattern[p - line - 1] = '\0'; in main()
130 if (strncmp (line, " ", 4) == 0) in main()
137 printf ("%zd: No previous valid pattern %s\n", linenum, line); in main()
153 memcpy (string, line + 4, len - 3); in main()
185 if (strcmp (line, "No match") == 0) in main()
197 p = line; in main()
204 printf ("%zd: Invalid line %s\n", linenum, line); in main()
222 || rm[num].rm_eo - rm[num].rm_so != len - (p + 2 - line) in main()
236 free (line); in main()