diff options
author | Neil Booth <neilb@earthling.net> | 2000-04-10 11:08:12 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-04-10 11:08:12 +0000 |
commit | 61474454b453e664f80c0bd93ff4217d58a8dfba (patch) | |
tree | ea7c10d47e64bc4b4b2d6a71203a4f70e05d04fa /gcc/cpphash.h | |
parent | 775afb2516d17b4a3c63ffe7be4d7144a75fb0a1 (diff) | |
download | gcc-61474454b453e664f80c0bd93ff4217d58a8dfba.zip gcc-61474454b453e664f80c0bd93ff4217d58a8dfba.tar.gz gcc-61474454b453e664f80c0bd93ff4217d58a8dfba.tar.bz2 |
cpplex.c (skip_block_comment): Use pointer arithmetic rather than GETC ().
* cpplex.c (skip_block_comment): Use pointer arithmetic rather
than GETC ().
* cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
From-SVN: r33052
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 35d48e8..fb4d913 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -221,6 +221,10 @@ extern unsigned char _cpp_IStable[256]; #define CPP_BUMP_BUFFER_LINE(PBUF) ((PBUF)->lineno++,\ (PBUF)->line_base = (PBUF)->cur) #define CPP_BUMP_LINE(PFILE) CPP_BUMP_BUFFER_LINE(CPP_BUFFER(PFILE)) +#define CPP_BUMP_BUFFER_LINE_CUR(PBUF, CUR) ((PBUF)->lineno++,\ + (PBUF)->line_base = CUR) +#define CPP_BUMP_LINE_CUR(PFILE, CUR) \ + CPP_BUMP_BUFFER_LINE_CUR(CPP_BUFFER(PFILE), CUR) #define CPP_PREV_BUFFER(BUFFER) ((BUFFER)->prev) /* Are we in column 1 right now? Used mainly for -traditional handling |