X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCpeeph.h;h=8ada22285ce4353626d5a48a7d90135df1b4276a;hb=988f106351e5b5e86245c72a795fe7fbfcadd028;hp=a53adc21c768302c3a8e483aa8c747bceb5cacbb;hpb=c819b1e06a731b497ea9e0bfbb6b3b753306a190;p=fw%2Fsdcc diff --git a/src/SDCCpeeph.h b/src/SDCCpeeph.h index a53adc21..8ada2228 100644 --- a/src/SDCCpeeph.h +++ b/src/SDCCpeeph.h @@ -28,30 +28,37 @@ #define MAX_PATTERN_LEN 128 +struct asmLineNode; /* defined in each port */ +struct lineNode; + typedef struct lineNode -{ - char *line ; + { + char *line; + iCode *ic; unsigned int isInline:1; unsigned int isComment:1; unsigned int isDebug:1; + struct asmLineNode *aln; struct lineNode *prev; struct lineNode *next; -} lineNode; + } +lineNode; typedef struct peepRule -{ - lineNode *match ; - lineNode *replace ; - unsigned int restart : 1; + { + lineNode *match; + lineNode *replace; + unsigned int restart:1; char *cond; hTab *vars; struct peepRule *next; -} peepRule; + } +peepRule; -void printLine (lineNode *,FILE *); +void printLine (lineNode *, FILE *); lineNode *newLineNode (char *); -lineNode *connectLine (lineNode *,lineNode *); -void initPeepHole(void); +lineNode *connectLine (lineNode *, lineNode *); +void initPeepHole (void); void peepHole (lineNode **); #endif