diff options
author | 2020-07-03 17:58:09 +0000 | |
---|---|---|
committer | 2020-07-03 17:58:09 +0000 | |
commit | e9c69d2b3fe125d945669658cffd50c8741e1c7b (patch) | |
tree | 392c7fc219ab4e6e7d0743529305079e248f2cd8 | |
parent | Use an LFENCE instruction everywhere where we use RDTSC when we are (diff) | |
download | wireguard-openbsd-e9c69d2b3fe125d945669658cffd50c8741e1c7b.tar.xz wireguard-openbsd-e9c69d2b3fe125d945669658cffd50c8741e1c7b.zip |
Increment line number when skipping multi-line comments.
-rw-r--r-- | usr.sbin/btrace/bt_parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/btrace/bt_parse.y b/usr.sbin/btrace/bt_parse.y index 02407d4062c..e8530fd1615 100644 --- a/usr.sbin/btrace/bt_parse.y +++ b/usr.sbin/btrace/bt_parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: bt_parse.y,v 1.14 2020/06/22 13:14:47 kn Exp $ */ +/* $OpenBSD: bt_parse.y,v 1.15 2020/07/03 17:58:09 mpi Exp $ */ /* * Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org> @@ -592,6 +592,8 @@ again: for (pc = 0, c = lgetc(); c != EOF; c = lgetc()) { if (pc == '*' && c == '/') goto again; + else if (c == '\n') + yylval.lineno++; pc = c; } } |