Free the lizard

git-svn-id: svn://10.0.0.236/trunk@10 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ltabb
1998-03-28 02:44:41 +00:00
parent 53f8de8141
commit 8ed5afe62c
5423 changed files with 1772023 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../..
DIRS = jri include src
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,20 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
include manifest.mn
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,25 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _BOOL_H_
#define _BOOL_H_
#include "prtypes.h"
typedef PRBool bool_t;
#endif /* !_BOOL_H_ */

View File

@@ -0,0 +1,94 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _INTERPRETER_H_
#define _INTERPRETER_H_
#include "prtypes.h"
PR_BEGIN_EXTERN_C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bool.h"
#include "jni.h"
typedef struct execenv ExecEnv;
typedef void JavaStack;
typedef void JavaFrame;
struct Hjava_lang_ClassLoader;
JRI_PUBLIC_API(JHandle *)
ArrayAlloc(int32_t, int32_t);
JRI_PUBLIC_API(JavaFrame *)
CompiledFramePrev(JavaFrame *, JavaFrame *);
JRI_PUBLIC_API(JavaStack *)
CreateNewJavaStack(ExecEnv *, JavaStack *);
JRI_PUBLIC_API(bool_t)
ExecuteJava(unsigned char *, ExecEnv *);
JRI_PUBLIC_API(ClassClass *)
FindClassFromClass(struct execenv *, char *, bool_t, ClassClass *);
JRI_PUBLIC_API(ClassClass *)
FindLoadedClass(char *, struct Hjava_lang_ClassLoader *);
JRI_PUBLIC_API(void)
PrintToConsole(const char *);
JRI_PUBLIC_API(bool_t)
VerifyClassAccess(ClassClass *, ClassClass *, bool_t);
JRI_PUBLIC_API(bool_t)
VerifyFieldAccess(ClassClass *, ClassClass *, int, bool_t);
JRI_PUBLIC_API(long)
do_execute_java_method(ExecEnv *, void *, char *, char *,
struct methodblock *, bool_t, ...);
JRI_PUBLIC_API(long)
do_execute_java_method_vararg(ExecEnv *, void *, char *, char *,
struct methodblock *, bool_t, va_list,
long *, bool_t);
JRI_PUBLIC_API(HObject *)
execute_java_constructor_vararg(struct execenv *, char *, ClassClass *,
char *, va_list);
JRI_PUBLIC_API(HObject *)
execute_java_constructor(ExecEnv *, char *, ClassClass *, char *, ...);
JRI_PUBLIC_API(bool_t)
is_subclass_of(ClassClass *, ClassClass *, ExecEnv *);
JRI_PUBLIC_API(HObject*)
newobject(ClassClass *, unsigned char *, struct execenv *);
JRI_PUBLIC_API(int32_t)
sizearray(int32_t, int32_t);
PR_END_EXTERN_C
#endif /* ! _INTERPRETER_H_ */

View File

@@ -0,0 +1,29 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _JAVASTRING_H_
#define _JAVASTRING_H_
#include "oobj.h"
#include "jdk_java_lang_String.h"
JRI_PUBLIC_API(Hjava_lang_String *)
makeJavaString(char *, int);
#endif /* !_JAVASTRING_H_ */

View File

@@ -0,0 +1,25 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _JAVATHREADS_H_
#define _JAVATHREADS_H_
#include "oobj.h"
#include "interpreter.h"
#include "bool.h"
#endif /* !_JAVATHREADS_H_ */

View File

@@ -0,0 +1,64 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JMC_H
#define JMC_H
#include "jritypes.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define JMC_PUBLIC_API JRI_PUBLIC_API
typedef struct JMCInterfaceID {
jint a, b, c, d;
} JMCInterfaceID;
#ifdef __cplusplus
#define EXTERN_C extern "C"
#define EXTERN_C_WITHOUT_EXTERN "C"
#else
#undef EXTERN_C
#define EXTERN_C
#define EXTERN_C_WITHOUT_EXTERN
#endif /* cplusplus */
typedef struct JMCException JMCException;
JRI_PUBLIC_API(void)
JMCException_Destroy(struct JMCException *);
#define JMC_EXCEPTION(resultPtr, exceptionToReturn) \
(((resultPtr) != NULL) \
? ((*(resultPtr) = (exceptionToReturn), resultPtr)) \
: (JMCException_Destroy(exceptionToReturn), resultPtr))
#define JMC_EXCEPTION_RETURNED(resultPtr) \
((resultPtr) != NULL && *(resultPtr) != NULL)
#define JMCEXCEPTION_OUT_OF_MEMORY ((struct JMCException*)-1)
#define JMC_DELETE_EXCEPTION(resultPtr) \
(JMCException_Destroy(*(resultPtr)), *(resultPtr) = NULL)
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif /* JMC_H */

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JNI_H
#define JNI_H
#include <stdio.h>
#include <stdarg.h>
#include "jni_md.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef unsigned char jboolean;
typedef unsigned short jchar;
typedef short jshort;
typedef float jfloat;
typedef double jdouble;
typedef jint jsize;
typedef void *jobject;
typedef jobject jref;
typedef jobject jclass;
typedef void *jbyteArray;
typedef void *jobjectArray;
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif /* JNI_H */

View File

@@ -0,0 +1,28 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JNI_MD_H
#define JNI_MD_H
/* Get the rest of the stuff from jri_md.h */
#include "jri_md.h"
#ifndef FAR /* for non-Win16 */
#define FAR
#endif
#endif /* JNI_MD_H */

View File

@@ -0,0 +1,34 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JRI_H
#define JRI_H
#include "jritypes.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef void JRIEnvInterface;
typedef const JRIEnvInterface *JRIEnv;
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif /* JRI_H */

View File

@@ -0,0 +1,93 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JRI_MD_H
#define JRI_MD_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(XP_PC) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32)
# include <windows.h>
# if defined(_MSC_VER)
# if defined(WIN32) || defined(_WIN32)
# define JRI_PUBLIC_API(ResultType) _declspec(dllexport) ResultType
# define JRI_PUBLIC_VAR(VarType) VarType
# else /* !_WIN32 */
# if defined(_WINDLL)
# define JRI_PUBLIC_API(ResultType) ResultType __cdecl __export __loadds
# define JRI_PUBLIC_VAR(VarType) VarType
# else /* !WINDLL */
# define JRI_PUBLIC_API(ResultType) ResultType __cdecl __export
# define JRI_PUBLIC_VAR(VarType) VarType
# endif /* !WINDLL */
# endif /* !_WIN32 */
# elif defined(__BORLANDC__)
# if defined(WIN32) || defined(_WIN32)
# define JRI_PUBLIC_API(ResultType) __export ResultType
# define JRI_PUBLIC_VAR(VarType) VarType
# else /* !_WIN32 */
# define JRI_PUBLIC_API(ResultType) ResultType _cdecl _export _loadds
# define JRI_PUBLIC_VAR(VarType) VarType
# endif
# else
# error Unsupported PC development environment.
# endif
# ifndef IS_LITTLE_ENDIAN
# define IS_LITTLE_ENDIAN
# endif
/* Mac */
#elif macintosh || Macintosh || THINK_C
# if defined(__MWERKS__) /* Metrowerks */
# if !__option(enumsalwaysint)
# error You need to define 'Enums Always Int' for your project.
# endif
# if defined(GENERATING68K) && !GENERATINGCFM
# if !__option(fourbyteints)
# error You need to define 'Struct Alignment: 68k' for your project.
# endif
# endif /* !GENERATINGCFM */
# define JRI_PUBLIC_API(ResultType) __declspec(export) ResultType
# define JRI_PUBLIC_VAR(VarType) JRI_PUBLIC_API(VarType)
# elif defined(__SC__) /* Symantec */
# error What are the Symantec defines? (warren@netscape.com)
# elif macintosh && applec /* MPW */
# error Please upgrade to the latest MPW compiler (SC).
# else
# error Unsupported Mac development environment.
# endif
/* Unix or else */
#else
# define JRI_PUBLIC_API(ResultType) ResultType
# define JRI_PUBLIC_VAR(VarType) VarType
#endif
typedef unsigned char jbool;
typedef char jbyte;
#ifdef IS_64 /* XXX ok for alpha, but not right on all 64-bit architectures */
typedef int jint;
#else
typedef long jint;
#endif
#ifdef __cplusplus
}
#endif
#endif /* JRI_MD_H */

View File

@@ -0,0 +1,30 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JRIEXT_H
#define JRIEXT_H
#include "jri.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* JRIEXT_H */

View File

@@ -0,0 +1,45 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef JRITYPES_H
#define JRITYPES_H
#include "jni.h"
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void *JRIGlobalRef;
typedef JRIGlobalRef jglobal;
typedef struct jarrayArrayStruct* jarrayArray;
typedef jint JRIMethodID;
typedef enum JRIConstant {
JRIUninitialized = -1
} JRIConstant;
#ifdef __cplusplus
}
#endif
#endif /* JRITYPES_H */

View File

@@ -0,0 +1,78 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
IGNORE_MANIFEST=1
#//------------------------------------------------------------------------
#//
#// Makefile to build the java stub public directory
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH= ..\..\..
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
!if "$(MOZ_BITS)" != "16"
INSTALL_DIR=$(PUBLIC)\java
!else
INSTALL_DIR=$(PUBLIC)\win16
!endif
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
export::
$(MAKE_INSTALL) bool.h $(INSTALL_DIR)
$(MAKE_INSTALL) interpreter.h $(INSTALL_DIR)
$(MAKE_INSTALL) javaString.h $(INSTALL_DIR)
$(MAKE_INSTALL) javaThreads.h $(INSTALL_DIR)
$(MAKE_INSTALL) jmc.h $(INSTALL_DIR)
$(MAKE_INSTALL) jni.h $(INSTALL_DIR)
$(MAKE_INSTALL) jni_md.h $(INSTALL_DIR)
$(MAKE_INSTALL) jri.h $(INSTALL_DIR)
$(MAKE_INSTALL) jri_md.h $(INSTALL_DIR)
$(MAKE_INSTALL) jriext.h $(INSTALL_DIR)
$(MAKE_INSTALL) jritypes.h $(INSTALL_DIR)
$(MAKE_INSTALL) nspr_md.h $(INSTALL_DIR)
$(MAKE_INSTALL) oobj.h $(INSTALL_DIR)
$(MAKE_INSTALL) sysmacros_md.h $(INSTALL_DIR)
$(MAKE_INSTALL) tree.h $(INSTALL_DIR)
$(MAKE_INSTALL) typedefs.h $(INSTALL_DIR)
$(MAKE_INSTALL) typedefs_md.h $(INSTALL_DIR)
$(MAKE_INSTALL) zip.h $(INSTALL_DIR)
install::
clobber::

View File

@@ -0,0 +1,46 @@
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
MODULE = java
LIBRARY_NAME =
DEPTH = ../../..
DEFINES =
REQUIRES =
CSRCS =
EXPORTS = bool.h \
interpreter.h \
javaString.h \
javaThreads.h \
jmc.h \
jni.h \
jni_md.h \
jri.h \
jri_md.h \
jriext.h \
jritypes.h \
nspr_md.h \
oobj.h \
sysmacros_md.h \
tree.h \
typedefs.h \
typedefs_md.h \
zip.h \
$(NULL)

View File

@@ -0,0 +1,23 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef sun_java_nspr_md_h___
#define sun_java_nspr_md_h___
#include "nspr.h"
#endif /* sun_java_nspr_md_h___ */

View File

@@ -0,0 +1,39 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _OOBJ_H_
#define _OOBJ_H_
#include <stddef.h>
#include "typedefs.h"
#include "bool.h"
#include "jriext.h"
typedef void Hjava_lang_Class;
typedef Hjava_lang_Class ClassClass;
typedef void Hjava_lang_Object;
typedef Hjava_lang_Object HObject;
typedef Hjava_lang_Object JHandle;
struct methodblock;
JRI_PUBLIC_API(void)
MakeClassSticky(ClassClass *cb);
#endif /* !_OOBJ_H_ */

View File

@@ -0,0 +1,31 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef SYSMACROS_MD_H_
#define SYSMACROS_MD_H_
#if defined(XP_PC) && !defined(_WIN32)
#ifndef HUGEP
#define HUGEP __huge
#endif
#else
#ifndef HUGEP
#define HUGEP
#endif
#endif /* defined(XP_PC) && !defined(_WIN32) */
#endif /*SYSMACROS_MD_H_*/

View File

@@ -0,0 +1,23 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _TREE_H_
#define _TREE_H_
#include "oobj.h" /* for the definition of unicode */
#endif /* !_TREE_H_ */

View File

@@ -0,0 +1,24 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _TYPEDEFS_H_
#define _TYPEDEFS_H_
#include "typedefs_md.h"
#include "sysmacros_md.h"
#endif /* !_TYPEDEFS_H_ */

View File

@@ -0,0 +1,71 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef sun_java_typedefs_md_h___
#define sun_java_typedefs_md_h___
#include "prtypes.h"
#include "nspr_md.h"
PR_BEGIN_EXTERN_C
#if (defined(__sun) && !defined(SOLARIS2_6)) || defined(HPUX9) || defined(HPUX10_10) || defined(XP_PC) || defined(AIX) || defined(OSF1) || defined(XP_MAC) || defined(SONY) || defined(SNI) || defined(UNIXWARE) || defined(LINUX)
typedef int16 int16_t;
typedef int32 int32_t;
#endif
#if !defined(IRIX6_2) && !defined(IRIX6_3) && !defined(SOLARIS2_6) && !defined(HPUX10_20) && !defined(HPUX10_30) && !defined(HPUX11)
typedef uint16 uint16_t;
#ifndef _UINT32_T
#define _UINT32_T
typedef uint32 uint32_t;
#endif /* _UINT32_T */
#endif /* !defined(IRIX6_2) && !defined(IRIX6_3) && !defined(SOLARIS2_6) */
typedef prword_t uintVP_t; /* unsigned that is same size as a void pointer */
#if !defined(BSDI) && !defined(IRIX6_2) && !defined(IRIX6_3) && !defined(LINUX2_0) && !defined(MACLINUX) && !defined(SOLARIS2_6) && !defined(HPUX10_20) && !defined(HPUX10_30) && !defined(HPUX11)
typedef int64 int64_t;
#else
/*
** On BSDI, for some damn reason, they define long long's for these types
** even though they aren't actually 64 bits wide!
*/
#define int64_t int64
#endif
#if defined(XP_PC) || (defined(__sun) && !defined(SVR4)) || defined(HPUX) || defined(LINUX) || defined(BSDI) /* || defined(XP_MAC) */
typedef unsigned int uint_t;
#elif defined(XP_MAC)
/* we have to push/pop to avoid breaking existing projects that
have "treat warnings as errors" on. This is two, two, TWO hacks in one! (pinkerton) */
#pragma warning_errors off
#ifndef __OPENTRANSPORT__
typedef unsigned long uint_t; /* this is already declared in OpenTransport.h, but we don't want to drag in
all the other defines present there. This is a bad solution, but the
least bad given the alternatives. */
#endif /* __OPENTRANSPORT__ */
#pragma warning_errors reset
#endif
#if defined(XP_PC)
typedef long int32_t;
#endif
PR_END_EXTERN_C
#endif /* sun_java_typedefs_md_h___ */

View File

@@ -0,0 +1,41 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _ZIP_H_
#define _ZIP_H_
#include "bool.h"
#include "typedefs.h"
#include "jri.h"
typedef void zip_t;
struct stat;
JRI_PUBLIC_API(void)
zip_close(zip_t *zip);
JRI_PUBLIC_API(bool_t)
zip_get(zip_t *zip, const char *fn, void HUGEP *buf, int32_t len);
JRI_PUBLIC_API(zip_t *)
zip_open(const char *fn);
JRI_PUBLIC_API(bool_t)
zip_stat(zip_t *zip, const char *fn, struct stat *sbuf);
#endif /* !_ZIP_H_ */

View File

@@ -0,0 +1,20 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
include manifest.mn
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,23 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _Included_java_lang_String
#define _Included_java_lang_String
typedef void Hjava_lang_String;
#endif

View File

@@ -0,0 +1,23 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _Included_java_lang_String
#define _Included_java_lang_String
typedef void Hjava_lang_String;
#endif

View File

@@ -0,0 +1,63 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
IGNORE_MANIFEST=1
#//------------------------------------------------------------------------
#//
#// Makefile to build the java stub jri headers
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH= ..\..\..
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
!if "$(MOZ_BITS)" != "16"
INSTALL_DIR=$(PUBLIC)\java
!else
INSTALL_DIR=$(PUBLIC)\win16
!endif
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
export::
$(MAKE_INSTALL) java_lang_String.h $(INSTALL_DIR)
$(MAKE_INSTALL) jdk_java_lang_String.h $(INSTALL_DIR)
install::
clobber::

View File

@@ -0,0 +1,30 @@
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
MODULE = java
LIBRARY_NAME =
DEPTH = ../../..
DEFINES =
REQUIRES =
CSRCS =
EXPORTS = java_lang_String.h \
jdk_java_lang_String.h \
$(NULL)

Binary file not shown.

View File

@@ -0,0 +1,14 @@
/* This is a Mac only file */
#include "IDE_Options.h"
#include "NSCrossProductDefines.h"
#define MOZILLA_CLIENT 1
#define MOCHAFILE 1
#define COMPILER 0
#define LAYERS 1
#define VERSION_NUMBER "40"
#define JAR_NAME "java"##VERSION_NUMBER##".jar"
//#define JAVA 1
#define EDITOR 1
#define MOCHA 1

View File

@@ -0,0 +1,23 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _Included_java_lang_String
#define _Included_java_lang_String
typedef void Hjava_lang_String;
#endif

View File

@@ -0,0 +1,23 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _Included_java_lang_String
#define _Included_java_lang_String
typedef void Hjava_lang_String;
#endif

View File

@@ -0,0 +1,30 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#//------------------------------------------------------------------------
#//
#// Makefile to build the sun-java stubs
#//
#//------------------------------------------------------------------------
DEPTH = ..\..
DIRS = jri \
include \
src
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,22 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
include manifest.mn
include $(DEPTH)/config/rules.mk
INCLUDES += -I$(DEPTH)/dist/public/img -I$(DEPTH)/dist/public/util -I$(DEPTH)/dist/public/layer

View File

@@ -0,0 +1,104 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
IGNORE_MANIFEST=1
#//------------------------------------------------------------------------
#//
#// Makefile to build the java stub library
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH= ..\..\..
!ifndef MAKE_OBJ_TYPE
MAKE_OBJ_TYPE=EXE
!endif
#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------
LIBNAME=libsjs$(MOZ_BITS)
PDBFILE=$(LIBNAME).pdb
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
!if "$(MOZ_BITS)" == "16"
OBJS=\
.\$(OBJDIR)\STUBSJ.OBJ \
$(NULL)
!else
OBJS = \
.\$(OBJDIR)\stubsj.obj \
$(NULL)
!endif
#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------
LIBRARY= .\$(OBJDIR)\$(LIBNAME).lib
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
!if "$(MOZ_BITS)" == "32"
LINCS= $(LINCS) \
-I$(PUBLIC)/java \
$(NULL)
!endif
!if "$(MOZ_BITS)" != "16"
INSTALL_DIR=$(PUBLIC)\java
!else
INSTALL_DIR=$(PUBLIC)\win16
!endif
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
export::
install:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
clobber::

View File

@@ -0,0 +1,29 @@
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
MODULE = java
LIBRARY_NAME = stubsj
DEPTH = ../../..
DEFINES =
REQUIRES = java
CSRCS = stubsj.c \
$(NULL)
EXPORTS =

View File

@@ -0,0 +1,558 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "typedefs.h"
#include "oobj.h"
#include "javaThreads.h"
/* ArrayAlloc libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/md/gc_md.c */
JRI_PUBLIC_API(HObject *)
ArrayAlloc(int32_t t, int32_t l)
{
return NULL;
}
#ifdef XP_UNIX
#include <X11/Intrinsic.h>
/* AwtRegisterXtAppVars mozilla.o */
/* ??? */
/* ns/sun-java/awt/x/awt_MToolkit.c */
void
AwtRegisterXtAppVars(Display *dpy, XtAppContext ac, char *class)
{
return;
}
#endif
/* CompiledFramePrev libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/compiler.c */
JRI_PUBLIC_API(JavaFrame *)
CompiledFramePrev(JavaFrame *frame, JavaFrame *buf)
{
return NULL;
}
/* CreateNewJavaStack libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/interpreter.c */
JRI_PUBLIC_API(JavaStack *)
CreateNewJavaStack(ExecEnv *ee, JavaStack *previous_stack)
{
return NULL;
}
/* EDTPLUG_RegisterEditURLCallback editor.o */
/* nav-java */
/* ExecuteJava libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/executeJava.c */
JRI_PUBLIC_API(bool_t)
ExecuteJava(unsigned char *initial_pc, ExecEnv *ee)
{
return FALSE;
}
/* FindClassFromClass libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/classresolver.c */
JRI_PUBLIC_API(ClassClass *)
FindClassFromClass(struct execenv *ee, char *name, bool_t resolve,
ClassClass *from)
{
return NULL;
}
/* FindLoadedClass libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/classresolver.c */
JRI_PUBLIC_API(ClassClass *)
FindLoadedClass(char *name, struct Hjava_lang_ClassLoader *loader)
{
return NULL;
}
#include "jmc.h"
/* JMCException_Destroy xfe.o */
/* ns/sun-java/jtools/include/jmc.h */
/* ns/sun-java/jtools/src/jmc.c */
JRI_PUBLIC_API(void)
JMCException_Destroy(struct JMCException *self)
{
return;
}
/* JRI_GetCurrentEnv libplug.so */
/* ns/sun-java/include/jritypes.h */
/* ns/sun-java/runtime/jrijdk.c */
JRI_PUBLIC_API(const JRIEnvInterface **)
JRI_GetCurrentEnv(void)
{
return NULL;
}
/* LJ_AddToClassPath libxfe2.so */
/* nav-java */
/* LJ_Applet_GetText liblay.so */
/* nav-java */
/* LJ_Applet_print libxlate.so */
/* nav-java */
/* LJ_CreateApplet liblay.so */
/* nav-java */
/* LJ_DeleteSessionData liblay.so */
/* nav-java */
/* LJ_DiscardEventsForContext xfe.o */
/* nav-java */
/* LJ_DisplayJavaApp lay.o */
/* nav-java */
/* LJ_EnsureJavaEnv libplug.so */
/* nav-java */
/* LJ_FreeJavaAppElement lay.o */
/* nav-java */
/* LJ_GetAppletScriptOrigin libmocha.so */
/* nav-java */
/* LJ_GetJavaAppSize lay.o */
/* nav-java */
/* LJ_GetJavaEnabled libxfe2.so */
/* nav-java */
/* LJ_GetMochaWindow liblay.so */
/* nav-java */
/* LJ_HandleEvent liblay.so */
/* nav-java */
/* LJ_HideConsole commands.o */
/* nav-java */
/* LJ_HideJavaAppElement lay.o */
/* nav-java */
/* LJ_IconifyApplets xfe.o */
/* nav-java */
/* LJ_InitializeZig libmocha.so */
/* nav-java */
/* LJ_InvokeMethod libmocha.so */
/* nav-java */
/* LJ_JSJ_CurrentEnv libmocha.so */
/* nav-java */
/* LJ_JSJ_Init libmocha.so */
/* nav-java */
/* LJ_LoadFromZipFile libmocha.so */
/* nav-java */
/* LJ_PrintZigError libmocha.so */
/* nav-java */
/* LJ_SetConsoleShowCallback mozilla.o */
/* nav-java */
/* LJ_SetProgramName mozilla.o */
/* nav-java */
/* LJ_ShowConsole commands.o */
/* nav-java */
/* LJ_ShutdownJava libxfe2.so */
/* nav-java */
/* LJ_UniconifyApplets xfe.o */
/* nav-java */
/* MakeClassSticky libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/classloader.c */
JRI_PUBLIC_API(void)
MakeClassSticky(ClassClass *cb)
{
return;
}
/* NR_ShutdownRegistry xfe.o */
/* nav-java */
/* NR_StartupRegistry mozilla.o */
/* nav-java */
/* NSN_JavaContextToRealContext xfe.o */
/* nav-java */
/* NSN_RegisterJavaConverter libnet.so */
/* nav-java */
/* PrintToConsole libmocha.so */
/* nav-java */
/* SU_NewStream libnet.so */
/* nav-java */
/* SU_StartSoftwareUpdate libmocha.so */
/* nav-java */
/* VR_GetPath libxfe2.so */
/* nav-java */
/* VR_GetVersion libmocha.so */
/* nav-java */
/* VR_ValidateComponent libxfe2.so */
/* nav-java */
/* VerifyClassAccess libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/classinitialize.c */
JRI_PUBLIC_API(bool_t)
VerifyClassAccess(ClassClass *current_class, ClassClass *new_class,
bool_t classloader_only)
{
return FALSE;
}
/* VerifyFieldAccess libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/classinitialize.c */
JRI_PUBLIC_API(bool_t)
VerifyFieldAccess(ClassClass *current_class, ClassClass *field_class,
int access, bool_t classloader_only)
{
return FALSE;
}
/* awt_MToolkit_dispatchToWidget mozilla.o */
/* ??? */
/* ns/sun-java/awt/x/awt_MTookit.c */
#ifdef XP_UNIX
int
awt_MToolkit_dispatchToWidget(XEvent *xev)
{
return 0;
}
#endif
/* awt_MToolkit_finishModals mozilla.o */
/* ??? */
/* ns/sun-java/awt/x/awt_MTookit.c */
void
awt_MToolkit_finishModals(void)
{
return;
}
/* classEmbeddedObjectNatives libmocha.so */
/* nav-java */
/* classMozillaAppletContext libmocha.so */
/* nav-java */
/* do_execute_java_method libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/interpreter.c */
JRI_PUBLIC_API(long)
do_execute_java_method(ExecEnv *ee, void *obj,
char *method_name, char *signature,
struct methodblock *mb,
bool_t isStaticCall, ...)
{
return 0;
}
/* do_execute_java_method_vararg libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/interpreter.c */
JRI_PUBLIC_API(long)
do_execute_java_method_vararg(ExecEnv *ee, void *obj,
char *method_name, char *method_signature,
struct methodblock *mb,
bool_t isStaticCall, va_list args,
long *otherBits, bool_t shortFloats)
{
return 0;
}
/* execute_java_constructor libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/interpreter.c */
JRI_PUBLIC_API(HObject *)
execute_java_constructor(struct execenv *ee,
char *classname,
ClassClass *cb,
char *signature, ...)
{
return NULL;
}
/* execute_java_constructor_vararg libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/interpreter.c */
JRI_PUBLIC_API(HObject *)
execute_java_constructor_vararg(struct execenv *ee,
char *classname,
ClassClass *cb,
char *signature, va_list args)
{
return NULL;
}
/* is_subclass_of libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/interpreter.c */
JRI_PUBLIC_API(bool_t)
is_subclass_of(ClassClass *cb, ClassClass *dcb, ExecEnv *ee)
{
return FALSE;
}
/* java_netscape_security_getPrincipals libsecnav.so */
/* nav-java */
/* java_netscape_security_getPrivilegeDescs libsecnav.so */
/* nav-java */
/* java_netscape_security_getTargetDetails libsecnav.so */
/* nav-java */
/* java_netscape_security_removePrincipal libsecnav.so */
/* nav-java */
/* java_netscape_security_removePrivilege libsecnav.so */
/* nav-java */
/* java_netscape_security_savePrivilege libsecnav.so */
/* nav-java */
#include "javaString.h"
/* makeJavaString libmocha.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/string.c */
JRI_PUBLIC_API(Hjava_lang_String *)
makeJavaString(char *str, int len)
{
return NULL;
}
/* methodID_netscape_applet_EmbeddedObjectNatives_reflectObject libmocha.so */
/* nav-java */
/* methodID_netscape_applet_MozillaAppletContext_reflectApplet_1 libmocha.so */
/* nav-java */
/* native_netscape_security_PrivilegeManager_getClassPrincipalsFromStackUnsafe libmocha.so */
/* nav-java */
/* netscape_plugin_Plugin_destroy libplug.so */
/* nav-java */
/* netscape_plugin_Plugin_init libplug.so */
/* nav-java */
/* netscape_plugin_Plugin_new libplug.so */
/* nav-java */
/* netscape_plugin_composer_Composer_new liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getCategoryName liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getEncoderFileExtension liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getEncoderFileType liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getEncoderHint liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getEncoderName liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getEncoderNeedsQuantizedSource liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getNumberOfCategories liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getNumberOfEncoders liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getNumberOfPlugins liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getPluginHint liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_getPluginName liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_new liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_performPlugin liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_performPluginByName liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_registerPlugin liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_startEncoder liblay.so */
/* nav-java */
/* netscape_plugin_composer_PluginManager_stopPlugin liblay.so */
/* nav-java */
/* netscape_security_Principal_getVendor libmocha.so */
/* nav-java */
/* netscape_security_Principal_isCodebaseExact libmocha.so */
/* nav-java */
/* netscape_security_Principal_new_3 libmocha.so */
/* nav-java */
/* netscape_security_Principal_new_5 libmocha.so */
/* nav-java */
/* netscape_security_Principal_toString libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_canExtendTrust libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_comparePrincipalArray libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_getClassPrincipalsFromStack libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_getPrivilegeManager libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_intersectPrincipalArray libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_isPrivilegeEnabled libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeManager_registerPrincipal libmocha.so */
/* nav-java */
/* netscape_security_PrivilegeTable_get_1 libmocha.so */
/* nav-java */
/* netscape_security_Privilege_getPermission libmocha.so */
/* nav-java */
/* netscape_security_Target_findTarget libmocha.so */
/* nav-java */
/* newobject libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/string.c */
JRI_PUBLIC_API(HObject*)
newobject(ClassClass *cb, unsigned char *pc, struct execenv *ee)
{
return NULL;
}
/* ns_createZigObject libmocha.so */
/* nav-java */
/* set_netscape_plugin_Plugin_peer libplug.so */
/* nav-java */
/* set_netscape_plugin_Plugin_window libplug.so */
/* nav-java */
/* sizearray libjsj.so */
/* ns/sun-java/include/interpreter.h */
/* ns/sun-java/runtime/gc.c */
int32_t
sizearray(int32_t t, int32_t l)
{
return 0;
}
/* use_netscape_plugin_Plugin libplug.so */
/* nav-java */
/* use_netscape_plugin_composer_Composer liblay.so */
/* nav-java */
/* use_netscape_plugin_composer_MozillaCallback liblay.so */
/* nav-java */
/* use_netscape_plugin_composer_PluginManager liblay.so */
/* nav-java */
#include "zip.h"
/* zip_close liblay.so */
/* ns/sun-java/include/zip.h */
/* ns/sun-java/runtime/zip.c */
JRI_PUBLIC_API(void)
zip_close(zip_t *zip)
{
return;
}
/* zip_get liblay.so */
/* ns/sun-java/include/zip.h */
/* ns/sun-java/runtime/zip.c */
JRI_PUBLIC_API(bool_t)
zip_get(zip_t *zip, const char *fn, void HUGEP *buf, int32_t len)
{
return FALSE;
}
/* zip_open liblay.so */
/* ns/sun-java/include/zip.h */
/* ns/sun-java/runtime/zip.c */
JRI_PUBLIC_API(zip_t *)
zip_open(const char *fn)
{
return NULL;
}
/* zip_stat liblay.so */
/* ns/sun-java/include/zip.h */
/* ns/sun-java/runtime/zip.c */
JRI_PUBLIC_API(bool_t)
zip_stat(zip_t *zip, const char *fn, struct stat *sbuf)
{
return FALSE;
}