simple corrections
make both jni functions invisible to others
use platform independent separators
committer: Markus Bröker <mbroeker@largo.homelinux.org>
--- a/libConsole/Console.java
+++ b/libConsole/Console.java
@@ -1,8 +1,10 @@
+import java.io.File;
+
public class Console {
public static native int getch ();
private static void help () {
String p = System.getProperty ("java.library.path");
- String[] msg = p.split (":");
+ String[] msg = p.split (File.pathSeparator);
System.err.printf ("Console Error:%n");
for (int i = 0; i < msg.length; i++)
--- a/libConsole/cross_getch.c
+++ b/libConsole/cross_getch.c
@@ -10,7 +10,7 @@
#ifdef WIN32
#include <conio.h>
-int cross_getch ()
+static int cross_getch ()
{
int ch = -1;