Skip to content

Commit

Permalink
Avoid fetching LD
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Dec 30, 2024
1 parent 3a5b359 commit eb264c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pl-copyterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#define AC_TERM_WALK_LRD 1
#include "pl-termwalk.c"

#undef LD
#define LD LOCAL_LD

/*******************************
* COPY TERM *
Expand Down Expand Up @@ -178,8 +180,11 @@ mark_vars(DECL_LD term_t t, int set)
}


#define share_for_duplicate(t, options) \
LDFUNC(share_for_duplicate, t, options)

static bool
share_for_duplicate(const Functor t, const cp_options *options)
share_for_duplicate(DECL_LD const Functor t, const cp_options *options)
{ for(size_t i=0; i<options->nshare; i++)
{ Word p = valTermRef(options->share+i);
if ( t == valueTerm(*p) )
Expand Down

0 comments on commit eb264c6

Please sign in to comment.