Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.30
 
1.31
 
MAIN:ragge:20100225154900
 
token.c
_>632632 static void
 633633 prinit(struct initar *it, struct includ *ic)
 634634 {
<>635 -        char *a, *pre, *post;
  635+        const char *pre, *post;
  636+        char *a;
636637 
 637638         if (it->next)
 638639                 prinit(it->next, ic);
     
 !
673674  * Return 0 on success, -1 if file to be included is not found.
 674675  */
 675676 int
<>676 -pushfile(usch *file, usch *fn, int idx, void *incs)
  677+pushfile(const usch *file, const usch *fn, int idx, void *incs)
677678 {
 678679         extern struct initar *initar;
 679680         struct includ ibuf;
     
 !
684685         ic->next = ifiles;
 685686 
 686687         if (file != NULL) {
<>687 -                if ((ic->infil = open((char *)file, O_RDONLY)) < 0)
  688+                if ((ic->infil = open((const char *)file, O_RDONLY)) < 0)
688689                         return -1;
 689690                 ic->orgfn = ic->fname = file;
 690691                 if (++inclevel > MAX_INCLEVEL)
 691692                         error("Limit for nested includes exceeded");
 692693         } else {
 693694                 ic->infil = 0;
<>694 -                ic->orgfn = ic->fname = (usch *)"<stdin>";
  695+                ic->orgfn = ic->fname = (const usch *)"<stdin>";
695696         }
 696697         ic->buffer = ic->bbuf+NAMEMAX;
 697698         ic->curptr = ic->buffer;
     
 !
10521053         if (sloscan() != WSPACE)
 10531054                 error("bad pragma");
 10541055         if (!flslvl)
<>1055 -                putstr((usch *)"#pragma ");
  1056+                putstr((const usch *)"#pragma ");
10561057         do {
 10571058                 c = inch();
 10581059                 if (!flslvl)
     
 !
11061107 }
 11071108 
 11081109 static struct {
<>1109 -        char *name;
  1110+        const char *name;
<_11101111         void (*fun)(void);
 11111112 } ppd[] = {
 11121113         { "ifndef", ifndefstmt },
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-07-10 16:12 +0200