*** empty log message ***
This commit is contained in:
		@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * $Id: Awk.java,v 1.4 2006-11-21 15:06:14 bacon Exp $
 | 
					 * $Id: Awk.java,v 1.5 2006-11-22 05:58:26 bacon Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
package ase.awk;
 | 
					package ase.awk;
 | 
				
			||||||
@ -83,11 +83,18 @@ public abstract class Awk
 | 
				
			|||||||
		return -1;
 | 
							return -1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						protected int next_extio (Extio extio)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							int type = extio.getType ();
 | 
				
			||||||
 | 
							if (type == Extio.TYPE_CONSOLE) return next_console (extio);
 | 
				
			||||||
 | 
							return -1;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	protected abstract int open_console (Extio extio);
 | 
						protected abstract int open_console (Extio extio);
 | 
				
			||||||
	protected abstract int close_console (Extio extio);
 | 
						protected abstract int close_console (Extio extio);
 | 
				
			||||||
	protected abstract int read_console (Extio extio, char[] buf, int len);
 | 
						protected abstract int read_console (Extio extio, char[] buf, int len);
 | 
				
			||||||
	protected abstract int write_console (Extio extio, char[] buf, int len);
 | 
						protected abstract int write_console (Extio extio, char[] buf, int len);
 | 
				
			||||||
	protected abstract int next_console (Extio extio, char[] buf, int len);
 | 
						protected abstract int next_console (Extio extio);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	protected abstract int open_file (Extio extio);
 | 
						protected abstract int open_file (Extio extio);
 | 
				
			||||||
	protected abstract int close_file (Extio name);
 | 
						protected abstract int close_file (Extio name);
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * $Id: jni.c,v 1.18 2006-11-21 15:06:15 bacon Exp $
 | 
					 * $Id: jni.c,v 1.19 2006-11-22 05:58:26 bacon Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <ase/awk/jni.h>
 | 
					#include <ase/awk/jni.h>
 | 
				
			||||||
@ -295,20 +295,6 @@ JNIEXPORT void JNICALL Java_ase_awk_Awk_run (JNIEnv* env, jobject obj)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
JNIEXPORT void JNICALL Java_ase_awk_Awk_set_1extio (
 | 
					 | 
				
			||||||
	JNIEnv* env, jobject obj, jlong extio, jobject handle)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	ase_awk_extio_t* epa = (ase_awk_extio_t*)extio;
 | 
					 | 
				
			||||||
	epa->handle = (void*)handle;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
JNIEXPORT jobject JNICALL Java_ase_awk_Awk_get_1extio (
 | 
					 | 
				
			||||||
	JNIEnv* env, jobject obj, jlong extio)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	ase_awk_extio_t* epa = (ase_awk_extio_t*)extio;
 | 
					 | 
				
			||||||
	return (jobject)epa->handle;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static ase_ssize_t __call_java_open_source (JNIEnv* env, jobject obj, int mode)
 | 
					static ase_ssize_t __call_java_open_source (JNIEnv* env, jobject obj, int mode)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	jclass class; 
 | 
						jclass class; 
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * $Id: Awk.java,v 1.3 2006-11-22 02:57:52 bacon Exp $
 | 
					 * $Id: Awk.java,v 1.4 2006-11-22 05:58:26 bacon Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
package ase.test.awk;
 | 
					package ase.test.awk;
 | 
				
			||||||
@ -156,8 +156,9 @@ public class Awk extends ase.awk.Awk
 | 
				
			|||||||
		return -1;
 | 
							return -1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	protected int next_console (ase.awk.Extio extio, char[] buf, int len)
 | 
						protected int next_console (ase.awk.Extio extio)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
 | 
							/* TODO */
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user