in reply to Re^3: Passing NULL pointer through XS without "Use of uninitialized value in subroutine entry"
in thread Passing NULL pointer through XS without "Use of uninitialized value in subroutine entry"
Your version doesn't work with the usage I gave initially, that's what :-)
I agree there are bugs in this, but they are bugs that were present initially. Because this happens to be a very heavily used, very mission-critical piece of code, that unfortunately has no existing unit tests, I'm loathe to make anything more than the absolute minimal change to get rid of this warning message. For that reason what I did was to look at the generated C code and ensured that the only change was to add the particular required check against undef (the SvOK(tmp) check) to avoid the warning in this case.
Addressing each of your points:
Can you explain to me exactly the difference between T_OBJECT and T_PTROBJ? I can't find anywhere in the perl docs that explains the standard typemaps, but maybe I'm not looking in the right place.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Passing NULL pointer through XS without "Use of uninitialized value in subroutine entry"
by ikegami (Patriarch) on Aug 23, 2006 at 18:06 UTC |