conditional compilation of thread inlines
This commit is contained in:
parent
8b118f1778
commit
a1b58f61e0
@ -15,6 +15,9 @@
|
||||
* *
|
||||
*************************************************************************/
|
||||
|
||||
#ifndef ATOMS_H
|
||||
#define ATOMS_H 1
|
||||
|
||||
#undef EXTERN
|
||||
#ifndef ADTDEFS_C
|
||||
#define EXTERN static
|
||||
@ -114,3 +117,5 @@ typedef struct FunctorEntryStruct
|
||||
} FunctorEntry;
|
||||
|
||||
typedef FunctorEntry *Functor;
|
||||
|
||||
#endif /* ATOMS_H */
|
||||
|
6
H/Heap.h
6
H/Heap.h
@ -811,12 +811,13 @@ Yap_PreAllocCodeSpace(void)
|
||||
return Yap_InitPreAllocCodeSpace();
|
||||
}
|
||||
|
||||
#ifdef ATOMS_H
|
||||
#ifdef THREADS
|
||||
Prop STD_PROTO(Yap_NewThreadPred, (PredEntry *));
|
||||
Prop STD_PROTO(Yap_NewThreadPred, (struct pred_entry *));
|
||||
Prop STD_PROTO(Yap_NewPredPropByFunctor, (Functor, Term));
|
||||
|
||||
EXTERN inline PredEntry *
|
||||
Yap_GetThreadPred(PredEntry *ap)
|
||||
Yap_GetThreadPred(struct pred_entry *ap)
|
||||
{
|
||||
Functor f = ap->FunctorOfPred;
|
||||
Term mod = ap->ModuleOfPred;
|
||||
@ -831,5 +832,6 @@ Yap_GetThreadPred(PredEntry *ap)
|
||||
return RepPredProp(Yap_NewThreadPred(ap));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* HEAP_H */
|
||||
|
Reference in New Issue
Block a user