Debian Codegraph @

src/init.c

raw symbols SCIP
1
2 /* init.c is used for compiling dll's with lcc. More info in Makefile.lcc */
3
4 #ifdef _WIN32
5 #include <windows.h>
6 #include <jni.h>
7
8 /**
9 * Lcc requuires that there should be LibraryMain function and seeks
10 * by default for LibMain. This might be someway not usefull for jni
11 * interface it satisfies lcc linker.
12 */
13 BOOL WINAPI __declspec(dllexport) LibMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved) {
14 return TRUE;
15 }
16
17 /**
18 * This is the standart implementation of Java 2 OnLoad and OnUnload native
19 * library calls. This template defines them empty functions
20 *
21 * Now in SerialImp.c
22 */
23 /*
24 JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { return JNI_VERSION_1_2; }
25 JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved) {}
26 */
27
28 #endif