[pypy-svn] r46434 - pypy/dist/pypy/translator/jvm/src/pypy
antocuni at codespeak.net
antocuni at codespeak.net
Mon Sep 10 13:21:34 CEST 2007
Author: antocuni
Date: Mon Sep 10 13:21:33 2007
New Revision: 46434
Modified:
pypy/dist/pypy/translator/jvm/src/pypy/PyPy.java
Log:
dummy implementation of some external functions
Modified: pypy/dist/pypy/translator/jvm/src/pypy/PyPy.java
==============================================================================
--- pypy/dist/pypy/translator/jvm/src/pypy/PyPy.java (original)
+++ pypy/dist/pypy/translator/jvm/src/pypy/PyPy.java Mon Sep 10 13:21:33 2007
@@ -805,7 +805,7 @@
public static ArrayList ll_os_envitems()
{
- return new ArrayList();
+ return new ArrayList(); // XXX
}
public static String ll_os_getcwd()
@@ -836,6 +836,35 @@
return null; // never reached
}
+ public static int ll_os_open(String path, int flags, int mode)
+ {
+ throwOSError(ENOENT, "DUMMY: No such file or directory: '"+path+"'"); // XXX
+ return -1; // never reached
+ }
+
+ public static StatResult ll_os_lstat(String path)
+ {
+ return ll_os_stat(path); // XXX
+ }
+
+ public static String ll_os_strerror(int errno)
+ {
+ return "errno: " + errno;
+ }
+
+ public static String ll_join(String a, String b)
+ {
+ return a + "/" + b; // XXX
+ }
+
+ public static String ll_strtod_formatd(String format, double d)
+ {
+ // XXX: this is really a quick hack to make things work.
+ // it should disappear, because this function is not
+ // supported by ootypesystem.
+ return Double.toString(d); // XXX: we are ignoring "format"
+ }
+
// ----------------------------------------------------------------------
// Exceptions
//
More information about the pypy-svn
mailing list