projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a880c9
)
Remove redundant assignments to curr_pos.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 13 Jun 2012 07:45:40 +0000
(09:45 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 14 Jun 2012 07:32:56 +0000
(09:32 +0200)
diagnosticposvf() handles this.
diagnostic.c
patch
|
blob
|
history
diff --git
a/diagnostic.c
b/diagnostic.c
index
65ba449
..
9ac7ecb
100644
(file)
--- a/
diagnostic.c
+++ b/
diagnostic.c
@@
-238,7
+238,6
@@
static void diagnosticposvf(source_position_t const *const pos, char const *cons
static void errorvf(const source_position_t *pos,
const char *const fmt, va_list ap)
{
- curr_pos = pos;
++error_count;
diagnosticposvf(pos, "error", fmt, ap);
fputc('\n', stderr);
@@
-293,7
+292,6
@@
void internal_errorf(const source_position_t *pos, const char *const fmt, ...)
{
va_list ap;
va_start(ap, fmt);
- curr_pos = pos;
internal_errorvf(pos, fmt, ap);
va_end(ap);
abort();