瀏覽代碼

Cleanups.

Mark Sibly 9 年之前
父節點
當前提交
5291be9f4b
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 13 0
      modules/std/std.monkey2
  2. 1 0
      src/mx2cc/decl.monkey2

+ 13 - 0
modules/std/std.monkey2

@@ -49,6 +49,7 @@ Namespace std
 #Import "fiber/fiber"
 #Import "fiber/future"
 #Import "process/process"
+#Import "process/processstream"
 #Import "filesystem/filesystem"
 
 #Import "misc/random"
@@ -59,6 +60,7 @@ Namespace std
 #Import "misc/zipfile"
 
 #Import "socket/socket"
+#Import "socket/socketstream"
 
 Private
 
@@ -75,6 +77,17 @@ Function Main()
 		Return FileStream.Open( path,mode )
 	End
 	
+#If __DESKTOP_TARGET__
+
+	'Add 'process::' stream protocol
+	'
+	Stream.OpenFuncs["process"]=Lambda:Stream( proto:String,path:String,mode:String )
+
+		Return std.process.ProcessStream.Open( path,mode )
+	End
+	
+#Endif
+	
 #If Not __MOBILE_TARGET__
 
 	'Add 'asset::' stream protocol

+ 1 - 0
src/mx2cc/decl.monkey2

@@ -120,6 +120,7 @@ Class FileDecl Extends Decl
 	Field functions:=New Stack<FuncValue>
 	
 	Method New()
+		kind="file"
 		srcfile=Self
 		srcpos=1 Shl 12
 		endpos=1 Shl 12