[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP Perl Module (XS)





--On Tuesday, February 01, 2005 10:14 AM +1100 David J Radunz <david.radunz@staff.netspace.net.au> wrote:

What does line 108 show in your LDAPapi.xs file?
What version of perl are you using to compile with?



<--snip-->

   for (ldap_value_count = 0; ldap_value_count <=ldap_arraylen;
	ldap_value_count++)
   {
      ldap_current_value_sv = av_fetch
(ldap_value_array_av,ldap_value_count,0);
108:  ldap_current_value_char = SvPV(*ldap_current_value_sv,na);
      ldap_pvlen = SvCUR(*ldap_current_value_sv);
      if (strcmp(ldap_current_value_char,"") != 0)
      {
         if (ldap_isa_ber == 1)
         {
            New(1,ldap_current_bval,1,struct berval);
		    ldap_current_bval->bv_len = ldap_pvlen;
		    ldap_current_bval->bv_val = ldap_current_value_char;


<!--snip-->

So line 108 is: ldap_current_value_char = SvPV
(*ldap_current_value_sv,na);

Hm, are you sure this is the XS file and not the .c file?

My line is:

     ldap_current_value_char = SvPV(*ldap_current_value_sv,PL_na);

(See the PL_na), which is in use throughout my .XS file.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin