forked from xxq250/Nasal-Interpreter
bug fixed & add os.platform
This commit is contained in:
+17
@@ -48,6 +48,23 @@ var io=
|
||||
eof: func(filehandle){return __builtin_eof(filehandle);}
|
||||
};
|
||||
|
||||
var fstat=func(filename){
|
||||
var s=io.stat(filename);
|
||||
return {
|
||||
st_dev: s[0],
|
||||
st_ino: s[1],
|
||||
st_mode: s[2],
|
||||
st_nlink:s[3],
|
||||
st_uid: s[4],
|
||||
st_gid: s[5],
|
||||
st_rdev: s[6],
|
||||
st_size: s[7],
|
||||
st_atime:s[8],
|
||||
st_mtime:s[9],
|
||||
st_ctime:s[10]
|
||||
};
|
||||
}
|
||||
|
||||
var bits=
|
||||
{
|
||||
bitxor: func(a,b){return __builtin_xor(a,b); },
|
||||
|
||||
Reference in New Issue
Block a user