help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Re: Calling LDAP C API from Smalltalk


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Re: Calling LDAP C API from Smalltalk
Date: Fri, 26 Sep 2008 13:08:35 +0200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

> stephenw$ ./ldapapi.st
> started
> ... about to run the search.
> ./ldapapi.st:117: Attempt to pass an instance of SmallInteger as a void *

          timeout: 0

should be "timeout: nil".  I should add an argument index to the error
message.  Also, here:

>            <cCall: 'ldap_search_ext_s' returning: #int args: #(#self
> #string #int #string #cObject #int #cObject #cObject #cObject #int
> #{LDAPMessage})>

... the final argument should be #cObjectPtr (void **).

>
>     " ldap_first_entry C definition    --------------
>     LDAP_F( LDAPMessage * )
>     ldap_first_entry LDAP_P((
>         LDAP *ld,
>         LDAPMessage *chain ));
>                     --------------"
>     firstEntry: searchResult [
>         <cCall: 'ldap_first_entry' returning: #{LDAPMessage} args:
> #(#self #{LDAPMessage})> ]

Likewise, here it can be #cObject, i.e. void *, but it should not be a
problem to leave it as is.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]