Selaa lähdekoodia

Merge branch 'development' of https://github.com/HaxeFoundation/haxe into development

Hugh 11 vuotta sitten
vanhempi
commit
0a1281e094
3 muutettua tiedostoa jossa 18 lisäystä ja 2 poistoa
  1. 16 0
      extra/CHANGES.txt
  2. 1 1
      std/php/_std/sys/io/FileOutput.hx
  3. 1 1
      std/php/_std/sys/io/Process.hx

+ 16 - 0
extra/CHANGES.txt

@@ -1,3 +1,19 @@
+2014-??-??: 3.1.3
+
+	Bugfixes:
+
+	flash : ensure correct endianess in haxe.io.BytesBuffer
+	macro : fixed haxe.macro.Compiler.keep
+
+	General improvements and optimizations:
+
+	all : give @:deprecated warnings by default, allow -D no-deprecation-warnings
+
+	Standard Library:
+
+	all : renamed Bytes.readDouble/Float to getDouble/Float to avoid inheritance issues
+	all : deprecated Bytes.readString in favor of getString
+
 2014-03-29: 3.1.2
 
 	Bugfixes:

+ 1 - 1
std/php/_std/sys/io/FileOutput.hx

@@ -35,7 +35,7 @@ class FileOutput extends haxe.io.Output {
 	}
 
 	public override function writeBytes( b : haxe.io.Bytes, p : Int, l : Int ) : Int {
-		var s = b.readString(p, l);
+		var s = b.getString(p, l);
 		if(untyped __call__('feof', __f)) return throw new haxe.io.Eof();
 		var r = untyped __call__('fwrite', __f, s, l);
 		if(untyped __physeq__(r, false)) return throw haxe.io.Error.Custom('An error occurred');

+ 1 - 1
std/php/_std/sys/io/Process.hx

@@ -42,7 +42,7 @@ private class Stdin extends haxe.io.Output {
 	}
 
 	public override function writeBytes( b : haxe.io.Bytes, pos : Int, l : Int ) : Int {
-		var s = b.readString(pos, l);
+		var s = b.getString(pos, l);
 		if(untyped __call__('feof', p)) return throw new haxe.io.Eof();
 		var r = untyped __call__('fwrite', p, s, l);
 		if(untyped __physeq__(r, false)) return throw haxe.io.Error.Custom('An error occurred');