what you give them. Help stamp out software-hoarding!
-------------------------------------------------------------------------*/
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include "SDCCglobl.h"
-#include "SDCChasht.h"
-#include "SDCCset.h"
+#include "common.h"
#include "SDCCpeeph.h"
-
peepRule *rootRules = NULL;
peepRule *currRule = NULL;
-char *defaultRules =
-{
-#include "SDCCpeeph.rul"
-};
-
static bool matchLine (char *, char *, hTab **);
#define FBYNAME(x) int x (hTab *vars, lineNode *currPl, lineNode *head)
return 0;
}
+/*-----------------------------------------------------------------*/
+/* flat24bitMode - will check to see if we are in flat24 mode */
+/*-----------------------------------------------------------------*/
+FBYNAME(flat24bitMode)
+{
+ return (options.model == MODEL_FLAT24);
+}
+
/*-----------------------------------------------------------------*/
/* labelInRange - will check to see if label %5 is within range */
/*-----------------------------------------------------------------*/
int (*func)(hTab *,lineNode *,lineNode *) ;
} ftab[] = {
{"labelInRange", labelInRange },
- {"operandsNotSame", operandsNotSame }
+ {"operandsNotSame", operandsNotSame },
+ {"24bitMode", flat24bitMode },
};
int i;
else
replaceRule (&spl, mtail,pr);
- /* if it was the start then replace
- the start */
-
/* if restart rule type then
start at the top again */
if (pr->restart)
char *s;
/* read in the default rules */
- readRules(defaultRules);
+ readRules(port->peep.default_rules);
/* if we have any additional file read it too */
if (options.peep_file) {