Pārlūkot izejas kodu

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

bal 40 gadi atpakaļ
vecāks
revīzija
7351e38ed5
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  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;