Quick Search:

Mode

Context

Displaying 6 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.103
 
1.104
 
MAIN:plunky:20121108111136
 
token.c
_>356356 str:                    PUTCH(ch);
 357357                         while ((ch = inch()) != '\"') {
 358358                                 if (ch == '\\') {
 359359                                         PUTCH('\\');
 360360                                         ch = inch();
 361361                                 }
<>362 -                                if (ch == '\n')
  362+                                if (ch == '\n') {
  363+                                        warning("unterminated string literal");
363364                                         goto xloop;
<> 365+                                }
364366                                 if (ch == -1)
 365367                                         return;
 366368                                 PUTCH(ch);
 367369                         }
 368370                         PUTCH(ch);
 369371                         break;
     
 !
390392                                         if (ch == -1)
 391393                                                 return;
 392394                                 }
 393395                         } while ((spechr[ch] & C_ID) || (ch == '.'));
 394396                         goto xloop;
 395397 
<>396 -                case '\'': /* character literal */
  398+                case '\'': /* character constant */
397399 con:                    PUTCH(ch);
 398400                         if (tflag)
 399401                                 break; /* character constants ignored */
 400402                         while ((ch = inch()) != '\'') {
 401403                                 if (ch == '\\') {
 402404                                         PUTCH('\\');
 403405                                         ch = inch();
 404406                                 }
<>405 -                                if (ch == '\n')
  407+                                if (ch == '\n') {
  408+                                        warning("unterminated character constant");
406409                                         goto xloop;
<> 410+                                }
<_407411                                 if (ch == -1)
 408412                                         return;
 409413                                 PUTCH(ch);
 410414                         }
 411415                         PUTCH(ch);
 412416                         break;
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-31 12:19 +0200