Jens Rieks wrote:

You can not pass a NULL pointer to loadlib at the moment, this small hacks
"converts" an empty string to a NULL pointer to pass it to Parror_dlopen:


We could as well change string_to_cstring to return a NULL pointer for a NULL String argument.

And for obtaining a NULL String you could use e.g. C<clears> or better a new opcode:

B<null>(out STR) # set register to NULL

For consistency we could have this op for all register type.

null I0 # a little faster shortcut of "set I0, 0"


Jens Rieks


leo






Reply via email to