home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
vile-src.zip
/
vile-8.1
/
ptypemap
< prev
next >
Wrap
Text File
|
1998-04-09
|
364b
|
22 lines
TYPEMAP
VileBuf * T_VileBuf
INPUT
T_VileBuf
if (sv_isa($arg, \"Vile::Buffer\")) {
IV tmp = SvIV((SV*)GvSV((GV*)SvRV($arg)));
$var = ($type) tmp;
if (!tmp)
croak(\"buffer no longer exists\");
}
else
croak(\"$var is not of type ${ntype}\")
OUTPUT
T_VileBuf
if ($var != 0)
newVBrv($arg, $var);
else
sv_setsv($arg, &sv_undef);