summary refs log tree commit diff
path: root/bin/qf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/qf.c')
-rw-r--r--bin/qf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/qf.c b/bin/qf.c
index aac44fa5..ba20483d 100644
--- a/bin/qf.c
+++ b/bin/qf.c
@@ -68,6 +68,8 @@ static void parse(struct Line line) {
 		push(line);
 		return;
 	}
+	char *rest;
+	line.nr = strtoul(line.text, &rest, 10);
 	struct Line prev = {0};
 	if (lines.len) prev = lines.ptr[lines.len-1];
 	if (!prev.path || strcmp(line.path, prev.path)) {
@@ -75,8 +77,6 @@ static void parse(struct Line line) {
 		line.type = File;
 		push(line);
 	}
-	char *rest;
-	line.nr = strtoul(line.text, &rest, 10);
 	if (rest > line.text && rest[0] == ':') {
 		line.type = Match;
 		line.text = &rest[1];
0da932e3d77c4e7776fcf65862b36ec5f62&follow=1'>Use val instead of suboptargJune McEnroe 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe'nohover-highlight'> 2019-05-15Add orderJune McEnroe 2019-05-12Add T suffix in bitJune McEnroe 2019-05-10Highlight yacc and lex files as CJune McEnroe Their %-prefixed directives should probably be highlighted Macro. 2019-05-10Use val instead of suboptargJune McEnroe suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure? 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it. 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe