Browse Source

@:core_api is now @:coreApi

Nicolas Cannasse 13 years ago
parent
commit
3bdeafa995
100 changed files with 501 additions and 491 deletions
  1. 1 1
      std/cpp/_std/Date.hx
  2. 1 1
      std/cpp/_std/EReg.hx
  3. 1 1
      std/cpp/_std/Hash.hx
  4. 1 1
      std/cpp/_std/IntHash.hx
  5. 1 1
      std/cpp/_std/Reflect.hx
  6. 1 1
      std/cpp/_std/Std.hx
  7. 1 1
      std/cpp/_std/StringBuf.hx
  8. 1 1
      std/cpp/_std/Sys.hx
  9. 1 1
      std/cpp/_std/Type.hx
  10. 1 1
      std/cpp/_std/Xml.hx
  11. 1 1
      std/cpp/_std/haxe/Resource.hx
  12. 1 1
      std/cpp/_std/haxe/Utf8.hx
  13. 1 1
      std/cpp/_std/sys/FileSystem.hx
  14. 1 1
      std/cpp/_std/sys/io/File.hx
  15. 1 1
      std/cpp/_std/sys/io/FileInput.hx
  16. 1 1
      std/cpp/_std/sys/io/FileOutput.hx
  17. 1 1
      std/cpp/_std/sys/io/Process.hx
  18. 1 1
      std/cpp/_std/sys/net/Host.hx
  19. 1 1
      std/cpp/_std/sys/net/Socket.hx
  20. 0 0
      std/cs/_std/Array.hx
  21. 5 5
      std/cs/_std/Date.hx
  22. 3 3
      std/cs/_std/EReg.hx
  23. 64 64
      std/cs/_std/Hash.hx
  24. 1 1
      std/cs/_std/IntHash.hx
  25. 21 21
      std/cs/_std/Math.hx
  26. 11 11
      std/cs/_std/Reflect.hx
  27. 27 28
      std/cs/_std/Std.hx
  28. 1 1
      std/cs/_std/StringBuf.hx
  29. 1 1
      std/cs/_std/Sys.hx
  30. 32 32
      std/cs/_std/Type.hx
  31. 1 1
      std/cs/_std/Xml.hx
  32. 1 0
      std/cs/_std/haxe/Int64.hx
  33. 4 3
      std/cs/_std/sys/FileSystem.hx
  34. 8 7
      std/cs/_std/sys/io/File.hx
  35. 11 10
      std/cs/_std/sys/io/Process.hx
  36. 1 1
      std/flash/_std/EReg.hx
  37. 1 1
      std/flash/_std/Hash.hx
  38. 1 1
      std/flash/_std/IntHash.hx
  39. 1 1
      std/flash/_std/Reflect.hx
  40. 1 1
      std/flash/_std/Std.hx
  41. 1 1
      std/flash/_std/Type.hx
  42. 7 7
      std/flash/_std/Xml.hx
  43. 5 3
      std/flash/_std/haxe/Resource.hx
  44. 1 1
      std/flash8/_std/Hash.hx
  45. 1 1
      std/flash8/_std/IntHash.hx
  46. 3 3
      std/flash8/_std/Reflect.hx
  47. 1 1
      std/flash8/_std/Std.hx
  48. 1 1
      std/flash8/_std/Type.hx
  49. 3 3
      std/flash8/_std/Xml.hx
  50. 0 0
      std/java/_std/Array.hx
  51. 3 3
      std/java/_std/Date.hx
  52. 9 8
      std/java/_std/EReg.hx
  53. 64 64
      std/java/_std/Hash.hx
  54. 1 1
      std/java/_std/IntHash.hx
  55. 1 0
      std/java/_std/Math.hx
  56. 14 14
      std/java/_std/Reflect.hx
  57. 36 37
      std/java/_std/Std.hx
  58. 1 1
      std/java/_std/StringBuf.hx
  59. 6 6
      std/java/_std/Sys.hx
  60. 49 49
      std/java/_std/Type.hx
  61. 1 1
      std/java/_std/Xml.hx
  62. 6 5
      std/java/_std/haxe/Int64.hx
  63. 2 1
      std/java/_std/sys/FileSystem.hx
  64. 11 10
      std/java/_std/sys/io/File.hx
  65. 21 20
      std/java/_std/sys/io/Process.hx
  66. 1 1
      std/js/_std/Array.hx
  67. 1 1
      std/js/_std/Date.hx
  68. 1 1
      std/js/_std/EReg.hx
  69. 1 1
      std/js/_std/Hash.hx
  70. 1 1
      std/js/_std/IntHash.hx
  71. 1 1
      std/js/_std/Reflect.hx
  72. 1 1
      std/js/_std/Std.hx
  73. 1 1
      std/js/_std/String.hx
  74. 1 1
      std/js/_std/Type.hx
  75. 1 1
      std/js/_std/Xml.hx
  76. 1 1
      std/neko/_std/Array.hx
  77. 1 1
      std/neko/_std/Date.hx
  78. 1 1
      std/neko/_std/EReg.hx
  79. 1 1
      std/neko/_std/Hash.hx
  80. 1 1
      std/neko/_std/IntHash.hx
  81. 1 1
      std/neko/_std/Math.hx
  82. 1 1
      std/neko/_std/Reflect.hx
  83. 1 1
      std/neko/_std/Std.hx
  84. 4 4
      std/neko/_std/String.hx
  85. 1 1
      std/neko/_std/StringBuf.hx
  86. 1 1
      std/neko/_std/Sys.hx
  87. 1 1
      std/neko/_std/Type.hx
  88. 1 1
      std/neko/_std/Xml.hx
  89. 1 1
      std/neko/_std/haxe/Int32.hx
  90. 1 1
      std/neko/_std/haxe/Utf8.hx
  91. 1 1
      std/neko/_std/sys/FileSystem.hx
  92. 1 1
      std/neko/_std/sys/db/Mysql.hx
  93. 1 1
      std/neko/_std/sys/db/Sqlite.hx
  94. 1 1
      std/neko/_std/sys/io/File.hx
  95. 1 1
      std/neko/_std/sys/io/FileInput.hx
  96. 1 1
      std/neko/_std/sys/io/FileOutput.hx
  97. 1 1
      std/neko/_std/sys/io/Process.hx
  98. 1 1
      std/neko/_std/sys/net/Host.hx
  99. 1 1
      std/neko/_std/sys/net/Socket.hx
  100. 1 1
      std/php/_std/Date.hx

+ 1 - 1
std/cpp/_std/Date.hx

@@ -24,7 +24,7 @@
  */
  */
 
 
 
 
-@:core_api  class Date {
+@:coreApi  class Date {
 
 
 	private var mSeconds:Float;
 	private var mSeconds:Float;
 
 

+ 1 - 1
std/cpp/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 
 	var r : Dynamic;
 	var r : Dynamic;
 	var last : String;
 	var last : String;

+ 1 - 1
std/cpp/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T>  {
+@:coreApi class Hash<T>  {
 	private var __Internal : Dynamic;
 	private var __Internal : Dynamic;
 
 
 	public function new() : Void {
 	public function new() : Void {

+ 1 - 1
std/cpp/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 1 - 1
std/cpp/_std/Reflect.hx

@@ -24,7 +24,7 @@
  */
  */
 
 
 
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 
 	public  static function hasField( o : Dynamic, field : String ) : Bool untyped {
 	public  static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return o!=null && o.__HasField(field);
 		return o!=null && o.__HasField(field);

+ 1 - 1
std/cpp/_std/Std.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Std {
+@:coreApi class Std {
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 		return untyped __global__.__instanceof(v,t);
 		return untyped __global__.__instanceof(v,t);
 	}
 	}

+ 1 - 1
std/cpp/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api
+@:coreApi
 class StringBuf {
 class StringBuf {
 
 
 	private var b : Array<Dynamic>;
 	private var b : Array<Dynamic>;

+ 1 - 1
std/cpp/_std/Sys.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Sys {
+@:coreApi class Sys {
 
 
 	public static function print( v : Dynamic ) : Void {
 	public static function print( v : Dynamic ) : Void {
 		untyped __global__.__hxcpp_print(v);
 		untyped __global__.__hxcpp_print(v);

+ 1 - 1
std/cpp/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:core_api class Type {
+@:coreApi class Type {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 			if (o==null || !Reflect.isObject(o))  return null;
 			if (o==null || !Reflect.isObject(o))  return null;
 			var c = o.__GetClass();
 			var c = o.__GetClass();

+ 1 - 1
std/cpp/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 enum XmlType {
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var CData(default,null) : XmlType;
 	public static var CData(default,null) : XmlType;

+ 1 - 1
std/cpp/_std/haxe/Resource.hx

@@ -24,7 +24,7 @@
  */
  */
 package haxe;
 package haxe;
 
 
-@:core_api
+@:coreApi
 class Resource {
 class Resource {
 
 
 	public static function listNames() : Array<String> {
 	public static function listNames() : Array<String> {

+ 1 - 1
std/cpp/_std/haxe/Utf8.hx

@@ -1,6 +1,6 @@
 package haxe;
 package haxe;
 
 
-@:core_api
+@:coreApi
 class Utf8
 class Utf8
 {
 {
    var __s:Array<Int>;
    var __s:Array<Int>;

+ 1 - 1
std/cpp/_std/sys/FileSystem.hx

@@ -30,7 +30,7 @@ private enum FileKind {
 	kother( k : String );
 	kother( k : String );
 }
 }
 
 
-@:core_api
+@:coreApi
 class FileSystem {
 class FileSystem {
 
 
 	public static function exists( path : String ) : Bool {
 	public static function exists( path : String ) : Bool {

+ 1 - 1
std/cpp/_std/sys/io/File.hx

@@ -24,7 +24,7 @@
  */
  */
 package sys.io;
 package sys.io;
 
 
-@:core_api
+@:coreApi
 class File {
 class File {
 
 
 	public static function getContent( path : String ) : String {
 	public static function getContent( path : String ) : String {

+ 1 - 1
std/cpp/_std/sys/io/FileInput.hx

@@ -25,7 +25,7 @@
 package sys.io;
 package sys.io;
 import sys.io.FileSeek;
 import sys.io.FileSeek;
 
 
-@:core_api
+@:coreApi
 class FileInput extends haxe.io.Input {
 class FileInput extends haxe.io.Input {
 
 
 	private var __f : Dynamic;
 	private var __f : Dynamic;

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

@@ -25,7 +25,7 @@
 package sys.io;
 package sys.io;
 import sys.io.FileSeek;
 import sys.io.FileSeek;
 
 
-@:core_api
+@:coreApi
 class FileOutput extends haxe.io.Output {
 class FileOutput extends haxe.io.Output {
 
 
 	private var __f : Dynamic;
 	private var __f : Dynamic;

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

@@ -92,7 +92,7 @@ private class Stdout extends haxe.io.Input {
 
 
 }
 }
 
 
-@:core_api
+@:coreApi
 class Process {
 class Process {
 
 
 	var p : Dynamic;
 	var p : Dynamic;

+ 1 - 1
std/cpp/_std/sys/net/Host.hx

@@ -25,7 +25,7 @@
  */
  */
 package sys.net;
 package sys.net;
 
 
-@:core_api
+@:coreApi
 class Host {
 class Host {
 
 
 	public var ip(default,null) : Int;
 	public var ip(default,null) : Int;

+ 1 - 1
std/cpp/_std/sys/net/Socket.hx

@@ -121,7 +121,7 @@ private class SocketOutput extends haxe.io.Output {
 }
 }
 
 
 
 
-@:core_api
+@:coreApi
 class Socket {
 class Socket {
 
 
 	private var __s : Dynamic;
 	private var __s : Dynamic;

File diff suppressed because it is too large
+ 0 - 0
std/cs/_std/Array.hx


+ 5 - 5
std/cs/_std/Date.hx

@@ -2,10 +2,10 @@ package;
 import cs.system.DateTime;
 import cs.system.DateTime;
 import haxe.Int64;
 import haxe.Int64;
 
 
-@:core_api class Date 
+@:coreApi class Date
 {
 {
 	private var date:DateTime;
 	private var date:DateTime;
-	
+
 	/**
 	/**
 		Creates a new date object.
 		Creates a new date object.
 	**/
 	**/
@@ -125,7 +125,7 @@ import haxe.Int64;
 		d.date = new DateTime(cast(t, Int64));
 		d.date = new DateTime(cast(t, Int64));
 		return d;
 		return d;
 	}
 	}
-	
+
 
 
 	/**
 	/**
 		Returns a Date from a formated string of one of the following formats :
 		Returns a Date from a formated string of one of the following formats :
@@ -134,7 +134,7 @@ import haxe.Int64;
 	**/
 	**/
 	static public function fromString( s : String ) : Date
 	static public function fromString( s : String ) : Date
 	{
 	{
-		switch( s.length ) 
+		switch( s.length )
 		{
 		{
 			case 8: // hh:mm:ss
 			case 8: // hh:mm:ss
 				var k = s.split(":");
 				var k = s.split(":");
@@ -152,7 +152,7 @@ import haxe.Int64;
 				throw "Invalid date format : " + s;
 				throw "Invalid date format : " + s;
 		}
 		}
 	}
 	}
-	
+
 	private static function fromNative( d : cs.system.DateTime ) : Date
 	private static function fromNative( d : cs.system.DateTime ) : Date
 	{
 	{
 		var date = new Date(0, 0, 0, 0, 0, 0);
 		var date = new Date(0, 0, 0, 0, 0, 0);

+ 3 - 3
std/cs/_std/EReg.hx

@@ -25,13 +25,13 @@
 
 
 import cs.system.text.regularExpressions.Regex;
 import cs.system.text.regularExpressions.Regex;
 
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 
 	private var regex : Regex;
 	private var regex : Regex;
 	private var m : Match;
 	private var m : Match;
 	private var isGlobal : Bool;
 	private var isGlobal : Bool;
 	private var cur : String;
 	private var cur : String;
-	
+
 	public function new( r : String, opt : String ) : Void {
 	public function new( r : String, opt : String ) : Void {
 		var opts:Int = cast CultureInvariant;
 		var opts:Int = cast CultureInvariant;
 		for (i in 0...opt.length) untyped {
 		for (i in 0...opt.length) untyped {
@@ -47,7 +47,7 @@ import cs.system.text.regularExpressions.Regex;
 					opts |= cast(Compiled, Int);
 					opts |= cast(Compiled, Int);
 			}
 			}
 		}
 		}
-		
+
 		this.regex = new Regex(r, cast(opts, RegexOptions));
 		this.regex = new Regex(r, cast(opts, RegexOptions));
 	}
 	}
 
 

+ 64 - 64
std/cs/_std/Hash.hx

@@ -24,45 +24,45 @@ import cs.NativeArray;
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T>  
+@:coreApi class Hash<T>
 {
 {
 	@:extern private static inline var HASH_UPPER = 0.77;
 	@:extern private static inline var HASH_UPPER = 0.77;
 	@:extern private static inline var FLAG_EMPTY = 0;
 	@:extern private static inline var FLAG_EMPTY = 0;
 	@:extern private static inline var FLAG_DEL = 1;
 	@:extern private static inline var FLAG_DEL = 1;
-	
+
 	/**
 	/**
 	 * This is the most important structure here and the reason why it's so fast.
 	 * This is the most important structure here and the reason why it's so fast.
 	 * It's an array of all the hashes contained in the table. These hashes cannot be 0 nor 1,
 	 * It's an array of all the hashes contained in the table. These hashes cannot be 0 nor 1,
 	 * which stand for "empty" and "deleted" states.
 	 * which stand for "empty" and "deleted" states.
-	 * 
+	 *
 	 * The lookup algorithm will keep looking until a 0 or the key wanted is found;
 	 * The lookup algorithm will keep looking until a 0 or the key wanted is found;
 	 * The insertion algorithm will do the same but will also break when FLAG_DEL is found;
 	 * The insertion algorithm will do the same but will also break when FLAG_DEL is found;
 	 */
 	 */
 	private var hashes:NativeArray<HashType>;
 	private var hashes:NativeArray<HashType>;
 	private var _keys:NativeArray<String>;
 	private var _keys:NativeArray<String>;
 	private var vals:NativeArray<T>;
 	private var vals:NativeArray<T>;
-	
+
 	private var nBuckets:Int;
 	private var nBuckets:Int;
 	private var size:Int;
 	private var size:Int;
 	private var nOccupied:Int;
 	private var nOccupied:Int;
 	private var upperBound:Int;
 	private var upperBound:Int;
-	
+
 	private var cachedKey:String;
 	private var cachedKey:String;
 	private var cachedIndex:Int;
 	private var cachedIndex:Int;
-	
+
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL
 	private var totalProbes:Int;
 	private var totalProbes:Int;
 	private var probeTimes:Int;
 	private var probeTimes:Int;
 	private var sameHash:Int;
 	private var sameHash:Int;
 	private var maxProbe:Int;
 	private var maxProbe:Int;
 #end
 #end
-	
-	public function new() : Void 
+
+	public function new() : Void
 	{
 	{
 		cachedIndex = -1;
 		cachedIndex = -1;
 	}
 	}
 
 
-	public function set( key : String, value : T ) : Void 
+	public function set( key : String, value : T ) : Void
 	{
 	{
 		var x:Int, k:Int;
 		var x:Int, k:Int;
 		if (nOccupied >= upperBound)
 		if (nOccupied >= upperBound)
@@ -72,14 +72,14 @@ import cs.NativeArray;
 			else
 			else
 				resize(nBuckets + 2);
 				resize(nBuckets + 2);
 		}
 		}
-		
+
 		var hashes = hashes, keys = _keys, hashes = hashes;
 		var hashes = hashes, keys = _keys, hashes = hashes;
 		{
 		{
 			var mask = (nBuckets == 0) ? 0 : nBuckets - 1;
 			var mask = (nBuckets == 0) ? 0 : nBuckets - 1;
 			var site = x = nBuckets;
 			var site = x = nBuckets;
 			k = hash(key);
 			k = hash(key);
 			var i = k & mask, nProbes = 0;
 			var i = k & mask, nProbes = 0;
-			
+
 			//for speed up
 			//for speed up
 			if (isEither(hashes[i])) {
 			if (isEither(hashes[i])) {
 				x = i;
 				x = i;
@@ -97,16 +97,16 @@ import cs.NativeArray;
 				}
 				}
 				x = i;
 				x = i;
 			}
 			}
-			
+
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
 				maxProbe = nProbes;
 			totalProbes++;
 			totalProbes++;
 #end
 #end
 		}
 		}
-		
+
 		var flag = hashes[x];
 		var flag = hashes[x];
-		if (isEmpty(flag)) 
+		if (isEmpty(flag))
 		{
 		{
 			keys[x] = key;
 			keys[x] = key;
 			vals[x] = value;
 			vals[x] = value;
@@ -122,17 +122,17 @@ import cs.NativeArray;
 			assert(_keys[x] == key);
 			assert(_keys[x] == key);
 			vals[x] = value;
 			vals[x] = value;
 		}
 		}
-		
+
 		cachedIndex = x;
 		cachedIndex = x;
 		cachedKey = key;
 		cachedKey = key;
 	}
 	}
-	
+
 	@:final private function lookup( key : String ) : Int
 	@:final private function lookup( key : String ) : Int
 	{
 	{
 		if (nBuckets != 0)
 		if (nBuckets != 0)
 		{
 		{
 			var hashes = hashes, keys = _keys;
 			var hashes = hashes, keys = _keys;
-			
+
 			var mask = nBuckets - 1, hash = hash(key), k = hash, nProbes = 0;
 			var mask = nBuckets - 1, hash = hash(key), k = hash, nProbes = 0;
 			var i = k & mask;
 			var i = k & mask;
 			var last = i, flag;
 			var last = i, flag;
@@ -146,7 +146,7 @@ import cs.NativeArray;
 					throw "assert";
 					throw "assert";
 #end
 #end
 			}
 			}
-			
+
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
 				maxProbe = nProbes;
@@ -154,10 +154,10 @@ import cs.NativeArray;
 #end
 #end
 			return isEither(flag) ? -1 : i;
 			return isEither(flag) ? -1 : i;
 		}
 		}
-		
+
 		return -1;
 		return -1;
 	}
 	}
-	
+
 	@:final @:private function resize(newNBuckets:Int) : Void
 	@:final @:private function resize(newNBuckets:Int) : Void
 	{
 	{
 		//This function uses 0.25*n_bucktes bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets.
 		//This function uses 0.25*n_bucktes bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets.
@@ -178,7 +178,7 @@ import cs.NativeArray;
 					if (_keys != null)
 					if (_keys != null)
 						arrayCopy(_keys, 0, k, 0, nBuckets);
 						arrayCopy(_keys, 0, k, 0, nBuckets);
 					_keys = k;
 					_keys = k;
-					
+
 					var v = new NativeArray(newNBuckets);
 					var v = new NativeArray(newNBuckets);
 					if (vals != null)
 					if (vals != null)
 						arrayCopy(vals, 0, v, 0, nBuckets);
 						arrayCopy(vals, 0, v, 0, nBuckets);
@@ -186,16 +186,16 @@ import cs.NativeArray;
 				} //otherwise shrink
 				} //otherwise shrink
 			}
 			}
 		}
 		}
-		
-		if (j != 0) 
+
+		if (j != 0)
 		{ //rehashing is required
 		{ //rehashing is required
 			//resetting cache
 			//resetting cache
 			cachedKey = null;
 			cachedKey = null;
 			cachedIndex = -1;
 			cachedIndex = -1;
-			
+
 			j = -1;
 			j = -1;
 			var nBuckets = nBuckets, _keys = _keys, vals = vals, hashes = hashes;
 			var nBuckets = nBuckets, _keys = _keys, vals = vals, hashes = hashes;
-			
+
 			var newMask = newNBuckets - 1;
 			var newMask = newNBuckets - 1;
 			while (++j < nBuckets)
 			while (++j < nBuckets)
 			{
 			{
@@ -204,19 +204,19 @@ import cs.NativeArray;
 				{
 				{
 					var key = _keys[j];
 					var key = _keys[j];
 					var val = vals[j];
 					var val = vals[j];
-					
+
 					hashes[j] = FLAG_DEL;
 					hashes[j] = FLAG_DEL;
 					while (true) /* kick-out process; sort of like in Cuckoo hashing */
 					while (true) /* kick-out process; sort of like in Cuckoo hashing */
 					{
 					{
 						var nProbes = 0;
 						var nProbes = 0;
 						//var inc = getInc(k, newMask);
 						//var inc = getInc(k, newMask);
 						var i = k & newMask;
 						var i = k & newMask;
-						
+
 						while (!isEmpty(newHash[i]))
 						while (!isEmpty(newHash[i]))
 							i = (i + ++nProbes) & newMask;
 							i = (i + ++nProbes) & newMask;
-						
+
 						newHash[i] = k;
 						newHash[i] = k;
-						
+
 						if (i < nBuckets && !isEither(k = hashes[i])) /* kick out the existing element */
 						if (i < nBuckets && !isEither(k = hashes[i])) /* kick out the existing element */
 						{
 						{
 							{
 							{
@@ -229,7 +229,7 @@ import cs.NativeArray;
 								vals[i] = val;
 								vals[i] = val;
 								val = tmp;
 								val = tmp;
 							}
 							}
-							
+
 							hashes[i] = FLAG_DEL; /* mark it as deleted in the old hash table */
 							hashes[i] = FLAG_DEL; /* mark it as deleted in the old hash table */
 						} else { /* write the element and jump out of the loop */
 						} else { /* write the element and jump out of the loop */
 							_keys[i] = key;
 							_keys[i] = key;
@@ -239,7 +239,7 @@ import cs.NativeArray;
 					}
 					}
 				}
 				}
 			}
 			}
-			
+
 			if (nBuckets > newNBuckets) /* shrink the hash table */
 			if (nBuckets > newNBuckets) /* shrink the hash table */
 			{
 			{
 				{
 				{
@@ -253,7 +253,7 @@ import cs.NativeArray;
 					this.vals = v;
 					this.vals = v;
 				}
 				}
 			}
 			}
-			
+
 			this.hashes = newHash;
 			this.hashes = newHash;
 			this.nBuckets = newNBuckets;
 			this.nBuckets = newNBuckets;
 			this.nOccupied = size;
 			this.nOccupied = size;
@@ -261,86 +261,86 @@ import cs.NativeArray;
 		}
 		}
 	}
 	}
 
 
-	public function get( key : String ) : Null<T> 
+	public function get( key : String ) : Null<T>
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 		{
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		idx = lookup(key);
 		idx = lookup(key);
 		if (idx != -1)
 		if (idx != -1)
 		{
 		{
 			cachedKey = key;
 			cachedKey = key;
 			cachedIndex = idx;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		return null;
 		return null;
 	}
 	}
-	
-	private function getDefault( key : String, def : T ) : T 
+
+	private function getDefault( key : String, def : T ) : T
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 		{
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		idx = lookup(key);
 		idx = lookup(key);
 		if (idx != -1)
 		if (idx != -1)
 		{
 		{
 			cachedKey = key;
 			cachedKey = key;
 			cachedIndex = idx;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		return def;
 		return def;
 	}
 	}
 
 
-	public function exists( key : String ) : Bool 
+	public function exists( key : String ) : Bool
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 		{
 			return true;
 			return true;
 		}
 		}
-		
+
 		idx = lookup(key);
 		idx = lookup(key);
 		if (idx != -1)
 		if (idx != -1)
 		{
 		{
 			cachedKey = key;
 			cachedKey = key;
 			cachedIndex = idx;
 			cachedIndex = idx;
-			
+
 			return true;
 			return true;
 		}
 		}
-		
+
 		return false;
 		return false;
 	}
 	}
 
 
-	public function remove( key : String ) : Bool 
+	public function remove( key : String ) : Bool
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (! (cachedKey == key && ( (idx = cachedIndex) != -1 )))
 		if (! (cachedKey == key && ( (idx = cachedIndex) != -1 )))
 		{
 		{
 			idx = lookup(key);
 			idx = lookup(key);
 		}
 		}
-		
+
 		if (idx == -1)
 		if (idx == -1)
 		{
 		{
 			return false;
 			return false;
 		} else {
 		} else {
 			if (cachedKey == key)
 			if (cachedKey == key)
 				cachedIndex = -1;
 				cachedIndex = -1;
-			
+
 			hashes[idx] = FLAG_EMPTY;
 			hashes[idx] = FLAG_EMPTY;
 			_keys[idx] = null;
 			_keys[idx] = null;
 			vals[idx] = null;
 			vals[idx] = null;
 			--size;
 			--size;
-			
+
 			return true;
 			return true;
 		}
 		}
 	}
 	}
@@ -349,7 +349,7 @@ import cs.NativeArray;
 		Returns an iterator of all keys in the hashtable.
 		Returns an iterator of all keys in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
 	**/
-	public function keys() : Iterator<String> 
+	public function keys() : Iterator<String>
 	{
 	{
 		var i = 0;
 		var i = 0;
 		var len = nBuckets;
 		var len = nBuckets;
@@ -369,7 +369,7 @@ import cs.NativeArray;
 				var ret = _keys[i];
 				var ret = _keys[i];
 				cachedIndex = i;
 				cachedIndex = i;
 				cachedKey = ret;
 				cachedKey = ret;
-				
+
 				i = i + 1;
 				i = i + 1;
 				return ret;
 				return ret;
 			}
 			}
@@ -380,7 +380,7 @@ import cs.NativeArray;
 		Returns an iterator of all values in the hashtable.
 		Returns an iterator of all values in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
 	**/
-	public function iterator() : Iterator<T> 
+	public function iterator() : Iterator<T>
 	{
 	{
 		var i = 0;
 		var i = 0;
 		var len = nBuckets;
 		var len = nBuckets;
@@ -422,7 +422,7 @@ import cs.NativeArray;
 		s.add("}");
 		s.add("}");
 		return s.toString();
 		return s.toString();
 	}
 	}
-	
+
 	@:extern private static inline function roundUp(x:Int):Int
 	@:extern private static inline function roundUp(x:Int):Int
 	{
 	{
 		--x;
 		--x;
@@ -433,21 +433,21 @@ import cs.NativeArray;
 		x |= (x) >>> 16;
 		x |= (x) >>> 16;
 		return ++x;
 		return ++x;
 	}
 	}
-	
+
 	@:extern private static inline function getInc(k:Int, mask:Int):Int //return 1 for linear probing
 	@:extern private static inline function getInc(k:Int, mask:Int):Int //return 1 for linear probing
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)
-	
+
 	@:extern private static inline function isEither(v:HashType):Bool
 	@:extern private static inline function isEither(v:HashType):Bool
 		return (v & 0xFFFFFFFE) == 0
 		return (v & 0xFFFFFFFE) == 0
-	
+
 	@:extern private static inline function isEmpty(v:HashType):Bool
 	@:extern private static inline function isEmpty(v:HashType):Bool
 		return v == FLAG_EMPTY
 		return v == FLAG_EMPTY
-		
+
 	@:extern private static inline function isDel(v:HashType):Bool
 	@:extern private static inline function isDel(v:HashType):Bool
 		return v == FLAG_DEL
 		return v == FLAG_DEL
-	
+
 	//guarantee: Whatever this function is, it will never return 0 nor 1
 	//guarantee: Whatever this function is, it will never return 0 nor 1
-	@:extern private static inline function hash(s:String):HashType 
+	@:extern private static inline function hash(s:String):HashType
 	{
 	{
 		var k:Int = untyped s.GetHashCode();
 		var k:Int = untyped s.GetHashCode();
 		//k *= 357913941;
 		//k *= 357913941;
@@ -455,14 +455,14 @@ import cs.NativeArray;
 		//k += ~357913941;
 		//k += ~357913941;
 		//k ^= k >> 31;
 		//k ^= k >> 31;
 		//k ^= k << 31;
 		//k ^= k << 31;
-		
+
 		k = (k+0x7ed55d16) + (k<<12);
 		k = (k+0x7ed55d16) + (k<<12);
 		k = (k^0xc761c23c) ^ (k>>19);
 		k = (k^0xc761c23c) ^ (k>>19);
 		k = (k+0x165667b1) + (k<<5);
 		k = (k+0x165667b1) + (k<<5);
 		k = (k+0xd3a2646c) ^ (k<<9);
 		k = (k+0xd3a2646c) ^ (k<<9);
 		k = (k+0xfd7046c5) + (k<<3);
 		k = (k+0xfd7046c5) + (k<<3);
 		k = (k^0xb55a4f09) ^ (k>>16);
 		k = (k^0xb55a4f09) ^ (k>>16);
-		
+
 		var ret = k;
 		var ret = k;
 		if (isEither(ret))
 		if (isEither(ret))
 		{
 		{
@@ -471,13 +471,13 @@ import cs.NativeArray;
 			else
 			else
 				ret = 0xFFFFFFFF;
 				ret = 0xFFFFFFFF;
 		}
 		}
-		
+
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	@:extern private static inline function arrayCopy(sourceArray:cs.system.Array, sourceIndex:Int, destinationArray:cs.system.Array, destinationIndex:Int, length:Int):Void
 	@:extern private static inline function arrayCopy(sourceArray:cs.system.Array, sourceIndex:Int, destinationArray:cs.system.Array, destinationIndex:Int, length:Int):Void
 		cs.system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
 		cs.system.Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
-	
+
 	@:extern private static inline function assert(x:Bool):Void
 	@:extern private static inline function assert(x:Bool):Void
 	{
 	{
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL

+ 1 - 1
std/cs/_std/IntHash.hx

@@ -32,7 +32,7 @@ import cs.NativeArray;
  * Thanks also to Jonas Malaco Filho for his Haxe-written IntHash code inspired by Python tables.
  * Thanks also to Jonas Malaco Filho for his Haxe-written IntHash code inspired by Python tables.
  * (https://jonasmalaco.com/fossil/test/jonas-haxe/artifact/887b53126e237d6c68951111d594033403889304)
  * (https://jonasmalaco.com/fossil/test/jonas-haxe/artifact/887b53126e237d6c68951111d594033403889304)
  */
  */
-@:core_api class IntHash<T>
+@:coreApi class IntHash<T>
 {
 {
 	private static inline var HASH_UPPER = 0.7;
 	private static inline var HASH_UPPER = 0.7;
 
 

+ 21 - 21
std/cs/_std/Math.hx

@@ -1,7 +1,7 @@
 package;
 package;
 import cs.system.Random;
 import cs.system.Random;
 
 
-@:core_api @:nativegen class Math
+@:coreApi @:nativegen class Math
 {
 {
 	public static inline function __init__():Void
 	public static inline function __init__():Void
 	{
 	{
@@ -10,9 +10,9 @@ import cs.system.Random;
 		NEGATIVE_INFINITY = untyped __cs__("double.NegativeInfinity");
 		NEGATIVE_INFINITY = untyped __cs__("double.NegativeInfinity");
 		POSITIVE_INFINITY = untyped __cs__("double.PositiveInfinity");
 		POSITIVE_INFINITY = untyped __cs__("double.PositiveInfinity");
 		rand = new Random();
 		rand = new Random();
-		
+
 	}
 	}
-	
+
 	private static var rand:Random;
 	private static var rand:Random;
 	public static var PI(default, null) : Float;
 	public static var PI(default, null) : Float;
 	public static var NaN(default,null) : Float;
 	public static var NaN(default,null) : Float;
@@ -23,52 +23,52 @@ import cs.system.Random;
 	{
 	{
 		return cs.system.Math.Abs(v);
 		return cs.system.Math.Abs(v);
 	}
 	}
-	
+
 	public static inline function min(a:Float, b:Float):Float
 	public static inline function min(a:Float, b:Float):Float
 	{
 	{
 		return (a < b) ? a : b;
 		return (a < b) ? a : b;
 	}
 	}
-	
+
 	public static inline function max(a:Float, b:Float):Float
 	public static inline function max(a:Float, b:Float):Float
 	{
 	{
 		return (a > b) ? a : b;
 		return (a > b) ? a : b;
 	}
 	}
-	
+
 	public static inline function sin(v:Float):Float
 	public static inline function sin(v:Float):Float
 	{
 	{
 		return cs.system.Math.Sin(v);
 		return cs.system.Math.Sin(v);
 	}
 	}
-	
+
 	public static inline function cos(v:Float):Float
 	public static inline function cos(v:Float):Float
 	{
 	{
 		return cs.system.Math.Cos(v);
 		return cs.system.Math.Cos(v);
 	}
 	}
-	
+
 	public static inline function atan2(y:Float, x:Float):Float
 	public static inline function atan2(y:Float, x:Float):Float
 	{
 	{
 		return cs.system.Math.Atan2(y, x);
 		return cs.system.Math.Atan2(y, x);
 	}
 	}
-	
+
 	public static inline function tan(v:Float):Float
 	public static inline function tan(v:Float):Float
 	{
 	{
 		return cs.system.Math.Tan(v);
 		return cs.system.Math.Tan(v);
 	}
 	}
-	
+
 	public static inline function exp(v:Float):Float
 	public static inline function exp(v:Float):Float
 	{
 	{
 		return cs.system.Math.Exp(v);
 		return cs.system.Math.Exp(v);
 	}
 	}
-	
+
 	public static inline function log(v:Float):Float
 	public static inline function log(v:Float):Float
 	{
 	{
 		return cs.system.Math.Log(v);
 		return cs.system.Math.Log(v);
 	}
 	}
-	
+
 	public static inline function sqrt(v:Float):Float
 	public static inline function sqrt(v:Float):Float
 	{
 	{
 		return cs.system.Math.Sqrt(v);
 		return cs.system.Math.Sqrt(v);
 	}
 	}
-	
+
 	public static function round(v:Float):Int
 	public static function round(v:Float):Int
 	{
 	{
 		var vint = Std.int(v);
 		var vint = Std.int(v);
@@ -81,37 +81,37 @@ import cs.system.Random;
 			return vint - 1;
 			return vint - 1;
 		return vint;
 		return vint;
 	}
 	}
-	
+
 	public static inline function floor(v:Float):Int
 	public static inline function floor(v:Float):Int
 	{
 	{
 		return Std.int(cs.system.Math.Floor(v));
 		return Std.int(cs.system.Math.Floor(v));
 	}
 	}
-	
+
 	public static inline function ceil(v:Float):Int
 	public static inline function ceil(v:Float):Int
 	{
 	{
 		return Std.int(cs.system.Math.Ceiling(v));
 		return Std.int(cs.system.Math.Ceiling(v));
 	}
 	}
-	
+
 	public static inline function atan(v:Float):Float
 	public static inline function atan(v:Float):Float
 	{
 	{
 		return cs.system.Math.Atan(v);
 		return cs.system.Math.Atan(v);
 	}
 	}
-	
+
 	public static inline function asin(v:Float):Float
 	public static inline function asin(v:Float):Float
 	{
 	{
 		return cs.system.Math.Asin(v);
 		return cs.system.Math.Asin(v);
 	}
 	}
-	
+
 	public static inline function acos(v:Float):Float
 	public static inline function acos(v:Float):Float
 	{
 	{
 		return cs.system.Math.Acos(v);
 		return cs.system.Math.Acos(v);
 	}
 	}
-	
+
 	public static inline function pow(v:Float, exp:Float):Float
 	public static inline function pow(v:Float, exp:Float):Float
 	{
 	{
 		return cs.system.Math.Pow(v, exp);
 		return cs.system.Math.Pow(v, exp);
 	}
 	}
-	
+
 	public static inline function random() : Float
 	public static inline function random() : Float
 	{
 	{
 		return rand.NextDouble();
 		return rand.NextDouble();
@@ -121,7 +121,7 @@ import cs.system.Random;
 	{
 	{
 		return untyped __cs__("!double.IsInfinity(f)");
 		return untyped __cs__("!double.IsInfinity(f)");
 	}
 	}
-	
+
 	public static function isNaN( f : Float ) : Bool
 	public static function isNaN( f : Float ) : Bool
 	{
 	{
 		return untyped __cs__("double.IsNaN(f)");
 		return untyped __cs__("double.IsNaN(f)");

+ 11 - 11
std/cs/_std/Reflect.hx

@@ -28,7 +28,7 @@ import cs.internal.Function;
 	The Reflect API is a way to manipulate values dynamicly through an
 	The Reflect API is a way to manipulate values dynamicly through an
 	abstract interface in an untyped manner. Use with care.
 	abstract interface in an untyped manner. Use with care.
 **/
 **/
-@:keep @:core_api class Reflect {
+@:keep @:coreApi class Reflect {
 
 
 	/**
 	/**
 		Tells if an object has a field set. This doesn't take into account the object prototype (class methods).
 		Tells if an object has a field set. This doesn't take into account the object prototype (class methods).
@@ -36,7 +36,7 @@ import cs.internal.Function;
 	@:functionBody('
 	@:functionBody('
 		if (o is haxe.lang.IHxObject)
 		if (o is haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, true, false) != haxe.lang.Runtime.undefined;
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, true, false) != haxe.lang.Runtime.undefined;
-		
+
 		return haxe.lang.Runtime.slowHasField(o, field);
 		return haxe.lang.Runtime.slowHasField(o, field);
 	')
 	')
 	public static function hasField( o : Dynamic, field : String ) : Bool
 	public static function hasField( o : Dynamic, field : String ) : Bool
@@ -50,7 +50,7 @@ import cs.internal.Function;
 	@:functionBody('
 	@:functionBody('
 		if (o is haxe.lang.IHxObject)
 		if (o is haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, false, false);
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, false, false);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	')
 	public static function field( o : Dynamic, field : String ) : Dynamic
 	public static function field( o : Dynamic, field : String ) : Dynamic
@@ -70,16 +70,16 @@ import cs.internal.Function;
 	')
 	')
 	public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
 	{
-		
+
 	}
 	}
-	
+
 	/**
 	/**
 		Similar to field but also supports property (might be slower).
 		Similar to field but also supports property (might be slower).
 	**/
 	**/
 	@:functionBody('
 	@:functionBody('
 		if (o is haxe.lang.IHxObject)
 		if (o is haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, false, true);
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, haxe.lang.FieldLookup.hash(field), false, false, true);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	')
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
@@ -98,7 +98,7 @@ import cs.internal.Function;
 	')
 	')
 	public static function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void
 	public static function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
 	{
-		
+
 	}
 	}
 
 
 	/**
 	/**
@@ -158,17 +158,17 @@ import cs.internal.Function;
 		Compare two methods closures. Returns true if it's the same method of the same instance.
 		Compare two methods closures. Returns true if it's the same method of the same instance.
 	**/
 	**/
 	@:functionBody('
 	@:functionBody('
-		if (f1 == f2) 
+		if (f1 == f2)
 			return true;
 			return true;
-		
+
 		if (f1 is haxe.lang.Closure && f2 is haxe.lang.Closure)
 		if (f1 is haxe.lang.Closure && f2 is haxe.lang.Closure)
 		{
 		{
 			haxe.lang.Closure f1c = (haxe.lang.Closure) f1;
 			haxe.lang.Closure f1c = (haxe.lang.Closure) f1;
 			haxe.lang.Closure f2c = (haxe.lang.Closure) f2;
 			haxe.lang.Closure f2c = (haxe.lang.Closure) f2;
-			
+
 			return haxe.lang.Runtime.refEq(f1c.obj, f2c.obj) && f1c.field.Equals(f2c.field);
 			return haxe.lang.Runtime.refEq(f1c.obj, f2c.obj) && f1c.field.Equals(f2c.field);
 		}
 		}
-		
+
 		return false;
 		return false;
 	')
 	')
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool

+ 27 - 28
std/cs/_std/Std.hx

@@ -25,9 +25,9 @@
 import cs.Boot;
 import cs.Boot;
 import cs.Lib;
 import cs.Lib;
 import cs.internal.Exceptions;
 import cs.internal.Exceptions;
- 
-@:core_api @:nativegen class Std {
-	public static function is( v : Dynamic, t : Dynamic ) : Bool 
+
+@:coreApi @:nativegen class Std {
+	public static function is( v : Dynamic, t : Dynamic ) : Bool
 	{
 	{
 		if (v == null)
 		if (v == null)
 			return t == Dynamic;
 			return t == Dynamic;
@@ -37,7 +37,7 @@ import cs.internal.Exceptions;
 		if (clt == null)
 		if (clt == null)
 			return false;
 			return false;
 		var name:String = cast clt;
 		var name:String = cast clt;
-		
+
 		switch(name)
 		switch(name)
 		{
 		{
 			case "System.Double":
 			case "System.Double":
@@ -49,9 +49,9 @@ import cs.internal.Exceptions;
 			case "System.Object":
 			case "System.Object":
 				return true;
 				return true;
 		}
 		}
-		
+
 		var clv:Class<Dynamic> = untyped __cs__('v.GetType()');
 		var clv:Class<Dynamic> = untyped __cs__('v.GetType()');
-		
+
 		return untyped clt.IsAssignableFrom(clv);
 		return untyped clt.IsAssignableFrom(clv);
 	}
 	}
 
 
@@ -60,22 +60,22 @@ import cs.internal.Exceptions;
 			return "null";
 			return "null";
 		if (Std.is(s, Bool))
 		if (Std.is(s, Bool))
 			return cast(s, Bool) ? "true" : "false";
 			return cast(s, Bool) ? "true" : "false";
-		
+
 		return s.ToString();
 		return s.ToString();
 	}
 	}
 
 
 	public static inline function int( x : Float ) : Int {
 	public static inline function int( x : Float ) : Int {
 		return cast x;
 		return cast x;
 	}
 	}
-	
+
 	public static function parseInt( x : String ) : Null<Int> {
 	public static function parseInt( x : String ) : Null<Int> {
 		if (x == null) return null;
 		if (x == null) return null;
-		
+
 		var ret = 0;
 		var ret = 0;
 		var base = 10;
 		var base = 10;
 		var i = -1;
 		var i = -1;
 		var len = x.length;
 		var len = x.length;
-		
+
 		if (StringTools.startsWith(x, "0") && len > 2)
 		if (StringTools.startsWith(x, "0") && len > 2)
 		{
 		{
 			var c:Int = cast untyped x[1];
 			var c:Int = cast untyped x[1];
@@ -85,13 +85,13 @@ import cs.internal.Exceptions;
 				base = 16;
 				base = 16;
 			}
 			}
 		}
 		}
-		
+
 		var foundAny = false;
 		var foundAny = false;
 		var isNeg = false;
 		var isNeg = false;
 		while (++i < len)
 		while (++i < len)
 		{
 		{
 			var c = cast(untyped x[i], Int); //fastCodeAt
 			var c = cast(untyped x[i], Int); //fastCodeAt
-			if (!foundAny) 
+			if (!foundAny)
 			{
 			{
 				switch(c)
 				switch(c)
 				{
 				{
@@ -104,7 +104,7 @@ import cs.internal.Exceptions;
 						continue;
 						continue;
 				}
 				}
 			}
 			}
-			
+
 			if (c >= '0'.code && c <= '9'.code)
 			if (c >= '0'.code && c <= '9'.code)
 			{
 			{
 				if (!foundAny && c == '0'.code)
 				if (!foundAny && c == '0'.code)
@@ -113,7 +113,7 @@ import cs.internal.Exceptions;
 					continue;
 					continue;
 				}
 				}
 				ret *= base; foundAny = true;
 				ret *= base; foundAny = true;
-				
+
 				ret += c - '0'.code;
 				ret += c - '0'.code;
 			} else if (base == 16) {
 			} else if (base == 16) {
 				if (c >= 'a'.code && c <= 'f'.code) {
 				if (c >= 'a'.code && c <= 'f'.code) {
@@ -129,7 +129,7 @@ import cs.internal.Exceptions;
 				break;
 				break;
 			}
 			}
 		}
 		}
-		
+
 		if (foundAny)
 		if (foundAny)
 			return isNeg ? -ret : ret;
 			return isNeg ? -ret : ret;
 		else
 		else
@@ -139,11 +139,11 @@ import cs.internal.Exceptions;
 	public static function parseFloat( x : String ) : Float {
 	public static function parseFloat( x : String ) : Float {
 		if (x == null) return Math.NaN;
 		if (x == null) return Math.NaN;
 		x = StringTools.ltrim(x);
 		x = StringTools.ltrim(x);
-		
+
 		var ret = 0.0;
 		var ret = 0.0;
 		var div = 0.0;
 		var div = 0.0;
 		var e = 0.0;
 		var e = 0.0;
-		
+
 		var len = x.length;
 		var len = x.length;
 		var foundAny = false;
 		var foundAny = false;
 		var isNeg = false;
 		var isNeg = false;
@@ -151,7 +151,7 @@ import cs.internal.Exceptions;
 		while (++i < len)
 		while (++i < len)
 		{
 		{
 			var c = cast(untyped x[i], Int); //fastCodeAt
 			var c = cast(untyped x[i], Int); //fastCodeAt
-			if (!foundAny) 
+			if (!foundAny)
 			{
 			{
 				switch(c)
 				switch(c)
 				{
 				{
@@ -164,16 +164,16 @@ import cs.internal.Exceptions;
 						continue;
 						continue;
 				}
 				}
 			}
 			}
-			
+
 			if (c == '.'.code)
 			if (c == '.'.code)
 			{
 			{
 				if (div != 0.0)
 				if (div != 0.0)
 					break;
 					break;
 				div = 1.0;
 				div = 1.0;
-				
+
 				continue;
 				continue;
 			}
 			}
-			
+
 			if (c >= '0'.code && c <= '9'.code)
 			if (c >= '0'.code && c <= '9'.code)
 			{
 			{
 				if (!foundAny && c == '0'.code)
 				if (!foundAny && c == '0'.code)
@@ -181,9 +181,9 @@ import cs.internal.Exceptions;
 					foundAny = true;
 					foundAny = true;
 					continue;
 					continue;
 				}
 				}
-				
+
 				ret *= 10; foundAny = true; div *= 10;
 				ret *= 10; foundAny = true; div *= 10;
-				
+
 				ret += c - '0'.code;
 				ret += c - '0'.code;
 			} else if (foundAny && (c == 'e'.code || c == 'E'.code)) {
 			} else if (foundAny && (c == 'e'.code || c == 'E'.code)) {
 				var eNeg = false;
 				var eNeg = false;
@@ -199,7 +199,7 @@ import cs.internal.Exceptions;
 						i++;
 						i++;
 					}
 					}
 				}
 				}
-				
+
 				while (++i < len)
 				while (++i < len)
 				{
 				{
 					c = untyped cast(x[i], Int);
 					c = untyped cast(x[i], Int);
@@ -214,15 +214,15 @@ import cs.internal.Exceptions;
 						break;
 						break;
 					}
 					}
 				}
 				}
-				
+
 				if (eNeg) e = -e;
 				if (eNeg) e = -e;
 			} else {
 			} else {
 				break;
 				break;
 			}
 			}
 		}
 		}
-		
+
 		if (div == 0.0) div = 1.0;
 		if (div == 0.0) div = 1.0;
-		
+
 		if (foundAny)
 		if (foundAny)
 		{
 		{
 			ret = isNeg ? -(ret / div) : (ret / div);
 			ret = isNeg ? -(ret / div) : (ret / div);
@@ -247,4 +247,3 @@ import cs.internal.Exceptions;
 	}
 	}
 
 
 }
 }
-	

+ 1 - 1
std/cs/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api
+@:coreApi
 class StringBuf {
 class StringBuf {
 
 
 	private var b : cs.StringBuilder;
 	private var b : cs.StringBuilder;

+ 1 - 1
std/cs/_std/Sys.hx

@@ -29,7 +29,7 @@ import cs.system.threading.Thread;
 /**
 /**
 	This class gives you access to many base functionalities of system platforms. Looks in [sys] sub packages for more system APIs.
 	This class gives you access to many base functionalities of system platforms. Looks in [sys] sub packages for more system APIs.
 **/
 **/
-@:core_api
+@:coreApi
 class Sys {
 class Sys {
 	private static var _env:Hash<String>;
 	private static var _env:Hash<String>;
 	private static var _args:Array<String>;
 	private static var _args:Array<String>;

+ 32 - 32
std/cs/_std/Type.hx

@@ -38,30 +38,30 @@ import cs.internal.Runtime;
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:keep @:core_api class Type {
-	
+@:keep @:coreApi class Type {
+
 	@:functionBody('
 	@:functionBody('
 		if (o is haxe.lang.DynamicObject || o is System.Type)
 		if (o is haxe.lang.DynamicObject || o is System.Type)
 			return null;
 			return null;
-		
+
 		return o.GetType();
 		return o.GetType();
 	')
 	')
-	public static function getClass<T>( o : T ) : Class<T> untyped 
+	public static function getClass<T>( o : T ) : Class<T> untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (o is System.Enum || o is haxe.lang.Enum)
 		if (o is System.Enum || o is haxe.lang.Enum)
 			return o.GetType();
 			return o.GetType();
 		return null;
 		return null;
 	')
 	')
-	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped 
+	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
 
 
-	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> 
+	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic>
 	{
 	{
 		var t:cs.system.Type = Lib.toNativeType(c);
 		var t:cs.system.Type = Lib.toNativeType(c);
 		var base = t.BaseType;
 		var base = t.BaseType;
@@ -69,7 +69,7 @@ import cs.internal.Runtime;
 		{
 		{
 			return null;
 			return null;
 		}
 		}
-		
+
 		return Lib.fromNativeType(base);
 		return Lib.fromNativeType(base);
 	}
 	}
 
 
@@ -79,7 +79,7 @@ import cs.internal.Runtime;
 		if (ret.length > 10 && StringTools.startsWith(ret, "haxe.root."))
 		if (ret.length > 10 && StringTools.startsWith(ret, "haxe.root."))
 			ret = ret.substr(10);
 			ret = ret.substr(10);
 #end
 #end
-		
+
 		return switch(ret)
 		return switch(ret)
 		{
 		{
 			case "System.Int32": "Int";
 			case "System.Int32": "Int";
@@ -91,19 +91,19 @@ import cs.internal.Runtime;
 		}
 		}
 	}
 	}
 
 
-	public static function getEnumName( e : Enum<Dynamic> ) : String 
+	public static function getEnumName( e : Enum<Dynamic> ) : String
 	{
 	{
 		var ret:String = cast Lib.toNativeType(untyped e);
 		var ret:String = cast Lib.toNativeType(untyped e);
 #if no-root
 #if no-root
 		if (ret.length > 10 && StringTools.startsWith(ret, "haxe.root."))
 		if (ret.length > 10 && StringTools.startsWith(ret, "haxe.root."))
 			ret = ret.substr(10);
 			ret = ret.substr(10);
 #end
 #end
-		if (ret.length == 14 && ret == "System.Boolean") 
+		if (ret.length == 14 && ret == "System.Boolean")
 			return "Bool";
 			return "Bool";
 		return ret;
 		return ret;
 	}
 	}
-	
-	public static function resolveClass( name : String ) : Class<Dynamic> 
+
+	public static function resolveClass( name : String ) : Class<Dynamic>
 	{
 	{
 #if no-root
 #if no-root
 		if (name.indexOf(".") == -1)
 		if (name.indexOf(".") == -1)
@@ -121,7 +121,7 @@ import cs.internal.Runtime;
 				case #if no-root "haxe.root.Dynamic" #else "Dynamic" #end: return Dynamic;
 				case #if no-root "haxe.root.Dynamic" #else "Dynamic" #end: return Dynamic;
 				default: return null;
 				default: return null;
 			}
 			}
-		} else if (t.IsInterface && cast(untyped __typeof__(IGenericObject), cs.system.Type).IsAssignableFrom(t)) { 
+		} else if (t.IsInterface && cast(untyped __typeof__(IGenericObject), cs.system.Type).IsAssignableFrom(t)) {
 			t = null;
 			t = null;
 			var i = 0;
 			var i = 0;
 			var ts = "";
 			var ts = "";
@@ -131,7 +131,7 @@ import cs.internal.Runtime;
 				ts += (i == 1 ? "" : ",") + "System.Object";
 				ts += (i == 1 ? "" : ",") + "System.Object";
 				t = cs.system.Type.GetType(name + "`" + i + "[" + ts + "]");
 				t = cs.system.Type.GetType(name + "`" + i + "[" + ts + "]");
 			}
 			}
-			
+
 			return Lib.fromNativeType(t);
 			return Lib.fromNativeType(t);
 		} else {
 		} else {
 			return Lib.fromNativeType(t);
 			return Lib.fromNativeType(t);
@@ -152,15 +152,15 @@ import cs.internal.Runtime;
 		return Runtime.callMethod(null, cast ctors, ctors.Length, args);
 		return Runtime.callMethod(null, cast ctors, ctors.Length, args);
 	}
 	}
 
 
-	public static function createEmptyInstance<T>( cl : Class<T> ) : T 
+	public static function createEmptyInstance<T>( cl : Class<T> ) : T
 	{
 	{
 		if (Reflect.hasField(cl, "__hx_createEmpty"))
 		if (Reflect.hasField(cl, "__hx_createEmpty"))
 			return untyped cl.__hx_createEmpty();
 			return untyped cl.__hx_createEmpty();
 		return createInstance(cl, []);
 		return createInstance(cl, []);
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
-		if (@params == null) 
+		if (@params == null)
 		{
 		{
 			object ret = haxe.lang.Runtime.slowGetField(e, constr, false);
 			object ret = haxe.lang.Runtime.slowGetField(e, constr, false);
 			if (ret is haxe.lang.Function)
 			if (ret is haxe.lang.Function)
@@ -170,7 +170,7 @@ import cs.internal.Runtime;
 			return (T) haxe.lang.Runtime.slowCallField(e, constr, @params);
 			return (T) haxe.lang.Runtime.slowCallField(e, constr, @params);
 		}
 		}
 	')
 	')
-	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T 
+	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T
 	{
 	{
 		return null;
 		return null;
 	}
 	}
@@ -179,13 +179,13 @@ import cs.internal.Runtime;
 		var constr = getEnumConstructs(e);
 		var constr = getEnumConstructs(e);
 		return createEnum(e, constr[index], params);
 		return createEnum(e, constr[index], params);
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (c == typeof(string))
 		if (c == typeof(string))
 		{
 		{
 			return haxe.lang.StringRefl.fields;
 			return haxe.lang.StringRefl.fields;
 		}
 		}
-		
+
 		Array<object> ret = new Array<object>();
 		Array<object> ret = new Array<object>();
 
 
         System.Reflection.MemberInfo[] mis = c.GetMembers(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.DeclaredOnly | System.Reflection.BindingFlags.Instance);
         System.Reflection.MemberInfo[] mis = c.GetMembers(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.DeclaredOnly | System.Reflection.BindingFlags.Instance);
@@ -203,10 +203,10 @@ import cs.internal.Runtime;
 	public static function getInstanceFields( c : Class<Dynamic> ) : Array<String> {
 	public static function getInstanceFields( c : Class<Dynamic> ) : Array<String> {
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		Array<object> ret = new Array<object>();
 		Array<object> ret = new Array<object>();
-		
+
 		if (c == typeof(string))
 		if (c == typeof(string))
 		{
 		{
 			ret.push("fromCharCode");
 			ret.push("fromCharCode");
@@ -232,7 +232,7 @@ import cs.internal.Runtime;
 			return untyped e.constructs;
 			return untyped e.constructs;
 		return untyped __cs__("new Array<object>(System.Enum.GetNames(e))");
 		return untyped __cs__("new Array<object>(System.Enum.GetNames(e))");
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (v == null) return ValueType.TNull;
 		if (v == null) return ValueType.TNull;
 
 
@@ -244,7 +244,7 @@ import cs.internal.Runtime;
         }
         }
 
 
         t = v.GetType();
         t = v.GetType();
-        if (t.IsEnum) 
+        if (t.IsEnum)
             return ValueType.TEnum(t);
             return ValueType.TEnum(t);
         if (t.IsValueType)
         if (t.IsValueType)
         {
         {
@@ -283,22 +283,22 @@ import cs.internal.Runtime;
             return ValueType.TClass(t);
             return ValueType.TClass(t);
         }
         }
 	')
 	')
-	public static function typeof( v : Dynamic ) : ValueType 
+	public static function typeof( v : Dynamic ) : ValueType
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 			if (a is haxe.lang.Enum)
 			if (a is haxe.lang.Enum)
 				return a.Equals(b);
 				return a.Equals(b);
 			else
 			else
 				return haxe.lang.Runtime.eq(a, b);
 				return haxe.lang.Runtime.eq(a, b);
 	')
 	')
-	public static function enumEq<T>( a : T, b : T ) : Bool 
+	public static function enumEq<T>( a : T, b : T ) : Bool
 	{
 	{
 		return untyped a.Equals(b);
 		return untyped a.Equals(b);
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (e is System.Enum)
 		if (e is System.Enum)
 			return e + "";
 			return e + "";
@@ -309,7 +309,7 @@ import cs.internal.Runtime;
 	{
 	{
 		return e.tag;
 		return e.tag;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		return ( e is System.Enum ) ? new Array<object>() : ((haxe.lang.Enum) e).@params;
 		return ( e is System.Enum ) ? new Array<object>() : ((haxe.lang.Enum) e).@params;
 	')
 	')
@@ -317,7 +317,7 @@ import cs.internal.Runtime;
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (e is System.Enum)
 		if (e is System.Enum)
 			return ((System.IConvertible) e).ToInt32(null);
 			return ((System.IConvertible) e).ToInt32(null);
@@ -329,7 +329,7 @@ import cs.internal.Runtime;
 		return e.index;
 		return e.index;
 	}
 	}
 
 
-	public static function allEnums<T>( e : Enum<T> ) : Array<T> 
+	public static function allEnums<T>( e : Enum<T> ) : Array<T>
 	{
 	{
 		var ctors = getEnumConstructs(e);
 		var ctors = getEnumConstructs(e);
 		var ret = [];
 		var ret = [];

+ 1 - 1
std/cs/_std/Xml.hx

@@ -37,7 +37,7 @@ private enum RealXmlType {
         Document;
         Document;
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 1 - 0
std/cs/_std/haxe/Int64.hx

@@ -27,6 +27,7 @@ using haxe.Int64;
 private typedef NativeInt64 = Int;
 private typedef NativeInt64 = Int;
 private typedef NativeUInt64 = Int;
 private typedef NativeUInt64 = Int;
 
 
+@:coreApi
 @:nativegen class Int64
 @:nativegen class Int64
 {
 {
 	@:extern private static inline function asNative(i:haxe.Int64):NativeInt64 return untyped i
 	@:extern private static inline function asNative(i:haxe.Int64):NativeInt64 return untyped i

+ 4 - 3
std/cs/_std/sys/FileSystem.hx

@@ -31,6 +31,7 @@ import cs.system.io.FileInfo;
 /**
 /**
 	This class allows you to get informations about the files and directories.
 	This class allows you to get informations about the files and directories.
 **/
 **/
+@:coreApi
 class FileSystem {
 class FileSystem {
 
 
 	/**
 	/**
@@ -88,7 +89,7 @@ class FileSystem {
 		} else {
 		} else {
 			throw "Path '" + path + "' doesn't exist";
 			throw "Path '" + path + "' doesn't exist";
 		}
 		}
-		
+
 	}
 	}
 
 
 	/**
 	/**
@@ -125,7 +126,7 @@ class FileSystem {
 	{
 	{
 		File.Delete(path);
 		File.Delete(path);
 	}
 	}
-	
+
 	/**
 	/**
 		Delete a given directory.
 		Delete a given directory.
 	**/
 	**/
@@ -152,7 +153,7 @@ class FileSystem {
 				ret[i] = path.substr(path.lastIndexOf(sep) + 1);
 				ret[i] = path.substr(path.lastIndexOf(sep) + 1);
 			}
 			}
 		}
 		}
-		
+
 		return cs.Lib.array( ret );
 		return cs.Lib.array( ret );
 	}
 	}
 
 

+ 8 - 7
std/cs/_std/sys/io/File.hx

@@ -27,6 +27,7 @@ package sys.io;
 /**
 /**
 	API for reading and writing to files.
 	API for reading and writing to files.
 **/
 **/
+@:coreApi
 class File {
 class File {
 
 
 	public static function getContent( path : String ) : String
 	public static function getContent( path : String ) : String
@@ -36,14 +37,14 @@ class File {
 		f.close();
 		f.close();
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	public static function saveContent( path : String, content : String ) : Void
 	public static function saveContent( path : String, content : String ) : Void
 	{
 	{
 		var f = write(path, false);
 		var f = write(path, false);
 		f.writeString(content);
 		f.writeString(content);
 		f.close();
 		f.close();
 	}
 	}
-	
+
 	public static function getBytes( path : String ) : haxe.io.Bytes
 	public static function getBytes( path : String ) : haxe.io.Bytes
 	{
 	{
 		var f = read(path, true);
 		var f = read(path, true);
@@ -51,14 +52,14 @@ class File {
 		f.close();
 		f.close();
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	public static function saveBytes( path : String, bytes : haxe.io.Bytes ) : Void
 	public static function saveBytes( path : String, bytes : haxe.io.Bytes ) : Void
 	{
 	{
 		var f = write(path, true);
 		var f = write(path, true);
 		f.writeBytes(bytes, 0, bytes.length);
 		f.writeBytes(bytes, 0, bytes.length);
 		f.close();
 		f.close();
 	}
 	}
-	
+
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	{
 	{
 		#if std-buffer //standardize 4kb buffers
 		#if std-buffer //standardize 4kb buffers
@@ -68,7 +69,7 @@ class File {
 		#end
 		#end
 		return new FileInput(stream);
 		return new FileInput(stream);
 	}
 	}
-	
+
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	{
 	{
 		#if std-buffer //standardize 4kb buffers
 		#if std-buffer //standardize 4kb buffers
@@ -78,7 +79,7 @@ class File {
 		#end
 		#end
 		return new FileOutput(stream);
 		return new FileOutput(stream);
 	}
 	}
-	
+
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	{
 	{
 		#if std-buffer //standardize 4kb buffers
 		#if std-buffer //standardize 4kb buffers
@@ -88,7 +89,7 @@ class File {
 		#end
 		#end
 		return new FileOutput(stream);
 		return new FileOutput(stream);
 	}
 	}
-	
+
 	public static function copy( src : String, dst : String ) : Void
 	public static function copy( src : String, dst : String ) : Void
 	{
 	{
 		cs.system.io.File.Copy(src, dst);
 		cs.system.io.File.Copy(src, dst);

+ 11 - 10
std/cs/_std/sys/io/Process.hx

@@ -27,14 +27,15 @@ import haxe.io.BytesInput;
 import cs.system.io.StreamReader;
 import cs.system.io.StreamReader;
 import cs.system.io.StreamWriter;
 import cs.system.io.StreamWriter;
 
 
+@:coreApi
 class Process {
 class Process {
 
 
 	public var stdout(default,null) : haxe.io.Input;
 	public var stdout(default,null) : haxe.io.Input;
 	public var stderr(default,null) : haxe.io.Input;
 	public var stderr(default,null) : haxe.io.Input;
 	public var stdin(default, null) : haxe.io.Output;
 	public var stdin(default, null) : haxe.io.Output;
-	
+
 	private var native:NativeProcess;
 	private var native:NativeProcess;
-	
+
 
 
 	public function new( cmd : String, args : Array<String> ) : Void
 	public function new( cmd : String, args : Array<String> ) : Void
 	{
 	{
@@ -50,30 +51,30 @@ class Process {
 		native.StartInfo.Arguments = buf.toString();
 		native.StartInfo.Arguments = buf.toString();
 		native.StartInfo.RedirectStandardError = native.StartInfo.RedirectStandardInput = native.StartInfo.RedirectStandardOutput = true;
 		native.StartInfo.RedirectStandardError = native.StartInfo.RedirectStandardInput = native.StartInfo.RedirectStandardOutput = true;
 		native.StartInfo.UseShellExecute = false;
 		native.StartInfo.UseShellExecute = false;
-		
+
 		native.Start();
 		native.Start();
-		
+
 		this.stdout = new cs.io.NativeInput(native.StandardOutput.BaseStream);
 		this.stdout = new cs.io.NativeInput(native.StandardOutput.BaseStream);
 		this.stderr = new cs.io.NativeInput(native.StandardError.BaseStream);
 		this.stderr = new cs.io.NativeInput(native.StandardError.BaseStream);
 		this.stdin = new cs.io.NativeOutput(native.StandardInput.BaseStream);
 		this.stdin = new cs.io.NativeOutput(native.StandardInput.BaseStream);
 	}
 	}
-	
+
 	public function getPid() : Int
 	public function getPid() : Int
 	{
 	{
 		return native.Id;
 		return native.Id;
 	}
 	}
-	
+
 	public function exitCode() : Int
 	public function exitCode() : Int
 	{
 	{
 		native.WaitForExit();
 		native.WaitForExit();
 		return native.ExitCode;
 		return native.ExitCode;
 	}
 	}
-	
+
 	public function close() : Void
 	public function close() : Void
 	{
 	{
 		native.Close();
 		native.Close();
 	}
 	}
-	
+
 	public function kill() : Void
 	public function kill() : Void
 	{
 	{
 		native.Kill();
 		native.Kill();
@@ -92,7 +93,7 @@ FIXME: The actual process class is much more complex than this, so here it is in
 	var StandardError(default, null):StreamReader;
 	var StandardError(default, null):StreamReader;
 	var StandardInput(default, null):StreamWriter;
 	var StandardInput(default, null):StreamWriter;
 	var StandardOutput(default, null):StreamReader;
 	var StandardOutput(default, null):StreamReader;
-	
+
 	function new():Void;
 	function new():Void;
 	function Close():Void;
 	function Close():Void;
 	function Kill():Void;
 	function Kill():Void;
@@ -109,5 +110,5 @@ FIXME: The actual process class is much more complex than this, so here it is in
 	var RedirectStandardOutput:Bool;
 	var RedirectStandardOutput:Bool;
 	var UseShellExecute:Bool;
 	var UseShellExecute:Bool;
 	function new(filename:String, args:String):Void;
 	function new(filename:String, args:String):Void;
-	
+
 }
 }

+ 1 - 1
std/flash/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 
 	var r : flash.utils.RegExp;
 	var r : flash.utils.RegExp;
 	var result : {> Array<String>, index : Int, input : String };
 	var result : {> Array<String>, index : Int, input : String };

+ 1 - 1
std/flash/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 
 	private var h :flash.utils.Dictionary;
 	private var h :flash.utils.Dictionary;
 
 

+ 1 - 1
std/flash/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 
 	private var h : flash.utils.Dictionary;
 	private var h : flash.utils.Dictionary;
 
 

+ 1 - 1
std/flash/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 
 	public static function hasField( o : Dynamic, field : String ) : Bool untyped {
 	public static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return o.hasOwnProperty( field );
 		return o.hasOwnProperty( field );

+ 1 - 1
std/flash/_std/Std.hx

@@ -24,7 +24,7 @@
  */
  */
 import flash.Boot;
 import flash.Boot;
 
 
-@:core_api class Std {
+@:coreApi class Std {
 
 
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 		return untyped flash.Boot.__instanceof(v,t);
 		return untyped flash.Boot.__instanceof(v,t);

+ 1 - 1
std/flash/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:core_api class Type {
+@:coreApi class Type {
 
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		var cname = __global__["flash.utils.getQualifiedClassName"](o);
 		var cname = __global__["flash.utils.getQualifiedClassName"](o);

+ 7 - 7
std/flash/_std/Xml.hx

@@ -29,7 +29,7 @@ import flash.xml.XMLList;
 enum XmlType {
 enum XmlType {
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
@@ -67,7 +67,7 @@ enum XmlType {
 		}
 		}
 		return wrap( root, Xml.Document );
 		return wrap( root, Xml.Document );
 	}
 	}
-	
+
 	@:keep #if as3 @:hack public #end static function compare( a : Xml, b : Xml ) : Bool {
 	@:keep #if as3 @:hack public #end static function compare( a : Xml, b : Xml ) : Bool {
 		return a == null ? b == null : (b == null ? false : a._node == b._node);
 		return a == null ? b == null : (b == null ? false : a._node == b._node);
 	}
 	}
@@ -285,7 +285,7 @@ enum XmlType {
 
 
 	public function iterator() : Iterator<Xml> {
 	public function iterator() : Iterator<Xml> {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var children:XMLList = _node.children();
 		var children:XMLList = _node.children();
 		var wrappers :Array<Xml> = wraps(children);
 		var wrappers :Array<Xml> = wraps(children);
 		var cur = 0;
 		var cur = 0;
@@ -301,7 +301,7 @@ enum XmlType {
 
 
 	public function elements() : Iterator<Xml> {
 	public function elements() : Iterator<Xml> {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var elements:XMLList = _node.elements();
 		var elements:XMLList = _node.elements();
 		var wrappers :Array<Xml> = wraps(elements);
 		var wrappers :Array<Xml> = wraps(elements);
 		var cur = 0;
 		var cur = 0;
@@ -317,7 +317,7 @@ enum XmlType {
 
 
 	public function elementsNamed( name : String ) : Iterator<Xml> {
 	public function elementsNamed( name : String ) : Iterator<Xml> {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";	
+			throw "bad nodeType";
 		var ns = name.split(":");
 		var ns = name.split(":");
 		var elements:XMLList;
 		var elements:XMLList;
 		if( ns.length == 1 )
 		if( ns.length == 1 )
@@ -360,14 +360,14 @@ enum XmlType {
 
 
 	public function addChild( x : Xml ) : Void {
 	public function addChild( x : Xml ) : Void {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var children:XMLList = _node.children();
 		var children:XMLList = _node.children();
 		_node.appendChild(x._node);
 		_node.appendChild(x._node);
 	}
 	}
 
 
 	public function removeChild( x : Xml ) : Bool {
 	public function removeChild( x : Xml ) : Bool {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var children:XMLList = _node.children();
 		var children:XMLList = _node.children();
 		if( _node != x._node.parent() )
 		if( _node != x._node.parent() )
 			return false;
 			return false;

+ 5 - 3
std/flash/_std/haxe/Resource.hx

@@ -25,6 +25,7 @@
 package haxe;
 package haxe;
 
 
 #if as3
 #if as3
+@:coreApi
 class Resource {
 class Resource {
 	public static function listNames() : Array<String> untyped {
 	public static function listNames() : Array<String> untyped {
 		return __keys__(__resources__.list);
 		return __keys__(__resources__.list);
@@ -39,18 +40,19 @@ class Resource {
 		var b = resolve(name);
 		var b = resolve(name);
 		return b == null ? null : haxe.io.Bytes.ofData(b);
 		return b == null ? null : haxe.io.Bytes.ofData(b);
 	}
 	}
-	
+
 	static function resolve( name : String) :flash.utils.ByteArray untyped {
 	static function resolve( name : String) :flash.utils.ByteArray untyped {
 		var n = __resources__.list[name];
 		var n = __resources__.list[name];
 		if (n == null) return null;
 		if (n == null) return null;
 		return untyped __new__(n);
 		return untyped __new__(n);
 	}
 	}
-	
+
 	static function __init__() {
 	static function __init__() {
 		untyped __resources__.__init__();
 		untyped __resources__.__init__();
-	}	
+	}
 }
 }
 #else
 #else
+@:coreApi
 class Resource {
 class Resource {
 
 
 	static var content : Array<{ name : String }>;
 	static var content : Array<{ name : String }>;

+ 1 - 1
std/flash8/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 1 - 1
std/flash8/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 3 - 3
std/flash8/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 
 	public inline static function hasField( o : Dynamic, field : String ) : Bool untyped {
 	public inline static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return __this__["hasOwnProperty"]["call"](o,field);
 		return __this__["hasOwnProperty"]["call"](o,field);
@@ -46,7 +46,7 @@
 		} while (c != null);
 		} while (c != null);
 		return null;
 		return null;
 	}
 	}
-	
+
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic untyped {
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic untyped {
 		var getter = findAccessor( Std.is(o,Class) ? o : o.__class__, "get_" +field);
 		var getter = findAccessor( Std.is(o,Class) ? o : o.__class__, "get_" +field);
 		return if (getter != null)
 		return if (getter != null)
@@ -60,7 +60,7 @@
 		return if (setter != null)
 		return if (setter != null)
 			o[setter]["apply"](o, [value]);
 			o[setter]["apply"](o, [value]);
 		else
 		else
-			Reflect.setField(o, field, value);	
+			Reflect.setField(o, field, value);
 	}
 	}
 
 
 	public inline static function callMethod( o : Dynamic, func : Dynamic, args : Array<Dynamic> ) : Dynamic untyped {
 	public inline static function callMethod( o : Dynamic, func : Dynamic, args : Array<Dynamic> ) : Dynamic untyped {

+ 1 - 1
std/flash8/_std/Std.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Std {
+@:coreApi class Std {
 
 
 	@:feature("typed_cast")
 	@:feature("typed_cast")
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {

+ 1 - 1
std/flash8/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:core_api class Type {
+@:coreApi class Type {
 
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		if( o.__enum__ != null )
 		if( o.__enum__ != null )

+ 3 - 3
std/flash8/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 enum XmlType {
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
@@ -124,13 +124,13 @@ enum XmlType {
 
 
 	public function firstChild() : Xml {
 	public function firstChild() : Xml {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		return convert(this.__x[untyped "firstChild"]);
 		return convert(this.__x[untyped "firstChild"]);
 	}
 	}
 
 
 	public function firstElement() : Xml {
 	public function firstElement() : Xml {
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
 		if( nodeType != Xml.Element && nodeType != Xml.Document )
-			throw "bad nodeType";		
+			throw "bad nodeType";
 		var e : Dynamic = __x[untyped "firstChild"];
 		var e : Dynamic = __x[untyped "firstChild"];
 		while( e != null && e[untyped "nodeType"] != 1 )
 		while( e != null && e[untyped "nodeType"] != 1 )
 			e = e[untyped "nextSibling"];
 			e = e[untyped "nextSibling"];

File diff suppressed because it is too large
+ 0 - 0
std/java/_std/Array.hx


+ 3 - 3
std/java/_std/Date.hx

@@ -2,10 +2,10 @@ package;
 import haxe.Int64;
 import haxe.Int64;
 
 
 @:SuppressWarnings("deprecation")
 @:SuppressWarnings("deprecation")
-@:core_api class Date 
+@:coreApi class Date
 {
 {
 	private var date:java.util.Date;
 	private var date:java.util.Date;
-	
+
 	/**
 	/**
 		Creates a new date object.
 		Creates a new date object.
 	**/
 	**/
@@ -128,7 +128,7 @@ import haxe.Int64;
 	**/
 	**/
 	static public function fromString( s : String ) : Date
 	static public function fromString( s : String ) : Date
 	{
 	{
-		switch( s.length ) 
+		switch( s.length )
 		{
 		{
 			case 8: // hh:mm:ss
 			case 8: // hh:mm:ss
 				var k = s.split(":");
 				var k = s.split(":");

+ 9 - 8
std/java/_std/EReg.hx

@@ -29,13 +29,14 @@ import java.util.regex.Regex;
 	Strings. Have a look at the tutorial on haXe website to learn
 	Strings. Have a look at the tutorial on haXe website to learn
 	how to use them.
 	how to use them.
 **/
 **/
+@:coreApi
 class EReg {
 class EReg {
 
 
 	private var pattern:String;
 	private var pattern:String;
 	private var matcher:Matcher;
 	private var matcher:Matcher;
 	private var cur:String;
 	private var cur:String;
 	private var isGlobal:Bool;
 	private var isGlobal:Bool;
-	
+
 	/**
 	/**
 		Creates a new regular expression with pattern [r] and
 		Creates a new regular expression with pattern [r] and
 		options [opt].
 		options [opt].
@@ -56,11 +57,11 @@ class EReg {
 					isGlobal = true;
 					isGlobal = true;
 			}
 			}
 		}
 		}
-		
+
 		matcher = Pattern.compile(convert(r), flags).matcher("");
 		matcher = Pattern.compile(convert(r), flags).matcher("");
 		pattern = r;
 		pattern = r;
 	}
 	}
-	
+
 	private static function convert(r:String):String
 	private static function convert(r:String):String
 	{
 	{
 		//some references of the implementation:
 		//some references of the implementation:
@@ -82,7 +83,7 @@ class EReg {
 			switch(c)
 			switch(c)
 			{
 			{
 				case '\\'.code: //escape-sequence
 				case '\\'.code: //escape-sequence
-					
+
 			}
 			}
 		}
 		}
 		*/
 		*/
@@ -104,7 +105,7 @@ class EReg {
 		is no such group. If [n = 0], the whole matched substring
 		is no such group. If [n = 0], the whole matched substring
 		is returned.
 		is returned.
 	**/
 	**/
-	public function matched( n : Int ) : String 
+	public function matched( n : Int ) : String
 	{
 	{
 		if (n == 0)
 		if (n == 0)
 			return matcher.group();
 			return matcher.group();
@@ -116,7 +117,7 @@ class EReg {
 		Returns the part of the string that was as the left of
 		Returns the part of the string that was as the left of
 		of the matched substring.
 		of the matched substring.
 	**/
 	**/
-	public function matchedLeft() : String 
+	public function matchedLeft() : String
 	{
 	{
 		return untyped cur.substring(0, matcher.start());
 		return untyped cur.substring(0, matcher.start());
 	}
 	}
@@ -125,7 +126,7 @@ class EReg {
 		Returns the part of the string that was at the right of
 		Returns the part of the string that was at the right of
 		of the matched substring.
 		of the matched substring.
 	**/
 	**/
-	public function matchedRight() : String 
+	public function matchedRight() : String
 	{
 	{
 		return untyped cur.substring(matcher.end(), cur.length);
 		return untyped cur.substring(matcher.end(), cur.length);
 	}
 	}
@@ -143,7 +144,7 @@ class EReg {
 		Split a string by using the regular expression to match
 		Split a string by using the regular expression to match
 		the separators.
 		the separators.
 	**/
 	**/
-	public function split( s : String ) : Array<String> 
+	public function split( s : String ) : Array<String>
 	{
 	{
 		if (isGlobal)
 		if (isGlobal)
 		{
 		{

+ 64 - 64
std/java/_std/Hash.hx

@@ -24,45 +24,45 @@ import java.NativeArray;
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T>  
+@:coreApi class Hash<T>
 {
 {
 	@:extern private static inline var HASH_UPPER = 0.77;
 	@:extern private static inline var HASH_UPPER = 0.77;
 	@:extern private static inline var FLAG_EMPTY = 0;
 	@:extern private static inline var FLAG_EMPTY = 0;
 	@:extern private static inline var FLAG_DEL = 1;
 	@:extern private static inline var FLAG_DEL = 1;
-	
+
 	/**
 	/**
 	 * This is the most important structure here and the reason why it's so fast.
 	 * This is the most important structure here and the reason why it's so fast.
 	 * It's an array of all the hashes contained in the table. These hashes cannot be 0 nor 1,
 	 * It's an array of all the hashes contained in the table. These hashes cannot be 0 nor 1,
 	 * which stand for "empty" and "deleted" states.
 	 * which stand for "empty" and "deleted" states.
-	 * 
+	 *
 	 * The lookup algorithm will keep looking until a 0 or the key wanted is found;
 	 * The lookup algorithm will keep looking until a 0 or the key wanted is found;
 	 * The insertion algorithm will do the same but will also break when FLAG_DEL is found;
 	 * The insertion algorithm will do the same but will also break when FLAG_DEL is found;
 	 */
 	 */
 	private var hashes:NativeArray<HashType>;
 	private var hashes:NativeArray<HashType>;
 	private var _keys:NativeArray<String>;
 	private var _keys:NativeArray<String>;
 	private var vals:NativeArray<T>;
 	private var vals:NativeArray<T>;
-	
+
 	private var nBuckets:Int;
 	private var nBuckets:Int;
 	private var size:Int;
 	private var size:Int;
 	private var nOccupied:Int;
 	private var nOccupied:Int;
 	private var upperBound:Int;
 	private var upperBound:Int;
-	
+
 	private var cachedKey:String;
 	private var cachedKey:String;
 	private var cachedIndex:Int;
 	private var cachedIndex:Int;
-	
+
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL
 	private var totalProbes:Int;
 	private var totalProbes:Int;
 	private var probeTimes:Int;
 	private var probeTimes:Int;
 	private var sameHash:Int;
 	private var sameHash:Int;
 	private var maxProbe:Int;
 	private var maxProbe:Int;
 #end
 #end
-	
-	public function new() : Void 
+
+	public function new() : Void
 	{
 	{
 		cachedIndex = -1;
 		cachedIndex = -1;
 	}
 	}
 
 
-	public function set( key : String, value : T ) : Void 
+	public function set( key : String, value : T ) : Void
 	{
 	{
 		var x:Int, k:Int;
 		var x:Int, k:Int;
 		if (nOccupied >= upperBound)
 		if (nOccupied >= upperBound)
@@ -72,14 +72,14 @@ import java.NativeArray;
 			else
 			else
 				resize(nBuckets + 2);
 				resize(nBuckets + 2);
 		}
 		}
-		
+
 		var hashes = hashes, keys = _keys, hashes = hashes;
 		var hashes = hashes, keys = _keys, hashes = hashes;
 		{
 		{
 			var mask = (nBuckets == 0) ? 0 : nBuckets - 1;
 			var mask = (nBuckets == 0) ? 0 : nBuckets - 1;
 			var site = x = nBuckets;
 			var site = x = nBuckets;
 			k = hash(key);
 			k = hash(key);
 			var i = k & mask, nProbes = 0;
 			var i = k & mask, nProbes = 0;
-			
+
 			//for speed up
 			//for speed up
 			if (isEither(hashes[i])) {
 			if (isEither(hashes[i])) {
 				x = i;
 				x = i;
@@ -97,16 +97,16 @@ import java.NativeArray;
 				}
 				}
 				x = i;
 				x = i;
 			}
 			}
-			
+
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
 				maxProbe = nProbes;
 			totalProbes++;
 			totalProbes++;
 #end
 #end
 		}
 		}
-		
+
 		var flag = hashes[x];
 		var flag = hashes[x];
-		if (isEmpty(flag)) 
+		if (isEmpty(flag))
 		{
 		{
 			keys[x] = key;
 			keys[x] = key;
 			vals[x] = value;
 			vals[x] = value;
@@ -122,17 +122,17 @@ import java.NativeArray;
 			assert(_keys[x] == key);
 			assert(_keys[x] == key);
 			vals[x] = value;
 			vals[x] = value;
 		}
 		}
-		
+
 		cachedIndex = x;
 		cachedIndex = x;
 		cachedKey = key;
 		cachedKey = key;
 	}
 	}
-	
+
 	@:final private function lookup( key : String ) : Int
 	@:final private function lookup( key : String ) : Int
 	{
 	{
 		if (nBuckets != 0)
 		if (nBuckets != 0)
 		{
 		{
 			var hashes = hashes, keys = _keys;
 			var hashes = hashes, keys = _keys;
-			
+
 			var mask = nBuckets - 1, hash = hash(key), k = hash, nProbes = 0;
 			var mask = nBuckets - 1, hash = hash(key), k = hash, nProbes = 0;
 			var i = k & mask;
 			var i = k & mask;
 			var last = i, flag;
 			var last = i, flag;
@@ -146,7 +146,7 @@ import java.NativeArray;
 					throw "assert";
 					throw "assert";
 #end
 #end
 			}
 			}
-			
+
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL
 			if (nProbes > maxProbe)
 			if (nProbes > maxProbe)
 				maxProbe = nProbes;
 				maxProbe = nProbes;
@@ -154,10 +154,10 @@ import java.NativeArray;
 #end
 #end
 			return isEither(flag) ? -1 : i;
 			return isEither(flag) ? -1 : i;
 		}
 		}
-		
+
 		return -1;
 		return -1;
 	}
 	}
-	
+
 	@:final @:private function resize(newNBuckets:Int) : Void
 	@:final @:private function resize(newNBuckets:Int) : Void
 	{
 	{
 		//This function uses 0.25*n_bucktes bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets.
 		//This function uses 0.25*n_bucktes bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets.
@@ -178,7 +178,7 @@ import java.NativeArray;
 					if (_keys != null)
 					if (_keys != null)
 						arrayCopy(_keys, 0, k, 0, nBuckets);
 						arrayCopy(_keys, 0, k, 0, nBuckets);
 					_keys = k;
 					_keys = k;
-					
+
 					var v = new NativeArray(newNBuckets);
 					var v = new NativeArray(newNBuckets);
 					if (vals != null)
 					if (vals != null)
 						arrayCopy(vals, 0, v, 0, nBuckets);
 						arrayCopy(vals, 0, v, 0, nBuckets);
@@ -186,16 +186,16 @@ import java.NativeArray;
 				} //otherwise shrink
 				} //otherwise shrink
 			}
 			}
 		}
 		}
-		
-		if (j != 0) 
+
+		if (j != 0)
 		{ //rehashing is required
 		{ //rehashing is required
 			//resetting cache
 			//resetting cache
 			cachedKey = null;
 			cachedKey = null;
 			cachedIndex = -1;
 			cachedIndex = -1;
-			
+
 			j = -1;
 			j = -1;
 			var nBuckets = nBuckets, _keys = _keys, vals = vals, hashes = hashes;
 			var nBuckets = nBuckets, _keys = _keys, vals = vals, hashes = hashes;
-			
+
 			var newMask = newNBuckets - 1;
 			var newMask = newNBuckets - 1;
 			while (++j < nBuckets)
 			while (++j < nBuckets)
 			{
 			{
@@ -204,19 +204,19 @@ import java.NativeArray;
 				{
 				{
 					var key = _keys[j];
 					var key = _keys[j];
 					var val = vals[j];
 					var val = vals[j];
-					
+
 					hashes[j] = FLAG_DEL;
 					hashes[j] = FLAG_DEL;
 					while (true) /* kick-out process; sort of like in Cuckoo hashing */
 					while (true) /* kick-out process; sort of like in Cuckoo hashing */
 					{
 					{
 						var nProbes = 0;
 						var nProbes = 0;
 						//var inc = getInc(k, newMask);
 						//var inc = getInc(k, newMask);
 						var i = k & newMask;
 						var i = k & newMask;
-						
+
 						while (!isEmpty(newHash[i]))
 						while (!isEmpty(newHash[i]))
 							i = (i + ++nProbes) & newMask;
 							i = (i + ++nProbes) & newMask;
-						
+
 						newHash[i] = k;
 						newHash[i] = k;
-						
+
 						if (i < nBuckets && !isEither(k = hashes[i])) /* kick out the existing element */
 						if (i < nBuckets && !isEither(k = hashes[i])) /* kick out the existing element */
 						{
 						{
 							{
 							{
@@ -229,7 +229,7 @@ import java.NativeArray;
 								vals[i] = val;
 								vals[i] = val;
 								val = tmp;
 								val = tmp;
 							}
 							}
-							
+
 							hashes[i] = FLAG_DEL; /* mark it as deleted in the old hash table */
 							hashes[i] = FLAG_DEL; /* mark it as deleted in the old hash table */
 						} else { /* write the element and jump out of the loop */
 						} else { /* write the element and jump out of the loop */
 							_keys[i] = key;
 							_keys[i] = key;
@@ -239,7 +239,7 @@ import java.NativeArray;
 					}
 					}
 				}
 				}
 			}
 			}
-			
+
 			if (nBuckets > newNBuckets) /* shrink the hash table */
 			if (nBuckets > newNBuckets) /* shrink the hash table */
 			{
 			{
 				{
 				{
@@ -253,7 +253,7 @@ import java.NativeArray;
 					this.vals = v;
 					this.vals = v;
 				}
 				}
 			}
 			}
-			
+
 			this.hashes = newHash;
 			this.hashes = newHash;
 			this.nBuckets = newNBuckets;
 			this.nBuckets = newNBuckets;
 			this.nOccupied = size;
 			this.nOccupied = size;
@@ -261,86 +261,86 @@ import java.NativeArray;
 		}
 		}
 	}
 	}
 
 
-	public function get( key : String ) : Null<T> 
+	public function get( key : String ) : Null<T>
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 		{
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		idx = lookup(key);
 		idx = lookup(key);
 		if (idx != -1)
 		if (idx != -1)
 		{
 		{
 			cachedKey = key;
 			cachedKey = key;
 			cachedIndex = idx;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		return null;
 		return null;
 	}
 	}
-	
-	private function getDefault( key : String, def : T ) : T 
+
+	private function getDefault( key : String, def : T ) : T
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 		{
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		idx = lookup(key);
 		idx = lookup(key);
 		if (idx != -1)
 		if (idx != -1)
 		{
 		{
 			cachedKey = key;
 			cachedKey = key;
 			cachedIndex = idx;
 			cachedIndex = idx;
-			
+
 			return vals[idx];
 			return vals[idx];
 		}
 		}
-		
+
 		return def;
 		return def;
 	}
 	}
 
 
-	public function exists( key : String ) : Bool 
+	public function exists( key : String ) : Bool
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		if (cachedKey == key && ( (idx = cachedIndex) != -1 ))
 		{
 		{
 			return true;
 			return true;
 		}
 		}
-		
+
 		idx = lookup(key);
 		idx = lookup(key);
 		if (idx != -1)
 		if (idx != -1)
 		{
 		{
 			cachedKey = key;
 			cachedKey = key;
 			cachedIndex = idx;
 			cachedIndex = idx;
-			
+
 			return true;
 			return true;
 		}
 		}
-		
+
 		return false;
 		return false;
 	}
 	}
 
 
-	public function remove( key : String ) : Bool 
+	public function remove( key : String ) : Bool
 	{
 	{
 		var idx = -1;
 		var idx = -1;
 		if (! (cachedKey == key && ( (idx = cachedIndex) != -1 )))
 		if (! (cachedKey == key && ( (idx = cachedIndex) != -1 )))
 		{
 		{
 			idx = lookup(key);
 			idx = lookup(key);
 		}
 		}
-		
+
 		if (idx == -1)
 		if (idx == -1)
 		{
 		{
 			return false;
 			return false;
 		} else {
 		} else {
 			if (cachedKey == key)
 			if (cachedKey == key)
 				cachedIndex = -1;
 				cachedIndex = -1;
-			
+
 			hashes[idx] = FLAG_EMPTY;
 			hashes[idx] = FLAG_EMPTY;
 			_keys[idx] = null;
 			_keys[idx] = null;
 			vals[idx] = null;
 			vals[idx] = null;
 			--size;
 			--size;
-			
+
 			return true;
 			return true;
 		}
 		}
 	}
 	}
@@ -349,7 +349,7 @@ import java.NativeArray;
 		Returns an iterator of all keys in the hashtable.
 		Returns an iterator of all keys in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
 	**/
-	public function keys() : Iterator<String> 
+	public function keys() : Iterator<String>
 	{
 	{
 		var i = 0;
 		var i = 0;
 		var len = nBuckets;
 		var len = nBuckets;
@@ -369,7 +369,7 @@ import java.NativeArray;
 				var ret = _keys[i];
 				var ret = _keys[i];
 				cachedIndex = i;
 				cachedIndex = i;
 				cachedKey = ret;
 				cachedKey = ret;
-				
+
 				i = i + 1;
 				i = i + 1;
 				return ret;
 				return ret;
 			}
 			}
@@ -380,7 +380,7 @@ import java.NativeArray;
 		Returns an iterator of all values in the hashtable.
 		Returns an iterator of all values in the hashtable.
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 		Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration
 	**/
 	**/
-	public function iterator() : Iterator<T> 
+	public function iterator() : Iterator<T>
 	{
 	{
 		var i = 0;
 		var i = 0;
 		var len = nBuckets;
 		var len = nBuckets;
@@ -422,7 +422,7 @@ import java.NativeArray;
 		s.add("}");
 		s.add("}");
 		return s.toString();
 		return s.toString();
 	}
 	}
-	
+
 	@:extern private static inline function roundUp(x:Int):Int
 	@:extern private static inline function roundUp(x:Int):Int
 	{
 	{
 		--x;
 		--x;
@@ -433,21 +433,21 @@ import java.NativeArray;
 		x |= (x) >>> 16;
 		x |= (x) >>> 16;
 		return ++x;
 		return ++x;
 	}
 	}
-	
+
 	@:extern private static inline function getInc(k:Int, mask:Int):Int //return 1 for linear probing
 	@:extern private static inline function getInc(k:Int, mask:Int):Int //return 1 for linear probing
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)
 		return (((k) >> 3 ^ (k) << 3) | 1) & (mask)
-	
+
 	@:extern private static inline function isEither(v:HashType):Bool
 	@:extern private static inline function isEither(v:HashType):Bool
 		return (v & 0xFFFFFFFE) == 0
 		return (v & 0xFFFFFFFE) == 0
-	
+
 	@:extern private static inline function isEmpty(v:HashType):Bool
 	@:extern private static inline function isEmpty(v:HashType):Bool
 		return v == FLAG_EMPTY
 		return v == FLAG_EMPTY
-		
+
 	@:extern private static inline function isDel(v:HashType):Bool
 	@:extern private static inline function isDel(v:HashType):Bool
 		return v == FLAG_DEL
 		return v == FLAG_DEL
-	
+
 	//guarantee: Whatever this function is, it will never return 0 nor 1
 	//guarantee: Whatever this function is, it will never return 0 nor 1
-	@:extern private static inline function hash(s:String):HashType 
+	@:extern private static inline function hash(s:String):HashType
 	{
 	{
 		var k:Int = untyped s.hashCode();
 		var k:Int = untyped s.hashCode();
 		//k *= 357913941;
 		//k *= 357913941;
@@ -455,14 +455,14 @@ import java.NativeArray;
 		//k += ~357913941;
 		//k += ~357913941;
 		//k ^= k >> 31;
 		//k ^= k >> 31;
 		//k ^= k << 31;
 		//k ^= k << 31;
-		
+
 		k = (k+0x7ed55d16) + (k<<12);
 		k = (k+0x7ed55d16) + (k<<12);
 		k = (k^0xc761c23c) ^ (k>>19);
 		k = (k^0xc761c23c) ^ (k>>19);
 		k = (k+0x165667b1) + (k<<5);
 		k = (k+0x165667b1) + (k<<5);
 		k = (k+0xd3a2646c) ^ (k<<9);
 		k = (k+0xd3a2646c) ^ (k<<9);
 		k = (k+0xfd7046c5) + (k<<3);
 		k = (k+0xfd7046c5) + (k<<3);
 		k = (k^0xb55a4f09) ^ (k>>16);
 		k = (k^0xb55a4f09) ^ (k>>16);
-		
+
 		var ret = k;
 		var ret = k;
 		if (isEither(ret))
 		if (isEither(ret))
 		{
 		{
@@ -471,13 +471,13 @@ import java.NativeArray;
 			else
 			else
 				ret = 0xFFFFFFFF;
 				ret = 0xFFFFFFFF;
 		}
 		}
-		
+
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	@:extern private static inline function arrayCopy(sourceArray:Dynamic, sourceIndex:Int, destinationArray:Dynamic, destinationIndex:Int, length:Int):Void
 	@:extern private static inline function arrayCopy(sourceArray:Dynamic, sourceIndex:Int, destinationArray:Dynamic, destinationIndex:Int, length:Int):Void
 		java.lang.System.arraycopy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
 		java.lang.System.arraycopy(sourceArray, sourceIndex, destinationArray, destinationIndex, length)
-	
+
 	@:extern private static inline function assert(x:Bool):Void
 	@:extern private static inline function assert(x:Bool):Void
 	{
 	{
 #if DEBUG_HASHTBL
 #if DEBUG_HASHTBL

+ 1 - 1
std/java/_std/IntHash.hx

@@ -32,7 +32,7 @@ import java.NativeArray;
  * (https://jonasmalaco.com/fossil/test/jonas-haxe/artifact/887b53126e237d6c68951111d594033403889304)
  * (https://jonasmalaco.com/fossil/test/jonas-haxe/artifact/887b53126e237d6c68951111d594033403889304)
  */
  */
 
 
-@:core_api class IntHash<T>
+@:coreApi class IntHash<T>
 {
 {
 	private static inline var HASH_UPPER = 0.7;
 	private static inline var HASH_UPPER = 0.7;
 
 

+ 1 - 0
std/java/_std/Math.hx

@@ -26,6 +26,7 @@
 /**
 /**
 	This class defines mathematical functions and constants.
 	This class defines mathematical functions and constants.
 **/
 **/
+@:coreApi
 @:native("java.lang.Math") extern class Math
 @:native("java.lang.Math") extern class Math
 {
 {
 	static var PI(default,null) : Float;
 	static var PI(default,null) : Float;

+ 14 - 14
std/java/_std/Reflect.hx

@@ -29,7 +29,7 @@ import java.Boot;
 	The Reflect API is a way to manipulate values dynamicly through an
 	The Reflect API is a way to manipulate values dynamicly through an
 	abstract interface in an untyped manner. Use with care.
 	abstract interface in an untyped manner. Use with care.
 **/
 **/
-@:keep @:core_api class Reflect {
+@:keep @:coreApi class Reflect {
 
 
 	/**
 	/**
 		Tells if an object has a field set. This doesn't take into account the object prototype (class methods).
 		Tells if an object has a field set. This doesn't take into account the object prototype (class methods).
@@ -37,7 +37,7 @@ import java.Boot;
 	@:functionBody('
 	@:functionBody('
 		if (o instanceof haxe.lang.IHxObject)
 		if (o instanceof haxe.lang.IHxObject)
 		return ((haxe.lang.IHxObject) o).__hx_getField(field, false, true, false) != haxe.lang.Runtime.undefined;
 		return ((haxe.lang.IHxObject) o).__hx_getField(field, false, true, false) != haxe.lang.Runtime.undefined;
-		
+
 		return haxe.lang.Runtime.slowHasField(o, field);
 		return haxe.lang.Runtime.slowHasField(o, field);
 	')
 	')
 	public static function hasField( o : Dynamic, field : String ) : Bool
 	public static function hasField( o : Dynamic, field : String ) : Bool
@@ -51,7 +51,7 @@ import java.Boot;
 	@:functionBody('
 	@:functionBody('
 		if (o instanceof haxe.lang.IHxObject)
 		if (o instanceof haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, false, false, false);
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, false, false, false);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	')
 	public static function field( o : Dynamic, field : String ) : Dynamic
 	public static function field( o : Dynamic, field : String ) : Dynamic
@@ -71,16 +71,16 @@ import java.Boot;
 	')
 	')
 	public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	public static function setField( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
 	{
-		
+
 	}
 	}
-	
+
 	/**
 	/**
 		Similar to field but also supports property (might be slower).
 		Similar to field but also supports property (might be slower).
 	**/
 	**/
 	@:functionBody('
 	@:functionBody('
 		if (o instanceof haxe.lang.IHxObject)
 		if (o instanceof haxe.lang.IHxObject)
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, false, false, true);
 			return ((haxe.lang.IHxObject) o).__hx_getField(field, false, false, true);
-		
+
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 		return haxe.lang.Runtime.slowGetField(o, field, false);
 	')
 	')
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
 	public static function getProperty( o : Dynamic, field : String ) : Dynamic
@@ -99,7 +99,7 @@ import java.Boot;
 	')
 	')
 	public static function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void
 	public static function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void
 	{
 	{
-		
+
 	}
 	}
 
 
 	/**
 	/**
@@ -159,18 +159,18 @@ import java.Boot;
 		Compare two methods closures. Returns true if it's the same method of the same instance.
 		Compare two methods closures. Returns true if it's the same method of the same instance.
 	**/
 	**/
 	@:functionBody('
 	@:functionBody('
-		if (f1 == f2) 
+		if (f1 == f2)
 			return true;
 			return true;
-		
+
 		if (f1 instanceof haxe.lang.Closure && f2 instanceof haxe.lang.Closure)
 		if (f1 instanceof haxe.lang.Closure && f2 instanceof haxe.lang.Closure)
 		{
 		{
 			haxe.lang.Closure f1c = (haxe.lang.Closure) f1;
 			haxe.lang.Closure f1c = (haxe.lang.Closure) f1;
 			haxe.lang.Closure f2c = (haxe.lang.Closure) f2;
 			haxe.lang.Closure f2c = (haxe.lang.Closure) f2;
-			
+
 			return haxe.lang.Runtime.refEq(f1c.obj, f2c.obj) && f1c.field.equals(f2c.field);
 			return haxe.lang.Runtime.refEq(f1c.obj, f2c.obj) && f1c.field.equals(f2c.field);
 		}
 		}
-		
-		
+
+
 		return false;
 		return false;
 	')
 	')
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool
@@ -220,6 +220,6 @@ import java.Boot;
 	{
 	{
 		return new VarArgsFunction(f);
 		return new VarArgsFunction(f);
 	}
 	}
-	
-	
+
+
 }
 }

+ 36 - 37
std/java/_std/Std.hx

@@ -25,9 +25,9 @@
 import java.Boot;
 import java.Boot;
 import java.Lib;
 import java.Lib;
 import java.internal.Exceptions;
 import java.internal.Exceptions;
- 
-@:core_api @:nativegen class Std {
-	public static function is( v : Dynamic, t : Dynamic ) : Bool 
+
+@:coreApi @:nativegen class Std {
+	public static function is( v : Dynamic, t : Dynamic ) : Bool
 	{
 	{
 		if (v == null)
 		if (v == null)
 			return t == Dynamic;
 			return t == Dynamic;
@@ -37,7 +37,7 @@ import java.internal.Exceptions;
 		if (clt == null)
 		if (clt == null)
 			return false;
 			return false;
 		var name:String = untyped __java__("clt.getName()");
 		var name:String = untyped __java__("clt.getName()");
-		
+
 		switch(name)
 		switch(name)
 		{
 		{
 			case "double", "java.lang.Double":
 			case "double", "java.lang.Double":
@@ -49,9 +49,9 @@ import java.internal.Exceptions;
 			case "java.lang.Object":
 			case "java.lang.Object":
 				return true;
 				return true;
 		}
 		}
-		
+
 		var clv:Class<Dynamic> = untyped __java__('v.getClass()');
 		var clv:Class<Dynamic> = untyped __java__('v.getClass()');
-		
+
 		return untyped clt.isAssignableFrom(clv);
 		return untyped clt.isAssignableFrom(clv);
 	}
 	}
 
 
@@ -62,15 +62,15 @@ import java.internal.Exceptions;
 	public static inline function int( x : Float ) : Int {
 	public static inline function int( x : Float ) : Int {
 		return cast x;
 		return cast x;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (x == null) return null;
 		if (x == null) return null;
-		
+
 		int ret = 0;
 		int ret = 0;
 		int base = 10;
 		int base = 10;
 		int i = 0;
 		int i = 0;
 		int len = x.length();
 		int len = x.length();
-		
+
 		if (x.startsWith("0") && len > 2)
 		if (x.startsWith("0") && len > 2)
 		{
 		{
 			char c = x.charAt(1);
 			char c = x.charAt(1);
@@ -80,28 +80,28 @@ import java.internal.Exceptions;
 				base = 16;
 				base = 16;
 			}
 			}
 		}
 		}
-		
+
 		boolean foundAny = false;
 		boolean foundAny = false;
 		boolean isNeg = false;
 		boolean isNeg = false;
 		for (; i < len; i++)
 		for (; i < len; i++)
 		{
 		{
 			char c = x.charAt(i);
 			char c = x.charAt(i);
-			if (!foundAny) 
+			if (!foundAny)
 			{
 			{
 				switch(c)
 				switch(c)
 				{
 				{
 					case \'-\':
 					case \'-\':
 						isNeg = true;
 						isNeg = true;
 						continue;
 						continue;
-					case \'\\n\': 
-					case \'\\t\': 
-					case \'\\r\': 
-					case \' \': 
+					case \'\\n\':
+					case \'\\t\':
+					case \'\\r\':
+					case \' \':
 						if (isNeg) return null;
 						if (isNeg) return null;
 						continue;
 						continue;
 				}
 				}
 			}
 			}
-			
+
 			if (c >= \'0\' && c <= \'9\')
 			if (c >= \'0\' && c <= \'9\')
 			{
 			{
 				if (!foundAny && c == \'0\')
 				if (!foundAny && c == \'0\')
@@ -110,7 +110,7 @@ import java.internal.Exceptions;
 					continue;
 					continue;
 				}
 				}
 				ret *= base; foundAny = true;
 				ret *= base; foundAny = true;
-				
+
 				ret += ((int) (c - \'0\'));
 				ret += ((int) (c - \'0\'));
 			} else if (base == 16) {
 			} else if (base == 16) {
 				if (c >= \'a\' && c <= \'f\') {
 				if (c >= \'a\' && c <= \'f\') {
@@ -126,7 +126,7 @@ import java.internal.Exceptions;
 				break;
 				break;
 			}
 			}
 		}
 		}
-		
+
 		if (foundAny)
 		if (foundAny)
 			return isNeg ? -ret : ret;
 			return isNeg ? -ret : ret;
 		else
 		else
@@ -135,45 +135,45 @@ import java.internal.Exceptions;
 	public static function parseInt( x : String ) : Null<Int> {
 	public static function parseInt( x : String ) : Null<Int> {
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (x == null) return java.lang.Double.NaN;
 		if (x == null) return java.lang.Double.NaN;
-		
+
 		x = x.trim();
 		x = x.trim();
 		double ret = 0.0;
 		double ret = 0.0;
 		double div = 0.0;
 		double div = 0.0;
 		double e = 0.0;
 		double e = 0.0;
-		
+
 		int len = x.length();
 		int len = x.length();
 		boolean foundAny = false;
 		boolean foundAny = false;
 		boolean isNeg = false;
 		boolean isNeg = false;
 		for (int i = 0; i < len; i++)
 		for (int i = 0; i < len; i++)
 		{
 		{
 			char c = x.charAt(i);
 			char c = x.charAt(i);
-			if (!foundAny) 
+			if (!foundAny)
 			{
 			{
 				switch(c)
 				switch(c)
 				{
 				{
 					case \'-\':
 					case \'-\':
 						isNeg = true;
 						isNeg = true;
 						continue;
 						continue;
-					case \'\\n\': 
-					case \'\\t\': 
-					case \'\\r\': 
-					case \' \': 
+					case \'\\n\':
+					case \'\\t\':
+					case \'\\r\':
+					case \' \':
 					if (isNeg) return java.lang.Double.NaN;
 					if (isNeg) return java.lang.Double.NaN;
 						continue;
 						continue;
 				}
 				}
 			}
 			}
-			
+
 			if (c == \'.\') {
 			if (c == \'.\') {
-				if (div != 0.0) 
+				if (div != 0.0)
 					break;
 					break;
 				div = 1.0;
 				div = 1.0;
-				
+
 				continue;
 				continue;
 			}
 			}
-			
+
 			if (c >= \'0\' && c <= \'9\')
 			if (c >= \'0\' && c <= \'9\')
 			{
 			{
 				if (!foundAny && c == \'0\')
 				if (!foundAny && c == \'0\')
@@ -182,12 +182,12 @@ import java.internal.Exceptions;
 					continue;
 					continue;
 				}
 				}
 				ret *= 10.0; foundAny = true; div *= 10.0;
 				ret *= 10.0; foundAny = true; div *= 10.0;
-				
+
 				ret += ((int) (c - \'0\'));
 				ret += ((int) (c - \'0\'));
 			} else if (foundAny && c == \'E\' || c == \'e\') {
 			} else if (foundAny && c == \'E\' || c == \'e\') {
 				boolean eNeg = false;
 				boolean eNeg = false;
 				boolean eFoundAny = false;
 				boolean eFoundAny = false;
-				
+
 				char next = x.charAt(i + 1);
 				char next = x.charAt(i + 1);
 				if (i + 1 < len)
 				if (i + 1 < len)
 				{
 				{
@@ -199,7 +199,7 @@ import java.internal.Exceptions;
 						i++;
 						i++;
 					}
 					}
 				}
 				}
-				
+
 				while (++i < len)
 				while (++i < len)
 				{
 				{
 					c = x.charAt(i);
 					c = x.charAt(i);
@@ -214,15 +214,15 @@ import java.internal.Exceptions;
 						break;
 						break;
 					}
 					}
 				}
 				}
-				
+
 				if (eNeg) e = -e;
 				if (eNeg) e = -e;
 			} else {
 			} else {
 				break;
 				break;
 			}
 			}
 		}
 		}
-		
+
 		if (div == 0.0) div = 1.0;
 		if (div == 0.0) div = 1.0;
-		
+
 		if (foundAny)
 		if (foundAny)
 		{
 		{
 			ret = isNeg ? -(ret / div) : (ret / div);
 			ret = isNeg ? -(ret / div) : (ret / div);
@@ -250,4 +250,3 @@ import java.internal.Exceptions;
 	}
 	}
 
 
 }
 }
-	

+ 1 - 1
std/java/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api
+@:coreApi
 class StringBuf {
 class StringBuf {
 
 
 	private var b : java.lang.StringBuilder;
 	private var b : java.lang.StringBuilder;

+ 6 - 6
std/java/_std/Sys.hx

@@ -28,11 +28,11 @@ import sys.io.Process;
 /**
 /**
 	This class gives you access to many base functionalities of system platforms. Looks in [sys] sub packages for more system APIs.
 	This class gives you access to many base functionalities of system platforms. Looks in [sys] sub packages for more system APIs.
 **/
 **/
-@:core_api class Sys {
+@:coreApi class Sys {
 	private static var _args:java.NativeArray<String>;
 	private static var _args:java.NativeArray<String>;
 	private static var _env:Hash<String>;
 	private static var _env:Hash<String>;
 	private static var _sysName:String;
 	private static var _sysName:String;
-	
+
 	/**
 	/**
 		Print any value on the standard output.
 		Print any value on the standard output.
 	**/
 	**/
@@ -89,7 +89,7 @@ import sys.io.Process;
 		{
 		{
 			_env.set(mv.getKey(), mv.getValue());
 			_env.set(mv.getKey(), mv.getValue());
 		}
 		}
-		
+
 		return _env;
 		return _env;
 	}
 	}
 
 
@@ -100,7 +100,7 @@ import sys.io.Process;
 	{
 	{
 		try
 		try
 			java.lang.Thread.sleep(cast seconds * 1000)
 			java.lang.Thread.sleep(cast seconds * 1000)
-		catch (e:Dynamic) 
+		catch (e:Dynamic)
 			throw e;
 			throw e;
 	}
 	}
 
 
@@ -146,7 +146,7 @@ import sys.io.Process;
 			return _sysName = "Linux";
 			return _sysName = "Linux";
 		if (sname.indexOf("nix") >= 0)
 		if (sname.indexOf("nix") >= 0)
 			return _sysName = "BSD";
 			return _sysName = "BSD";
-		
+
 		return _sysName = System.getProperty("os.name");
 		return _sysName = System.getProperty("os.name");
 	}
 	}
 
 
@@ -160,7 +160,7 @@ import sys.io.Process;
 		var proc:Process = new Process(cmd, args == null ? [] : args);
 		var proc:Process = new Process(cmd, args == null ? [] : args);
 		var ret = proc.exitCode();
 		var ret = proc.exitCode();
 		proc.close();
 		proc.close();
-		
+
 		return ret;
 		return ret;
 	}
 	}
 
 

+ 49 - 49
std/java/_std/Type.hx

@@ -35,47 +35,47 @@
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:keep @:core_api class Type {
-	
+@:keep @:coreApi class Type {
+
 	@:functionBody('
 	@:functionBody('
 		if (o instanceof haxe.lang.DynamicObject || o instanceof java.lang.Class)
 		if (o instanceof haxe.lang.DynamicObject || o instanceof java.lang.Class)
 			return null;
 			return null;
-			
+
 		return (java.lang.Class<T>) o.getClass();
 		return (java.lang.Class<T>) o.getClass();
 	')
 	')
-	public static function getClass<T>( o : T ) : Class<T> untyped 
+	public static function getClass<T>( o : T ) : Class<T> untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (o instanceof java.lang.Enum || o instanceof haxe.lang.Enum)
 		if (o instanceof java.lang.Enum || o instanceof haxe.lang.Enum)
 			return o.getClass();
 			return o.getClass();
 		return null;
 		return null;
 	')
 	')
-	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped 
+	public static function getEnum( o : EnumValue ) : Enum<Dynamic> untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		java.lang.Class cl = (c == null) ? null : c.getSuperclass();
 		java.lang.Class cl = (c == null) ? null : c.getSuperclass();
 		if (cl != null && !cl.getName().equals("haxe.lang.HxObject") && !cl.getName().equals("java.lang.Object") )
 		if (cl != null && !cl.getName().equals("haxe.lang.HxObject") && !cl.getName().equals("java.lang.Object") )
 			return cl;
 			return cl;
 		return null;
 		return null;
 	')
 	')
-	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> untyped 
+	public static function getSuperClass( c : Class<Dynamic> ) : Class<Dynamic> untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	public static function getClassName( c : Class<Dynamic> ) : String untyped {
 	public static function getClassName( c : Class<Dynamic> ) : String untyped {
 		var name:String = c.getName();
 		var name:String = c.getName();
 		if (name.startsWith("haxe.root."))
 		if (name.startsWith("haxe.root."))
 			return name.substr(10);
 			return name.substr(10);
 		if (name.startsWith("java.lang"))
 		if (name.startsWith("java.lang"))
 			name = name.substr(10);
 			name = name.substr(10);
-			
+
 		return switch(name)
 		return switch(name)
 		{
 		{
 			case "int", "Integer": "Int";
 			case "int", "Integer": "Int";
@@ -91,7 +91,7 @@
 			return ret.substr(10);
 			return ret.substr(10);
 		else if (ret == "boolean" || ret == "java.lang.Boolean")
 		else if (ret == "boolean" || ret == "java.lang.Boolean")
 			return "Bool";
 			return "Bool";
-		
+
 		return ret;
 		return ret;
 	}
 	}
 
 
@@ -112,13 +112,13 @@
 			return null;
 			return null;
 		}
 		}
 	')
 	')
-	public static function resolveClass( name : String ) : Class<Dynamic> untyped 
+	public static function resolveClass( name : String ) : Class<Dynamic> untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
 
 
 
 
-	public static function resolveEnum( name : String ) : Enum<Dynamic> untyped 
+	public static function resolveEnum( name : String ) : Enum<Dynamic> untyped
 	{
 	{
 		if (name.equals("Bool")) return Bool;
 		if (name.equals("Bool")) return Bool;
 		return resolveClass(name);
 		return resolveClass(name);
@@ -128,7 +128,7 @@
 			int len = args.length;
 			int len = args.length;
 			java.lang.Class[] cls = new java.lang.Class[len];
 			java.lang.Class[] cls = new java.lang.Class[len];
 			java.lang.Object[] objs = new java.lang.Object[len];
 			java.lang.Object[] objs = new java.lang.Object[len];
-			
+
 			java.lang.reflect.Constructor[] ms = cl.getConstructors();
 			java.lang.reflect.Constructor[] ms = cl.getConstructors();
 			int msl = ms.length;
 			int msl = ms.length;
 			int realMsl = 0;
 			int realMsl = 0;
@@ -144,25 +144,25 @@
 					realMsl++;
 					realMsl++;
 				}
 				}
 			}
 			}
-			
+
 			boolean hasNumber = false;
 			boolean hasNumber = false;
-			
+
 			for (int i = 0; i < len; i++)
 			for (int i = 0; i < len; i++)
 			{
 			{
 				Object o = args.__get(i);
 				Object o = args.__get(i);
 				objs[i]= o;
 				objs[i]= o;
 				cls[i] = o.getClass();
 				cls[i] = o.getClass();
 				boolean isNum = false;
 				boolean isNum = false;
-				
+
 				if (o instanceof java.lang.Number)
 				if (o instanceof java.lang.Number)
 				{
 				{
 					cls[i] = java.lang.Number.class;
 					cls[i] = java.lang.Number.class;
 					isNum = hasNumber = true;
 					isNum = hasNumber = true;
 				}
 				}
-				
+
 				msl = realMsl;
 				msl = realMsl;
 				realMsl = 0;
 				realMsl = 0;
-				
+
 				for (int j = 0; j < msl; j++)
 				for (int j = 0; j < msl; j++)
 				{
 				{
 					java.lang.Class[] allcls = ms[j].getParameterTypes();
 					java.lang.Class[] allcls = ms[j].getParameterTypes();
@@ -179,15 +179,15 @@
 						}
 						}
 					}
 					}
 				}
 				}
-				
+
 			}
 			}
-			
+
 			java.lang.reflect.Constructor found = ms[0];
 			java.lang.reflect.Constructor found = ms[0];
-			
+
 			if (hasNumber)
 			if (hasNumber)
 			{
 			{
 				java.lang.Class[] allcls = found.getParameterTypes();
 				java.lang.Class[] allcls = found.getParameterTypes();
-				
+
 				for (int i = 0; i < len; i++)
 				for (int i = 0; i < len; i++)
 				{
 				{
 					java.lang.Object o = objs[i];
 					java.lang.Object o = objs[i];
@@ -221,35 +221,35 @@
 					}
 					}
 				}
 				}
 			}
 			}
-			
+
 		try {
 		try {
 			found.setAccessible(true);
 			found.setAccessible(true);
 			return (T) found.newInstance(objs);
 			return (T) found.newInstance(objs);
 		}
 		}
-		catch (java.lang.reflect.InvocationTargetException e) 
+		catch (java.lang.reflect.InvocationTargetException e)
 		{
 		{
 			throw haxe.lang.HaxeException.wrap(e.getCause());
 			throw haxe.lang.HaxeException.wrap(e.getCause());
 		}
 		}
-		
-		catch (Throwable t) 
+
+		catch (Throwable t)
 		{
 		{
 			throw haxe.lang.HaxeException.wrap(t);
 			throw haxe.lang.HaxeException.wrap(t);
 		}
 		}
 	')
 	')
-	public static function createInstance<T>( cl : Class<T>, args : Array<Dynamic> ) : T untyped 
+	public static function createInstance<T>( cl : Class<T>, args : Array<Dynamic> ) : T untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
-	public static function createEmptyInstance<T>( cl : Class<T> ) : T untyped 
+
+	public static function createEmptyInstance<T>( cl : Class<T> ) : T untyped
 	{
 	{
 		if (Reflect.hasField(cl, "__hx_createEmpty"))
 		if (Reflect.hasField(cl, "__hx_createEmpty"))
 			return cl.__hx_createEmpty();
 			return cl.__hx_createEmpty();
 		return createInstance(cl, []);
 		return createInstance(cl, []);
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
-		if (params == null) 
+		if (params == null)
 		{
 		{
 			java.lang.Object ret = haxe.lang.Runtime.slowGetField(e, constr, false);
 			java.lang.Object ret = haxe.lang.Runtime.slowGetField(e, constr, false);
 			if (ret instanceof haxe.lang.Function)
 			if (ret instanceof haxe.lang.Function)
@@ -259,22 +259,22 @@
 			return (T) haxe.lang.Runtime.slowCallField(e, constr, params);
 			return (T) haxe.lang.Runtime.slowCallField(e, constr, params);
 		}
 		}
 	')
 	')
-	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T 
+	public static function createEnum<T>( e : Enum<T>, constr : String, ?params : Array<Dynamic> ) : T
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	public static function createEnumIndex<T>( e : Enum<T>, index : Int, ?params : Array<Dynamic> ) : T {
 	public static function createEnumIndex<T>( e : Enum<T>, index : Int, ?params : Array<Dynamic> ) : T {
 		var constr = getEnumConstructs(e);
 		var constr = getEnumConstructs(e);
 		return createEnum(e, constr[index], params);
 		return createEnum(e, constr[index], params);
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (c == java.lang.String.class)
 		if (c == java.lang.String.class)
 		{
 		{
 			return haxe.lang.StringRefl.fields;
 			return haxe.lang.StringRefl.fields;
 		}
 		}
-		
+
 		Array<String> ret = new Array<String>();
 		Array<String> ret = new Array<String>();
 		for (java.lang.reflect.Field f : c.getDeclaredFields())
 		for (java.lang.reflect.Field f : c.getDeclaredFields())
 		{
 		{
@@ -282,20 +282,20 @@
 			if (!java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_"))
 			if (!java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_"))
 				ret.push(fname);
 				ret.push(fname);
 		}
 		}
-		
+
 		for (java.lang.reflect.Method m : c.getDeclaredMethods())
 		for (java.lang.reflect.Method m : c.getDeclaredMethods())
 		{
 		{
 			java.lang.String mname = m.getName();
 			java.lang.String mname = m.getName();
 			if (!java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_"))
 			if (!java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_"))
 				ret.push(mname);
 				ret.push(mname);
 		}
 		}
-		
+
 		return ret;
 		return ret;
 	')
 	')
 	public static function getInstanceFields( c : Class<Dynamic> ) : Array<String> {
 	public static function getInstanceFields( c : Class<Dynamic> ) : Array<String> {
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		Array<String> ret = new Array<String>();
 		Array<String> ret = new Array<String>();
 		if (c == java.lang.String.class)
 		if (c == java.lang.String.class)
@@ -303,36 +303,36 @@
 			ret.push("fromCharCode");
 			ret.push("fromCharCode");
 			return ret;
 			return ret;
 		}
 		}
-		
+
 		for (java.lang.reflect.Field f : c.getDeclaredFields())
 		for (java.lang.reflect.Field f : c.getDeclaredFields())
 		{
 		{
 			java.lang.String fname = f.getName();
 			java.lang.String fname = f.getName();
 			if (java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_"))
 			if (java.lang.reflect.Modifier.isStatic(f.getModifiers()) && !fname.startsWith("__hx_"))
 			ret.push(fname);
 			ret.push(fname);
 		}
 		}
-		
+
 		for (java.lang.reflect.Method m : c.getDeclaredMethods())
 		for (java.lang.reflect.Method m : c.getDeclaredMethods())
 		{
 		{
 			java.lang.String mname = m.getName();
 			java.lang.String mname = m.getName();
 			if (java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_"))
 			if (java.lang.reflect.Modifier.isStatic(m.getModifiers()) && !mname.startsWith("__hx_"))
 				ret.push(mname);
 				ret.push(mname);
 		}
 		}
-		
+
 		return ret;
 		return ret;
 	')
 	')
 	public static function getClassFields( c : Class<Dynamic> ) : Array<String> {
 	public static function getClassFields( c : Class<Dynamic> ) : Array<String> {
 		return null;
 		return null;
 	}
 	}
-	
+
 	public static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String> {
 	public static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String> {
 		if (Reflect.hasField(e, "constructs"))
 		if (Reflect.hasField(e, "constructs"))
 			return untyped e.constructs;
 			return untyped e.constructs;
 		return getClassFields(cast e);
 		return getClassFields(cast e);
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (v == null) return ValueType.TNull;
 		if (v == null) return ValueType.TNull;
-		
+
 		if (v instanceof haxe.lang.IHxObject) {
 		if (v instanceof haxe.lang.IHxObject) {
 			haxe.lang.IHxObject vobj = (haxe.lang.IHxObject) v;
 			haxe.lang.IHxObject vobj = (haxe.lang.IHxObject) v;
 			java.lang.Class cl = vobj.getClass();
 			java.lang.Class cl = vobj.getClass();
@@ -358,7 +358,7 @@
 			return ValueType.TClass(v.getClass());
 			return ValueType.TClass(v.getClass());
 		}
 		}
 	')
 	')
-	public static function typeof( v : Dynamic ) : ValueType untyped 
+	public static function typeof( v : Dynamic ) : ValueType untyped
 	{
 	{
 		return null;
 		return null;
 	}
 	}
@@ -369,7 +369,7 @@
 			else
 			else
 				return haxe.lang.Runtime.eq(a, b);
 				return haxe.lang.Runtime.eq(a, b);
 	')
 	')
-	public static function enumEq<T>( a : T, b : T ) : Bool untyped 
+	public static function enumEq<T>( a : T, b : T ) : Bool untyped
 	{
 	{
 		return a.equals(b);
 		return a.equals(b);
 	}
 	}
@@ -392,7 +392,7 @@
 	{
 	{
 		return null;
 		return null;
 	}
 	}
-	
+
 	@:functionBody('
 	@:functionBody('
 		if (e instanceof java.lang.Enum)
 		if (e instanceof java.lang.Enum)
 			return ((java.lang.Enum) e).ordinal();
 			return ((java.lang.Enum) e).ordinal();
@@ -404,7 +404,7 @@
 		return e.index;
 		return e.index;
 	}
 	}
 
 
-	public static function allEnums<T>( e : Enum<T> ) : Array<T> 
+	public static function allEnums<T>( e : Enum<T> ) : Array<T>
 	{
 	{
 		var ctors = getEnumConstructs(e);
 		var ctors = getEnumConstructs(e);
 		var ret = [];
 		var ret = [];

+ 1 - 1
std/java/_std/Xml.hx

@@ -37,7 +37,7 @@ private enum RealXmlType {
         Document;
         Document;
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 6 - 5
std/java/_std/haxe/Int64.hx

@@ -26,14 +26,15 @@ package haxe;
 using haxe.Int64;
 using haxe.Int64;
 private typedef NativeInt64 = Int;
 private typedef NativeInt64 = Int;
 
 
+@:coreApi
 @:nativegen class Int64
 @:nativegen class Int64
 {
 {
 	@:extern private static inline function asNative(i:haxe.Int64):NativeInt64 return untyped i
 	@:extern private static inline function asNative(i:haxe.Int64):NativeInt64 return untyped i
 	@:extern private static inline function ofNative(i:NativeInt64):haxe.Int64 return untyped i
 	@:extern private static inline function ofNative(i:NativeInt64):haxe.Int64 return untyped i
 	@:extern private static inline function mkNative(i:Dynamic):NativeInt64 return i
 	@:extern private static inline function mkNative(i:Dynamic):NativeInt64 return i
-	
+
 	#if haxe3
 	#if haxe3
-	
+
 	public static inline function make( high : Int, low : Int ) : haxe.Int64
 	public static inline function make( high : Int, low : Int ) : haxe.Int64
 	{
 	{
 		return ((cast(high, NativeInt64) << 32 ) | (cast(low, NativeInt64))).ofNative();
 		return ((cast(high, NativeInt64) << 32 ) | (cast(low, NativeInt64))).ofNative();
@@ -48,9 +49,9 @@ private typedef NativeInt64 = Int;
 	{
 	{
 		return cast(x,NativeInt64) >>> 32;
 		return cast(x,NativeInt64) >>> 32;
 	}
 	}
-	
+
 	#else
 	#else
-	
+
 	public static inline function make( high : Int32, low : Int32 ) : haxe.Int64
 	public static inline function make( high : Int32, low : Int32 ) : haxe.Int64
 	{
 	{
 		return ((cast(high, NativeInt64) << 32 ) | (cast(low, NativeInt64))).ofNative();
 		return ((cast(high, NativeInt64) << 32 ) | (cast(low, NativeInt64))).ofNative();
@@ -59,7 +60,7 @@ private typedef NativeInt64 = Int;
 	public static inline function ofInt32( x : Int32 ) : haxe.Int64 {
 	public static inline function ofInt32( x : Int32 ) : haxe.Int64 {
 		return cast x;
 		return cast x;
 	}
 	}
-	
+
 	public static inline function getLow( x : haxe.Int64 ) : Int32
 	public static inline function getLow( x : haxe.Int64 ) : Int32
 	{
 	{
 		return cast (x.asNative() & 0xFFFFFFFF.mkNative());
 		return cast (x.asNative() & 0xFFFFFFFF.mkNative());

+ 2 - 1
std/java/_std/sys/FileSystem.hx

@@ -29,6 +29,7 @@ import java.Lib;
 /**
 /**
 	This class allows you to get informations about the files and directories.
 	This class allows you to get informations about the files and directories.
 **/
 **/
+@:coreApi
 class FileSystem {
 class FileSystem {
 
 
 	/**
 	/**
@@ -109,7 +110,7 @@ class FileSystem {
 		if (!new File(path).delete())
 		if (!new File(path).delete())
 			throw "Cannot delete file " + path;
 			throw "Cannot delete file " + path;
 	}
 	}
-	
+
 	/**
 	/**
 		Delete a given directory.
 		Delete a given directory.
 	**/
 	**/

+ 11 - 10
std/java/_std/sys/io/File.hx

@@ -27,6 +27,7 @@ package sys.io;
 /**
 /**
 	API for reading and writing to files.
 	API for reading and writing to files.
 **/
 **/
+@:coreApi
 class File {
 class File {
 
 
 	public static function getContent( path : String ) : String
 	public static function getContent( path : String ) : String
@@ -36,14 +37,14 @@ class File {
 		f.close();
 		f.close();
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	public static function saveContent( path : String, content : String ) : Void
 	public static function saveContent( path : String, content : String ) : Void
 	{
 	{
 		var f = write(path, false);
 		var f = write(path, false);
 		f.writeString(content);
 		f.writeString(content);
 		f.close();
 		f.close();
 	}
 	}
-	
+
 	public static function getBytes( path : String ) : haxe.io.Bytes
 	public static function getBytes( path : String ) : haxe.io.Bytes
 	{
 	{
 		var f = read(path, true);
 		var f = read(path, true);
@@ -51,14 +52,14 @@ class File {
 		f.close();
 		f.close();
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	public static function saveBytes( path : String, bytes : haxe.io.Bytes ) : Void
 	public static function saveBytes( path : String, bytes : haxe.io.Bytes ) : Void
 	{
 	{
 		var f = write(path, true);
 		var f = write(path, true);
 		f.writeBytes(bytes, 0, bytes.length);
 		f.writeBytes(bytes, 0, bytes.length);
 		f.close();
 		f.close();
 	}
 	}
-	
+
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	public static function read( path : String, binary : Bool = true ) : FileInput
 	{
 	{
 		try
 		try
@@ -70,7 +71,7 @@ class File {
 			throw e;
 			throw e;
 		}
 		}
 	}
 	}
-	
+
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	public static function write( path : String, binary : Bool = true ) : FileOutput
 	{
 	{
 		var f = new java.io.File(path);
 		var f = new java.io.File(path);
@@ -78,7 +79,7 @@ class File {
 		{
 		{
 			f.delete();
 			f.delete();
 		}
 		}
-		
+
 		try
 		try
 		{
 		{
 			return new FileOutput( new java.io.RandomAccessFile(f, "rw") );
 			return new FileOutput( new java.io.RandomAccessFile(f, "rw") );
@@ -88,11 +89,11 @@ class File {
 			throw e;
 			throw e;
 		}
 		}
 	}
 	}
-	
+
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	public static function append( path : String, binary : Bool = true ) : FileOutput
 	{
 	{
 		var f = new java.io.File(path);
 		var f = new java.io.File(path);
-		
+
 		try
 		try
 		{
 		{
 			var ra = new java.io.RandomAccessFile(f, "rw");
 			var ra = new java.io.RandomAccessFile(f, "rw");
@@ -107,7 +108,7 @@ class File {
 			throw e;
 			throw e;
 		}
 		}
 	}
 	}
-	
+
 	public static function copy( src : String, dst : String ) : Void
 	public static function copy( src : String, dst : String ) : Void
 	{
 	{
 		var r:FileInput = null;
 		var r:FileInput = null;
@@ -118,7 +119,7 @@ class File {
 			w = write(dst);
 			w = write(dst);
 			w.writeInput(r);
 			w.writeInput(r);
 		}
 		}
-		
+
 		catch (e:Dynamic)
 		catch (e:Dynamic)
 		{
 		{
 			if (r != null) r.close();
 			if (r != null) r.close();

+ 21 - 20
std/java/_std/sys/io/Process.hx

@@ -29,12 +29,13 @@ import haxe.io.Eof;
 import java.io.Exceptions;
 import java.io.Exceptions;
 import java.NativeArray;
 import java.NativeArray;
 
 
+@:coreApi
 class Process {
 class Process {
 
 
 	public var stdout(default,null) : haxe.io.Input;
 	public var stdout(default,null) : haxe.io.Input;
 	public var stderr(default,null) : haxe.io.Input;
 	public var stderr(default,null) : haxe.io.Input;
 	public var stdin(default, null) : haxe.io.Output;
 	public var stdin(default, null) : haxe.io.Output;
-	
+
 	private var proc:java.lang.Process;
 	private var proc:java.lang.Process;
 
 
 	public function new( cmd : String, args : Array<String> ) : Void
 	public function new( cmd : String, args : Array<String> ) : Void
@@ -45,26 +46,26 @@ class Process {
 		{
 		{
 			pargs[i + 1] = args[i];
 			pargs[i + 1] = args[i];
 		}
 		}
-		
+
 		try
 		try
 		{
 		{
 			proc = new java.lang.ProcessBuilder(pargs).start();
 			proc = new java.lang.ProcessBuilder(pargs).start();
 		}
 		}
 		catch (e:Dynamic) { throw e; } //wrapping typed exceptions
 		catch (e:Dynamic) { throw e; } //wrapping typed exceptions
-		
+
 		var p = proc;
 		var p = proc;
 		stderr = new ProcessInput(p.getErrorStream());
 		stderr = new ProcessInput(p.getErrorStream());
 		stdout = new ProcessInput(p.getInputStream());
 		stdout = new ProcessInput(p.getInputStream());
 		stdin = new java.io.NativeOutput(p.getOutputStream());
 		stdin = new java.io.NativeOutput(p.getOutputStream());
 	}
 	}
-	
+
 	public function getPid() : Int
 	public function getPid() : Int
 	{
 	{
 		if (Reflect.hasField(proc, "pid"))
 		if (Reflect.hasField(proc, "pid"))
 			return Reflect.field(proc, "pid");
 			return Reflect.field(proc, "pid");
 		return -1;
 		return -1;
 	}
 	}
-	
+
 	public function exitCode() : Int
 	public function exitCode() : Int
 	{
 	{
 		cast(stdout, ProcessInput).bufferContents();
 		cast(stdout, ProcessInput).bufferContents();
@@ -76,12 +77,12 @@ class Process {
 		catch (e:Dynamic) { throw e; }
 		catch (e:Dynamic) { throw e; }
 		return proc.exitValue();
 		return proc.exitValue();
 	}
 	}
-	
+
 	public function close() : Void
 	public function close() : Void
 	{
 	{
 		proc.destroy();
 		proc.destroy();
 	}
 	}
-	
+
 	public function kill() : Void
 	public function kill() : Void
 	{
 	{
 		proc.destroy();
 		proc.destroy();
@@ -93,55 +94,55 @@ class Process {
 private class ProcessInput extends java.io.NativeInput
 private class ProcessInput extends java.io.NativeInput
 {
 {
 	private var chained:BytesInput;
 	private var chained:BytesInput;
-	
+
 	public function bufferContents():Void
 	public function bufferContents():Void
 	{
 	{
 		if (chained != null) return;
 		if (chained != null) return;
 		var b = this.readAll();
 		var b = this.readAll();
 		chained = new BytesInput(b);
 		chained = new BytesInput(b);
 	}
 	}
-	
-	override public function readByte():Int 
+
+	override public function readByte():Int
 	{
 	{
 		if (chained != null)
 		if (chained != null)
 			return chained.readByte();
 			return chained.readByte();
 		try
 		try
 		{
 		{
 			return stream.read();
 			return stream.read();
-		} 
+		}
 		catch (e:EOFException) {
 		catch (e:EOFException) {
 			throw new Eof();
 			throw new Eof();
 		}
 		}
-		
+
 		catch (e:IOException) {
 		catch (e:IOException) {
 			throw haxe.io.Error.Custom(e);
 			throw haxe.io.Error.Custom(e);
 		}
 		}
 	}
 	}
-	
-	override public function readBytes(s:Bytes, pos:Int, len:Int):Int 
+
+	override public function readBytes(s:Bytes, pos:Int, len:Int):Int
 	{
 	{
 		if (chained != null)
 		if (chained != null)
 			return chained.readBytes(s, pos, len);
 			return chained.readBytes(s, pos, len);
-		
+
 		var ret = -1;
 		var ret = -1;
 		try
 		try
 		{
 		{
 			ret = stream.read(s.getData(), pos, len);
 			ret = stream.read(s.getData(), pos, len);
 		}
 		}
-		
+
 		catch (e:EOFException) {
 		catch (e:EOFException) {
 			throw new Eof();
 			throw new Eof();
 		}
 		}
-		
+
 		catch (e:IOException) {
 		catch (e:IOException) {
 			throw haxe.io.Error.Custom(e);
 			throw haxe.io.Error.Custom(e);
 		}
 		}
-		
+
 		if (ret == -1)
 		if (ret == -1)
 			throw new Eof();
 			throw new Eof();
 		return ret;
 		return ret;
 	}
 	}
-	
+
 	override public function close():Void
 	override public function close():Void
 	{
 	{
 		if (chained != null)
 		if (chained != null)
@@ -150,7 +151,7 @@ private class ProcessInput extends java.io.NativeInput
 		{
 		{
 			stream.close();
 			stream.close();
 		}
 		}
-		
+
 		catch (e:IOException) {
 		catch (e:IOException) {
 			throw haxe.io.Error.Custom(e);
 			throw haxe.io.Error.Custom(e);
 		}
 		}

+ 1 - 1
std/js/_std/Array.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api
+@:coreApi
 extern class Array<T> {
 extern class Array<T> {
 
 
 	var length(default,null) : Int;
 	var length(default,null) : Int;

+ 1 - 1
std/js/_std/Date.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api extern class Date {
+@:coreApi extern class Date {
 
 
 	function new(year : Int, month : Int, day : Int, hour : Int, min : Int, sec : Int ) : Void;
 	function new(year : Int, month : Int, day : Int, hour : Int, min : Int, sec : Int ) : Void;
 	function getTime() : Float;
 	function getTime() : Float;

+ 1 - 1
std/js/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class EReg {
+@:coreApi class EReg {
 
 
 	var r : Dynamic;
 	var r : Dynamic;
 
 

+ 1 - 1
std/js/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 1 - 1
std/js/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 1 - 1
std/js/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 
 	public static function hasField( o : Dynamic, field : String ) : Bool {
 	public static function hasField( o : Dynamic, field : String ) : Bool {
 		return untyped __js__('Object').prototype.hasOwnProperty.call(o, field);
 		return untyped __js__('Object').prototype.hasOwnProperty.call(o, field);

+ 1 - 1
std/js/_std/Std.hx

@@ -24,7 +24,7 @@
  */
  */
 import js.Boot;
 import js.Boot;
 
 
-@:core_api class Std {
+@:coreApi class Std {
 
 
 	public static inline function is( v : Dynamic, t : Dynamic ) : Bool {
 	public static inline function is( v : Dynamic, t : Dynamic ) : Bool {
 		return untyped js.Boot.__instanceof(v,t);
 		return untyped js.Boot.__instanceof(v,t);

+ 1 - 1
std/js/_std/String.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api extern class String {
+@:coreApi extern class String {
 	var length(default,null) : Int;
 	var length(default,null) : Int;
 
 
 	function new(string:String) : Void;
 	function new(string:String) : Void;

+ 1 - 1
std/js/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:core_api class Type {
+@:coreApi class Type {
 
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		if( o == null )
 		if( o == null )

+ 1 - 1
std/js/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 enum XmlType {
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 1 - 1
std/neko/_std/Array.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api @:final class Array<T> {
+@:coreApi @:final class Array<T> {
 
 
 	private var __a : neko.NativeArray<T>;
 	private var __a : neko.NativeArray<T>;
 	public var length(default,null) : Int;
 	public var length(default,null) : Int;

+ 1 - 1
std/neko/_std/Date.hx

@@ -24,7 +24,7 @@
  */
  */
 import neko.Lib;
 import neko.Lib;
 
 
-@:core_api @:final class Date {
+@:coreApi @:final class Date {
 
 
 	private var __t : Dynamic;
 	private var __t : Dynamic;
 
 

+ 1 - 1
std/neko/_std/EReg.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api @:final class EReg {
+@:coreApi @:final class EReg {
 
 
 	var r : Dynamic;
 	var r : Dynamic;
 	var last : String;
 	var last : String;

+ 1 - 1
std/neko/_std/Hash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Hash<T> {
+@:coreApi class Hash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 1 - 1
std/neko/_std/IntHash.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class IntHash<T> {
+@:coreApi class IntHash<T> {
 
 
 	private var h : Dynamic;
 	private var h : Dynamic;
 
 

+ 1 - 1
std/neko/_std/Math.hx

@@ -24,7 +24,7 @@
  */
  */
 import neko.Lib;
 import neko.Lib;
 
 
-@:core_api @:final class Math {
+@:coreApi @:final class Math {
 
 
 	public static var PI(default,null) : Float;
 	public static var PI(default,null) : Float;
 	public static var NaN(default,null) : Float;
 	public static var NaN(default,null) : Float;

+ 1 - 1
std/neko/_std/Reflect.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Reflect {
+@:coreApi class Reflect {
 
 
 	public static function hasField( o : Dynamic, field : String ) : Bool untyped {
 	public static function hasField( o : Dynamic, field : String ) : Bool untyped {
 		return $typeof(o) == $tobject && $objfield(o,$fasthash(field.__s));
 		return $typeof(o) == $tobject && $objfield(o,$fasthash(field.__s));

+ 1 - 1
std/neko/_std/Std.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Std {
+@:coreApi class Std {
 
 
 	@:feature("typed_cast")
 	@:feature("typed_cast")
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {
 	public static function is( v : Dynamic, t : Dynamic ) : Bool {

+ 4 - 4
std/neko/_std/String.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api @:final class String {
+@:coreApi @:final class String {
 
 
 	static var __is_String;
 	static var __is_String;
 	private static var __split : Dynamic = neko.Lib.load("std","string_split",2);
 	private static var __split : Dynamic = neko.Lib.load("std","string_split",2);
@@ -135,19 +135,19 @@
 		} else if ( endIndex > length ) {
 		} else if ( endIndex > length ) {
 			endIndex = length;
 			endIndex = length;
 		}
 		}
-		
+
 		if ( startIndex < 0 ) {
 		if ( startIndex < 0 ) {
 			startIndex = 0;
 			startIndex = 0;
 		} else if ( startIndex > length ) {
 		} else if ( startIndex > length ) {
 			startIndex = length;
 			startIndex = length;
 		}
 		}
-		
+
 		if ( startIndex > endIndex ) {
 		if ( startIndex > endIndex ) {
 			var tmp = startIndex;
 			var tmp = startIndex;
 			startIndex = endIndex;
 			startIndex = endIndex;
 			endIndex = tmp;
 			endIndex = tmp;
 		}
 		}
-		
+
 		return substr( startIndex, endIndex - startIndex );
 		return substr( startIndex, endIndex - startIndex );
 	}
 	}
 
 

+ 1 - 1
std/neko/_std/StringBuf.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class StringBuf {
+@:coreApi class StringBuf {
 
 
 	private var b : Dynamic;
 	private var b : Dynamic;
 
 

+ 1 - 1
std/neko/_std/Sys.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api class Sys {
+@:coreApi class Sys {
 
 
 	public static function print( v : Dynamic ) : Void {
 	public static function print( v : Dynamic ) : Void {
 		untyped __dollar__print(v);
 		untyped __dollar__print(v);

+ 1 - 1
std/neko/_std/Type.hx

@@ -35,7 +35,7 @@ enum ValueType {
 	TUnknown;
 	TUnknown;
 }
 }
 
 
-@:core_api class Type {
+@:coreApi class Type {
 
 
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 	public static function getClass<T>( o : T ) : Class<T> untyped {
 		if( __dollar__typeof(o) != __dollar__tobject )
 		if( __dollar__typeof(o) != __dollar__tobject )

+ 1 - 1
std/neko/_std/Xml.hx

@@ -26,7 +26,7 @@
 enum XmlType {
 enum XmlType {
 }
 }
 
 
-@:core_api class Xml {
+@:coreApi class Xml {
 
 
 	public static var Element(default,null) : XmlType;
 	public static var Element(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;
 	public static var PCData(default,null) : XmlType;

+ 1 - 1
std/neko/_std/haxe/Int32.hx

@@ -24,7 +24,7 @@
  */
  */
 package haxe;
 package haxe;
 
 
-@:core_api class Int32 {
+@:coreApi class Int32 {
 
 
 	public static inline function make( a : Int, b : Int ) : Int32 {
 	public static inline function make( a : Int, b : Int ) : Int32 {
 		return add(shl(cast a,16),cast b);
 		return add(shl(cast a,16),cast b);

+ 1 - 1
std/neko/_std/haxe/Utf8.hx

@@ -24,7 +24,7 @@
  */
  */
 package haxe;
 package haxe;
 
 
-@:core_api
+@:coreApi
 class Utf8 {
 class Utf8 {
 
 
 	var __b : Void;
 	var __b : Void;

+ 1 - 1
std/neko/_std/sys/FileSystem.hx

@@ -30,7 +30,7 @@ private enum FileKind {
 	kother( k : String );
 	kother( k : String );
 }
 }
 
 
-@:core_api
+@:coreApi
 class FileSystem {
 class FileSystem {
 
 
 	public static function exists( path : String ) : Bool {
 	public static function exists( path : String ) : Bool {

+ 1 - 1
std/neko/_std/sys/db/Mysql.hx

@@ -186,7 +186,7 @@ private class MysqlConnection implements sys.db.Connection {
 	private static var __use_date = Date;
 	private static var __use_date = Date;
 }
 }
 
 
-@:core_api class Mysql {
+@:coreApi class Mysql {
 
 
 	public static function connect( params : {
 	public static function connect( params : {
 		host : String,
 		host : String,

+ 1 - 1
std/neko/_std/sys/db/Sqlite.hx

@@ -193,7 +193,7 @@ private class SqliteResultSet implements ResultSet {
 
 
 }
 }
 
 
-@:core_api class Sqlite {
+@:coreApi class Sqlite {
 
 
 	public static function open( file : String ) : Connection {
 	public static function open( file : String ) : Connection {
 		return new SqliteConnection(file);
 		return new SqliteConnection(file);

+ 1 - 1
std/neko/_std/sys/io/File.hx

@@ -30,7 +30,7 @@ enum FileHandle {
 /**
 /**
 	API for reading and writing to files.
 	API for reading and writing to files.
 **/
 **/
-@:core_api class File {
+@:coreApi class File {
 
 
 	public static function getContent( path : String ) : String {
 	public static function getContent( path : String ) : String {
 		return new String(file_contents(untyped path.__s));
 		return new String(file_contents(untyped path.__s));

+ 1 - 1
std/neko/_std/sys/io/FileInput.hx

@@ -24,7 +24,7 @@
  */
  */
 package sys.io;
 package sys.io;
 
 
-@:core_api class FileInput extends haxe.io.Input {
+@:coreApi class FileInput extends haxe.io.Input {
 
 
 	private var __f : File.FileHandle;
 	private var __f : File.FileHandle;
 
 

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

@@ -24,7 +24,7 @@
  */
  */
 package sys.io;
 package sys.io;
 
 
-@:core_api class FileOutput extends haxe.io.Output {
+@:coreApi class FileOutput extends haxe.io.Output {
 
 
 	private var __f : File.FileHandle;
 	private var __f : File.FileHandle;
 
 

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

@@ -88,7 +88,7 @@ private class Stdout extends haxe.io.Input {
 
 
 }
 }
 
 
-@:core_api class Process {
+@:coreApi class Process {
 
 
 	var p : Void;
 	var p : Void;
 	public var stdout(default,null) : haxe.io.Input;
 	public var stdout(default,null) : haxe.io.Input;

+ 1 - 1
std/neko/_std/sys/net/Host.hx

@@ -25,7 +25,7 @@
  */
  */
 package sys.net;
 package sys.net;
 
 
-@:core_api
+@:coreApi
 class Host {
 class Host {
 
 
 	public var ip(default,null) : Int;
 	public var ip(default,null) : Int;

+ 1 - 1
std/neko/_std/sys/net/Socket.hx

@@ -117,7 +117,7 @@ private class SocketInput extends haxe.io.Input {
 
 
 }
 }
 
 
-@:core_api
+@:coreApi
 class Socket {
 class Socket {
 
 
 	private var __s : SocketHandle;
 	private var __s : SocketHandle;

+ 1 - 1
std/php/_std/Date.hx

@@ -23,7 +23,7 @@
  * DAMAGE.
  * DAMAGE.
  */
  */
 
 
-@:core_api @:final class Date
+@:coreApi @:final class Date
 {
 {
 	private var __t : Float;
 	private var __t : Float;
 
 

Some files were not shown because too many files changed in this diff