Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.151
 
1.152
 
MAIN:ragge:20060615190523
 
pftn.c
_>10471047  * Write last part of string.
 10481048  */
 10491049 NODE *
<>1050 -strend(struct stri *si)
  1050+strend(char *str)
10511051 {
 10521052         extern int maystr;
 10531053         struct symtab *s;
 10541054         NODE *p;
<> 1055+        int i;
  1056+        char *c;
10551057 
 10561058         /* If an identical string is already emitted, just forget this one */
<>1057 -        si->str = addstring(si->str);   /* enter string in string table */
 1058 -        s = lookup(si->str, SSTRING);   /* check for existance */
  1059+        str = addstring(str);   /* enter string in string table */
  1060+        s = lookup(str, SSTRING);       /* check for existance */
10591061 
 10601062         if (s->soffset == 0 && maystr == 0) { /* No string */
 10611063                 struct strsched *sc;
     
 !
10781080 #ifdef CHAR_UNSIGNED
 10791081         p->n_type = UCHAR+ARY;
 10801082 #endif
<>1081 -        p->n_df->ddim = si->len+1;
  1083+        /* length calculation, used only for sizeof */
  1084+        for (i = 0, c = str; *c; ) {
  1085+                if (*c++ == '\\')
  1086+                        (void)esccon(&c);
  1087+                i++;
  1088+        }
  1089+        p->n_df->ddim = i+1;
<_10821090         p->n_sp = s;
 10831091         return(p);
 10841092 }
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-10-01 22:24 +0200