[Xapian-tickets] [Xapian] #714: Use C++ API optional reference counting in bindings
Xapian
nobody at xapian.org
Thu Oct 13 03:18:39 BST 2022
#714: Use C++ API optional reference counting in bindings
-----------------------------+-------------------------------
Reporter: Olly Betts | Owner: Olly Betts
Type: defect | Status: new
Priority: normal | Milestone: 1.4.x
Component: Xapian-bindings | Version: git master
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
-----------------------------+-------------------------------
Comment (by Olly Betts):
> which for PHP specifically will need some custom typemaps now there's no
longer a PHP wrapper script generated we can patch
Implemented in 7445f6c1d5b15b946ca77724895aeadabb125131.
> In languages where we don't use directors (usually, perhaps always,
because SWIG doesn't support them yet) I think we can just use ref and
unref.
It looks like those languages actually already work OK - at least
`smoketest.lua` tests setting a `Stopper` on a `TermGenerator` works after
the `Stopper` goes out of scope. I'm not immediately seeing how that
works, so will test a bit more thoroughly.
--
Ticket URL: <https://trac.xapian.org/ticket/714#comment:7>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list