Temporarily disable charSet info so we can compile

git-svn-id: svn://10.0.0.236/trunk@589 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
fur
1998-04-24 06:26:57 +00:00
parent 801614bc6f
commit 39accdfa4b
3 changed files with 83 additions and 26 deletions

View File

@@ -166,8 +166,13 @@ native_netscape_javascript_JSObject_getMember(
if (! name ||
! (cstr = JRI_GetStringPlatformChars(env, name,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength))) {
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
/* FIXME this should be an error of some sort */
js_throwJSException(env, "illegal member name");
member = NULL;
@@ -242,8 +247,13 @@ native_netscape_javascript_JSObject_setMember(
if (! name ||
! (cstr = JRI_GetStringPlatformChars(env, name,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength))) {
NULL, 0) {
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
js_throwJSException(env, "illegal member name");
goto do_exit;
}
@@ -309,8 +319,12 @@ native_netscape_javascript_JSObject_removeMember(
#ifdef JAVA
if (! name ||
! (cstr = JRI_GetStringPlatformChars(env, name,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength))) {
NULL, 0) {
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
/* FIXME this should be an error of some sort */
js_throwJSException(env, "illegal member name");
goto do_exit;
@@ -354,8 +368,12 @@ native_netscape_javascript_JSObject_call(
if (! method ||
! (cstr = JRI_GetStringPlatformChars(env, method,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength))) {
NULL, 0) {
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
/* FIXME this should be an error of some sort */
js_throwJSException(env, "illegal member name");
ret = NULL;
@@ -424,8 +442,12 @@ native_netscape_javascript_JSObject_eval(
if (! s ||
! (cstr = JRI_GetStringPlatformChars(env, s,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength))) {
NULL, 0) {
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength) {
*/
/* FIXME this should be an error of some sort */
js_throwJSException(env, "illegal eval string");
ret = NULL;
@@ -507,15 +529,24 @@ native_netscape_javascript_JSObject_toString(
ret = JRI_NewStringPlatform(env,
(const jbyte *) cstr,
(jint) JS_GetStringLength(jsstr),
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
} else {
/* FIXME could grab the clazz name from the JSObject */
ret = JRI_NewStringPlatform(env,
(const jbyte *) "*JSObject*",
(jint) strlen("*JSObject*"),
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
}
#endif

View File

@@ -1200,8 +1200,12 @@ js_isSubclassOf(JSContext *cx, ClassClass *cb1, ClassClass *cb2)
message = (char *)
JRI_GetStringPlatformChars((JRIEnv *) ee,
(struct java_lang_String *) hdetail,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
PR_LOG(MojaSrc, error,
("exception in is_subclass_of %s (\"%s\")",
@@ -1417,8 +1421,12 @@ js_convertJSValueToJObject(HObject **objp, JSContext *cx,
JRI_NewStringPlatform((JRIEnv *) ee,
(const jbyte *) JS_GetStringBytes(str),
(jint) JS_GetStringLength(str),
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
}
return JS_TRUE;
}
@@ -2104,8 +2112,13 @@ js_convertJObjectToJSString(JSContext *cx, HObject *ho, JSBool isClass,
cstr = (char *)
JRI_GetStringPlatformChars((JRIEnv *) ee,
(struct java_lang_String *) hstr,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
if (cstr)
cstr = strdup(cstr);
}
@@ -3436,8 +3449,13 @@ js_JExceptionToJSError(JSContext *cx, ExecEnv *ee)
message = (char *)
JRI_GetStringPlatformChars((JRIEnv *) ee,
(struct java_lang_String *) hdetail,
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
PR_LOG(MojaSrc, debug,
("m-j converted exception %s, \"%s\" to error cx=0x%x ee=0x%x",
cbName(cb), message, cx, ee));
@@ -3643,8 +3661,12 @@ js_FindJavaClass_stub(void *d)
message = (char *)
JRI_GetStringPlatformChars((JRIEnv *) ee,
(struct java_lang_String *) hdetail,
(const jbyte *) data->cx->charSetName,
(jint) data->cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
PR_LOG(MojaSrc, debug,
("exception in is_subclass_of %s (\"%s\")",

View File

@@ -793,8 +793,12 @@ printPrincipalsToConsole(JSContext *cx, JSPrincipals *principals)
javaString = netscape_security_Principal_getVendor(env, principal);
if (javaString) {
const char *s = JRI_GetStringPlatformChars(env, javaString,
(const jbyte *)cx->charSetName,
(jint)cx->charSetNameLength);
NULL, 0);
/* XXX - temporarily replace arguments so we can compile
(const jbyte *) cx->charSetName,
(jint) cx->charSetNameLength);
*/
if (s == NULL) {
JS_ReportOutOfMemory(cx);
return;