X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCpeeph.h;h=4fa53a59042c69c45b3d94f9e40806b92fa2d450;hb=ecbc63d3609e647e95fd9303137f4f516dd6fcab;hp=23b4a45196dd178b010da7387fa7ce5a4745c7fa;hpb=b09af35f2f1cde7649d3ac4a6f5d2af6d97895a0;p=fw%2Fsdcc diff --git a/src/SDCCpeeph.h b/src/SDCCpeeph.h index 23b4a451..4fa53a59 100644 --- a/src/SDCCpeeph.h +++ b/src/SDCCpeeph.h @@ -29,28 +29,31 @@ #define MAX_PATTERN_LEN 128 typedef struct lineNode -{ - char *line ; + { + char *line; unsigned int isInline:1; unsigned int isComment:1; unsigned int isDebug:1; 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 *); +lineNode *connectLine (lineNode *, lineNode *); +void initPeepHole (void); void peepHole (lineNode **); #endif