1 /*-------------------------------------------------------------------------
2 SDCCpeeph.h - Header file for The peep hole optimizer: for interpreting
5 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1999)
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 In other words, you are welcome to use, share and improve this program.
22 You are forbidden to forbid anyone else to use, share and improve
23 what you give them. Help stamp out software-hoarding!
24 -------------------------------------------------------------------------*/
29 #define MAX_PATTERN_LEN 128
31 typedef struct lineNode
34 unsigned int isInline:1;
35 unsigned int isComment:1;
36 unsigned int isDebug:1;
37 struct lineNode *prev;
38 struct lineNode *next;
41 typedef struct peepRule
45 unsigned int restart : 1;
48 struct peepRule *next;
51 void printLine (lineNode *,FILE *);
52 lineNode *newLineNode (char *);
53 lineNode *connectLine (lineNode *,lineNode *);
54 void peepHole (lineNode **);