*** empty log message ***

This commit is contained in:
hyung-hwan 2006-08-02 15:03:49 +00:00
parent 1fc79d38d4
commit c18ce21096
4 changed files with 50 additions and 1 deletions

17
ase/awk/jni.c Normal file
View File

@ -0,0 +1,17 @@
/*
* $Id: jni.c,v 1.1 2006-08-02 15:03:48 bacon Exp $
*/
#include "jni.h"
#include "awk.h"
#include "sa.h"
JNIEXPORT void JNICALL Java_AWK_open (JNIEnv* env, jobject obj)
{
xp_printf (XP_T("Java_AWK_open\n"));
}
JNIEXPORT void JNICALL Java_AWK_close (JNIEnv* env, jobject obj)
{
xp_printf (XP_T("Java_AWK_close\n"));
}

6
ase/awk/jni.def Normal file
View File

@ -0,0 +1,6 @@
LIBRARY "xpawk.dll"
EXPORTS
Java_AWK_open
Java_AWK_close

21
ase/awk/jni.h Normal file
View File

@ -0,0 +1,21 @@
/*
* $Id: jni.h,v 1.1 2006-08-02 15:03:49 bacon Exp $
*/
#ifndef _XP_AWK_JNI_H_
#define _XP_AWK_JNI_H_
#include <jni.h>
#ifdef __cplusplus
extern "C" {
#endif
JNIEXPORT void JNICALL Java_AWK_open (JNIEnv*, jobject);
JNIEXPORT void JNICALL Java_AWK_close (JNIEnv*, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -4,7 +4,7 @@ OUT = xpawk
CC = cl CC = cl
#CFLAGS = /nologo /MT /W3 /GR- /D_WIN32_WINNT=0x0400 -I../.. #CFLAGS = /nologo /MT /W3 /GR- /D_WIN32_WINNT=0x0400 -I../..
CFLAGS = /nologo /O2 /MT /W3 /GR- /Za /D_WIN32_WINNT=0x0400 -I../.. -DXP_AWK_STAND_ALONE -DXP_CHAR_IS_WCHAR CFLAGS = /nologo /O2 /MT /W3 /GR- /Za /D_WIN32_WINNT=0x0400 -I../.. -DXP_AWK_STAND_ALONE -DXP_CHAR_IS_WCHAR /I"C:\Program Files\IBM\Java141\Include" /I"C:\Program Files\IBM\Java141\Include\Win32"
all: lib all: lib
@ -18,6 +18,11 @@ dll: $(OBJS)
/nologo /out:$(OUT).dll $(OBJS) /nologo /out:$(OUT).dll $(OBJS)
<< <<
jni: $(OBJS) jni.obj
link /dll /def:jni.def /subsystem:console /version:0.1 /release @<<
/nologo /out:$(OUT).dll $(OBJS) jni.obj
<<
clean: clean:
del $(OBJS) $(OUT) *.obj del $(OBJS) $(OUT) *.obj