Thank you! This fixed my edc build problem in editje. Thanks. Daniel Juyung Seo (SeoZ)
On Mon, Mar 21, 2011 at 6:22 PM, Enlightenment SVN <[email protected]> wrote: > Log: > epp output -> dont add extra spaces for macros! damnit! :) > > > > Author: raster > Date: 2011-03-21 02:22:27 -0700 (Mon, 21 Mar 2011) > New Revision: 57929 > Trac: http://trac.enlightenment.org/e/changeset/57929 > > Modified: > trunk/edje/src/bin/epp/cpplib.c > > Modified: trunk/edje/src/bin/epp/cpplib.c > =================================================================== > --- trunk/edje/src/bin/epp/cpplib.c 2011-03-21 03:00:33 UTC (rev 57928) > +++ trunk/edje/src/bin/epp/cpplib.c 2011-03-21 09:22:27 UTC (rev 57929) > @@ -970,7 +970,7 @@ > } > else if (c == '@' && CPP_BUFFER(pfile)->has_escapes > && is_hor_space[PEEKN(1)]) > - FORWARD(2); > + FORWARD(1); > else > return; > } > @@ -2743,6 +2743,8 @@ > continue; > if (i < nargs || (nargs == 0 && i == 0)) > { > + unsigned char *bp; > + > /* if we are working on last arg which absorbs rest of > args... */ > if (i == nargs - 1 && defn->rest_args) > rest_args = 1; > @@ -2750,6 +2752,20 @@ > token = macarg(pfile, rest_args); > args[i].raw_length = CPP_WRITTEN(pfile) - args[i].raw; > args[i].newlines = 0; /* FIXME */ > + bp = ARG_BASE + args[i].raw; > + while (is_space[(unsigned char)(*bp)]) { bp++; } > + args[i].raw_length -= bp - (ARG_BASE + args[i].raw); > + args[i].raw = bp - ARG_BASE; > + if (args[i].raw_length > 0) > + { > + bp = ARG_BASE + args[i].raw + args[i].raw_length - 1; > + while (is_space[(unsigned char)(*bp)]) > + { > + bp--; > + args[i].raw_length--; > + if (args[i].raw_length < 1) break; > + } > + } > } > else > token = macarg(pfile, 0); > @@ -3051,7 +3067,6 @@ > if (totlen > xbuf_len) > abort(); > } > - > /* if there is anything left of the definition > * after handling the arg list, copy that in too. */ > > @@ -3067,7 +3082,6 @@ > > xbuf[totlen] = 0; > xbuf_len = totlen; > - > } > > pfile->output_escapes--; > @@ -4817,10 +4831,9 @@ > } > else if (is_space[c]) > { > - CPP_RESERVE(pfile, 2); > + CPP_RESERVE(pfile, 1); > if (pfile->output_escapes) > CPP_PUTC_Q(pfile, '@'); > - CPP_PUTC_Q(pfile, c); > return CPP_HSPACE; > } > } > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
