X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Fperlread.c;h=8dee361bbab706b19e065921671411575e86afc3;hb=c8a333d48c42e2a51f43fd42ef79e23d40a565a7;hp=152beebd4c753a9f488370fb6e42661d528897cd;hpb=c8504e6a297055834322bd89b52e8410f549f337;p=idzebra-moved-to-github.git diff --git a/recctrl/perlread.c b/recctrl/perlread.c index 152beeb..8dee361 100644 --- a/recctrl/perlread.c +++ b/recctrl/perlread.c @@ -1,4 +1,4 @@ -/* $Id: perlread.c,v 1.2 2002-11-15 22:01:42 adam Exp $ +/* $Id: perlread.c,v 1.4 2002-11-18 13:11:30 pop Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -21,7 +21,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA */ #if HAVE_PERL -#define PERL_IMPLICIT_CONTEXT #include "perlread.h" #include "EXTERN.h" #include "perl.h" @@ -170,12 +169,12 @@ void grs_perl_endf(struct perl_context *context, off_t offset) { } /* Get pointers from the context. Easyer to wrap this by SWIG */ -data1_handle grs_perl_get_dh(struct perl_context *context) { - return(context->dh); +data1_handle *grs_perl_get_dh(struct perl_context *context) { + return(&context->dh); } -NMEM grs_perl_get_mem(struct perl_context *context) { - return(context->mem); +NMEM *grs_perl_get_mem(struct perl_context *context) { + return(&context->mem); } /* Set the result in the context */