static void
call_my_exit(jint status)
{
+ dTHX;
my_exit(status);
}
jvalue*
-makeargs(char *sig, SV** svp, int items)
+makeargs(pTHX_ char *sig, SV** svp, int items)
{
jvalue* jv = (jvalue*)safemalloc(sizeof(jvalue) * items);
int ix = 0;
}
break;
case ')':
- croak("too many arguments, signature: %s", sig);
+ Perl_croak(aTHX_ "too many arguments, signature: %s", sig);
goto cleanup;
default:
- croak("panic: malformed signature: %s", s-1);
+ Perl_croak(aTHX_ "panic: malformed signature: %s", s-1);
goto cleanup;
}
}
if (*s != ')') {
- croak("not enough arguments, signature: %s", sig);
+ Perl_croak(aTHX_ "not enough arguments, signature: %s", sig);
goto cleanup;
}
return jv;
}
static int
-not_here(char *s)
+not_here(pTHX_ char *s)
{
- croak("%s not implemented on this architecture", s);
+ Perl_croak(aTHX_ "%s not implemented on this architecture", s);
return -1;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->NewObjectA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallObjectMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallBooleanMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallByteMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallCharMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallShortMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallIntMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallLongMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallFloatMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallDoubleMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
(*env)->CallVoidMethodA(env, obj,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualObjectMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualBooleanMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualByteMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualCharMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualShortMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualIntMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualLongMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualFloatMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallNonvirtualDoubleMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
(*env)->CallNonvirtualVoidMethodA(env, obj,clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticObjectMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticBooleanMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticByteMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticCharMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticShortMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticIntMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticLongMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticFloatMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
RETVAL = (*env)->CallStaticDoubleMethodA(env, clazz,methodID,args);
RESTOREENV;
}
int argoff = $min_args;
CODE:
{
- jvalue * args = makeargs(sig, &ST(argoff), items - argoff);
+ jvalue * args = makeargs(aTHX_ sig, &ST(argoff), items - argoff);
(*env)->CallStaticVoidMethodA(env, cls,methodID,args);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetBooleanArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetByteArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetCharArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetShortArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetIntArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetLongArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetFloatArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
CODE:
{
if (buf_len_ < len)
- croak("string is too short");
+ Perl_croak(aTHX_ "string is too short");
else if (buf_len_ > len && PL_dowarn)
- warn("string is too long");
+ Perl_warn(aTHX_ "string is too long");
(*env)->SetDoubleArrayRegion(env, array,start,len,buf);
RESTOREENV;
}
if (!dlopen("libjava.so", RTLD_LAZY|RTLD_GLOBAL)) {
if (lib && !dlopen(lib, RTLD_LAZY|RTLD_GLOBAL))
- croak("Can't load libjava.so");
+ Perl_croak(aTHX_ "Can't load libjava.so");
}
JNI_GetDefaultJavaVMInitArgs(&vm_args);
else if (strEQ(s, "debugPort"))
vm_args.debugPort = (jint)SvIV(*++mark);
else
- croak("unrecognized option: %s", s);
+ Perl_croak(aTHX_ "unrecognized option: %s", s);
}
JNI_CreateJavaVM(&RETVAL, &jplcurenv, &vm_args);
}
AV* av = (AV*)SvRV($arg);
if (SvTYPE(av) == SVt_PVAV) {
I32 maxarg = AvFILL(av) + 1;
- $var = makeargs(sig, AvARRAY(av), maxarg);
+ $var = makeargs(aTHX_ sig, AvARRAY(av), maxarg);
}
else
- croak(\"$var is not an array reference\");
+ Perl_croak(aTHX_ \"$var is not an array reference\");
}
else
- croak(\"$var is not a reference\")
+ Perl_croak(aTHX_ \"$var is not a reference\")
T_JIDSIG
{
$var = ($type)SvIV($arg);
$var = ($type) tmp;
}
else
- croak(\"$var is not of type ${ntype}\")
+ Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
OUTPUT
T_JMEM
# if (sv_isa($arg, \"${ntype}\"))
# $var = (SV*)SvRV($arg);
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_AVREF
# if (sv_isa($arg, \"${ntype}\"))
# $var = (AV*)SvRV($arg);
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_HVREF
# if (sv_isa($arg, \"${ntype}\"))
# $var = (HV*)SvRV($arg);
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_CVREF
# if (sv_isa($arg, \"${ntype}\"))
# $var = (CV*)SvRV($arg);
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_SYSRET
# $var NOT IMPLEMENTED
# T_IV
# $var = ($type) tmp;
# }
# else
-# croak(\"$var is not a reference\")
+# Perl_croak(aTHX_ \"$var is not a reference\")
# T_REF_IV_REF
# if (sv_isa($arg, \"${type}\")) {
# IV tmp = SvIV((SV*)SvRV($arg));
# $var = *($type *) tmp;
# }
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_REF_IV_PTR
# if (sv_isa($arg, \"${type}\")) {
# IV tmp = SvIV((SV*)SvRV($arg));
# $var = ($type) tmp;
# }
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_PTROBJ
# if (sv_derived_from($arg, \"${ntype}\")) {
# IV tmp = SvIV((SV*)SvRV($arg));
# $var = ($type) tmp;
# }
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_PTRDESC
# if (sv_isa($arg, \"${ntype}\")) {
# IV tmp = SvIV((SV*)SvRV($arg));
# $var = ${type}_desc->ptr;
# }
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_REFREF
# if (SvROK($arg)) {
# IV tmp = SvIV((SV*)SvRV($arg));
# $var = *($type) tmp;
# }
# else
-# croak(\"$var is not a reference\")
+# Perl_croak(aTHX_ \"$var is not a reference\")
# T_REFOBJ
# if (sv_isa($arg, \"${ntype}\")) {
# IV tmp = SvIV((SV*)SvRV($arg));
# $var = *($type) tmp;
# }
# else
-# croak(\"$var is not of type ${ntype}\")
+# Perl_croak(aTHX_ \"$var is not of type ${ntype}\")
# T_OPAQUE
# $var NOT IMPLEMENTED
# T_OPAQUEPTR