diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-08-01 07:46:08 +0000 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-08-01 07:46:08 +0000 |
commit | b41a259e3f43d1a4ede320fa54e5e7b0f0a551fd (patch) | |
tree | 5d8d579c10495384b90e41ec0afe2d5a6b5a5fe6 /miniany/c4.c | |
parent | b1164d69ea2fc694c4cabdbdee6f4155684ce322 (diff) | |
download | compilertests-b41a259e3f43d1a4ede320fa54e5e7b0f0a551fd.tar.gz compilertests-b41a259e3f43d1a4ede320fa54e5e7b0f0a551fd.tar.bz2 |
added normal comments to c4
Diffstat (limited to 'miniany/c4.c')
-rw-r--r-- | miniany/c4.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/miniany/c4.c b/miniany/c4.c index d8a588a..a3cc0ff 100644 --- a/miniany/c4.c +++ b/miniany/c4.c @@ -97,6 +97,15 @@ void next() ++p; while (*p != 0 && *p != '\n') ++p; } + else if (*p != 0 && *p == '*') { + ++p; + while (*p != 0 && *p != '/') { + if (*p == '\n') line++; + if (*p == '*'); + ++p; + } + ++p; + } else { tk = Div; return; |