// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
-import java.lang.reflect.*;
-import java.applet.*;
import java.net.*;
import java.util.*;
import java.io.*;
* IP).
*/
public static java.net.InetAddress originAddr = null;
+ public static String originHost = null;
/** the URL where the initial xwar came from. */
public static String origin = null;
/** don't check if all surfaces are gone (and quit) until this is true */
public static boolean doneInitializing = false;
+ public static void main(String[] args) throws Exception {
+ org.xwt.imp.MIPSInterpreter interpreter = new org.xwt.imp.MIPSInterpreter();
+ System.out.println("exit code: " +
+ interpreter.run(new String[] { "build/mips/freetype.mips", "padua.ttf" }));
+ }
+
/** common entry point */
- public static void main(String[] args) {
+ public static void main_(String[] args) {
try {
int startargs = 0;
while (true) {
if (Log.on) Log.log(Main.class, "instantiating " + initialTemplate);
final String initialTemplate_f = initialTemplate;
- ThreadMessage.newthread(new JS.Function() {
- public Object _call(JS.Array args) throws JS.Exn {
- new Box(initialTemplate_f, null);
- doneInitializing = true;
- if (Surface.allSurfaces.size() == 0) {
- Log.log(this, "exiting because all surfaces are gone");
- Platform.exit();
- }
+ ThreadMessage.newthread(new JS.Callable() {
+ public Object call(JS.Array args) throws JS.Exn {
+ Box b = new Box();
+ Template.getTemplate(initialTemplate_f, null).apply(b, null, null, null, 0, 0);
+ doneInitializing = true;
+ if (Surface.allSurfaces.size() == 0) {
+ Log.log(this, "exiting because all surfaces are gone");
+ Platform.exit();
+ }
return null;
}
});