Implemented TerminalAccess.isTerminal() and Terminal.getTerminalSize() on windows.

This commit is contained in:
Adam Murdoch
2012-08-04 13:27:56 +10:00
parent e5537494b0
commit a1c46d3dfa
10 changed files with 205 additions and 65 deletions

24
src/main/headers/generic.h Executable file
View File

@@ -0,0 +1,24 @@
#ifndef __INCLUDE_GENERIC_H__
#define __INCLUDE_GENERIC_H__
#include <jni.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Marks the given result as failed, using the given error message
*/
extern void mark_failed_with_message(JNIEnv *env, const char* message, jobject result);
/*
* Marks the given result as failed, using the given error message and error code
*/
extern void mark_failed_with_code(JNIEnv *env, const char* message, int error_code, jobject result);
#ifdef __cplusplus
}
#endif
#endif