aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-01-29 12:28:49 -0500
committerMustafa Quraish <[email protected]>2022-01-29 12:28:49 -0500
commit511fd320213dae5add15a05bfbb2eaa68fda2907 (patch)
tree7df47f471495cabeb8276052a8790cf039e3d064
parentStop tests if compilation fails (diff)
downloadcup-511fd320213dae5add15a05bfbb2eaa68fda2907.tar.xz
cup-511fd320213dae5add15a05bfbb2eaa68fda2907.zip
Add separator in `die_location()`
-rw-r--r--cup/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cup/utils.c b/cup/utils.c
index c38b191..79d849e 100644
--- a/cup/utils.c
+++ b/cup/utils.c
@@ -16,6 +16,7 @@ void die(const char *fmt, ...)
void _die_location(char *file, int line, Location loc, const char *fmt, ...)
{
Location_print(stderr, loc);
+ fprintf(stderr, ": ");
va_list args;
va_start(args, fmt);
vfprintf(stderr, fmt, args);