From 973fb57ab88acade67b9dc27bc765ba048f137b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Tue, 22 Mar 2011 16:58:31 +0000 Subject: [PATCH] fix yapor --- H/YapHeap.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/H/YapHeap.h b/H/YapHeap.h index 925db7269..8f12bc879 100755 --- a/H/YapHeap.h +++ b/H/YapHeap.h @@ -189,12 +189,14 @@ extern struct worker_shared Yap_Global; #if defined(YAPOR) || defined(THREADS) #if defined(THREADS) extern struct worker_local *Yap_WLocal[MAX_AGENTS]; -#else -extern struct worker_local *Yap_WLocal; -#endif #define WL (Yap_WLocal[worker_id]) #define FOREIGN_WL(wid) (Yap_WLocal[(wid)]) #else +extern struct worker_local *Yap_WLocal; +#define WL (Yap_WLocal+worker_id) +#define FOREIGN_WL(wid) (Yap_WLocal+wid) +#endif +#else extern struct worker_local Yap_WLocal; #define WL (&Yap_WLocal) #define FOREIGN_WL(wid) (&Yap_WLocal)