Re: The big UTF8 changeover...



On tir, 2002-11-05 at 12:07, Guillaume Cottenceau wrote:
Christian Borup <borup borup com> writes:

The problem is that generally that no typemap have been used until now.
And a lot of functions just take SV*'s rather than gchar*'s, most I hope
with good reason. But it make it quite hard to find all the spots that
need fixing.

Most of the times, I've used it when we want a gtk function to be
potentially called with NULL as a gchar* argument. Then, using
"undef" (testing for PL_sv_undef in the c file) is far more
elegant/perlish than using 0, IMHO.


So we let the typemap convert NULL to and from undef... Not a big deal,
really.

Anyway, my point was really just that if every bit of code does this
kind of thing itself. The codebase gets hard to manage.

./borup




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