From bf896f6b74a48eefddf529de3741a89c742191c3 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 17 Aug 2017 11:03:55 +0000 Subject: [PATCH] Start line/col numbering from 1 (heresy!!) --- include/cyclone/types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index d2f0959c..9f3708ca 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -801,8 +801,8 @@ typedef struct { p.fp = f; \ p.mode = m; \ p.flags = 0; \ - p.line_num = 0; \ - p.col_num = 0; \ + p.line_num = 1; \ + p.col_num = 1; \ p.buf_idx = 0; \ p.tok_start = 0; \ p.tok_end = 0; \ @@ -819,8 +819,8 @@ typedef struct { p.fp = f; \ p.mode = m; \ p.flags = 1; \ - p.line_num = 0; \ - p.col_num = 0; \ + p.line_num = 1; \ + p.col_num = 1; \ p.buf_idx = 0; \ p.tok_start = 0; \ p.tok_end = 0; \