Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.25
 
1.26
 
MAIN:gmcgarry:20090813080125
 
token.c
_>131131         --ifiles->curptr;
 132132         if (ifiles->curptr < ifiles->bbuf)
 133133                 error("pushback buffer full");
<>134 -        *ifiles->curptr = c;
  134+        *ifiles->curptr = (usch)c;
135135 }
 136136 
 137137 /*
     
 !
290290                         }
 291291                         i = 0;
 292292                         do {
<>293 -                                yytext[i++] = ch;
  293+                                yytext[i++] = (usch)ch;
294294                                 ch = NXTCH();
 295295                                 if (ch < 0)
 296296                                         return;
     
 !
316316 
 317317 zagain:
 318318         yyp = 0;
<>319 -        yytext[yyp++] = ch = inch();
  319+        ch = inch();
  320+        yytext[yyp++] = (usch)ch;
320321         switch (ch) {
 321322         case -1:
 322323                 return 0;
     
 !
335336 ppnum:          for (;;) {
 336337                         ch = inch();
 337338                         if (spechr[ch] & C_EP) {
<>338 -                                yytext[yyp++] = ch;
  339+                                yytext[yyp++] = (usch)ch;
339340                                 ch = inch();
 340341                                 if (ch == '-' || ch == '+') {
<>341 -                                        yytext[yyp++] = ch;
  342+                                        yytext[yyp++] = (usch)ch;
342343                                 } else
 343344                                         unch(ch);
 344345                                 continue;
 345346                         }
 346347                         if ((spechr[ch] & C_ID) || ch == '.') {
<>347 -                                yytext[yyp++] = ch;
  348+                                yytext[yyp++] = (usch)ch;
348349                                 continue;
 349350                         }
 350351                         break;
     
 !
358359 chlit:          
 359360                 for (;;) {
 360361                         if ((ch = inch()) == '\\') {
<>361 -                                yytext[yyp++] = ch;
 362 -                                yytext[yyp++] = inch();
  362+                                yytext[yyp++] = (usch)ch;
  363+                                yytext[yyp++] = (usch)inch();
363364                                 continue;
 364365                         } else if (ch == '\n') {
 365366                                 /* not a constant */
     
 !
368369                                 ch = '\'';
 369370                                 goto any;
 370371                         } else
<>371 -                                yytext[yyp++] = ch;
  372+                                yytext[yyp++] = (usch)ch;
372373                         if (ch == '\'')
 373374                                 break;
 374375                 }
     
 !
381382         case ' ':
 382383         case '\t':
 383384                 while ((ch = inch()) == ' ' || ch == '\t')
<>384 -                        yytext[yyp++] = ch;
  385+                        yytext[yyp++] = (usch)ch;
385386                 unch(ch);
 386387                 yytext[yyp] = 0;
 387388                 return(WSPACE);
 388389 
 389390         case '/':
 390391                 if ((ch = inch()) == '/') {
 391392                         do {
<>392 -                                yytext[yyp++] = ch;
  393+                                yytext[yyp++] = (usch)ch;
393394                                 ch = inch();
 394395                         } while (ch && ch != '\n');
 395396                         yytext[yyp] = 0;
     
 !
430431         case '.':
 431432                 ch = inch();
 432433                 if (isdigit(ch)) {
<>433 -                        yytext[yyp++] = ch;
  434+                        yytext[yyp++] = (usch)ch;
434435                         goto ppnum;
 435436                 } else {
 436437                         unch(ch);
     
 !
442443         strng:
 443444                 for (;;) {
 444445                         if ((ch = inch()) == '\\') {
<>445 -                                yytext[yyp++] = ch;
 446 -                                yytext[yyp++] = inch();
  446+                                yytext[yyp++] = (usch)ch;
  447+                                yytext[yyp++] = (usch)inch();
447448                                 continue;
 448449                         } else
<>449 -                                yytext[yyp++] = ch;
  450+                                yytext[yyp++] = (usch)ch;
450451                         if (ch == '\"')
 451452                                 break;
 452453                 }
     
 !
455456 
 456457         case 'L':
 457458                 if ((ch = inch()) == '\"') {
<>458 -                        yytext[yyp++] = ch;
  459+                        yytext[yyp++] = (usch)ch;
459460                         goto strng;
 460461                 } else if (ch == '\'') {
<>461 -                        yytext[yyp++] = ch;
  462+                        yytext[yyp++] = (usch)ch;
462463                         goto chlit;
 463464                 }
 464465                 unch(ch);
     
 !
481482                 for (;;) { /* get chars */
 482483                         ch = inch();
 483484                         if (isalpha(ch) || isdigit(ch) || ch == '_') {
<>484 -                                yytext[yyp++] = ch;
  485+                                yytext[yyp++] = (usch)ch;
485486                         } else {
 486487                                 unch(ch);
 487488                                 break;
     
 !
11291130                 goto out; /* something else, ignore */
 11301131         i = 0;
 11311132         do {
<>1132 -                bp[i++] = ch;
  1133+                bp[i++] = (usch)ch;
<_11331134                 if (i == sizeof(bp)-1)
 11341135                         goto out; /* too long */
 11351136                 ch = inch();
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-09-23 04:21 +0200