Mercurial > hg > CbC > old > device
diff mc-macro.c @ 614:e4e007f4026d
fix #deifne /* line
author | kono |
---|---|
date | Tue, 30 May 2006 21:36:03 +0900 |
parents | af6b9ae79583 |
children | 4e08fbf6754b |
line wrap: on
line diff
--- a/mc-macro.c Wed Apr 19 14:32:36 2006 +0900 +++ b/mc-macro.c Tue May 30 21:36:03 2006 +0900 @@ -666,7 +666,12 @@ while(*chptr++); break; } else if (c=='/'&&chptr[0]=='*') { cheap->ptr--; chptr++; - while((c = *chptr++)) { + for(;;) { + c = *chptr++; + if (!c) { + getline(); + continue; + } if (c=='*'&&chptr[0]=='/') { c = *chptr++; break; }