From 761968178cf1c26b419dde60113b3531445b8f41 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 24 Oct 2006 06:03:14 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/Awk.java | 10 +++++----- ase/awk/Exception.java | 18 ++++++++++++++++++ ase/awk/Extio.java | 22 ++++++++++++++++++++++ ase/awk/makefile.cl | 6 +----- 4 files changed, 46 insertions(+), 10 deletions(-) create mode 100644 ase/awk/Exception.java create mode 100644 ase/awk/Extio.java diff --git a/ase/awk/Awk.java b/ase/awk/Awk.java index 53bedcd1..b0c630b9 100644 --- a/ase/awk/Awk.java +++ b/ase/awk/Awk.java @@ -1,5 +1,5 @@ /* - * $Id: Awk.java,v 1.1 2006-10-24 04:57:29 bacon Exp $ + * $Id: Awk.java,v 1.2 2006-10-24 06:03:14 bacon Exp $ */ package ase.awk; @@ -19,15 +19,15 @@ public abstract class Awk private long __awk; - public Awk () throws AwkException + public Awk () throws ase.awk.Exception { open (); } public native void close (); - public native void parse () throws AwkException; - public native void run () throws AwkException; - private native void open () throws AwkException; + public native void parse () throws ase.awk.Exception; + public native void run () throws ase.awk.Exception; + private native void open () throws ase.awk.Exception; /* protected native void set_extio (long extio, Object obj); diff --git a/ase/awk/Exception.java b/ase/awk/Exception.java new file mode 100644 index 00000000..399e34f7 --- /dev/null +++ b/ase/awk/Exception.java @@ -0,0 +1,18 @@ +/* + * $Id: Exception.java,v 1.1 2006-10-24 06:00:36 bacon Exp $ + */ + +package ase.awk; + +public class Exception extends java.lang.Exception +{ + Exception () + { + super (); + } + + Exception (String msg) + { + super (msg); + } +} diff --git a/ase/awk/Extio.java b/ase/awk/Extio.java new file mode 100644 index 00000000..8c13b77d --- /dev/null +++ b/ase/awk/Extio.java @@ -0,0 +1,22 @@ +package ase.awk; + +public class Extio +{ + private long extio; + + protected Extio (long extio) + { + } + + public native String name (); + + /* + void setHandle (Object obj) + { + } + + Object getHandle () + { + } + */ +}; diff --git a/ase/awk/makefile.cl b/ase/awk/makefile.cl index c4dc124c..acab21cd 100644 --- a/ase/awk/makefile.cl +++ b/ase/awk/makefile.cl @@ -30,11 +30,7 @@ jni: $(OBJS) jni.obj << java: - javac -classpath ../.. Awk.java TestAwk.java Extio.java AwkException.java - -jrun: - java -classpath ../.. ase.awk.TestAwk - + javac -classpath ../.. Awk.java Extio.java Exception.java clean: del $(OBJS) $(OUT) *.obj