comparison directive.c @ 109:4483a14ee101

Make -Wcomment work again
author David A. Holland
date Tue, 11 Jun 2013 12:26:20 -0400
parents 343af355df1b
children a0a86380456e
comparison
equal deleted inserted replaced
108:0921c47b4f22 109:4483a14ee101
540 complain_failed(); 540 complain_failed();
541 } 541 }
542 } else { 542 } else {
543 incomment = true; 543 incomment = true;
544 } 544 }
545 pos++;
545 } else if (line[pos] == '*' && line[pos+1] == '/') { 546 } else if (line[pos] == '*' && line[pos+1] == '/') {
546 if (incomment) { 547 if (incomment) {
547 incomment = false; 548 incomment = false;
548 } else { 549 } else {
549 /* stray end-comment; should we care? */ 550 /* stray end-comment; should we care? */
550 } 551 }
552 pos++;
551 } 553 }
552 if (line[pos] == '\n') { 554 if (line[pos] == '\n') {
553 p2.line++; 555 p2.line++;
554 p2.column = 0; 556 p2.column = 0;
555 } else { 557 } else {