Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.49
 
1.50
 
MAIN:ragge:20120819104712
 
local2.c
_>722722         printf("        %s " LABFMT "\n", ccbranches[o-EQ], lab);
 723723 }
 724724 
<> 725+/*
  726+ * gcc xasm has the ability to generate different asm types
  727+ * via some magic.
  728+ *
  729+ * Only support AT&T asm for now.
  730+ */
  731+static char *
  732+adjustname(char *s)
  733+{
  734+        int len = strlen(s);
  735+        char *d = tmpalloc(len+1);
  736+        int i, j, flvl, tlvl;
  737+
  738+        flvl = tlvl = 0;
  739+        for (i = j = 0; i < len; i++) {
  740+                switch (s[i]) {
  741+                case '{': tlvl++; break;
  742+                case '}': if (tlvl)tlvl--; else flvl--; break;
  743+                case '|': tlvl--; flvl++; break;
  744+                default:
  745+                        if (flvl == 0)
  746+                                d[j++] = s[i];
  747+                        break;
  748+                }
  749+        }
  750+        d[j] = 0;
  751+        return d;
  752+}
  753+
725754 static void
 726755 fixcalls(NODE *p, void *arg)
 727756 {
     
 !
732761                 if (p->n_stsize+p2autooff > stkpos)
 733762                         stkpos = p->n_stsize+p2autooff;
 734763                 break;
<> 764+        case XASM:
  765+                p->n_name = adjustname(p->n_name);
  766+                break;
<_735767         }
 736768 }
 737769 
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-30 14:01 +0100