|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, PR_1Malloc_FUNC); | XPCOM_NATIVE_ENTER(env, that, PR_1Malloc_FUNC); |
rc = (jint)PR_Malloc(arg0); |
rc = (long)PR_Malloc(arg0); |
XPCOM_NATIVE_EXIT(env, that, PR_1Malloc_FUNC); | XPCOM_NATIVE_EXIT(env, that, PR_1Malloc_FUNC); |
return rc; | return rc; |
} | } |
|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1get_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1get_FUNC); |
rc = (jint)((nsEmbedCString *)arg0)->get(); |
rc = (long)((nsEmbedCString *)arg0)->get(); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1get_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1get_FUNC); |
return rc; | return rc; |
} | } |
|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___FUNC); |
rc = (jint)new nsEmbedCString(); |
rc = (long)new nsEmbedCString(); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___FUNC); |
return rc; | return rc; |
} | } |
|
|
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___3BI_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___3BI_FUNC); |
if (arg0) if ((lparg0 = env->GetByteArrayElements(arg0, NULL)) == NULL) goto fail; | if (arg0) if ((lparg0 = env->GetByteArrayElements(arg0, NULL)) == NULL) goto fail; |
rc = (jint)new nsEmbedCString((const char *)lparg0, arg1); |
rc = (long)new nsEmbedCString((const char *)lparg0, arg1); |
fail: | fail: |
if (arg0 && lparg0) env->ReleaseByteArrayElements(arg0, lparg0, 0); | if (arg0 && lparg0) env->ReleaseByteArrayElements(arg0, lparg0, 0); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___3BI_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___3BI_FUNC); |
|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1Length_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1Length_FUNC); |
rc = (jint)((nsEmbedString *)arg0)->Length(); |
rc = (long)((nsEmbedString *)arg0)->Length(); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1Length_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1Length_FUNC); |
return rc; | return rc; |
} | } |
|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1get_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1get_FUNC); |
rc = (jint)((nsEmbedString *)arg0)->get(); |
rc = (long)((nsEmbedString *)arg0)->get(); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1get_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1get_FUNC); |
return rc; | return rc; |
} | } |
|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___FUNC); |
rc = (jint)new nsEmbedString(); |
rc = (long)new nsEmbedString(); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___FUNC); |
return rc; | return rc; |
} | } |
|
|
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___3C_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___3C_FUNC); |
if (arg0) if ((lparg0 = env->GetCharArrayElements(arg0, NULL)) == NULL) goto fail; | if (arg0) if ((lparg0 = env->GetCharArrayElements(arg0, NULL)) == NULL) goto fail; |
rc = (jint)new nsEmbedString(lparg0); |
rc = (long)new nsEmbedString(lparg0); |
fail: | fail: |
if (arg0 && lparg0) env->ReleaseCharArrayElements(arg0, lparg0, 0); | if (arg0 && lparg0) env->ReleaseCharArrayElements(arg0, lparg0, 0); |
XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___3C_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___3C_FUNC); |
|
|
{ | { |
jboolean rc = 0; | jboolean rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsID_1Equals_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsID_1Equals_FUNC); |
rc = (jboolean)((nsID *)arg0)->Equals(*(nsID *)arg1); |
rc = (long)((nsID *)arg0)->Equals(*(nsID *)arg1); |
XPCOM_NATIVE_EXIT(env, that, nsID_1Equals_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsID_1Equals_FUNC); |
return rc; | return rc; |
} | } |
|
|
jboolean rc = 0; | jboolean rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsID_1Parse_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsID_1Parse_FUNC); |
if (arg1) if ((lparg1 = env->GetStringUTFChars(arg1, NULL)) == NULL) goto fail; | if (arg1) if ((lparg1 = env->GetStringUTFChars(arg1, NULL)) == NULL) goto fail; |
rc = (jboolean)((nsID *)arg0)->Parse((const char *)lparg1); |
rc = (long)((nsID *)arg0)->Parse((const char *)lparg1); |
fail: | fail: |
if (arg1 && lparg1) env->ReleaseStringUTFChars(arg1, lparg1); | if (arg1 && lparg1) env->ReleaseStringUTFChars(arg1, lparg1); |
XPCOM_NATIVE_EXIT(env, that, nsID_1Parse_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsID_1Parse_FUNC); |
|
|
{ | { |
jint rc = 0; | jint rc = 0; |
XPCOM_NATIVE_ENTER(env, that, nsID_1new_FUNC); | XPCOM_NATIVE_ENTER(env, that, nsID_1new_FUNC); |
rc = (jint)new nsID(); |
rc = (long)new nsID(); |
XPCOM_NATIVE_EXIT(env, that, nsID_1new_FUNC); | XPCOM_NATIVE_EXIT(env, that, nsID_1new_FUNC); |
return rc; | return rc; |
} | } |