Kaynağa Gözat

Moved some macros to ../share, changed lint flags

ceriel 33 yıl önce
ebeveyn
işleme
8b397ebf05
3 değiştirilmiş dosya ile 3 ekleme ve 8 silme
  1. 1 1
      util/ego/ud/Makefile
  2. 2 4
      util/ego/ud/ud_const.c
  3. 0 3
      util/ego/ud/ud_defs.c

+ 1 - 1
util/ego/ud/Makefile

@@ -7,7 +7,7 @@ SHR=../share
 LDFLAGS=-i
 CPPFLAGS=-DVERBOSE -DNOTCOMPACT
 CFLAGS=$(CPPFLAGS) -O
-LINTFLAGS=-hbac
+LINTFLAGS=-hbu
 
 CFILES=\
 ud.c ud_defs.c ud_const.c ud_copy.c ud_aux.c

+ 2 - 4
util/ego/ud/ud_const.c

@@ -6,7 +6,7 @@
 /* C O N S T A N T   P R O P A G A T I O N */
 
 #include "../share/types.h"
-#include "../ud/ud.h"
+#include "ud.h"
 #include "../share/debug.h"
 #include "../share/global.h"
 #include "../share/alloc.h"
@@ -18,14 +18,12 @@
 #include "../../../h/em_mnem.h"
 #include "../../../h/em_pseu.h"
 #include "../../../h/em_spec.h"
-#include "../ud/ud_defs.h"
+#include "ud_defs.h"
 #include "ud_const.h"
 #include "ud_aux.h"
 
 
-#define CHANGE_INDIR(p)	(p->p_change->c_flags & CF_INDIR)
 #define IS_REG(v)	(locals[TO_LOCAL(v)]->lc_flags & LCF_REG)
-#define BODY_KNOWN(p)	(p->p_flags1 & (byte) PF_BODYSEEN)
 #define CALLS_UNKNOWN(p) (p->p_flags1 & (byte) PF_CALUNKNOWN)
 
 

+ 0 - 3
util/ego/ud/ud_defs.c

@@ -22,9 +22,6 @@
 #include "../share/alloc.h"
 #include "../share/aux.h"
 
-#define BODY_KNOWN(p)	(p->p_flags1 & (byte) PF_BODYSEEN)
-#define CHANGE_INDIR(p)	(p->p_change->c_flags & CF_INDIR)
-
 short nrdefs;		/* total number of definitions */
 short nrexpldefs;	/* number of explicit definitions */
 line_p *defs;