소스 검색

Declaration of items[] made static to avoid name conflict with ra_items.c
Core allocation macros added.

bal 40 년 전
부모
커밋
7351e38ed5
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      util/ego/ra/ra.c

+ 6 - 1
util/ego/ra/ra.c

@@ -23,8 +23,13 @@
 #include "ra_xform.h"
 
 
+#define newrabx()	(bext_p)	newstruct(bext_ra)
+#define newralpx()	(lpext_p)	newstruct(lpext_ra)
+#define oldrabx(x)	oldstruct(bext_ra,x)
+#define oldralpx(x)	oldstruct(lpext_ra,x)
+
 short alloc_id;
-item_p items[NRITEMTYPES];
+static item_p items[NRITEMTYPES];
 int nrinstrs;
 line_p *instrmap;