Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.119
 
1.120
 
MAIN:ragge:20110127135707
 
cpp.c
_>10721072 kfind(struct symtab *sp)
 10731073 {
 10741074         struct symtab *nl;
<>1075 -        const usch *argary[MAXARGS+1];
 1076 -        usch *bp, *sbp;
  1075+        const usch *argary[MAXARGS+1], *cbp;
  1076+        usch *sbp;
10771077         int c, o, chkf;
 10781078 
 10791079         DPRINT(("%d:enter kfind(%s)\n",0,sp->namep));
 10801080         IMP("KFIND");
<>1081 -        sbp = stringbuf;
10821081         if (*sp->value == OBJCT) {
 10831082                 if (sp == filloc) {
 10841083                         unpstr(sheap("\"%s\"", ifiles->fname));
     
 !
10881087                         return 1;
 10891088                 }
 10901089                 IMP("END1");
<>1091 -                bp = stringbuf;
10921090                 cunput(WARN);
<>1093 -                for (bp = (usch *)sp->value-1; *bp; bp--)
 1094 -                        cunput(*bp);
  1091+                for (cbp = (usch *)sp->value-1; *cbp; cbp--)
  1092+                        cunput(*cbp);
10951093                 insblock(addmac(sp));
 10961094                 IMP("ENDX");
 10971095                 exparg(1);
 10981096 
<>1099 -upp:            sbp = bp = stringbuf;
  1097+upp:            sbp = stringbuf;
11001098                 chkf = 1;
 11011099                 if (obufp != 0)
 11021100                         lastoch = outbuf[obufp-1];
     
 !
11061104                         switch (c) {
 11071105                         case STRING:
 11081106                                 /* Remove embedded directives */
<>1109 -                                for (bp = (usch *)yytext; *bp; bp++) {
 1110 -                                        if (*bp == EBLOCK)
 1111 -                                                bp++;
 1112 -                                        else if (*bp != CONC)
 1113 -                                                savch(*bp);
  1107+                                for (cbp = (usch *)yytext; *cbp; cbp++) {
  1108+                                        if (*cbp == EBLOCK)
  1109+                                                cbp++;
  1110+                                        else if (*cbp != CONC)
  1111+                                                savch(*cbp);
11141112                                 }
 11151113                                 break;
 11161114 
     
 !
11671165         /* Is a function-like macro */
 11681166 
 11691167         /* Search for '(' */
<>1170 -        bp = stringbuf;
  1168+        sbp = stringbuf;
11711169         while (iswsnl(c = cinput()))
 11721170                 savch(c);
 11731171         savch(0);
<>1174 -        stringbuf = bp;
  1172+        stringbuf = sbp;
11751173         if (c != '(') {
 11761174                 cunput(c);
<>1177 -                unpstr(bp);
  1175+                unpstr(sbp);
11781176                 return 0; /* Failed */
 11791177         }
 11801178 
 11811179         /* Found one, output \n to be in sync */
<>1182 -        for (; *bp; bp++) {
 1183 -                if (*bp == '\n')
  1180+        for (; *sbp; sbp++) {
  1181+                if (*sbp == '\n')
11841182                         putch('\n'), ifiles->lineno++;
 11851183         }
 11861184 
     
 !
11891187                 error("readargs");
 11901188 
 11911189         c = addmac(sp);
<>1192 -        bp = stringbuf;
  1190+        sbp = stringbuf;
11931191         cunput(WARN);
 11941192 
 11951193         IMP("KEXP");
     
 !
11981196         insblock(c);
 11991197         IMP("KBLK");
 12001198 
<>1201 -        stringbuf = bp;
  1199+        stringbuf = sbp;
12021200 
 12031201         exparg(1);
 12041202 
     
 !
19351933 usch *
 19361934 xstrdup(const usch *str)
 19371935 {
<>1938 -        size_t len = strlen((char *)str)+1;
  1936+        size_t len = strlen((const char *)str)+1;
19391937         usch *rv;
 19401938 
 19411939         if ((rv = malloc(len)) == NULL)
 19421940                 error("xstrdup: out of mem");
<>1943 -        strlcpy((char *)rv, (char *)str, len);
  1941+        strlcpy((char *)rv, (const char *)str, len);
<_19441942         return rv;
 19451943 }
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-21 10:14 +0200