Bladeren bron

minor fixes

Nicolas Cannasse 18 jaren geleden
bovenliggende
commit
fd33f6c04e
4 gewijzigde bestanden met toevoegingen van 7 en 4 verwijderingen
  1. 2 0
      doc/CHANGES.txt
  2. 2 2
      std/haxe/Http.hx
  3. 2 1
      std/neko/Boot.hx
  4. 1 1
      std/tools/haxelib/Main.hx

+ 2 - 0
doc/CHANGES.txt

@@ -16,6 +16,8 @@
 	added cond?a:b syntax support
 	added utf8 buffer api
 	added haxelib "dev" mode
+	renamed Http.asyncRequest to customRequest
+	add classes to Neko module export table
 
 2007-03-06: 1.12
 	added flash lite support with -D flash_lite

+ 2 - 2
std/haxe/Http.hx

@@ -234,7 +234,7 @@ class Http {
 			if( !err )
 				me.onData(output.toString());
 		};
-		asyncRequest(post,output);
+		customRequest(post,output);
 	#end
 	}
 
@@ -244,7 +244,7 @@ class Http {
 		this.file = { param : argname, filename : filename, io : file, size : size };
 	}
 
-	public function asyncRequest( post : Bool, api : neko.io.Output, ?sock : AbstractSocket  ) {
+	public function customRequest( post : Bool, api : neko.io.Output, ?sock : AbstractSocket  ) {
 		var url_regexp = ~/^(http:\/\/)?([a-zA-Z\.0-9-]+)(:[0-9]+)?(.*)$/;
 		if( !url_regexp.match(url) ) {
 			onError("Invalid URL");

+ 2 - 1
std/neko/Boot.hx

@@ -105,7 +105,7 @@ class Boot {
 			throw "Can't serialize";
 		}
 	}
-	
+
 	private static function __tagserialize(o) untyped {
 		var n = o.__enum__.__ename__;
 		var x = __dollar__amake(n.length + 1);
@@ -151,6 +151,7 @@ class Boot {
 			__dollar__objset(Bool,__dollar__hash("true".__s),true);
 			__dollar__objset(Bool,__dollar__hash("false".__s),false);
 			__dollar__exports.__unserialize = __unserialize;
+			__dollar__exports.__classes = neko.Boot.__classes;
 		}
 	}
 

+ 1 - 1
std/tools/haxelib/Main.hx

@@ -357,7 +357,7 @@ class Main {
 			throw e;
 		};
 		print("Downloading "+filename+"...");
-		h.asyncRequest(false,progress);
+		h.customRequest(false,progress);
 
 		doInstallFile(filepath,setcurrent);
 	}