Răsfoiți Sursa

[std] remove redundant public keywords from extern classes (#9205)

Jens Fischer 5 ani în urmă
părinte
comite
4e69fda544
100 a modificat fișierele cu 1214 adăugiri și 1216 ștergeri
  1. 15 15
      std/Reflect.hx
  2. 9 9
      std/Std.hx
  3. 20 20
      std/Type.hx
  4. 4 4
      std/cpp/ArrayBase.hx
  5. 25 25
      std/cpp/ConstPointer.hx
  6. 18 18
      std/cpp/EnumBase.hx
  7. 5 5
      std/cpp/ErrorConstants.hx
  8. 2 2
      std/cpp/FastIterator.hx
  9. 24 24
      std/cpp/Native.hx
  10. 2 2
      std/cpp/NativeArc.hx
  11. 19 19
      std/cpp/NativeArray.hx
  12. 15 15
      std/cpp/NativeFile.hx
  13. 17 17
      std/cpp/NativeGc.hx
  14. 8 8
      std/cpp/NativeMath.hx
  15. 10 10
      std/cpp/NativeProcess.hx
  16. 4 4
      std/cpp/NativeRandom.hx
  17. 39 39
      std/cpp/NativeSocket.hx
  18. 37 37
      std/cpp/NativeSsl.hx
  19. 11 11
      std/cpp/NativeString.hx
  20. 27 27
      std/cpp/NativeSys.hx
  21. 13 13
      std/cpp/ObjectType.hx
  22. 22 22
      std/cpp/Pointer.hx
  23. 1 1
      std/cpp/RawConstPointer.hx
  24. 1 1
      std/cpp/RawPointer.hx
  25. 12 12
      std/cpp/StdString.hx
  26. 6 6
      std/cpp/StdStringRef.hx
  27. 5 5
      std/cpp/Stdio.hx
  28. 11 11
      std/cpp/Stdlib.hx
  29. 22 22
      std/cpp/VirtualArray.hx
  30. 35 35
      std/cpp/_std/haxe/Int64.hx
  31. 5 5
      std/cpp/cppia/Module.hx
  32. 1 1
      std/cpp/objc/NSError.hx
  33. 1 1
      std/cpp/objc/NSLog.hx
  34. 4 4
      std/cs/NativeArray.hx
  35. 8 8
      std/eval/Vector.hx
  36. 11 11
      std/eval/_std/EReg.hx
  37. 6 6
      std/eval/_std/StringBuf.hx
  38. 3 3
      std/eval/_std/haxe/Resource.hx
  39. 11 11
      std/eval/_std/haxe/Utf8.hx
  40. 26 26
      std/eval/_std/haxe/io/Bytes.hx
  41. 11 11
      std/eval/_std/haxe/io/BytesBuffer.hx
  42. 5 5
      std/eval/_std/haxe/zip/Compress.hx
  43. 5 5
      std/eval/_std/haxe/zip/Uncompress.hx
  44. 1 1
      std/eval/vm/NativeSocket.hx
  45. 14 14
      std/flash/Memory.hx
  46. 3 3
      std/flash/Vector.hx
  47. 9 9
      std/haxe/EnumTools.hx
  48. 12 12
      std/haxe/ds/IntMap.hx
  49. 12 12
      std/haxe/ds/ObjectMap.hx
  50. 12 12
      std/haxe/ds/StringMap.hx
  51. 4 4
      std/hl/_std/sys/thread/Deque.hx
  52. 4 4
      std/hl/_std/sys/thread/Mutex.hx
  53. 2 2
      std/hl/_std/sys/thread/Tls.hx
  54. 3 3
      std/java/NativeArray.hx
  55. 5 5
      std/jvm/NativeTools.hx
  56. 9 9
      std/lua/Bit.hx
  57. 6 6
      std/lua/Coroutine.hx
  58. 16 16
      std/lua/Debug.hx
  59. 18 18
      std/lua/Ffi.hx
  60. 5 5
      std/lua/FileHandle.hx
  61. 14 14
      std/lua/Io.hx
  62. 10 10
      std/lua/Jit.hx
  63. 25 25
      std/lua/Lua.hx
  64. 13 13
      std/lua/NativeStringTools.hx
  65. 13 13
      std/lua/Os.hx
  66. 8 8
      std/lua/Package.hx
  67. 15 15
      std/lua/Table.hx
  68. 4 4
      std/lua/TableTools.hx
  69. 10 10
      std/lua/lib/lrexlib/Rex.hx
  70. 10 10
      std/lua/lib/luasocket/Socket.hx
  71. 1 1
      std/lua/lib/luasocket/socket/Dns.hx
  72. 6 6
      std/lua/lib/luasocket/socket/TcpClient.hx
  73. 3 3
      std/lua/lib/luasocket/socket/TcpMaster.hx
  74. 3 3
      std/lua/lib/luasocket/socket/TcpServer.hx
  75. 12 12
      std/lua/lib/luautf8/Utf8.hx
  76. 25 25
      std/lua/lib/luv/Misc.hx
  77. 30 32
      std/lua/lib/luv/Os.hx
  78. 47 47
      std/lua/lib/luv/fs/FileSystem.hx
  79. 2 2
      std/lua/lib/luv/net/Dns.hx
  80. 2 2
      std/php/Closure.hx
  81. 18 18
      std/php/reflection/ReflectionMethod.hx
  82. 6 6
      std/python/Bytearray.hx
  83. 1 1
      std/python/Bytes.hx
  84. 10 10
      std/python/Syntax.hx
  85. 23 23
      std/python/_std/Array.hx
  86. 9 9
      std/python/_std/Math.hx
  87. 6 6
      std/python/_std/String.hx
  88. 86 86
      std/python/lib/Builtins.hx
  89. 1 1
      std/python/lib/Functools.hx
  90. 2 2
      std/python/lib/Glob.hx
  91. 1 1
      std/python/lib/Inspect.hx
  92. 2 2
      std/python/lib/Io.hx
  93. 2 2
      std/python/lib/Json.hx
  94. 7 7
      std/python/lib/Math.hx
  95. 2 2
      std/python/lib/Msvcrt.hx
  96. 41 41
      std/python/lib/Os.hx
  97. 2 2
      std/python/lib/Pprint.hx
  98. 58 58
      std/python/lib/Re.hx
  99. 4 4
      std/python/lib/Shutil.hx
  100. 9 9
      std/python/lib/Ssl.hx

+ 15 - 15
std/Reflect.hx

@@ -35,7 +35,7 @@ extern class Reflect {
 
 
 		If `o` or `field` are null, the result is unspecified.
 		If `o` or `field` are null, the result is unspecified.
 	**/
 	**/
-	public static function hasField(o:Dynamic, field:String):Bool;
+	static function hasField(o:Dynamic, field:String):Bool;
 
 
 	/**
 	/**
 		Returns the value of the field named `field` on object `o`.
 		Returns the value of the field named `field` on object `o`.
@@ -48,7 +48,7 @@ extern class Reflect {
 
 
 		If `field` is null, the result is unspecified.
 		If `field` is null, the result is unspecified.
 	**/
 	**/
-	public static function field(o:Dynamic, field:String):Dynamic;
+	static function field(o:Dynamic, field:String):Dynamic;
 
 
 	/**
 	/**
 		Sets the field named `field` of object `o` to value `value`.
 		Sets the field named `field` of object `o` to value `value`.
@@ -58,7 +58,7 @@ extern class Reflect {
 
 
 		If `o` or `field` are null, the result is unspecified.
 		If `o` or `field` are null, the result is unspecified.
 	**/
 	**/
-	public static function setField(o:Dynamic, field:String, value:Dynamic):Void;
+	static function setField(o:Dynamic, field:String, value:Dynamic):Void;
 
 
 	/**
 	/**
 		Returns the value of the field named `field` on object `o`, taking
 		Returns the value of the field named `field` on object `o`, taking
@@ -69,7 +69,7 @@ extern class Reflect {
 
 
 		If `o` or `field` are null, the result is unspecified.
 		If `o` or `field` are null, the result is unspecified.
 	**/
 	**/
-	public static function getProperty(o:Dynamic, field:String):Dynamic;
+	static function getProperty(o:Dynamic, field:String):Dynamic;
 
 
 	/**
 	/**
 		Sets the field named `field` of object `o` to value `value`, taking
 		Sets the field named `field` of object `o` to value `value`, taking
@@ -80,7 +80,7 @@ extern class Reflect {
 
 
 		If `field` is null, the result is unspecified.
 		If `field` is null, the result is unspecified.
 	**/
 	**/
-	public static function setProperty(o:Dynamic, field:String, value:Dynamic):Void;
+	static function setProperty(o:Dynamic, field:String, value:Dynamic):Void;
 
 
 	/**
 	/**
 		Call a method `func` with the given arguments `args`.
 		Call a method `func` with the given arguments `args`.
@@ -95,7 +95,7 @@ extern class Reflect {
 			or by using `(object : Dynamic).field`. However, if `func` has a context, `o` is
 			or by using `(object : Dynamic).field`. However, if `func` has a context, `o` is
 			ignored like on other targets.
 			ignored like on other targets.
 	**/
 	**/
-	public static function callMethod(o:Dynamic, func:haxe.Constraints.Function, args:Array<Dynamic>):Dynamic;
+	static function callMethod(o:Dynamic, func:haxe.Constraints.Function, args:Array<Dynamic>):Dynamic;
 
 
 	/**
 	/**
 		Returns the fields of structure `o`.
 		Returns the fields of structure `o`.
@@ -105,14 +105,14 @@ extern class Reflect {
 
 
 		If `o` is null, the result is unspecified.
 		If `o` is null, the result is unspecified.
 	**/
 	**/
-	public static function fields(o:Dynamic):Array<String>;
+	static function fields(o:Dynamic):Array<String>;
 
 
 	/**
 	/**
 		Returns true if `f` is a function, false otherwise.
 		Returns true if `f` is a function, false otherwise.
 
 
 		If `f` is null, the result is false.
 		If `f` is null, the result is false.
 	**/
 	**/
-	public static function isFunction(f:Dynamic):Bool;
+	static function isFunction(f:Dynamic):Bool;
 
 
 	/**
 	/**
 		Compares `a` and `b`.
 		Compares `a` and `b`.
@@ -135,7 +135,7 @@ extern class Reflect {
 		If `a` and `b` are null, the result is 0. If only one of them is null,
 		If `a` and `b` are null, the result is 0. If only one of them is null,
 		the result is unspecified.
 		the result is unspecified.
 	**/
 	**/
-	public static function compare<T>(a:T, b:T):Int;
+	static function compare<T>(a:T, b:T):Int;
 
 
 	/**
 	/**
 		Compares the functions `f1` and `f2`.
 		Compares the functions `f1` and `f2`.
@@ -149,7 +149,7 @@ extern class Reflect {
 		If `f1` or `f2` are member method closures, the result is true if they
 		If `f1` or `f2` are member method closures, the result is true if they
 		are closures of the same method on the same object value, false otherwise.
 		are closures of the same method on the same object value, false otherwise.
 	**/
 	**/
-	public static function compareMethods(f1:Dynamic, f2:Dynamic):Bool;
+	static function compareMethods(f1:Dynamic, f2:Dynamic):Bool;
 
 
 	/**
 	/**
 		Tells if `v` is an object.
 		Tells if `v` is an object.
@@ -163,7 +163,7 @@ extern class Reflect {
 
 
 		Otherwise, including if `v` is null, the result is false.
 		Otherwise, including if `v` is null, the result is false.
 	**/
 	**/
-	public static function isObject(v:Dynamic):Bool;
+	static function isObject(v:Dynamic):Bool;
 
 
 	/**
 	/**
 		Tells if `v` is an enum value.
 		Tells if `v` is an enum value.
@@ -173,7 +173,7 @@ extern class Reflect {
 
 
 		Otherwise, including if `v` is null, the result is false.
 		Otherwise, including if `v` is null, the result is false.
 	**/
 	**/
-	public static function isEnumValue(v:Dynamic):Bool;
+	static function isEnumValue(v:Dynamic):Bool;
 
 
 	/**
 	/**
 		Removes the field named `field` from structure `o`.
 		Removes the field named `field` from structure `o`.
@@ -182,7 +182,7 @@ extern class Reflect {
 
 
 		If `o` or `field` are null, the result is unspecified.
 		If `o` or `field` are null, the result is unspecified.
 	**/
 	**/
-	public static function deleteField(o:Dynamic, field:String):Bool;
+	static function deleteField(o:Dynamic, field:String):Bool;
 
 
 	/**
 	/**
 		Copies the fields of structure `o`.
 		Copies the fields of structure `o`.
@@ -191,12 +191,12 @@ extern class Reflect {
 
 
 		If `o` is null, the result is `null`.
 		If `o` is null, the result is `null`.
 	**/
 	**/
-	public static function copy<T>(o:Null<T>):Null<T>;
+	static function copy<T>(o:Null<T>):Null<T>;
 
 
 	/**
 	/**
 		Transform a function taking an array of arguments into a function that can
 		Transform a function taking an array of arguments into a function that can
 		be called with any number of arguments.
 		be called with any number of arguments.
 	**/
 	**/
 	@:overload(function(f:Array<Dynamic>->Void):Dynamic {})
 	@:overload(function(f:Array<Dynamic>->Void):Dynamic {})
-	public static function makeVarArgs(f:Array<Dynamic>->Dynamic):Dynamic;
+	static function makeVarArgs(f:Array<Dynamic>->Dynamic):Dynamic;
 }
 }

+ 9 - 9
std/Std.hx

@@ -34,14 +34,14 @@ extern class Std {
 
 
 		If `t` is a class or interface with `@:generic` meta, the result is `false`.
 		If `t` is a class or interface with `@:generic` meta, the result is `false`.
 	**/
 	**/
-	public static function is(v:Dynamic, t:Dynamic):Bool;
+	static function is(v:Dynamic, t:Dynamic):Bool;
 
 
 	/**
 	/**
 		Tells if a value `v` is of the type `t`. Returns `false` if `v` or `t` are null.
 		Tells if a value `v` is of the type `t`. Returns `false` if `v` or `t` are null.
 
 
 		If `t` is a class or interface with `@:generic` meta, the result is `false`.
 		If `t` is a class or interface with `@:generic` meta, the result is `false`.
 	**/
 	**/
-	public static function isOfType(v:Dynamic, t:Dynamic):Bool;
+	static function isOfType(v:Dynamic, t:Dynamic):Bool;
 
 
 	/**
 	/**
 		Checks if object `value` is an instance of class or interface `c`.
 		Checks if object `value` is an instance of class or interface `c`.
@@ -59,10 +59,10 @@ extern class Std {
 		If `value` is null, the result is null. If `c` is null, the result is
 		If `value` is null, the result is null. If `c` is null, the result is
 		unspecified.
 		unspecified.
 	**/
 	**/
-	public static function downcast<T:{}, S:T>(value:T, c:Class<S>):S;
+	static function downcast<T:{}, S:T>(value:T, c:Class<S>):S;
 
 
 	@:deprecated('Std.instance() is deprecated. Use Std.downcast() instead.')
 	@:deprecated('Std.instance() is deprecated. Use Std.downcast() instead.')
-	public static function instance<T:{}, S:T>(value:T, c:Class<S>):S;
+	static function instance<T:{}, S:T>(value:T, c:Class<S>):S;
 
 
 	/**
 	/**
 		Converts any value to a String.
 		Converts any value to a String.
@@ -82,14 +82,14 @@ extern class Std {
 
 
 		If s is null, "null" is returned.
 		If s is null, "null" is returned.
 	**/
 	**/
-	public static function string(s:Dynamic):String;
+	static function string(s:Dynamic):String;
 
 
 	/**
 	/**
 		Converts a `Float` to an `Int`, rounded towards 0.
 		Converts a `Float` to an `Int`, rounded towards 0.
 
 
 		If `x` is outside of the signed Int32 range, or is `NaN`, `NEGATIVE_INFINITY` or `POSITIVE_INFINITY`, the result is unspecified.
 		If `x` is outside of the signed Int32 range, or is `NaN`, `NEGATIVE_INFINITY` or `POSITIVE_INFINITY`, the result is unspecified.
 	**/
 	**/
-	public static function int(x:Float):Int;
+	static function int(x:Float):Int;
 
 
 	/**
 	/**
 		Converts a `String` to an `Int`.
 		Converts a `String` to an `Int`.
@@ -112,7 +112,7 @@ extern class Std {
 		If `x` is null, the result is unspecified.
 		If `x` is null, the result is unspecified.
 		If `x` cannot be parsed as integer, the result is `null`.
 		If `x` cannot be parsed as integer, the result is `null`.
 	**/
 	**/
-	public static function parseInt(x:String):Null<Int>;
+	static function parseInt(x:String):Null<Int>;
 
 
 	/**
 	/**
 		Converts a `String` to a `Float`.
 		Converts a `String` to a `Float`.
@@ -122,12 +122,12 @@ extern class Std {
 
 
 		Additionally, decimal notation may contain a single `.` to denote the start of the fractions.
 		Additionally, decimal notation may contain a single `.` to denote the start of the fractions.
 	**/
 	**/
-	public static function parseFloat(x:String):Float;
+	static function parseFloat(x:String):Float;
 
 
 	/**
 	/**
 		Return a random integer between 0 included and `x` excluded.
 		Return a random integer between 0 included and `x` excluded.
 
 
 		If `x <= 1`, the result is always 0.
 		If `x <= 1`, the result is always 0.
 	**/
 	**/
-	public static function random(x:Int):Int;
+	static function random(x:Int):Int;
 }
 }

+ 20 - 20
std/Type.hx

@@ -37,7 +37,7 @@ extern class Type {
 
 
 		In general, type parameter information cannot be obtained at runtime.
 		In general, type parameter information cannot be obtained at runtime.
 	**/
 	**/
-	public static function getClass<T>(o:T):Class<T>;
+	static function getClass<T>(o:T):Class<T>;
 
 
 	/**
 	/**
 		Returns the enum of enum instance `o`.
 		Returns the enum of enum instance `o`.
@@ -49,7 +49,7 @@ extern class Type {
 
 
 		In general, type parameter information cannot be obtained at runtime.
 		In general, type parameter information cannot be obtained at runtime.
 	**/
 	**/
-	public static function getEnum(o:EnumValue):Enum<Dynamic>;
+	static function getEnum(o:EnumValue):Enum<Dynamic>;
 
 
 	/**
 	/**
 		Returns the super-class of class `c`.
 		Returns the super-class of class `c`.
@@ -60,7 +60,7 @@ extern class Type {
 
 
 		In general, type parameter information cannot be obtained at runtime.
 		In general, type parameter information cannot be obtained at runtime.
 	**/
 	**/
-	public static function getSuperClass(c:Class<Dynamic>):Class<Dynamic>;
+	static function getSuperClass(c:Class<Dynamic>):Class<Dynamic>;
 
 
 	/**
 	/**
 		Returns the name of class `c`, including its path.
 		Returns the name of class `c`, including its path.
@@ -77,7 +77,7 @@ extern class Type {
 
 
 		The class name does not include any type parameters.
 		The class name does not include any type parameters.
 	**/
 	**/
-	public static function getClassName(c:Class<Dynamic>):String;
+	static function getClassName(c:Class<Dynamic>):String;
 
 
 	/**
 	/**
 		Returns the name of enum `e`, including its path.
 		Returns the name of enum `e`, including its path.
@@ -94,7 +94,7 @@ extern class Type {
 
 
 		The enum name does not include any type parameters.
 		The enum name does not include any type parameters.
 	**/
 	**/
-	public static function getEnumName(e:Enum<Dynamic>):String;
+	static function getEnumName(e:Enum<Dynamic>):String;
 
 
 	/**
 	/**
 		Resolves a class by name.
 		Resolves a class by name.
@@ -108,7 +108,7 @@ extern class Type {
 
 
 		The class name must not include any type parameters.
 		The class name must not include any type parameters.
 	**/
 	**/
-	public static function resolveClass(name:String):Class<Dynamic>;
+	static function resolveClass(name:String):Class<Dynamic>;
 
 
 	/**
 	/**
 		Resolves an enum by name.
 		Resolves an enum by name.
@@ -123,7 +123,7 @@ extern class Type {
 
 
 		The enum name must not include any type parameters.
 		The enum name must not include any type parameters.
 	**/
 	**/
-	public static function resolveEnum(name:String):Enum<Dynamic>;
+	static function resolveEnum(name:String):Enum<Dynamic>;
 
 
 	/**
 	/**
 		Creates an instance of class `cl`, using `args` as arguments to the
 		Creates an instance of class `cl`, using `args` as arguments to the
@@ -142,7 +142,7 @@ extern class Type {
 		In particular, default values of constructor arguments are not
 		In particular, default values of constructor arguments are not
 		guaranteed to be taken into account.
 		guaranteed to be taken into account.
 	**/
 	**/
-	public static function createInstance<T>(cl:Class<T>, args:Array<Dynamic>):T;
+	static function createInstance<T>(cl:Class<T>, args:Array<Dynamic>):T;
 
 
 	/**
 	/**
 		Creates an instance of class `cl`.
 		Creates an instance of class `cl`.
@@ -151,7 +151,7 @@ extern class Type {
 
 
 		If `cl` is null, the result is unspecified.
 		If `cl` is null, the result is unspecified.
 	**/
 	**/
-	public static function createEmptyInstance<T>(cl:Class<T>):T;
+	static function createEmptyInstance<T>(cl:Class<T>):T;
 
 
 	/**
 	/**
 		Creates an instance of enum `e` by calling its constructor `constr` with
 		Creates an instance of enum `e` by calling its constructor `constr` with
@@ -162,7 +162,7 @@ extern class Type {
 		expected number of constructor arguments, or if any argument has an
 		expected number of constructor arguments, or if any argument has an
 		invalid type, the result is unspecified.
 		invalid type, the result is unspecified.
 	**/
 	**/
-	public static function createEnum<T>(e:Enum<T>, constr:String, ?params:Array<Dynamic>):T;
+	static function createEnum<T>(e:Enum<T>, constr:String, ?params:Array<Dynamic>):T;
 
 
 	/**
 	/**
 		Creates an instance of enum `e` by calling its constructor number
 		Creates an instance of enum `e` by calling its constructor number
@@ -176,7 +176,7 @@ extern class Type {
 		expected number of constructor arguments, or if any argument has an
 		expected number of constructor arguments, or if any argument has an
 		invalid type, the result is unspecified.
 		invalid type, the result is unspecified.
 	**/
 	**/
-	public static function createEnumIndex<T>(e:Enum<T>, index:Int, ?params:Array<Dynamic>):T;
+	static function createEnumIndex<T>(e:Enum<T>, index:Int, ?params:Array<Dynamic>):T;
 
 
 	/**
 	/**
 		Returns a list of the instance fields of class `c`, including
 		Returns a list of the instance fields of class `c`, including
@@ -190,7 +190,7 @@ extern class Type {
 
 
 		If `c` is null, the result is unspecified.
 		If `c` is null, the result is unspecified.
 	**/
 	**/
-	public static function getInstanceFields(c:Class<Dynamic>):Array<String>;
+	static function getInstanceFields(c:Class<Dynamic>):Array<String>;
 
 
 	/**
 	/**
 		Returns a list of static fields of class `c`.
 		Returns a list of static fields of class `c`.
@@ -201,7 +201,7 @@ extern class Type {
 
 
 		If `c` is null, the result is unspecified.
 		If `c` is null, the result is unspecified.
 	**/
 	**/
-	public static function getClassFields(c:Class<Dynamic>):Array<String>;
+	static function getClassFields(c:Class<Dynamic>):Array<String>;
 
 
 	/**
 	/**
 		Returns a list of the names of all constructors of enum `e`.
 		Returns a list of the names of all constructors of enum `e`.
@@ -211,7 +211,7 @@ extern class Type {
 
 
 		If `e` is null, the result is unspecified.
 		If `e` is null, the result is unspecified.
 	**/
 	**/
-	public static function getEnumConstructs(e:Enum<Dynamic>):Array<String>;
+	static function getEnumConstructs(e:Enum<Dynamic>):Array<String>;
 
 
 	/**
 	/**
 		Returns the runtime type of value `v`.
 		Returns the runtime type of value `v`.
@@ -220,7 +220,7 @@ extern class Type {
 		per platform. Assumptions regarding this should be minimized to avoid
 		per platform. Assumptions regarding this should be minimized to avoid
 		surprises.
 		surprises.
 	**/
 	**/
-	public static function typeof(v:Dynamic):ValueType;
+	static function typeof(v:Dynamic):ValueType;
 
 
 	/**
 	/**
 		Recursively compares two enum instances `a` and `b` by value.
 		Recursively compares two enum instances `a` and `b` by value.
@@ -230,7 +230,7 @@ extern class Type {
 
 
 		If `a` or `b` are null, the result is unspecified.
 		If `a` or `b` are null, the result is unspecified.
 	**/
 	**/
-	public static function enumEq<T:EnumValue>(a:T, b:T):Bool;
+	static function enumEq<T:EnumValue>(a:T, b:T):Bool;
 
 
 	/**
 	/**
 		Returns the constructor name of enum instance `e`.
 		Returns the constructor name of enum instance `e`.
@@ -239,7 +239,7 @@ extern class Type {
 
 
 		If `e` is null, the result is unspecified.
 		If `e` is null, the result is unspecified.
 	**/
 	**/
-	public static function enumConstructor(e:EnumValue):String;
+	static function enumConstructor(e:EnumValue):String;
 
 
 	/**
 	/**
 		Returns a list of the constructor arguments of enum instance `e`.
 		Returns a list of the constructor arguments of enum instance `e`.
@@ -251,7 +251,7 @@ extern class Type {
 
 
 		If `e` is null, the result is unspecified.
 		If `e` is null, the result is unspecified.
 	**/
 	**/
-	public static function enumParameters(e:EnumValue):Array<Dynamic>;
+	static function enumParameters(e:EnumValue):Array<Dynamic>;
 
 
 	/**
 	/**
 		Returns the index of enum instance `e`.
 		Returns the index of enum instance `e`.
@@ -261,7 +261,7 @@ extern class Type {
 
 
 		If `e` is null, the result is unspecified.
 		If `e` is null, the result is unspecified.
 	**/
 	**/
-	public static function enumIndex(e:EnumValue):Int;
+	static function enumIndex(e:EnumValue):Int;
 
 
 	/**
 	/**
 		Returns a list of all constructors of enum `e` that require no
 		Returns a list of all constructors of enum `e` that require no
@@ -276,7 +276,7 @@ extern class Type {
 
 
 		If `e` is null, the result is unspecified.
 		If `e` is null, the result is unspecified.
 	**/
 	**/
-	public static function allEnums<T>(e:Enum<T>):Array<T>;
+	static function allEnums<T>(e:Enum<T>):Array<T>;
 }
 }
 
 
 /**
 /**

+ 4 - 4
std/cpp/ArrayBase.hx

@@ -24,8 +24,8 @@ package cpp;
 
 
 extern class ArrayBase {
 extern class ArrayBase {
 	// Length is number of elements
 	// Length is number of elements
-	public var length(default, null):Int;
-	public function getElementSize():Int;
-	public function getByteCount():Int;
-	public function getBase():RawPointer<Char>;
+	var length(default, null):Int;
+	function getElementSize():Int;
+	function getByteCount():Int;
+	function getBase():RawPointer<Char>;
 }
 }

+ 25 - 25
std/cpp/ConstPointer.hx

@@ -26,46 +26,46 @@ package cpp;
 extern class ConstPointer<T> {
 extern class ConstPointer<T> {
 	// ptr actually returns the pointer - not strictly a 'T' - for pointers to smart pointers
 	// ptr actually returns the pointer - not strictly a 'T' - for pointers to smart pointers
 	// Use value or ref to get dereferenced value
 	// Use value or ref to get dereferenced value
-	public var ptr:Star<T>;
+	var ptr:Star<T>;
 
 
-	public var value(get, never):T;
+	var value(get, never):T;
 
 
 	// Typecast to non-const
 	// Typecast to non-const
-	public var raw(get, never):RawPointer<T>;
+	var raw(get, never):RawPointer<T>;
 
 
 	// const version
 	// const version
-	public var constRaw(get, never):RawConstPointer<T>;
+	var constRaw(get, never):RawConstPointer<T>;
 
 
-	public function get_value():Reference<T>;
+	function get_value():Reference<T>;
 
 
-	public function get_constRaw():RawConstPointer<T>;
-	public function get_raw():RawPointer<T>;
+	function get_constRaw():RawConstPointer<T>;
+	function get_raw():RawPointer<T>;
 
 
-	public function lt(inOther:ConstPointer<T>):Bool;
-	public function leq(inOther:ConstPointer<T>):Bool;
-	public function gt(inOther:ConstPointer<T>):Bool;
-	public function geq(inOther:ConstPointer<T>):Bool;
+	function lt(inOther:ConstPointer<T>):Bool;
+	function leq(inOther:ConstPointer<T>):Bool;
+	function gt(inOther:ConstPointer<T>):Bool;
+	function geq(inOther:ConstPointer<T>):Bool;
 
 
-	public function setRaw<O>(ptr:RawPointer<O>):Void;
+	function setRaw<O>(ptr:RawPointer<O>):Void;
 
 
-	public static function fromRaw<T>(ptr:RawConstPointer<T>):ConstPointer<T>;
+	static function fromRaw<T>(ptr:RawConstPointer<T>):ConstPointer<T>;
 
 
 	@:native("::cpp::Pointer_obj::fromRaw")
 	@:native("::cpp::Pointer_obj::fromRaw")
-	public static function fromStar<T>(star:Star<T>):ConstPointer<T>;
+	static function fromStar<T>(star:Star<T>):ConstPointer<T>;
 
 
-	public static function fromPointer<T>(inNativePointer:Dynamic):ConstPointer<T>;
+	static function fromPointer<T>(inNativePointer:Dynamic):ConstPointer<T>;
 
 
-	public function reinterpret<Other>():Pointer<Other>;
+	function reinterpret<Other>():Pointer<Other>;
 
 
-	public function rawCast<Other>():RawPointer<Other>;
+	function rawCast<Other>():RawPointer<Other>;
 
 
-	public function at(inIndex:Int):Reference<T>;
+	function at(inIndex:Int):Reference<T>;
 
 
-	public function inc():ConstPointer<T>;
-	public function dec():ConstPointer<T>;
-	public function incBy(inT:Int):ConstPointer<T>;
-	public function decBy(inT:Int):ConstPointer<T>;
-	public function add(inT:Int):ConstPointer<T>;
-	public function sub(inT:Int):ConstPointer<T>;
-	public function postIncVal():Reference<T>;
+	function inc():ConstPointer<T>;
+	function dec():ConstPointer<T>;
+	function incBy(inT:Int):ConstPointer<T>;
+	function decBy(inT:Int):ConstPointer<T>;
+	function add(inT:Int):ConstPointer<T>;
+	function sub(inT:Int):ConstPointer<T>;
+	function postIncVal():Reference<T>;
 }
 }

+ 18 - 18
std/cpp/EnumBase.hx

@@ -25,36 +25,36 @@ package cpp;
 @:native("hx.EnumBase")
 @:native("hx.EnumBase")
 extern class EnumBase {
 extern class EnumBase {
 	#if (hxcpp_api_level >= 330)
 	#if (hxcpp_api_level >= 330)
-	public function _hx_getIndex():Int;
-	public function _hx_getTag():String;
-	public function _hx_getParamCount():Int;
-	public function _hx_getParamI(inIndex:Int):Dynamic;
-	public function _hx_getParameters():Array<Dynamic>;
+	function _hx_getIndex():Int;
+	function _hx_getTag():String;
+	function _hx_getParamCount():Int;
+	function _hx_getParamI(inIndex:Int):Dynamic;
+	function _hx_getParameters():Array<Dynamic>;
 
 
-	inline public function getIndex():Int
+	inline function getIndex():Int
 		return _hx_getIndex();
 		return _hx_getIndex();
-	inline public function getTag():String
+	inline function getTag():String
 		return _hx_getTag();
 		return _hx_getTag();
-	inline public function getParamCount():Int
+	inline function getParamCount():Int
 		return _hx_getParamCount();
 		return _hx_getParamCount();
-	inline public function getParamI(inIndex:Int):Dynamic
+	inline function getParamI(inIndex:Int):Dynamic
 		return _hx_getParamI(inIndex);
 		return _hx_getParamI(inIndex);
-	inline public function getParameters():Array<Dynamic>
+	inline function getParameters():Array<Dynamic>
 		return _hx_getParameters();
 		return _hx_getParameters();
 	#else
 	#else
-	public function __EnumParams():Array<Dynamic>;
-	public function __Tag():String;
-	public function __Index():Int;
+	function __EnumParams():Array<Dynamic>;
+	function __Tag():String;
+	function __Index():Int;
 
 
-	inline public function _hx_getIndex():Int
+	inline function _hx_getIndex():Int
 		return untyped __Index();
 		return untyped __Index();
-	inline public function _hx_getTag():String
+	inline function _hx_getTag():String
 		return untyped __Tag();
 		return untyped __Tag();
-	inline public function _hx_getParamCount():Int
+	inline function _hx_getParamCount():Int
 		return untyped __EnumParams() == null ? 0 : __EnumParams().length;
 		return untyped __EnumParams() == null ? 0 : __EnumParams().length;
-	inline public function _hx_getParamI(inIndex:Int):Dynamic
+	inline function _hx_getParamI(inIndex:Int):Dynamic
 		return untyped __EnumParams()[inIndex];
 		return untyped __EnumParams()[inIndex];
-	inline public function _hx_getParameters():Array<Dynamic>
+	inline function _hx_getParameters():Array<Dynamic>
 		return __EnumParams() == null ? [] : __EnumParams();
 		return __EnumParams() == null ? [] : __EnumParams();
 	#end
 	#end
 }
 }

+ 5 - 5
std/cpp/ErrorConstants.hx

@@ -24,17 +24,17 @@ package cpp;
 
 
 extern class ErrorConstants {
 extern class ErrorConstants {
 	@:native("HX_INVALID_CAST")
 	@:native("HX_INVALID_CAST")
-	public static var invalidCast:Dynamic;
+	static var invalidCast:Dynamic;
 
 
 	@:native("HX_INDEX_OUT_OF_BOUNDS")
 	@:native("HX_INDEX_OUT_OF_BOUNDS")
-	public static var indexOutOfBounds:Dynamic;
+	static var indexOutOfBounds:Dynamic;
 
 
 	@:native("HX_INVALID_OBJECT")
 	@:native("HX_INVALID_OBJECT")
-	public static var invalidObject:Dynamic;
+	static var invalidObject:Dynamic;
 
 
 	@:native("HX_INVALID_ARG_COUNT")
 	@:native("HX_INVALID_ARG_COUNT")
-	public static var invalidArgCount:Dynamic;
+	static var invalidArgCount:Dynamic;
 
 
 	@:native("HX_NULL_FUNCTION_POINTER")
 	@:native("HX_NULL_FUNCTION_POINTER")
-	public static var nullFunctionPointer:Dynamic;
+	static var nullFunctionPointer:Dynamic;
 }
 }

+ 2 - 2
std/cpp/FastIterator.hx

@@ -23,6 +23,6 @@
 package cpp;
 package cpp;
 
 
 extern class FastIterator<T> {
 extern class FastIterator<T> {
-	public function hasNext():Bool;
-	public function next():T;
+	function hasNext():Bool;
+	function next():T;
 }
 }

+ 24 - 24
std/cpp/Native.hx

@@ -25,79 +25,79 @@ package cpp;
 @:include("stdlib.h")
 @:include("stdlib.h")
 extern class Native {
 extern class Native {
 	@:native("malloc")
 	@:native("malloc")
-	public static function nativeMalloc(bytes:Int):cpp.Star<cpp.Void>;
+	static function nativeMalloc(bytes:Int):cpp.Star<cpp.Void>;
 	@:native("calloc")
 	@:native("calloc")
-	public static function nativeCalloc(bytes:Int):cpp.Star<cpp.Void>;
+	static function nativeCalloc(bytes:Int):cpp.Star<cpp.Void>;
 	@:native("realloc")
 	@:native("realloc")
-	public static function nativeRealloc(inPtr:cpp.Star<cpp.Void>, bytes:Int):cpp.RawPointer<cpp.Void>;
+	static function nativeRealloc(inPtr:cpp.Star<cpp.Void>, bytes:Int):cpp.RawPointer<cpp.Void>;
 	@:native("free")
 	@:native("free")
-	public static function nativeFree(ptr:cpp.Star<cpp.Void>):Void;
+	static function nativeFree(ptr:cpp.Star<cpp.Void>):Void;
 	@:native("memcpy")
 	@:native("memcpy")
-	public static function nativeMemcpy(dest:cpp.Star<cpp.Void>, src:cpp.Star<cpp.Void>, bytes:Int):Void;
+	static function nativeMemcpy(dest:cpp.Star<cpp.Void>, src:cpp.Star<cpp.Void>, bytes:Int):Void;
 
 
 	@:native("hx::ClassSizeOf") @:templatedCall
 	@:native("hx::ClassSizeOf") @:templatedCall
-	public static function sizeof<T>(t:T):Int;
+	static function sizeof<T>(t:T):Int;
 
 
 	#if !cppia
 	#if !cppia
 	@:native("hx::Dereference")
 	@:native("hx::Dereference")
-	public static function star<T>(ptr:cpp.Star<T>):cpp.Reference<T>;
+	static function star<T>(ptr:cpp.Star<T>):cpp.Reference<T>;
 
 
 	@:generic
 	@:generic
-	public static inline function set<T>(ptr:cpp.Star<T>, value:T):Void {
+	static inline function set<T>(ptr:cpp.Star<T>, value:T):Void {
 		var ref:cpp.Reference<T> = star(ptr);
 		var ref:cpp.Reference<T> = star(ptr);
 		ref = value;
 		ref = value;
 	}
 	}
 	@:generic
 	@:generic
-	public static inline function get<T>(ptr:cpp.Star<T>):T {
+	static inline function get<T>(ptr:cpp.Star<T>):T {
 		var ref:cpp.Reference<T> = star(ptr);
 		var ref:cpp.Reference<T> = star(ptr);
 		return ref;
 		return ref;
 	}
 	}
 
 
 	@:generic
 	@:generic
-	public static inline function memcpy<DEST, SRC>(dest:cpp.Star<DEST>, src:cpp.Star<SRC>, bytes:Int):Void
+	static inline function memcpy<DEST, SRC>(dest:cpp.Star<DEST>, src:cpp.Star<SRC>, bytes:Int):Void
 		nativeMemcpy(cast dest, cast src, bytes);
 		nativeMemcpy(cast dest, cast src, bytes);
 
 
 	@:generic
 	@:generic
-	public static inline function malloc<T>(bytes:Int):cpp.Star<T>
+	static inline function malloc<T>(bytes:Int):cpp.Star<T>
 		return cast nativeMalloc(bytes);
 		return cast nativeMalloc(bytes);
 
 
 	@:generic
 	@:generic
-	public static inline function calloc<T>(bytes:Int):cpp.Star<T>
+	static inline function calloc<T>(bytes:Int):cpp.Star<T>
 		return cast nativeCalloc(bytes);
 		return cast nativeCalloc(bytes);
 
 
 	@:generic
 	@:generic
-	public static inline function realloc<T>(ioPtr:cpp.Star<T>, bytes:Int):cpp.Star<T>
+	static inline function realloc<T>(ioPtr:cpp.Star<T>, bytes:Int):cpp.Star<T>
 		return cast nativeRealloc(cast ioPtr, bytes);
 		return cast nativeRealloc(cast ioPtr, bytes);
 
 
 	@:generic
 	@:generic
-	public static inline function free<T>(ptr:cpp.Star<T>):Void {
+	static inline function free<T>(ptr:cpp.Star<T>):Void {
 		if (ptr != null)
 		if (ptr != null)
 			nativeFree(cast ptr);
 			nativeFree(cast ptr);
 	}
 	}
 
 
 	@:native("hx::StarOf")
 	@:native("hx::StarOf")
-	public static function addressOf<T>(inVariable:Reference<T>):Star<T>;
+	static function addressOf<T>(inVariable:Reference<T>):Star<T>;
 	#else
 	#else
-	public static inline function addressOf<T>(inVariable:Reference<T>):Star<T> {
+	static inline function addressOf<T>(inVariable:Reference<T>):Star<T> {
 		throw "Native.addressOf not available in cppia";
 		throw "Native.addressOf not available in cppia";
 	}
 	}
-	public static inline function star<T>(ptr:cpp.Star<T>):cpp.Reference<T> {
+	static inline function star<T>(ptr:cpp.Star<T>):cpp.Reference<T> {
 		throw "Native.star not available in cppia";
 		throw "Native.star not available in cppia";
 	}
 	}
 
 
-	public static inline function set<T>(ptr:cpp.Star<T>, value:T):Void {
+	static inline function set<T>(ptr:cpp.Star<T>, value:T):Void {
 		throw "Native.set not available in cppia";
 		throw "Native.set not available in cppia";
 	}
 	}
-	public static inline function get<T>(ptr:cpp.Star<T>):T {
+	static inline function get<T>(ptr:cpp.Star<T>):T {
 		throw "Native.get not available in cppia";
 		throw "Native.get not available in cppia";
 		var d:Dynamic = null;
 		var d:Dynamic = null;
 		return d;
 		return d;
 	}
 	}
 
 
-	public static function memcpy<DEST, SRC>(dest:cpp.Star<DEST>, src:cpp.Star<SRC>, bytes:Int):Void;
-	public static function malloc<T>(bytes:Int):cpp.Star<T>;
-	public static function calloc<T>(bytes:Int):cpp.Star<T>;
-	public static function realloc<T>(ioPtr:cpp.Star<T>, bytes:Int):cpp.Star<T>;
-	public static function free<T>(ptr:cpp.Star<T>):Void;
+	static function memcpy<DEST, SRC>(dest:cpp.Star<DEST>, src:cpp.Star<SRC>, bytes:Int):Void;
+	static function malloc<T>(bytes:Int):cpp.Star<T>;
+	static function calloc<T>(bytes:Int):cpp.Star<T>;
+	static function realloc<T>(ioPtr:cpp.Star<T>, bytes:Int):cpp.Star<T>;
+	static function free<T>(ptr:cpp.Star<T>):Void;
 	#end
 	#end
 }
 }

+ 2 - 2
std/cpp/NativeArc.hx

@@ -24,8 +24,8 @@ package cpp;
 
 
 extern class NativeArc {
 extern class NativeArc {
 	@:native("(__bridge_transfer id)")
 	@:native("(__bridge_transfer id)")
-	public static function _bridgeTransfer<T>(ptr:cpp.RawPointer<cpp.Void>):cpp.RawPointer<T>;
+	static function _bridgeTransfer<T>(ptr:cpp.RawPointer<cpp.Void>):cpp.RawPointer<T>;
 
 
-	public static inline function bridgeTransfer<T>(ptr:cpp.RawPointer<cpp.Void>):T
+	static inline function bridgeTransfer<T>(ptr:cpp.RawPointer<cpp.Void>):T
 		return cast _bridgeTransfer(ptr);
 		return cast _bridgeTransfer(ptr);
 }
 }

+ 19 - 19
std/cpp/NativeArray.hx

@@ -24,74 +24,74 @@ package cpp;
 
 
 extern class NativeArray {
 extern class NativeArray {
 	#if cppia
 	#if cppia
-	public static inline function create<T>(length:Int):Array<T> {
+	static inline function create<T>(length:Int):Array<T> {
 		var result = new Array<T>();
 		var result = new Array<T>();
 		NativeArray.setSize(result, length);
 		NativeArray.setSize(result, length);
 		return result;
 		return result;
 	}
 	}
 	#else
 	#else
 	@:native("_hx_create_array_length")
 	@:native("_hx_create_array_length")
-	public static function create<T>(length:Int):Array<T>;
+	static function create<T>(length:Int):Array<T>;
 	#end
 	#end
 
 
-	public static inline function blit<T>(ioDestArray:Array<T>, inDestElement:Int, inSourceArray:Array<T>, inSourceElement:Int, inElementCount:Int):Void {
+	static inline function blit<T>(ioDestArray:Array<T>, inDestElement:Int, inSourceArray:Array<T>, inSourceElement:Int, inElementCount:Int):Void {
 		untyped ioDestArray.blit(inDestElement, inSourceArray, inSourceElement, inElementCount);
 		untyped ioDestArray.blit(inDestElement, inSourceArray, inSourceElement, inElementCount);
 	};
 	};
 
 
-	public static inline function getBase(inArray:Array<Dynamic>):ArrayBase {
+	static inline function getBase(inArray:Array<Dynamic>):ArrayBase {
 		return untyped inArray;
 		return untyped inArray;
 	}
 	}
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function reserve<T>(inArray:Array<T>, inElements:Int):Void;
+	static function reserve<T>(inArray:Array<T>, inElements:Int):Void;
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function capacity<T>(inArray:Array<T>):Int;
+	static function capacity<T>(inArray:Array<T>):Int;
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function getElementSize<T>(inArray:Array<T>):Int;
+	static function getElementSize<T>(inArray:Array<T>):Int;
 
 
-	public static inline function address<T>(inArray:Array<T>, inIndex:Int):Pointer<T> {
+	static inline function address<T>(inArray:Array<T>, inIndex:Int):Pointer<T> {
 		return Pointer.arrayElem(inArray, inIndex);
 		return Pointer.arrayElem(inArray, inIndex);
 	}
 	}
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function setData<T>(inArray:Array<T>, inData:Pointer<T>, inElementCount:Int):Void;
+	static function setData<T>(inArray:Array<T>, inData:Pointer<T>, inElementCount:Int):Void;
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function setUnmanagedData<T>(inArray:Array<T>, inData:ConstPointer<T>, inElementCount:Int):Void;
+	static function setUnmanagedData<T>(inArray:Array<T>, inData:ConstPointer<T>, inElementCount:Int):Void;
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function zero<T>(ioDestArray:Array<T>, ?inFirst:Int, ?inElements:Int):Void;
+	static function zero<T>(ioDestArray:Array<T>, ?inFirst:Int, ?inElements:Int):Void;
 
 
 	@:nativeStaticExtension
 	@:nativeStaticExtension
-	public static function memcmp<T>(inArrayA:Array<T>, inArrayB:Array<T>):Int;
+	static function memcmp<T>(inArrayA:Array<T>, inArrayB:Array<T>):Int;
 
 
 	@:native("_hx_reslove_virtual_array")
 	@:native("_hx_reslove_virtual_array")
-	public static function resolveVirtualArray(inArray:Array<Dynamic>):Dynamic;
+	static function resolveVirtualArray(inArray:Array<Dynamic>):Dynamic;
 
 
 	#if cppia
 	#if cppia
-	public static inline function unsafeGet<T>(inDestArray:Array<T>, inIndex:Int):T {
+	static inline function unsafeGet<T>(inDestArray:Array<T>, inIndex:Int):T {
 		return untyped inDestArray.__unsafe_get(inIndex);
 		return untyped inDestArray.__unsafe_get(inIndex);
 	}
 	}
 
 
-	public static inline function unsafeSet<T>(ioDestArray:Array<T>, inIndex:Int, inValue:T):T {
+	static inline function unsafeSet<T>(ioDestArray:Array<T>, inIndex:Int, inValue:T):T {
 		return untyped ioDestArray.__unsafe_set(inIndex, inValue);
 		return untyped ioDestArray.__unsafe_set(inIndex, inValue);
 	}
 	}
 
 
-	public static inline function setSize<T>(ioArray:Array<T>, inSize:Int):Array<T> {
+	static inline function setSize<T>(ioArray:Array<T>, inSize:Int):Array<T> {
 		return untyped ioArray.__SetSizeExact(inSize);
 		return untyped ioArray.__SetSizeExact(inSize);
 	}
 	}
 	#else
 	#else
 	@:native("_hx_array_unsafe_get")
 	@:native("_hx_array_unsafe_get")
-	public static function unsafeGet<T>(inDestArray:Array<T>, inIndex:Int):T;
+	static function unsafeGet<T>(inDestArray:Array<T>, inIndex:Int):T;
 
 
 	@:native("_hx_array_unsafe_set")
 	@:native("_hx_array_unsafe_set")
-	public static inline function unsafeSet<T>(ioDestArray:Array<T>, inIndex:Int, inValue:T):T {
+	static inline function unsafeSet<T>(ioDestArray:Array<T>, inIndex:Int, inValue:T):T {
 		return untyped ioDestArray.__unsafe_set(inIndex, inValue);
 		return untyped ioDestArray.__unsafe_set(inIndex, inValue);
 	}
 	}
 
 
 	@:native("_hx_array_set_size_exact")
 	@:native("_hx_array_set_size_exact")
-	public static function setSize<T>(ioArray:Array<T>, inSize:Int):Array<T>;
+	static function setSize<T>(ioArray:Array<T>, inSize:Int):Array<T>;
 	#end
 	#end
 }
 }

+ 15 - 15
std/cpp/NativeFile.hx

@@ -25,47 +25,47 @@ package cpp;
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 extern class NativeFile {
 extern class NativeFile {
 	@:native("_hx_std_file_open")
 	@:native("_hx_std_file_open")
-	extern public static function file_open(fname:String, r:String):Dynamic;
+	extern static function file_open(fname:String, r:String):Dynamic;
 
 
 	@:native("_hx_std_file_close")
 	@:native("_hx_std_file_close")
-	extern public static function file_close(handle:Dynamic):Void;
+	extern static function file_close(handle:Dynamic):Void;
 
 
 	@:native("_hx_std_file_write")
 	@:native("_hx_std_file_write")
-	extern public static function file_write(handle:Dynamic, s:haxe.io.BytesData, p:Int, n:Int):Int;
+	extern static function file_write(handle:Dynamic, s:haxe.io.BytesData, p:Int, n:Int):Int;
 
 
 	@:native("_hx_std_file_write_char")
 	@:native("_hx_std_file_write_char")
-	extern public static function file_write_char(handle:Dynamic, c:Int):Void;
+	extern static function file_write_char(handle:Dynamic, c:Int):Void;
 
 
 	@:native("_hx_std_file_read")
 	@:native("_hx_std_file_read")
-	extern public static function file_read(handle:Dynamic, s:haxe.io.BytesData, p:Int, n:Int):Int;
+	extern static function file_read(handle:Dynamic, s:haxe.io.BytesData, p:Int, n:Int):Int;
 
 
 	@:native("_hx_std_file_read_char")
 	@:native("_hx_std_file_read_char")
-	extern public static function file_read_char(handle:Dynamic):Int;
+	extern static function file_read_char(handle:Dynamic):Int;
 
 
 	@:native("_hx_std_file_seek")
 	@:native("_hx_std_file_seek")
-	extern public static function file_seek(handle:Dynamic, pos:Int, kind:Int):Void;
+	extern static function file_seek(handle:Dynamic, pos:Int, kind:Int):Void;
 
 
 	@:native("_hx_std_file_tell")
 	@:native("_hx_std_file_tell")
-	extern public static function file_tell(handle:Dynamic):Int;
+	extern static function file_tell(handle:Dynamic):Int;
 
 
 	@:native("_hx_std_file_eof")
 	@:native("_hx_std_file_eof")
-	extern public static function file_eof(handle:Dynamic):Bool;
+	extern static function file_eof(handle:Dynamic):Bool;
 
 
 	@:native("_hx_std_file_flush")
 	@:native("_hx_std_file_flush")
-	extern public static function file_flush(handle:Dynamic):Void;
+	extern static function file_flush(handle:Dynamic):Void;
 
 
 	@:native("_hx_std_file_contents_string")
 	@:native("_hx_std_file_contents_string")
-	extern public static function file_contents_string(name:String):String;
+	extern static function file_contents_string(name:String):String;
 
 
 	@:native("_hx_std_file_contents_bytes")
 	@:native("_hx_std_file_contents_bytes")
-	extern public static function file_contents_bytes(name:String):haxe.io.BytesData;
+	extern static function file_contents_bytes(name:String):haxe.io.BytesData;
 
 
 	@:native("_hx_std_file_stdin")
 	@:native("_hx_std_file_stdin")
-	extern public static function file_stdin():Dynamic;
+	extern static function file_stdin():Dynamic;
 
 
 	@:native("_hx_std_file_stdout")
 	@:native("_hx_std_file_stdout")
-	extern public static function file_stdout():Dynamic;
+	extern static function file_stdout():Dynamic;
 
 
 	@:native("_hx_std_file_stderr")
 	@:native("_hx_std_file_stderr")
-	extern public static function file_stderr():Dynamic;
+	extern static function file_stderr():Dynamic;
 }
 }

+ 17 - 17
std/cpp/NativeGc.hx

@@ -24,42 +24,42 @@ package cpp;
 
 
 extern class NativeGc {
 extern class NativeGc {
 	@:native("__hxcpp_gc_mem_info")
 	@:native("__hxcpp_gc_mem_info")
-	static public function memInfo(inWhatInfo:Int):Float;
+	static function memInfo(inWhatInfo:Int):Float;
 
 
 	@:native("_hx_allocate_extended") @:templatedCall
 	@:native("_hx_allocate_extended") @:templatedCall
-	static public function allocateExtended<T>(cls:Class<T>, size:Int):T;
+	static function allocateExtended<T>(cls:Class<T>, size:Int):T;
 
 
 	@:native("_hx_add_finalizable")
 	@:native("_hx_add_finalizable")
-	public static function addFinalizable(instance:{function finalize():Void;}, inPin:Bool):Void;
+	static function addFinalizable(instance:{function finalize():Void;}, inPin:Bool):Void;
 
 
 	@:native("hx::InternalNew")
 	@:native("hx::InternalNew")
-	public static function allocGcBytesRaw(inBytes:Int, isContainer:Bool):RawPointer<cpp.Void>;
+	static function allocGcBytesRaw(inBytes:Int, isContainer:Bool):RawPointer<cpp.Void>;
 
 
-	inline public static function allocGcBytes(inBytes:Int):Pointer<cpp.Void> {
+	inline static function allocGcBytes(inBytes:Int):Pointer<cpp.Void> {
 		return Pointer.fromRaw(allocGcBytesRaw(inBytes, false));
 		return Pointer.fromRaw(allocGcBytesRaw(inBytes, false));
 	}
 	}
 
 
-	@:native("__hxcpp_enable") extern static public function enable(inEnable:Bool):Void;
+	@:native("__hxcpp_enable") extern static function enable(inEnable:Bool):Void;
 
 
-	@:native("__hxcpp_collect") extern static public function run(major:Bool):Void;
+	@:native("__hxcpp_collect") extern static function run(major:Bool):Void;
 
 
-	@:native("__hxcpp_gc_compact") extern static public function compact():Void;
+	@:native("__hxcpp_gc_compact") extern static function compact():Void;
 
 
-	@:native("__hxcpp_gc_trace") extern static public function nativeTrace(sought:Class<Dynamic>, printInstances:Bool):Int;
+	@:native("__hxcpp_gc_trace") extern static function nativeTrace(sought:Class<Dynamic>, printInstances:Bool):Int;
 
 
-	@:native("__hxcpp_gc_do_not_kill") extern static public function doNotKill(inObject:Dynamic):Void;
+	@:native("__hxcpp_gc_do_not_kill") extern static function doNotKill(inObject:Dynamic):Void;
 
 
-	@:native("__hxcpp_get_next_zombie") extern static public function getNextZombie():Dynamic;
+	@:native("__hxcpp_get_next_zombie") extern static function getNextZombie():Dynamic;
 
 
-	@:native("__hxcpp_gc_safe_point") extern static public function safePoint():Void;
+	@:native("__hxcpp_gc_safe_point") extern static function safePoint():Void;
 
 
-	@:native("__hxcpp_enter_gc_free_zone") extern static public function enterGCFreeZone():Void;
+	@:native("__hxcpp_enter_gc_free_zone") extern static function enterGCFreeZone():Void;
 
 
-	@:native("__hxcpp_exit_gc_free_zone") extern static public function exitGCFreeZone():Void;
+	@:native("__hxcpp_exit_gc_free_zone") extern static function exitGCFreeZone():Void;
 
 
-	@:native("__hxcpp_set_minimum_free_space") extern static public function setMinimumFreeSpace(inBytes:Int):Void;
+	@:native("__hxcpp_set_minimum_free_space") extern static function setMinimumFreeSpace(inBytes:Int):Void;
 
 
-	@:native("__hxcpp_set_target_free_space_percentage") extern static public function setTargetFreeSpacePercentage(inPercentage:Int):Void;
+	@:native("__hxcpp_set_target_free_space_percentage") extern static function setTargetFreeSpacePercentage(inPercentage:Int):Void;
 
 
-	@:native("__hxcpp_set_minimum_working_memory") extern static public function setMinimumWorkingMemory(inBytes:Int):Void;
+	@:native("__hxcpp_set_minimum_working_memory") extern static function setMinimumWorkingMemory(inBytes:Int):Void;
 }
 }

+ 8 - 8
std/cpp/NativeMath.hx

@@ -26,24 +26,24 @@ package cpp;
 extern class NativeMath {
 extern class NativeMath {
 	#if (cpp && !cppia)
 	#if (cpp && !cppia)
 	@:native("_hx_idiv")
 	@:native("_hx_idiv")
-	public static function idiv(num:Int, denom:Int):Int;
+	static function idiv(num:Int, denom:Int):Int;
 	@:native("_hx_imod")
 	@:native("_hx_imod")
-	public static function imod(num:Int, denom:Int):Int;
+	static function imod(num:Int, denom:Int):Int;
 	@:native("_hx_cast_int")
 	@:native("_hx_cast_int")
-	public static function castInt(f:Float):Int;
+	static function castInt(f:Float):Int;
 	@:native("_hx_fast_floor")
 	@:native("_hx_fast_floor")
-	public static function fastInt(f:Float):Int;
+	static function fastInt(f:Float):Int;
 	#else
 	#else
-	public static inline function imod(num:Int, denom:Int):Int
+	static inline function imod(num:Int, denom:Int):Int
 		return num % denom;
 		return num % denom;
 
 
-	public static inline function idiv(num:Int, denom:Int):Int
+	static inline function idiv(num:Int, denom:Int):Int
 		return Std.int(num / denom);
 		return Std.int(num / denom);
 
 
-	public static inline function castInt(f:Float):Int
+	static inline function castInt(f:Float):Int
 		return Std.int(f);
 		return Std.int(f);
 
 
-	public static inline function fastInt(f:Float):Int
+	static inline function fastInt(f:Float):Int
 		return Std.int(f);
 		return Std.int(f);
 	#end
 	#end
 }
 }

+ 10 - 10
std/cpp/NativeProcess.hx

@@ -25,32 +25,32 @@ package cpp;
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 extern class NativeProcess {
 extern class NativeProcess {
 	@:native("_hx_std_process_run")
 	@:native("_hx_std_process_run")
-	public static function process_run(cmd:String, vargs:Array<String>):Dynamic;
+	static function process_run(cmd:String, vargs:Array<String>):Dynamic;
 
 
 	@:native("_hx_std_process_run")
 	@:native("_hx_std_process_run")
-	public static function process_run_with_show(cmd:String, vargs:Array<String>, inShow:Int):Dynamic;
+	static function process_run_with_show(cmd:String, vargs:Array<String>, inShow:Int):Dynamic;
 
 
 	@:native("_hx_std_process_stdout_read")
 	@:native("_hx_std_process_stdout_read")
-	public static function process_stdout_read(handle:Dynamic, buf:haxe.io.BytesData, pos:Int, len:Int):Int;
+	static function process_stdout_read(handle:Dynamic, buf:haxe.io.BytesData, pos:Int, len:Int):Int;
 
 
 	@:native("_hx_std_process_stderr_read")
 	@:native("_hx_std_process_stderr_read")
-	public static function process_stderr_read(handle:Dynamic, buf:haxe.io.BytesData, pos:Int, len:Int):Int;
+	static function process_stderr_read(handle:Dynamic, buf:haxe.io.BytesData, pos:Int, len:Int):Int;
 
 
 	@:native("_hx_std_process_stdin_write")
 	@:native("_hx_std_process_stdin_write")
-	public static function process_stdin_write(handle:Dynamic, buf:haxe.io.BytesData, pos:Int, len:Int):Int;
+	static function process_stdin_write(handle:Dynamic, buf:haxe.io.BytesData, pos:Int, len:Int):Int;
 
 
 	@:native("_hx_std_process_stdin_close")
 	@:native("_hx_std_process_stdin_close")
-	public static function process_stdin_close(handle:Dynamic):Void;
+	static function process_stdin_close(handle:Dynamic):Void;
 
 
 	@:native("_hx_std_process_exit")
 	@:native("_hx_std_process_exit")
-	public static function process_exit(handle:Dynamic):Int;
+	static function process_exit(handle:Dynamic):Int;
 
 
 	@:native("_hx_std_process_pid")
 	@:native("_hx_std_process_pid")
-	public static function process_pid(handle:Dynamic):Int;
+	static function process_pid(handle:Dynamic):Int;
 
 
 	@:native("_hx_std_process_kill")
 	@:native("_hx_std_process_kill")
-	public static function process_kill(handle:Dynamic):Void;
+	static function process_kill(handle:Dynamic):Void;
 
 
 	@:native("_hx_std_process_close")
 	@:native("_hx_std_process_close")
-	public static function process_close(handle:Dynamic):Void;
+	static function process_close(handle:Dynamic):Void;
 }
 }

+ 4 - 4
std/cpp/NativeRandom.hx

@@ -25,14 +25,14 @@ package cpp;
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 extern class NativeRandom {
 extern class NativeRandom {
 	@:native("_hx_std_random_new")
 	@:native("_hx_std_random_new")
-	public static function random_new():Dynamic;
+	static function random_new():Dynamic;
 
 
 	@:native("_hx_std_random_set_seed")
 	@:native("_hx_std_random_set_seed")
-	public static function random_set_seed(handle:Dynamic, v:Int):Void;
+	static function random_set_seed(handle:Dynamic, v:Int):Void;
 
 
 	@:native("_hx_std_random_int")
 	@:native("_hx_std_random_int")
-	public static function random_int(handle:Dynamic, max:Int):Int;
+	static function random_int(handle:Dynamic, max:Int):Int;
 
 
 	@:native("_hx_std_random_float")
 	@:native("_hx_std_random_float")
-	public static function random_float(handle:Dynamic):Float;
+	static function random_float(handle:Dynamic):Float;
 }
 }

+ 39 - 39
std/cpp/NativeSocket.hx

@@ -27,119 +27,119 @@ import sys.net.Socket;
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 extern class NativeSocket {
 extern class NativeSocket {
 	@:native("_hx_std_socket_init")
 	@:native("_hx_std_socket_init")
-	public static function socket_init():Void;
+	static function socket_init():Void;
 
 
 	@:native("_hx_std_socket_new")
 	@:native("_hx_std_socket_new")
-	public static function socket_new(udp:Bool):Dynamic;
+	static function socket_new(udp:Bool):Dynamic;
 
 
 	@:native("_hx_std_socket_new")
 	@:native("_hx_std_socket_new")
-	public static function socket_new_ip(udp:Bool, ipv6:Bool):Dynamic;
+	static function socket_new_ip(udp:Bool, ipv6:Bool):Dynamic;
 
 
 	@:native("_hx_std_socket_close")
 	@:native("_hx_std_socket_close")
-	public static function socket_close(handle:Dynamic):Void;
+	static function socket_close(handle:Dynamic):Void;
 
 
 	@:native("_hx_std_socket_bind")
 	@:native("_hx_std_socket_bind")
-	public static function socket_bind(o:Dynamic, host:Int, port:Int):Void;
+	static function socket_bind(o:Dynamic, host:Int, port:Int):Void;
 
 
 	@:native("_hx_std_socket_bind_ipv6")
 	@:native("_hx_std_socket_bind_ipv6")
-	public static function socket_bind_ipv6(o:Dynamic, host:haxe.io.BytesData, port:Int):Void;
+	static function socket_bind_ipv6(o:Dynamic, host:haxe.io.BytesData, port:Int):Void;
 
 
 	@:native("_hx_std_socket_send_char")
 	@:native("_hx_std_socket_send_char")
-	public static function socket_send_char(o:Dynamic, c:Int):Void;
+	static function socket_send_char(o:Dynamic, c:Int):Void;
 
 
 	@:native("_hx_std_socket_send")
 	@:native("_hx_std_socket_send")
-	public static function socket_send(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
+	static function socket_send(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
 
 
 	@:native("_hx_std_socket_recv")
 	@:native("_hx_std_socket_recv")
-	public static function socket_recv(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
+	static function socket_recv(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
 
 
 	@:native("_hx_std_socket_recv_char")
 	@:native("_hx_std_socket_recv_char")
-	public static function socket_recv_char(o:Dynamic):Int;
+	static function socket_recv_char(o:Dynamic):Int;
 
 
 	@:native("_hx_std_socket_write")
 	@:native("_hx_std_socket_write")
-	public static function socket_write(o:Dynamic, buf:haxe.io.BytesData):Void;
+	static function socket_write(o:Dynamic, buf:haxe.io.BytesData):Void;
 
 
 	@:native("_hx_std_socket_read")
 	@:native("_hx_std_socket_read")
-	public static function socket_read(o:Dynamic):haxe.io.BytesData;
+	static function socket_read(o:Dynamic):haxe.io.BytesData;
 
 
 	@:native("_hx_std_host_resolve_ipv6")
 	@:native("_hx_std_host_resolve_ipv6")
-	public static function host_resolve_ipv6(host:String):haxe.io.BytesData;
+	static function host_resolve_ipv6(host:String):haxe.io.BytesData;
 
 
 	@:native("_hx_std_host_resolve")
 	@:native("_hx_std_host_resolve")
-	public static function host_resolve(host:String):Int;
+	static function host_resolve(host:String):Int;
 
 
 	@:native("_hx_std_host_to_string")
 	@:native("_hx_std_host_to_string")
-	public static function host_to_string(ip:Int):String;
+	static function host_to_string(ip:Int):String;
 
 
 	@:native("_hx_std_host_to_string_ipv6")
 	@:native("_hx_std_host_to_string_ipv6")
-	public static function host_to_string_ipv6(ipv6:haxe.io.BytesData):String;
+	static function host_to_string_ipv6(ipv6:haxe.io.BytesData):String;
 
 
 	@:native("_hx_std_host_reverse")
 	@:native("_hx_std_host_reverse")
-	public static function host_reverse(host:Int):String;
+	static function host_reverse(host:Int):String;
 
 
 	@:native("_hx_std_host_reverse_ipv6")
 	@:native("_hx_std_host_reverse_ipv6")
-	public static function host_reverse_ipv6(ipv6:haxe.io.BytesData):String;
+	static function host_reverse_ipv6(ipv6:haxe.io.BytesData):String;
 
 
 	@:native("_hx_std_host_local")
 	@:native("_hx_std_host_local")
-	public static function host_local():String;
+	static function host_local():String;
 
 
-	inline public static function host_local_ipv6():String
+	inline static function host_local_ipv6():String
 		return "::1";
 		return "::1";
 
 
 	@:native("_hx_std_socket_connect")
 	@:native("_hx_std_socket_connect")
-	public static function socket_connect(o:Dynamic, host:Int, port:Int):Void;
+	static function socket_connect(o:Dynamic, host:Int, port:Int):Void;
 
 
 	@:native("_hx_std_socket_connect_ipv6")
 	@:native("_hx_std_socket_connect_ipv6")
-	public static function socket_connect_ipv6(o:Dynamic, host:haxe.io.BytesData, port:Int):Void;
+	static function socket_connect_ipv6(o:Dynamic, host:haxe.io.BytesData, port:Int):Void;
 
 
 	@:native("_hx_std_socket_listen")
 	@:native("_hx_std_socket_listen")
-	public static function socket_listen(o:Dynamic, n:Int):Void;
+	static function socket_listen(o:Dynamic, n:Int):Void;
 
 
 	@:native("_hx_std_socket_select")
 	@:native("_hx_std_socket_select")
-	public static function socket_select(rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Array<Dynamic>;
+	static function socket_select(rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Array<Dynamic>;
 
 
 	@:native("_hx_std_socket_fast_select")
 	@:native("_hx_std_socket_fast_select")
-	public static function socket_fast_select(rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Void;
+	static function socket_fast_select(rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Void;
 
 
 	@:native("_hx_std_socket_accept")
 	@:native("_hx_std_socket_accept")
-	public static function socket_accept(o:Dynamic):Dynamic;
+	static function socket_accept(o:Dynamic):Dynamic;
 
 
 	@:native("_hx_std_socket_peer")
 	@:native("_hx_std_socket_peer")
-	public static function socket_peer(o:Dynamic):Array<Int>;
+	static function socket_peer(o:Dynamic):Array<Int>;
 
 
 	@:native("_hx_std_socket_host")
 	@:native("_hx_std_socket_host")
-	public static function socket_host(o:Dynamic):Array<Int>;
+	static function socket_host(o:Dynamic):Array<Int>;
 
 
 	@:native("_hx_std_socket_set_timeout")
 	@:native("_hx_std_socket_set_timeout")
-	public static function socket_set_timeout(o:Dynamic, t:Dynamic):Void;
+	static function socket_set_timeout(o:Dynamic, t:Dynamic):Void;
 
 
 	@:native("_hx_std_socket_shutdown")
 	@:native("_hx_std_socket_shutdown")
-	public static function socket_shutdown(o:Dynamic, r:Bool, w:Bool):Void;
+	static function socket_shutdown(o:Dynamic, r:Bool, w:Bool):Void;
 
 
 	@:native("_hx_std_socket_set_blocking")
 	@:native("_hx_std_socket_set_blocking")
-	public static function socket_set_blocking(o:Dynamic, b:Bool):Void;
+	static function socket_set_blocking(o:Dynamic, b:Bool):Void;
 
 
 	@:native("_hx_std_socket_set_fast_send")
 	@:native("_hx_std_socket_set_fast_send")
-	public static function socket_set_fast_send(o:Dynamic, b:Bool):Void;
+	static function socket_set_fast_send(o:Dynamic, b:Bool):Void;
 
 
 	@:native("_hx_std_socket_set_broadcast")
 	@:native("_hx_std_socket_set_broadcast")
-	public static function socket_set_broadcast(o:Dynamic, b:Bool):Void;
+	static function socket_set_broadcast(o:Dynamic, b:Bool):Void;
 
 
 	@:native("_hx_std_socket_poll_alloc")
 	@:native("_hx_std_socket_poll_alloc")
-	public static function socket_poll_alloc(nsocks:Int):Dynamic;
+	static function socket_poll_alloc(nsocks:Int):Dynamic;
 
 
 	@:native("_hx_std_socket_poll_prepare")
 	@:native("_hx_std_socket_poll_prepare")
-	public static function socket_poll_prepare(pdata:Dynamic, rsocks:Array<Socket>, wsocks:Array<Socket>):Array<Array<Int>>;
+	static function socket_poll_prepare(pdata:Dynamic, rsocks:Array<Socket>, wsocks:Array<Socket>):Array<Array<Int>>;
 
 
 	@:native("_hx_std_socket_poll_events")
 	@:native("_hx_std_socket_poll_events")
-	public static function socket_poll_events(pdata:Dynamic, timeout:Float):Void;
+	static function socket_poll_events(pdata:Dynamic, timeout:Float):Void;
 
 
 	@:native("_hx_std_socket_poll")
 	@:native("_hx_std_socket_poll")
-	public static function socket_poll(socks:Array<Socket>, pdata:Dynamic, timeout:Float):Array<Socket>;
+	static function socket_poll(socks:Array<Socket>, pdata:Dynamic, timeout:Float):Array<Socket>;
 
 
 	@:native("_hx_std_socket_send_to")
 	@:native("_hx_std_socket_send_to")
-	public static function socket_send_to(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int, inAddr:Dynamic):Int;
+	static function socket_send_to(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int, inAddr:Dynamic):Int;
 
 
 	@:native("_hx_std_socket_recv_from")
 	@:native("_hx_std_socket_recv_from")
-	public static function socket_recv_from(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int, outAddr:Dynamic):Int;
+	static function socket_recv_from(o:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int, outAddr:Dynamic):Int;
 }
 }

+ 37 - 37
std/cpp/NativeSsl.hx

@@ -25,113 +25,113 @@ package cpp;
 @:buildXml('<include name="${HXCPP}/src/hx/libs/ssl/Build.xml"/>')
 @:buildXml('<include name="${HXCPP}/src/hx/libs/ssl/Build.xml"/>')
 extern class NativeSsl {
 extern class NativeSsl {
 	@:native("_hx_ssl_debug_set")
 	@:native("_hx_ssl_debug_set")
-	public static function ssl_debug_set(int:Int):Void;
+	static function ssl_debug_set(int:Int):Void;
 	
 	
 	@:native("_hx_ssl_new")
 	@:native("_hx_ssl_new")
-	public static function ssl_new(conf:Dynamic):Dynamic;
+	static function ssl_new(conf:Dynamic):Dynamic;
 
 
 	@:native("_hx_ssl_close")
 	@:native("_hx_ssl_close")
-	public static function ssl_close(ctx:Dynamic):Void;
+	static function ssl_close(ctx:Dynamic):Void;
 
 
 	@:native("_hx_ssl_handshake")
 	@:native("_hx_ssl_handshake")
-	public static function ssl_handshake(ctx:Dynamic):Void;
+	static function ssl_handshake(ctx:Dynamic):Void;
 
 
 	@:native("_hx_ssl_set_socket")
 	@:native("_hx_ssl_set_socket")
-	public static function ssl_set_socket(ctx:Dynamic, socket:Dynamic):Void;
+	static function ssl_set_socket(ctx:Dynamic, socket:Dynamic):Void;
 
 
 	@:native("_hx_ssl_set_hostname")
 	@:native("_hx_ssl_set_hostname")
-	public static function ssl_set_hostname(ctx:Dynamic, hostname:String):Void;
+	static function ssl_set_hostname(ctx:Dynamic, hostname:String):Void;
 
 
 	@:native("_hx_ssl_get_peer_certificate")
 	@:native("_hx_ssl_get_peer_certificate")
-	public static function ssl_get_peer_certificate(ctx:Dynamic):Dynamic;
+	static function ssl_get_peer_certificate(ctx:Dynamic):Dynamic;
 
 
 	@:native("_hx_ssl_get_verify_result")
 	@:native("_hx_ssl_get_verify_result")
-	public static function ssl_get_verify_result(ctx:Dynamic):Bool;
+	static function ssl_get_verify_result(ctx:Dynamic):Bool;
 
 
 	@:native("_hx_ssl_send_char")
 	@:native("_hx_ssl_send_char")
-	public static function ssl_send_char(ctx:Dynamic, char:Int):Void;
+	static function ssl_send_char(ctx:Dynamic, char:Int):Void;
 
 
 	@:native("_hx_ssl_send")
 	@:native("_hx_ssl_send")
-	public static function ssl_send(ctx:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
+	static function ssl_send(ctx:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
 
 
 	@:native("_hx_ssl_write")
 	@:native("_hx_ssl_write")
-	public static function ssl_write(ctx:Dynamic, data:haxe.io.BytesData):Void;
+	static function ssl_write(ctx:Dynamic, data:haxe.io.BytesData):Void;
 
 
 	@:native("_hx_ssl_recv_char")
 	@:native("_hx_ssl_recv_char")
-	public static function ssl_recv_char(ctx:Dynamic):Int;
+	static function ssl_recv_char(ctx:Dynamic):Int;
 
 
 	@:native("_hx_ssl_recv")
 	@:native("_hx_ssl_recv")
-	public static function ssl_recv(ctx:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
+	static function ssl_recv(ctx:Dynamic, buf:haxe.io.BytesData, p:Int, l:Int):Int;
 
 
 	@:native("_hx_ssl_read")
 	@:native("_hx_ssl_read")
-	public static function ssl_read(ctx:Dynamic):haxe.io.BytesData;
+	static function ssl_read(ctx:Dynamic):haxe.io.BytesData;
 
 
 	@:native("_hx_ssl_conf_new")
 	@:native("_hx_ssl_conf_new")
-	public static function conf_new(server:Bool):Dynamic;
+	static function conf_new(server:Bool):Dynamic;
 
 
 	@:native("_hx_ssl_conf_close")
 	@:native("_hx_ssl_conf_close")
-	public static function conf_close(conf:Dynamic):Void;
+	static function conf_close(conf:Dynamic):Void;
 
 
 	@:native("_hx_ssl_conf_set_ca")
 	@:native("_hx_ssl_conf_set_ca")
-	public static function conf_set_ca(conf:Dynamic, cert:Dynamic):Void;
+	static function conf_set_ca(conf:Dynamic, cert:Dynamic):Void;
 
 
 	@:native("_hx_ssl_conf_set_verify")
 	@:native("_hx_ssl_conf_set_verify")
-	public static function conf_set_verify(conf:Dynamic, mode:Int):Void;
+	static function conf_set_verify(conf:Dynamic, mode:Int):Void;
 
 
 	@:native("_hx_ssl_conf_set_cert")
 	@:native("_hx_ssl_conf_set_cert")
-	public static function conf_set_cert(conf:Dynamic, cert:Dynamic, pkey:Dynamic):Void;
+	static function conf_set_cert(conf:Dynamic, cert:Dynamic, pkey:Dynamic):Void;
 
 
 	@:native("_hx_ssl_conf_set_servername_callback")
 	@:native("_hx_ssl_conf_set_servername_callback")
-	public static function conf_set_servername_callback(conf:Dynamic, cb:Dynamic):Void;
+	static function conf_set_servername_callback(conf:Dynamic, cb:Dynamic):Void;
 
 
 	@:native("_hx_ssl_cert_load_defaults")
 	@:native("_hx_ssl_cert_load_defaults")
-	public static function cert_load_defaults():Dynamic;
+	static function cert_load_defaults():Dynamic;
 
 
 	@:native("_hx_ssl_cert_load_file")
 	@:native("_hx_ssl_cert_load_file")
-	public static function cert_load_file(file:String):Dynamic;
+	static function cert_load_file(file:String):Dynamic;
 
 
 	@:native("_hx_ssl_cert_load_path")
 	@:native("_hx_ssl_cert_load_path")
-	public static function cert_load_path(path:String):Dynamic;
+	static function cert_load_path(path:String):Dynamic;
 
 
 	@:native("_hx_ssl_cert_get_subject")
 	@:native("_hx_ssl_cert_get_subject")
-	public static function cert_get_subject(cert:Dynamic, field:String):String;
+	static function cert_get_subject(cert:Dynamic, field:String):String;
 
 
 	@:native("_hx_ssl_cert_get_issuer")
 	@:native("_hx_ssl_cert_get_issuer")
-	public static function cert_get_issuer(cert:Dynamic, field:String):String;
+	static function cert_get_issuer(cert:Dynamic, field:String):String;
 
 
 	@:native("_hx_ssl_cert_get_altnames")
 	@:native("_hx_ssl_cert_get_altnames")
-	public static function cert_get_altnames(cert:Dynamic):Array<String>;
+	static function cert_get_altnames(cert:Dynamic):Array<String>;
 
 
 	@:native("_hx_ssl_cert_get_notbefore")
 	@:native("_hx_ssl_cert_get_notbefore")
-	public static function cert_get_notbefore(cert:Dynamic):Array<Int>;
+	static function cert_get_notbefore(cert:Dynamic):Array<Int>;
 
 
 	@:native("_hx_ssl_cert_get_notafter")
 	@:native("_hx_ssl_cert_get_notafter")
-	public static function cert_get_notafter(cert:Dynamic):Array<Int>;
+	static function cert_get_notafter(cert:Dynamic):Array<Int>;
 
 
 	@:native("_hx_ssl_cert_get_next")
 	@:native("_hx_ssl_cert_get_next")
-	public static function cert_get_next(cert:Dynamic):Dynamic;
+	static function cert_get_next(cert:Dynamic):Dynamic;
 
 
 	@:native("_hx_ssl_cert_add_pem")
 	@:native("_hx_ssl_cert_add_pem")
-	public static function cert_add_pem(cert:Dynamic, data:String):Dynamic;
+	static function cert_add_pem(cert:Dynamic, data:String):Dynamic;
 
 
 	@:native("_hx_ssl_cert_add_der")
 	@:native("_hx_ssl_cert_add_der")
-	public static function cert_add_der(cert:Dynamic, data:haxe.io.BytesData):Dynamic;
+	static function cert_add_der(cert:Dynamic, data:haxe.io.BytesData):Dynamic;
 
 
 	@:native("_hx_ssl_key_from_der")
 	@:native("_hx_ssl_key_from_der")
-	public static function key_from_der(data:haxe.io.BytesData, pub:Bool):Dynamic;
+	static function key_from_der(data:haxe.io.BytesData, pub:Bool):Dynamic;
 
 
 	@:native("_hx_ssl_key_from_pem")
 	@:native("_hx_ssl_key_from_pem")
-	public static function key_from_pem(data:String, pub:Bool, pass:String):Dynamic;
+	static function key_from_pem(data:String, pub:Bool, pass:String):Dynamic;
 
 
 	@:native("_hx_ssl_dgst_make")
 	@:native("_hx_ssl_dgst_make")
-	public static function dgst_make(data:haxe.io.BytesData, alg:String):haxe.io.BytesData;
+	static function dgst_make(data:haxe.io.BytesData, alg:String):haxe.io.BytesData;
 
 
 	@:native("_hx_ssl_dgst_sign")
 	@:native("_hx_ssl_dgst_sign")
-	public static function dgst_sign(data:haxe.io.BytesData, key:Dynamic, alg:String):haxe.io.BytesData;
+	static function dgst_sign(data:haxe.io.BytesData, key:Dynamic, alg:String):haxe.io.BytesData;
 
 
 	@:native("_hx_ssl_dgst_verify")
 	@:native("_hx_ssl_dgst_verify")
-	public static function dgst_verify(data:haxe.io.BytesData, sign:haxe.io.BytesData, key:Dynamic, alg:String):Bool;
+	static function dgst_verify(data:haxe.io.BytesData, sign:haxe.io.BytesData, key:Dynamic, alg:String):Bool;
 
 
 	@:native("_hx_ssl_init")
 	@:native("_hx_ssl_init")
-	public static function init():Void;
+	static function init():Void;
 }
 }

+ 11 - 11
std/cpp/NativeString.hx

@@ -23,37 +23,37 @@
 package cpp;
 package cpp;
 
 
 extern class NativeString {
 extern class NativeString {
-	public static inline function raw(inString:String):RawConstPointer<Char> {
+	static inline function raw(inString:String):RawConstPointer<Char> {
 		return untyped inString.raw_ptr();
 		return untyped inString.raw_ptr();
 	}
 	}
-	public static inline function c_str(inString:String):ConstPointer<Char> {
+	static inline function c_str(inString:String):ConstPointer<Char> {
 		return cpp.ConstPointer.fromPointer(untyped inString.c_str());
 		return cpp.ConstPointer.fromPointer(untyped inString.c_str());
 	}
 	}
-	public static inline function fromPointer(inPtr:ConstPointer<Char>):String {
+	static inline function fromPointer(inPtr:ConstPointer<Char>):String {
 		return untyped __global__.String(inPtr.ptr);
 		return untyped __global__.String(inPtr.ptr);
 	}
 	}
-	public static inline function fromGcPointer(inPtr:ConstPointer<Char>, inLen:Int):String {
+	static inline function fromGcPointer(inPtr:ConstPointer<Char>, inLen:Int):String {
 		return untyped __global__.String(inPtr.ptr, inLen);
 		return untyped __global__.String(inPtr.ptr, inLen);
 	}
 	}
 
 
 	@:native("_hx_string_compare")
 	@:native("_hx_string_compare")
-	public static function compare(inString0:String, inString1:String):Int;
+	static function compare(inString0:String, inString1:String):Int;
 
 
 	@:native("_hx_utf8_char_code_at")
 	@:native("_hx_utf8_char_code_at")
-	public static function utf8CharCodeAt(inString:String, inIndex:Int):Int;
+	static function utf8CharCodeAt(inString:String, inIndex:Int):Int;
 
 
 	@:native("_hx_utf8_length")
 	@:native("_hx_utf8_length")
-	public static function utf8Length(inString:String):Int;
+	static function utf8Length(inString:String):Int;
 
 
 	@:native("_hx_utf8_is_valid")
 	@:native("_hx_utf8_is_valid")
-	public static function utf8IsValid(inString:String):Bool;
+	static function utf8IsValid(inString:String):Bool;
 
 
 	@:native("_hx_utf8_sub")
 	@:native("_hx_utf8_sub")
-	public static function utf8Sub(inString:String, charStart:Int, inLen:Int):String;
+	static function utf8Sub(inString:String, charStart:Int, inLen:Int):String;
 
 
 	@:native("_hx_string_create")
 	@:native("_hx_string_create")
-	public static function fromPointerLen(inPtr:ConstPointer<Char>, len:Int):String;
+	static function fromPointerLen(inPtr:ConstPointer<Char>, len:Int):String;
 
 
 	@:native("_hx_utf8_decode_advance")
 	@:native("_hx_utf8_decode_advance")
-	public static function utf8DecodeAdvance(reference:Char):Int;
+	static function utf8DecodeAdvance(reference:Char):Int;
 }
 }

+ 27 - 27
std/cpp/NativeSys.hx

@@ -25,83 +25,83 @@ package cpp;
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 @:buildXml('<include name="${HXCPP}/src/hx/libs/std/Build.xml"/>')
 extern class NativeSys {
 extern class NativeSys {
 	@:native("__hxcpp_print")
 	@:native("__hxcpp_print")
-	public static function print(v:Dynamic):Void;
+	static function print(v:Dynamic):Void;
 
 
 	@:native("__hxcpp_println")
 	@:native("__hxcpp_println")
-	public static function println(v:Dynamic):Void;
+	static function println(v:Dynamic):Void;
 
 
 	@:native("_hx_std_get_env")
 	@:native("_hx_std_get_env")
-	extern public static function get_env(v:String):String;
+	extern static function get_env(v:String):String;
 
 
 	@:native("_hx_std_put_env")
 	@:native("_hx_std_put_env")
-	extern public static function put_env(e:String, v:String):Void;
+	extern static function put_env(e:String, v:String):Void;
 
 
 	@:native("_hx_std_sys_sleep")
 	@:native("_hx_std_sys_sleep")
-	extern public static function sys_sleep(f:Float):Void;
+	extern static function sys_sleep(f:Float):Void;
 
 
 	@:native("_hx_std_set_time_locale")
 	@:native("_hx_std_set_time_locale")
-	extern public static function set_time_locale(l:String):Bool;
+	extern static function set_time_locale(l:String):Bool;
 
 
 	@:native("_hx_std_get_cwd")
 	@:native("_hx_std_get_cwd")
-	extern public static function get_cwd():String;
+	extern static function get_cwd():String;
 
 
 	@:native("_hx_std_set_cwd")
 	@:native("_hx_std_set_cwd")
-	extern public static function set_cwd(d:String):Void;
+	extern static function set_cwd(d:String):Void;
 
 
 	@:native("_hx_std_sys_string")
 	@:native("_hx_std_sys_string")
-	extern public static function sys_string():String;
+	extern static function sys_string():String;
 
 
 	@:native("_hx_std_sys_is64")
 	@:native("_hx_std_sys_is64")
-	extern public static function sys_is64():Bool;
+	extern static function sys_is64():Bool;
 
 
 	@:native("_hx_std_sys_command")
 	@:native("_hx_std_sys_command")
-	extern public static function sys_command(cmd:String):Int;
+	extern static function sys_command(cmd:String):Int;
 
 
 	@:native("_hx_std_sys_exit")
 	@:native("_hx_std_sys_exit")
-	extern public static function sys_exit(code:Int):Void;
+	extern static function sys_exit(code:Int):Void;
 
 
 	@:native("_hx_std_sys_exists")
 	@:native("_hx_std_sys_exists")
-	extern public static function sys_exists(path:String):Bool;
+	extern static function sys_exists(path:String):Bool;
 
 
 	@:native("_hx_std_file_delete")
 	@:native("_hx_std_file_delete")
-	extern public static function file_delete(path:String):Void;
+	extern static function file_delete(path:String):Void;
 
 
 	@:native("_hx_std_sys_rename")
 	@:native("_hx_std_sys_rename")
-	extern public static function sys_rename(path:String, newname:String):Bool;
+	extern static function sys_rename(path:String, newname:String):Bool;
 
 
 	@:native("_hx_std_sys_stat")
 	@:native("_hx_std_sys_stat")
-	extern public static function sys_stat(path:String):Dynamic;
+	extern static function sys_stat(path:String):Dynamic;
 
 
 	@:native("_hx_std_sys_file_type")
 	@:native("_hx_std_sys_file_type")
-	extern public static function sys_file_type(path:String):String;
+	extern static function sys_file_type(path:String):String;
 
 
 	@:native("_hx_std_sys_create_dir")
 	@:native("_hx_std_sys_create_dir")
-	extern public static function sys_create_dir(path:String, mode:Int):Bool;
+	extern static function sys_create_dir(path:String, mode:Int):Bool;
 
 
 	@:native("_hx_std_sys_remove_dir")
 	@:native("_hx_std_sys_remove_dir")
-	extern public static function sys_remove_dir(path:String):Void;
+	extern static function sys_remove_dir(path:String):Void;
 
 
 	@:native("_hx_std_sys_time")
 	@:native("_hx_std_sys_time")
-	extern public static function sys_time():Float;
+	extern static function sys_time():Float;
 
 
 	@:native("_hx_std_sys_cpu_time")
 	@:native("_hx_std_sys_cpu_time")
-	extern public static function sys_cpu_time():Float;
+	extern static function sys_cpu_time():Float;
 
 
 	@:native("_hx_std_sys_read_dir")
 	@:native("_hx_std_sys_read_dir")
-	extern public static function sys_read_dir(p:String):Array<String>;
+	extern static function sys_read_dir(p:String):Array<String>;
 
 
 	@:native("_hx_std_file_full_path")
 	@:native("_hx_std_file_full_path")
-	extern public static function file_full_path(path:String):String;
+	extern static function file_full_path(path:String):String;
 
 
 	@:native("_hx_std_sys_exe_path")
 	@:native("_hx_std_sys_exe_path")
-	extern public static function sys_exe_path():String;
+	extern static function sys_exe_path():String;
 
 
 	@:native("_hx_std_sys_env")
 	@:native("_hx_std_sys_env")
-	extern public static function sys_env():Array<String>;
+	extern static function sys_env():Array<String>;
 
 
 	@:native("_hx_std_sys_getch")
 	@:native("_hx_std_sys_getch")
-	extern public static function sys_getch(b:Bool):Int;
+	extern static function sys_getch(b:Bool):Int;
 
 
 	@:native("_hx_std_sys_get_pid")
 	@:native("_hx_std_sys_get_pid")
-	extern public static function sys_get_pid():Int;
+	extern static function sys_get_pid():Int;
 }
 }

+ 13 - 13
std/cpp/ObjectType.hx

@@ -23,17 +23,17 @@
 package cpp;
 package cpp;
 
 
 extern class ObjectType {
 extern class ObjectType {
-	public inline static var vtUnknown = -1;
-	public inline static var vtInt = 0xff;
-	public inline static var vtNull = 0;
-	public inline static var vtFloat = 1;
-	public inline static var vtBool = 2;
-	public inline static var vtString = 3;
-	public inline static var vtObject = 4;
-	public inline static var vtArray = 5;
-	public inline static var vtFunction = 6;
-	public inline static var vtEnum = 7;
-	public inline static var vtClass = 8;
-	public inline static var vtInt64 = 9;
-	public inline static var vtAbstractBase = 0x100;
+	inline static var vtUnknown = -1;
+	inline static var vtInt = 0xff;
+	inline static var vtNull = 0;
+	inline static var vtFloat = 1;
+	inline static var vtBool = 2;
+	inline static var vtString = 3;
+	inline static var vtObject = 4;
+	inline static var vtArray = 5;
+	inline static var vtFunction = 6;
+	inline static var vtEnum = 7;
+	inline static var vtClass = 8;
+	inline static var vtInt64 = 9;
+	inline static var vtAbstractBase = 0x100;
 }
 }

+ 22 - 22
std/cpp/Pointer.hx

@@ -27,29 +27,29 @@ import haxe.extern.AsVar;
 @:coreType
 @:coreType
 @:semantics(variable)
 @:semantics(variable)
 extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T> {
 extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T> {
-	public var ref(get, set):Reference<T>;
+	var ref(get, set):Reference<T>;
 
 
-	public function get_ref():Reference<T>;
-	public function set_ref(t:T):Reference<T>;
+	function get_ref():Reference<T>;
+	function set_ref(t:T):Reference<T>;
 
 
-	public function setAt(inIndex:Int, value:T):Void;
+	function setAt(inIndex:Int, value:T):Void;
 
 
-	public static function fromRaw<T>(ptr:RawPointer<T>):Pointer<T>;
+	static function fromRaw<T>(ptr:RawPointer<T>):Pointer<T>;
 
 
 	@:native("::cpp::Pointer_obj::fromRaw")
 	@:native("::cpp::Pointer_obj::fromRaw")
-	public static function fromStar<T>(star:Star<T>):Pointer<T>;
+	static function fromStar<T>(star:Star<T>):Pointer<T>;
 
 
 	@:native("::cpp::Pointer_obj::fromHandle")
 	@:native("::cpp::Pointer_obj::fromHandle")
 	static function nativeFromHandle<T>(inHandle:Dynamic, ?inKind:String):AutoCast;
 	static function nativeFromHandle<T>(inHandle:Dynamic, ?inKind:String):AutoCast;
-	inline public static function fromHandle<T>(inHandle:Dynamic, ?inKind:String):Pointer<T> {
+	inline static function fromHandle<T>(inHandle:Dynamic, ?inKind:String):Pointer<T> {
 		return cast nativeFromHandle(inHandle, inKind);
 		return cast nativeFromHandle(inHandle, inKind);
 	}
 	}
 
 
-	public static function fromPointer<T>(inNativePointer:Dynamic):Pointer<T>;
+	static function fromPointer<T>(inNativePointer:Dynamic):Pointer<T>;
 
 
-	public static function addressOf<T>(inVariable:cpp.Reference<T>):Pointer<T>;
+	static function addressOf<T>(inVariable:cpp.Reference<T>):Pointer<T>;
 
 
-	public static function endOf<T:{}>(inVariable:T):Pointer<cpp.Void>;
+	static function endOf<T:{}>(inVariable:T):Pointer<cpp.Void>;
 
 
 	@:native("::cpp::Pointer_obj::arrayElem")
 	@:native("::cpp::Pointer_obj::arrayElem")
 	static function nativeArrayElem<T>(array:Array<T>, inElem:Int):AutoCast;
 	static function nativeArrayElem<T>(array:Array<T>, inElem:Int):AutoCast;
@@ -59,28 +59,28 @@ extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T> {
 
 
 	@:native("::cpp::Pointer_obj::ofArray")
 	@:native("::cpp::Pointer_obj::ofArray")
 	static function nativeOfArray<T>(array:Array<T>):AutoCast;
 	static function nativeOfArray<T>(array:Array<T>):AutoCast;
-	inline public static function ofArray<T>(array:Array<T>):Pointer<T> {
+	inline static function ofArray<T>(array:Array<T>):Pointer<T> {
 		return cast nativeOfArray(array);
 		return cast nativeOfArray(array);
 	}
 	}
 
 
-	inline public function toUnmanagedArray(elementCount:Int):Array<T> {
+	inline function toUnmanagedArray(elementCount:Int):Array<T> {
 		var result = new Array<T>();
 		var result = new Array<T>();
 		NativeArray.setUnmanagedData(result, this, elementCount);
 		NativeArray.setUnmanagedData(result, this, elementCount);
 		return result;
 		return result;
 	}
 	}
 
 
-	inline public function toUnmanagedVector(elementCount:Int):haxe.ds.Vector<T>
+	inline function toUnmanagedVector(elementCount:Int):haxe.ds.Vector<T>
 		return cast toUnmanagedArray(elementCount);
 		return cast toUnmanagedArray(elementCount);
 
 
-	override public function inc():Pointer<T>;
-	override public function dec():Pointer<T>;
-	override public function incBy(inT:Int):Pointer<T>;
-	override public function decBy(inT:Int):Pointer<T>;
-	override public function add(inT:Int):Pointer<T>;
-	override public function sub(inT:Int):Pointer<T>;
+	override function inc():Pointer<T>;
+	override function dec():Pointer<T>;
+	override function incBy(inT:Int):Pointer<T>;
+	override function decBy(inT:Int):Pointer<T>;
+	override function add(inT:Int):Pointer<T>;
+	override function sub(inT:Int):Pointer<T>;
 
 
-	public function postIncRef():Reference<T>;
+	function postIncRef():Reference<T>;
 
 
-	public function destroy():Void;
-	public function destroyArray():Void;
+	function destroy():Void;
+	function destroyArray():Void;
 }
 }

+ 1 - 1
std/cpp/RawConstPointer.hx

@@ -25,5 +25,5 @@ package cpp;
 @:unreflective
 @:unreflective
 extern class RawConstPointer<T> implements ArrayAccess<T> {
 extern class RawConstPointer<T> implements ArrayAccess<T> {
 	@:native("hx::AddressOf")
 	@:native("hx::AddressOf")
-	public static function addressOf<T>(t:T):RawConstPointer<T>;
+	static function addressOf<T>(t:T):RawConstPointer<T>;
 }
 }

+ 1 - 1
std/cpp/RawPointer.hx

@@ -25,5 +25,5 @@ package cpp;
 @:unreflective
 @:unreflective
 extern class RawPointer<T> extends RawConstPointer<T> {
 extern class RawPointer<T> extends RawConstPointer<T> {
 	@:native("hx::AddressOf")
 	@:native("hx::AddressOf")
-	public static function addressOf<T>(t:T):RawPointer<T>;
+	static function addressOf<T>(t:T):RawPointer<T>;
 }
 }

+ 12 - 12
std/cpp/StdString.hx

@@ -31,19 +31,19 @@ using cpp.NativeString;
 @:unreflective
 @:unreflective
 extern class StdString {
 extern class StdString {
 	@:native("std::string::npos")
 	@:native("std::string::npos")
-	public static var npos(default, null):Int;
+	static var npos(default, null):Int;
 
 
-	// public function new(inData:StdStringData);
+	// function new(inData:StdStringData);
 	@:native("hx::StdString")
 	@:native("hx::StdString")
-	static public function ofString(s:String):StdString;
+	static function ofString(s:String):StdString;
 
 
-	// public function toString():String;
-	// public function find(s:String):Int;
-	// public function substr(pos:Int, len:Int):StdString;
-	public function c_str():ConstPointer<Char>;
-	public function size():Int;
-	public function find(s:String):Int;
-	public function substr(pos:Int, len:Int):StdString;
-	public function toString():String;
-	public function toStdString():StdString;
+	// function toString():String;
+	// function find(s:String):Int;
+	// function substr(pos:Int, len:Int):StdString;
+	function c_str():ConstPointer<Char>;
+	function size():Int;
+	function find(s:String):Int;
+	function substr(pos:Int, len:Int):StdString;
+	function toString():String;
+	function toStdString():StdString;
 }
 }

+ 6 - 6
std/cpp/StdStringRef.hx

@@ -28,10 +28,10 @@ using cpp.NativeString;
 @:include("hx/StdString.h")
 @:include("hx/StdString.h")
 @:structAccess
 @:structAccess
 extern class StdStringRef {
 extern class StdStringRef {
-	public function c_str():ConstPointer<Char>;
-	public function size():Int;
-	public function find(s:String):Int;
-	public function substr(pos:Int, len:Int):StdString;
-	public function toString():String;
-	public function toStdString():StdString;
+	function c_str():ConstPointer<Char>;
+	function size():Int;
+	function find(s:String):Int;
+	function substr(pos:Int, len:Int):StdString;
+	function toString():String;
+	function toStdString():StdString;
 }
 }

+ 5 - 5
std/cpp/Stdio.hx

@@ -27,17 +27,17 @@ import haxe.extern.Rest;
 @:include("stdio.h")
 @:include("stdio.h")
 extern class Stdio {
 extern class Stdio {
 	@:native("printf")
 	@:native("printf")
-	public static function printf(format:ConstCharStar, rest:Rest<VarArg>):Void;
+	static function printf(format:ConstCharStar, rest:Rest<VarArg>):Void;
 
 
 	@:native("fopen")
 	@:native("fopen")
-	public static function fopen(filename:ConstCharStar, mode:ConstCharStar):FILE;
+	static function fopen(filename:ConstCharStar, mode:ConstCharStar):FILE;
 
 
 	@:native("fwrite")
 	@:native("fwrite")
-	public static function fwrite<T>(data:RawPointer<T>, elemSize:SizeT, elemCount:SizeT, file:FILE):SizeT;
+	static function fwrite<T>(data:RawPointer<T>, elemSize:SizeT, elemCount:SizeT, file:FILE):SizeT;
 
 
 	@:native("fclose")
 	@:native("fclose")
-	public static function fclose(file:FILE):Int;
+	static function fclose(file:FILE):Int;
 
 
 	@:native("fprintf")
 	@:native("fprintf")
-	public static function fprintf(file:FILE, format:ConstCharStar, rest:Rest<VarArg>):Void;
+	static function fprintf(file:FILE, format:ConstCharStar, rest:Rest<VarArg>):Void;
 }
 }

+ 11 - 11
std/cpp/Stdlib.hx

@@ -25,32 +25,32 @@ package cpp;
 @:include("stdlib.h")
 @:include("stdlib.h")
 extern class Stdlib {
 extern class Stdlib {
 	@:native("malloc")
 	@:native("malloc")
-	public static function nativeMalloc(bytes:Int):cpp.RawPointer<cpp.Void>;
+	static function nativeMalloc(bytes:Int):cpp.RawPointer<cpp.Void>;
 	@:native("calloc")
 	@:native("calloc")
-	public static function nativeCalloc(bytes:Int):cpp.RawPointer<cpp.Void>;
+	static function nativeCalloc(bytes:Int):cpp.RawPointer<cpp.Void>;
 	@:native("realloc")
 	@:native("realloc")
-	public static function nativeRealloc(inPtr:cpp.RawPointer<cpp.Void>, bytes:Int):cpp.RawPointer<cpp.Void>;
+	static function nativeRealloc(inPtr:cpp.RawPointer<cpp.Void>, bytes:Int):cpp.RawPointer<cpp.Void>;
 	@:native("free")
 	@:native("free")
-	public static function nativeFree(ptr:cpp.RawPointer<cpp.Void>):Void;
+	static function nativeFree(ptr:cpp.RawPointer<cpp.Void>):Void;
 	@:native("memcpy")
 	@:native("memcpy")
-	public static function nativeMemcpy(dest:cpp.RawPointer<cpp.Void>, src:cpp.RawConstPointer<cpp.Void>, bytes:Int):Void;
+	static function nativeMemcpy(dest:cpp.RawPointer<cpp.Void>, src:cpp.RawConstPointer<cpp.Void>, bytes:Int):Void;
 
 
 	@:native("hx::ClassSizeOf") @:templatedCall
 	@:native("hx::ClassSizeOf") @:templatedCall
-	public static function sizeof<T>(t:T):Int;
+	static function sizeof<T>(t:T):Int;
 
 
-	inline public static function memcpy<DEST, SRC>(dest:cpp.Pointer<DEST>, src:cpp.ConstPointer<SRC>, bytes:Int):Void
+	inline static function memcpy<DEST, SRC>(dest:cpp.Pointer<DEST>, src:cpp.ConstPointer<SRC>, bytes:Int):Void
 		nativeMemcpy(cast dest.ptr, cast src.ptr, bytes);
 		nativeMemcpy(cast dest.ptr, cast src.ptr, bytes);
 
 
-	inline public static function malloc<T>(bytes:Int):cpp.Pointer<T>
+	inline static function malloc<T>(bytes:Int):cpp.Pointer<T>
 		return cast nativeMalloc(bytes);
 		return cast nativeMalloc(bytes);
 
 
-	inline public static function calloc<T>(bytes:Int):cpp.Pointer<T>
+	inline static function calloc<T>(bytes:Int):cpp.Pointer<T>
 		return cast nativeCalloc(bytes);
 		return cast nativeCalloc(bytes);
 
 
-	inline public static function realloc<T>(ioPtr:cpp.Pointer<T>, bytes:Int):Void
+	inline static function realloc<T>(ioPtr:cpp.Pointer<T>, bytes:Int):Void
 		ioPtr.setRaw(nativeRealloc(cast ioPtr.ptr, bytes));
 		ioPtr.setRaw(nativeRealloc(cast ioPtr.ptr, bytes));
 
 
-	inline public static function free<T>(ptr:cpp.Pointer<T>):Void {
+	inline static function free<T>(ptr:cpp.Pointer<T>):Void {
 		if (ptr != null) {
 		if (ptr != null) {
 			nativeFree(cast ptr.ptr);
 			nativeFree(cast ptr.ptr);
 			ptr.ptr = null;
 			ptr.ptr = null;

+ 22 - 22
std/cpp/VirtualArray.hx

@@ -24,29 +24,29 @@ package cpp;
 
 
 @:native("cpp::VirtualArray")
 @:native("cpp::VirtualArray")
 @:coreType extern class NativeVirtualArray implements ArrayAccess<Dynamic> {
 @:coreType extern class NativeVirtualArray implements ArrayAccess<Dynamic> {
-	public function new():Void;
-	public var length(get, null):Int;
+	function new():Void;
+	var length(get, null):Int;
 	// concat<T>( a:Array<T> ) : Array<T> ?
 	// concat<T>( a:Array<T> ) : Array<T> ?
-	public function concat(a:VirtualArray):VirtualArray;
-	public function join(sep:String):String;
-	public function pop():Dynamic;
-	public function push(x:Dynamic):Int;
-	public function reverse():Void;
-	public function shift():Dynamic;
-	public function slice(pos:Int, ?end:Int):VirtualArray;
-	public function sort(f:Dynamic->Dynamic->Int):Void;
-	public function splice(pos:Int, len:Int):VirtualArray;
-	public function toString():String;
-	public function unshift(x:Dynamic):Void;
-	public function insert(pos:Int, x:Dynamic):Void;
-	public function remove(x:Dynamic):Bool;
-	public function indexOf(x:Dynamic, ?fromIndex:Int):Int;
-	public function lastIndexOf(x:Dynamic, ?fromIndex:Int):Int;
-	public function copy():VirtualArray;
-	public function iterator():Iterator<Dynamic>;
-	public function map<S>(f:Dynamic->S):VirtualArray;
-	public function filter(f:Dynamic->Bool):VirtualArray;
-	public function resize(len:Int):Void;
+	function concat(a:VirtualArray):VirtualArray;
+	function join(sep:String):String;
+	function pop():Dynamic;
+	function push(x:Dynamic):Int;
+	function reverse():Void;
+	function shift():Dynamic;
+	function slice(pos:Int, ?end:Int):VirtualArray;
+	function sort(f:Dynamic->Dynamic->Int):Void;
+	function splice(pos:Int, len:Int):VirtualArray;
+	function toString():String;
+	function unshift(x:Dynamic):Void;
+	function insert(pos:Int, x:Dynamic):Void;
+	function remove(x:Dynamic):Bool;
+	function indexOf(x:Dynamic, ?fromIndex:Int):Int;
+	function lastIndexOf(x:Dynamic, ?fromIndex:Int):Int;
+	function copy():VirtualArray;
+	function iterator():Iterator<Dynamic>;
+	function map<S>(f:Dynamic->S):VirtualArray;
+	function filter(f:Dynamic->Bool):VirtualArray;
+	function resize(len:Int):Void;
 }
 }
 
 
 abstract VirtualArray(NativeVirtualArray) {
 abstract VirtualArray(NativeVirtualArray) {

+ 35 - 35
std/cpp/_std/haxe/Int64.hx

@@ -28,109 +28,109 @@ import haxe.Int64Helper;
 @:include("cpp/Int64.h")
 @:include("cpp/Int64.h")
 @:native("cpp::Int64Struct")
 @:native("cpp::Int64Struct")
 private extern class ___Int64 {
 private extern class ___Int64 {
-	public function get():cpp.Int64;
+	function get():cpp.Int64;
 
 
 	@:native("_hx_int64_make")
 	@:native("_hx_int64_make")
-	public static function make(high:Int32, low:Int32):__Int64;
+	static function make(high:Int32, low:Int32):__Int64;
 
 
 	@:native(" ::cpp::Int64Struct")
 	@:native(" ::cpp::Int64Struct")
-	public static function ofInt(value:Int):__Int64;
+	static function ofInt(value:Int):__Int64;
 
 
 	@:native(" ::cpp::Int64Struct::is")
 	@:native(" ::cpp::Int64Struct::is")
-	public static function isInt64(d:Dynamic):Bool;
+	static function isInt64(d:Dynamic):Bool;
 
 
 	@:native("_hx_int64_is_neg")
 	@:native("_hx_int64_is_neg")
-	public static function isNeg(a:__Int64):Bool;
+	static function isNeg(a:__Int64):Bool;
 
 
 	@:native("_hx_int64_is_zero")
 	@:native("_hx_int64_is_zero")
-	public static function isZero(a:__Int64):Bool;
+	static function isZero(a:__Int64):Bool;
 
 
 	@:native("_hx_int64_compare")
 	@:native("_hx_int64_compare")
-	public static function compare(a:__Int64, b:__Int64):Int;
+	static function compare(a:__Int64, b:__Int64):Int;
 
 
 	@:native("_hx_int64_ucompare")
 	@:native("_hx_int64_ucompare")
-	public static function ucompare(a:__Int64, b:__Int64):Int;
+	static function ucompare(a:__Int64, b:__Int64):Int;
 
 
 	@:native("_hx_int64_to_string")
 	@:native("_hx_int64_to_string")
-	public static function toString(a:__Int64):String;
+	static function toString(a:__Int64):String;
 
 
 	@:native("_hx_int64_neg")
 	@:native("_hx_int64_neg")
-	public static function neg(a:__Int64):__Int64;
+	static function neg(a:__Int64):__Int64;
 
 
 	@:native("_hx_int64_pre_increment")
 	@:native("_hx_int64_pre_increment")
-	public static function preIncrement(a:__Int64):__Int64;
+	static function preIncrement(a:__Int64):__Int64;
 
 
 	@:native("_hx_int64_post_increment")
 	@:native("_hx_int64_post_increment")
-	public static function postIncrement(a:__Int64):__Int64;
+	static function postIncrement(a:__Int64):__Int64;
 
 
 	@:native("_hx_int64_pre_decrement")
 	@:native("_hx_int64_pre_decrement")
-	public static function preDecrement(a:__Int64):__Int64;
+	static function preDecrement(a:__Int64):__Int64;
 
 
 	@:native("_hx_int64_post_decrement")
 	@:native("_hx_int64_post_decrement")
-	public static function postDecrement(a:__Int64):__Int64;
+	static function postDecrement(a:__Int64):__Int64;
 
 
 	@:native("_hx_int64_add")
 	@:native("_hx_int64_add")
-	public static function add(a:__Int64, b:__Int64):__Int64;
+	static function add(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_add")
 	@:native("_hx_int64_add")
-	public static function addInt(a:__Int64, b:Int):__Int64;
+	static function addInt(a:__Int64, b:Int):__Int64;
 
 
 	@:native("_hx_int64_sub")
 	@:native("_hx_int64_sub")
-	public static function sub(a:__Int64, b:__Int64):__Int64;
+	static function sub(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_sub")
 	@:native("_hx_int64_sub")
-	public static function subInt(a:__Int64, b:Int):__Int64;
+	static function subInt(a:__Int64, b:Int):__Int64;
 
 
 	@:native("_hx_int64_sub")
 	@:native("_hx_int64_sub")
-	public static function intSub(a:Int, b:__Int64):__Int64;
+	static function intSub(a:Int, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_mul")
 	@:native("_hx_int64_mul")
-	public static function mul(a:__Int64, b:__Int64):__Int64;
+	static function mul(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_div")
 	@:native("_hx_int64_div")
-	public static function div(a:__Int64, b:__Int64):__Int64;
+	static function div(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_mod")
 	@:native("_hx_int64_mod")
-	public static function mod(a:__Int64, b:__Int64):__Int64;
+	static function mod(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_eq")
 	@:native("_hx_int64_eq")
-	public static function eq(a:__Int64, b:__Int64):Bool;
+	static function eq(a:__Int64, b:__Int64):Bool;
 
 
 	@:native("_hx_int64_eq")
 	@:native("_hx_int64_eq")
-	public static function eqInt(a:__Int64, b:Int):Bool;
+	static function eqInt(a:__Int64, b:Int):Bool;
 
 
 	@:native("_hx_int64_neq")
 	@:native("_hx_int64_neq")
-	public static function neq(a:__Int64, b:__Int64):Bool;
+	static function neq(a:__Int64, b:__Int64):Bool;
 
 
 	@:native("_hx_int64_neq")
 	@:native("_hx_int64_neq")
-	public static function neqInt(a:__Int64, b:Int):Bool;
+	static function neqInt(a:__Int64, b:Int):Bool;
 
 
 	@:native("_hx_int64_complement")
 	@:native("_hx_int64_complement")
-	public static function complement(a:__Int64):__Int64;
+	static function complement(a:__Int64):__Int64;
 
 
 	@:native("_hx_int64_and")
 	@:native("_hx_int64_and")
-	public static function bitAnd(a:__Int64, b:__Int64):__Int64;
+	static function bitAnd(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_or")
 	@:native("_hx_int64_or")
-	public static function bitOr(a:__Int64, b:__Int64):__Int64;
+	static function bitOr(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_xor")
 	@:native("_hx_int64_xor")
-	public static function bitXor(a:__Int64, b:__Int64):__Int64;
+	static function bitXor(a:__Int64, b:__Int64):__Int64;
 
 
 	@:native("_hx_int64_shl")
 	@:native("_hx_int64_shl")
-	public static function shl(a:__Int64, b:Int):__Int64;
+	static function shl(a:__Int64, b:Int):__Int64;
 
 
 	@:native("_hx_int64_shr")
 	@:native("_hx_int64_shr")
-	public static function shr(a:__Int64, b:Int):__Int64;
+	static function shr(a:__Int64, b:Int):__Int64;
 
 
 	@:native("_hx_int64_ushr")
 	@:native("_hx_int64_ushr")
-	public static function ushr(a:__Int64, b:Int):__Int64;
+	static function ushr(a:__Int64, b:Int):__Int64;
 
 
 	@:native("_hx_int64_high")
 	@:native("_hx_int64_high")
-	public static function high(a:__Int64):Int32;
+	static function high(a:__Int64):Int32;
 
 
 	@:native("_hx_int64_low")
 	@:native("_hx_int64_low")
-	public static function low(a:__Int64):Int32;
+	static function low(a:__Int64):Int32;
 }
 }
 
 
 private typedef __Int64 = ___Int64;
 private typedef __Int64 = ___Int64;

+ 5 - 5
std/cpp/cppia/Module.hx

@@ -26,11 +26,11 @@ package cpp.cppia;
 @:build(cpp.cppia.HostClasses.include())
 @:build(cpp.cppia.HostClasses.include())
 extern class Module {
 extern class Module {
 	@:native("__scriptable_cppia_from_string")
 	@:native("__scriptable_cppia_from_string")
-	public static function fromString(sourceCode:String):Module;
+	static function fromString(sourceCode:String):Module;
 	@:native("__scriptable_cppia_from_data")
 	@:native("__scriptable_cppia_from_data")
-	public static function fromData(data:haxe.io.BytesData):Module;
+	static function fromData(data:haxe.io.BytesData):Module;
 
 
-	public function boot():Void;
-	public function run():Void;
-	public function resolveClass(inName:String):Class<Dynamic>;
+	function boot():Void;
+	function run():Void;
+	function resolveClass(inName:String):Class<Dynamic>;
 }
 }

+ 1 - 1
std/cpp/objc/NSError.hx

@@ -25,5 +25,5 @@ package cpp.objc;
 @:objc
 @:objc
 @:native("NSError")
 @:native("NSError")
 extern class NSError {
 extern class NSError {
-	public var localizedDescription(default, null):NSString;
+	var localizedDescription(default, null):NSString;
 }
 }

+ 1 - 1
std/cpp/objc/NSLog.hx

@@ -26,5 +26,5 @@ extern class NSLog {
 	@:native("NSLog")
 	@:native("NSLog")
 	@:overload(function(format:NSString, a0:NSObject):Void {})
 	@:overload(function(format:NSString, a0:NSObject):Void {})
 	@:overload(function(format:NSString, a0:NSObject, a1:NSObject):Void {})
 	@:overload(function(format:NSString, a0:NSObject, a1:NSObject):Void {})
-	public static function log(format:NSString):Void;
+	static function log(format:NSString):Void;
 }
 }

+ 4 - 4
std/cs/NativeArray.hx

@@ -36,17 +36,17 @@ extern class NativeArray<T> extends cs.system.Array implements ArrayAccess<T> {
 		var elements = NativeArray.make(1,2,3,4,5,6);
 		var elements = NativeArray.make(1,2,3,4,5,6);
 		```
 		```
 	**/
 	**/
-	public static function make<T>(elements:Rest<T>):NativeArray<T>;
+	static function make<T>(elements:Rest<T>):NativeArray<T>;
 
 
 	/**
 	/**
 		Allocates a new array with size `len`
 		Allocates a new array with size `len`
 	**/
 	**/
-	public function new(len:Int):Void;
+	function new(len:Int):Void;
 
 
 	/**
 	/**
 		Alias to array's `Length` property. Returns the size of the array
 		Alias to array's `Length` property. Returns the size of the array
 	**/
 	**/
-	public var length(get, never):Int;
+	var length(get, never):Int;
 
 
 	extern inline private function get_length():Int
 	extern inline private function get_length():Int
 		return this.Length;
 		return this.Length;
@@ -56,7 +56,7 @@ extern class NativeArray<T> extends cs.system.Array implements ArrayAccess<T> {
 	/**
 	/**
 		Returns an iterator so it's possible to use `for` with C#'s `NativeArray`
 		Returns an iterator so it's possible to use `for` with C#'s `NativeArray`
 	**/
 	**/
-	extern inline public function iterator():NativeArrayIterator<T>
+	extern inline function iterator():NativeArrayIterator<T>
 		return new NativeArrayIterator(this);
 		return new NativeArrayIterator(this);
 }
 }
 
 

+ 8 - 8
std/eval/Vector.hx

@@ -23,12 +23,12 @@
 package eval;
 package eval;
 
 
 extern class Vector<T> implements ArrayAccess<T> {
 extern class Vector<T> implements ArrayAccess<T> {
-	public function new(size:Int):Void;
-	public var length(default, null):Int;
-	public function blit<T>(srcPos:Int, dest:Vector<T>, destPos:Int, len:Int):Void;
-	public function toArray():Array<T>;
-	static public function fromArrayCopy<T>(array:Array<T>):Vector<T>;
-	public function copy<T>():Vector<T>;
-	public function join<T>(sep:String):String;
-	public function map<S>(f:T->S):Vector<S>;
+	function new(size:Int):Void;
+	var length(default, null):Int;
+	function blit<T>(srcPos:Int, dest:Vector<T>, destPos:Int, len:Int):Void;
+	function toArray():Array<T>;
+	static function fromArrayCopy<T>(array:Array<T>):Vector<T>;
+	function copy<T>():Vector<T>;
+	function join<T>(sep:String):String;
+	function map<S>(f:T->S):Vector<S>;
 }
 }

+ 11 - 11
std/eval/_std/EReg.hx

@@ -23,15 +23,15 @@
 // don't get optimized away.
 // don't get optimized away.
 @:coreApi
 @:coreApi
 extern class EReg {
 extern class EReg {
-	public function new(r:String, opt:String):Void;
-	public function match(s:String):Bool;
-	public function matched(n:Int):String;
-	public function matchedLeft():String;
-	public function matchedRight():String;
-	public function matchedPos():{pos:Int, len:Int};
-	public function matchSub(s:String, pos:Int, len:Int = -1):Bool;
-	public function split(s:String):Array<String>;
-	public function replace(s:String, by:String):String;
-	public function map(s:String, f:EReg->String):String;
-	public static function escape(s:String):String;
+	function new(r:String, opt:String):Void;
+	function match(s:String):Bool;
+	function matched(n:Int):String;
+	function matchedLeft():String;
+	function matchedRight():String;
+	function matchedPos():{pos:Int, len:Int};
+	function matchSub(s:String, pos:Int, len:Int = -1):Bool;
+	function split(s:String):Array<String>;
+	function replace(s:String, by:String):String;
+	function map(s:String, f:EReg->String):String;
+	static function escape(s:String):String;
 }
 }

+ 6 - 6
std/eval/_std/StringBuf.hx

@@ -21,11 +21,11 @@
  */
  */
 @:coreApi
 @:coreApi
 extern class StringBuf {
 extern class StringBuf {
-	public var length(get, never):Int;
-	public function new():Void;
+	var length(get, never):Int;
+	function new():Void;
 	private function get_length():Int;
 	private function get_length():Int;
-	public function add<T>(x:T):Void;
-	public function addChar(c:Int):Void;
-	public function addSub(s:String, pos:Int, ?len:Int):Void;
-	public function toString():String;
+	function add<T>(x:T):Void;
+	function addChar(c:Int):Void;
+	function addSub(s:String, pos:Int, ?len:Int):Void;
+	function toString():String;
 }
 }

+ 3 - 3
std/eval/_std/haxe/Resource.hx

@@ -24,7 +24,7 @@ package haxe;
 
 
 @:coreApi
 @:coreApi
 extern class Resource {
 extern class Resource {
-	public static function listNames():Array<String>;
-	public static function getString(name:String):String;
-	public static function getBytes(name:String):haxe.io.Bytes;
+	static function listNames():Array<String>;
+	static function getString(name:String):String;
+	static function getBytes(name:String):haxe.io.Bytes;
 }
 }

+ 11 - 11
std/eval/_std/haxe/Utf8.hx

@@ -25,15 +25,15 @@ package haxe;
 @:coreApi
 @:coreApi
 @:deprecated('haxe.Utf8 is deprecated. Use UnicodeString instead.')
 @:deprecated('haxe.Utf8 is deprecated. Use UnicodeString instead.')
 extern class Utf8 {
 extern class Utf8 {
-	public function new(?size:Int):Void;
-	public function addChar(c:Int):Void;
-	public function toString():String;
-	public static function iter(s:String, chars:Int->Void):Void;
-	public static function encode(s:String):String;
-	public static function decode(s:String):String;
-	public static function charCodeAt(s:String, index:Int):Int;
-	public static function validate(s:String):Bool;
-	public static function length(s:String):Int;
-	public static function compare(a:String, b:String):Int;
-	public static function sub(s:String, pos:Int, len:Int):String;
+	function new(?size:Int):Void;
+	function addChar(c:Int):Void;
+	function toString():String;
+	static function iter(s:String, chars:Int->Void):Void;
+	static function encode(s:String):String;
+	static function decode(s:String):String;
+	static function charCodeAt(s:String, index:Int):Int;
+	static function validate(s:String):Bool;
+	static function length(s:String):Int;
+	static function compare(a:String, b:String):Int;
+	static function sub(s:String, pos:Int, len:Int):String;
 }
 }

+ 26 - 26
std/eval/_std/haxe/io/Bytes.hx

@@ -25,33 +25,33 @@ package haxe.io;
 // @:coreApi
 // @:coreApi
 extern class Bytes {
 extern class Bytes {
 	function new(length:Int, b:BytesData):Void;
 	function new(length:Int, b:BytesData):Void;
-	public var length(default, null):Int;
-	public function get(pos:Int):Int;
-	public function set(pos:Int, v:Int):Void;
-	public function blit(pos:Int, src:Bytes, srcpos:Int, len:Int):Void;
-	public function fill(pos:Int, len:Int, value:Int):Void;
-	public function sub(pos:Int, len:Int):Bytes;
-	public function compare(other:Bytes):Int;
-	public function getDouble(pos:Int):Float;
-	public function getFloat(pos:Int):Float;
-	public function setDouble(pos:Int, v:Float):Void;
-	public function setFloat(pos:Int, v:Float):Void;
-	public function getUInt16(pos:Int):Int;
-	public function setUInt16(pos:Int, v:Int):Void;
-	public function getInt32(pos:Int):Int;
-	public function getInt64(pos:Int):haxe.Int64;
-	public function setInt32(pos:Int, v:Int):Void;
-	public function setInt64(pos:Int, v:haxe.Int64):Void;
-	public function getString(pos:Int, len:Int, ?encoding:Encoding):String;
-	public function toString():String;
-	public function toHex():String;
-	public function getData():BytesData;
-	public static function alloc(length:Int):Bytes;
+	var length(default, null):Int;
+	function get(pos:Int):Int;
+	function set(pos:Int, v:Int):Void;
+	function blit(pos:Int, src:Bytes, srcpos:Int, len:Int):Void;
+	function fill(pos:Int, len:Int, value:Int):Void;
+	function sub(pos:Int, len:Int):Bytes;
+	function compare(other:Bytes):Int;
+	function getDouble(pos:Int):Float;
+	function getFloat(pos:Int):Float;
+	function setDouble(pos:Int, v:Float):Void;
+	function setFloat(pos:Int, v:Float):Void;
+	function getUInt16(pos:Int):Int;
+	function setUInt16(pos:Int, v:Int):Void;
+	function getInt32(pos:Int):Int;
+	function getInt64(pos:Int):haxe.Int64;
+	function setInt32(pos:Int, v:Int):Void;
+	function setInt64(pos:Int, v:haxe.Int64):Void;
+	function getString(pos:Int, len:Int, ?encoding:Encoding):String;
+	function toString():String;
+	function toHex():String;
+	function getData():BytesData;
+	static function alloc(length:Int):Bytes;
 	@:pure
 	@:pure
-	public static function ofString(s:String, ?encoding:Encoding):Bytes;
-	public static function ofData(b:BytesData):Bytes;
-	public static function ofHex(s:String):Bytes;
-	public static function fastGet(b:BytesData, pos:Int):Int;
+	static function ofString(s:String, ?encoding:Encoding):Bytes;
+	static function ofData(b:BytesData):Bytes;
+	static function ofHex(s:String):Bytes;
+	static function fastGet(b:BytesData, pos:Int):Int;
 	static function __init__():Void {
 	static function __init__():Void {
 		haxe.io.Error;
 		haxe.io.Error;
 	}
 	}

+ 11 - 11
std/eval/_std/haxe/io/BytesBuffer.hx

@@ -24,16 +24,16 @@ package haxe.io;
 
 
 @:coreApi
 @:coreApi
 extern class BytesBuffer {
 extern class BytesBuffer {
-	public var length(get, never):Int;
-	public function new():Void;
+	var length(get, never):Int;
+	function new():Void;
 	private function get_length():Int;
 	private function get_length():Int;
-	public function addByte(byte:Int):Void;
-	public function add(src:Bytes):Void;
-	public function addString(v:String, ?encoding:Encoding):Void;
-	public function addInt32(v:Int):Void;
-	public function addInt64(v:haxe.Int64):Void;
-	public function addFloat(v:Float):Void;
-	public function addDouble(v:Float):Void;
-	public function addBytes(src:Bytes, pos:Int, len:Int):Void;
-	public function getBytes():Bytes;
+	function addByte(byte:Int):Void;
+	function add(src:Bytes):Void;
+	function addString(v:String, ?encoding:Encoding):Void;
+	function addInt32(v:Int):Void;
+	function addInt64(v:haxe.Int64):Void;
+	function addFloat(v:Float):Void;
+	function addDouble(v:Float):Void;
+	function addBytes(src:Bytes, pos:Int, len:Int):Void;
+	function getBytes():Bytes;
 }
 }

+ 5 - 5
std/eval/_std/haxe/zip/Compress.hx

@@ -23,9 +23,9 @@
 package haxe.zip;
 package haxe.zip;
 
 
 extern class Compress {
 extern class Compress {
-	public function new(level:Int):Void;
-	public function execute(src:haxe.io.Bytes, srcPos:Int, dst:haxe.io.Bytes, dstPos:Int):{done:Bool, read:Int, wriet:Int};
-	public function setFlushMode(f:FlushMode):Void;
-	public function close():Void;
-	public static function run(s:haxe.io.Bytes, level:Int):haxe.io.Bytes;
+	function new(level:Int):Void;
+	function execute(src:haxe.io.Bytes, srcPos:Int, dst:haxe.io.Bytes, dstPos:Int):{done:Bool, read:Int, wriet:Int};
+	function setFlushMode(f:FlushMode):Void;
+	function close():Void;
+	static function run(s:haxe.io.Bytes, level:Int):haxe.io.Bytes;
 }
 }

+ 5 - 5
std/eval/_std/haxe/zip/Uncompress.hx

@@ -23,9 +23,9 @@
 package haxe.zip;
 package haxe.zip;
 
 
 extern class Uncompress {
 extern class Uncompress {
-	public function new(?windowBits:Int):Void;
-	public function execute(src:haxe.io.Bytes, srcPos:Int, dst:haxe.io.Bytes, dstPos:Int):{done:Bool, read:Int, write:Int};
-	public function setFlushMode(f:FlushMode):Void;
-	public function close():Void;
-	public static function run(src:haxe.io.Bytes, ?bufsize:Int):haxe.io.Bytes;
+	function new(?windowBits:Int):Void;
+	function execute(src:haxe.io.Bytes, srcPos:Int, dst:haxe.io.Bytes, dstPos:Int):{done:Bool, read:Int, write:Int};
+	function setFlushMode(f:FlushMode):Void;
+	function close():Void;
+	static function run(src:haxe.io.Bytes, ?bufsize:Int):haxe.io.Bytes;
 }
 }

+ 1 - 1
std/eval/vm/NativeSocket.hx

@@ -41,6 +41,6 @@ extern class NativeSocket {
 	function setTimeout(timeout:Float):Void;
 	function setTimeout(timeout:Float):Void;
 	function shutdown(read:Bool, write:Bool):Void;
 	function shutdown(read:Bool, write:Bool):Void;
 
 
-	public static function select(read:Array<Socket>, write:Array<Socket>, others:Array<Socket>,
+	static function select(read:Array<Socket>, write:Array<Socket>, others:Array<Socket>,
 		?timeout:Float):{read:Array<Socket>, write:Array<Socket>, others:Array<Socket>};
 		?timeout:Float):{read:Array<Socket>, write:Array<Socket>, others:Array<Socket>};
 }
 }

+ 14 - 14
std/flash/Memory.hx

@@ -23,59 +23,59 @@
 package flash;
 package flash;
 
 
 extern class Memory {
 extern class Memory {
-	public static inline function select(b:flash.utils.ByteArray):Void {
+	static inline function select(b:flash.utils.ByteArray):Void {
 		flash.system.ApplicationDomain.currentDomain.domainMemory = b;
 		flash.system.ApplicationDomain.currentDomain.domainMemory = b;
 	}
 	}
 
 
-	public static inline function setByte(addr:Int, v:Int):Void {
+	static inline function setByte(addr:Int, v:Int):Void {
 		untyped __vmem_set__(0, addr, v);
 		untyped __vmem_set__(0, addr, v);
 	}
 	}
 
 
-	public static inline function setI16(addr:Int, v:Int):Void {
+	static inline function setI16(addr:Int, v:Int):Void {
 		untyped __vmem_set__(1, addr, v);
 		untyped __vmem_set__(1, addr, v);
 	}
 	}
 
 
-	public static inline function setI32(addr:Int, v:Int):Void {
+	static inline function setI32(addr:Int, v:Int):Void {
 		untyped __vmem_set__(2, addr, v);
 		untyped __vmem_set__(2, addr, v);
 	}
 	}
 
 
-	public static inline function setFloat(addr:Int, v:Float):Void {
+	static inline function setFloat(addr:Int, v:Float):Void {
 		untyped __vmem_set__(3, addr, v);
 		untyped __vmem_set__(3, addr, v);
 	}
 	}
 
 
-	public static inline function setDouble(addr:Int, v:Float):Void {
+	static inline function setDouble(addr:Int, v:Float):Void {
 		untyped __vmem_set__(4, addr, v);
 		untyped __vmem_set__(4, addr, v);
 	}
 	}
 
 
-	public static inline function getByte(addr:Int):Int {
+	static inline function getByte(addr:Int):Int {
 		return untyped __vmem_get__(0, addr);
 		return untyped __vmem_get__(0, addr);
 	}
 	}
 
 
-	public static inline function getUI16(addr:Int):Int {
+	static inline function getUI16(addr:Int):Int {
 		return untyped __vmem_get__(1, addr);
 		return untyped __vmem_get__(1, addr);
 	}
 	}
 
 
-	public static inline function getI32(addr:Int):Int {
+	static inline function getI32(addr:Int):Int {
 		return untyped __vmem_get__(2, addr);
 		return untyped __vmem_get__(2, addr);
 	}
 	}
 
 
-	public static inline function getFloat(addr:Int):Float {
+	static inline function getFloat(addr:Int):Float {
 		return untyped __vmem_get__(3, addr);
 		return untyped __vmem_get__(3, addr);
 	}
 	}
 
 
-	public static inline function getDouble(addr:Int):Float {
+	static inline function getDouble(addr:Int):Float {
 		return untyped __vmem_get__(4, addr);
 		return untyped __vmem_get__(4, addr);
 	}
 	}
 
 
-	public static inline function signExtend1(v:Int):Int {
+	static inline function signExtend1(v:Int):Int {
 		return untyped __vmem_sign__(0, v);
 		return untyped __vmem_sign__(0, v);
 	}
 	}
 
 
-	public static inline function signExtend8(v:Int):Int {
+	static inline function signExtend8(v:Int):Int {
 		return untyped __vmem_sign__(1, v);
 		return untyped __vmem_sign__(1, v);
 	}
 	}
 
 
-	public static inline function signExtend16(v:Int):Int {
+	static inline function signExtend16(v:Int):Int {
 		return untyped __vmem_sign__(2, v);
 		return untyped __vmem_sign__(2, v);
 	}
 	}
 }
 }

+ 3 - 3
std/flash/Vector.hx

@@ -53,11 +53,11 @@ package flash;
 	#end
 	#end
 	@:require(flash19) function removeAt(index:Int):T;
 	@:require(flash19) function removeAt(index:Int):T;
 
 
-	public inline static function ofArray<T>(v:Array<T>):Vector<T> {
+	inline static function ofArray<T>(v:Array<T>):Vector<T> {
 		return untyped __vector__(v);
 		return untyped __vector__(v);
 	}
 	}
 
 
-	public inline static function convert<T, U>(v:Vector<T>):Vector<U> {
+	inline static function convert<T, U>(v:Vector<T>):Vector<U> {
 		return untyped __vector__(v);
 		return untyped __vector__(v);
 	}
 	}
 
 
@@ -88,7 +88,7 @@ package flash;
 		new Signal((Vector.typeReference() : Class<Vector<Int>>));
 		new Signal((Vector.typeReference() : Class<Vector<Int>>));
 		```
 		```
 	**/
 	**/
-	public inline static function typeReference<T>():Class<Vector<T>> {
+	inline static function typeReference<T>():Class<Vector<T>> {
 		return untyped __vector__();
 		return untyped __vector__();
 	}
 	}
 }
 }

+ 9 - 9
std/haxe/EnumTools.hx

@@ -49,7 +49,7 @@ extern class EnumTools {
 
 
 		The enum name does not include any type parameters.
 		The enum name does not include any type parameters.
 	**/
 	**/
-	static public inline function getName<T>(e:Enum<T>):String {
+	static inline function getName<T>(e:Enum<T>):String {
 		return Type.getEnumName(e);
 		return Type.getEnumName(e);
 	}
 	}
 
 
@@ -62,7 +62,7 @@ extern class EnumTools {
 		expected number of constructor arguments, or if any argument has an
 		expected number of constructor arguments, or if any argument has an
 		invalid type, the result is unspecified.
 		invalid type, the result is unspecified.
 	**/
 	**/
-	static public inline function createByName<T>(e:Enum<T>, constr:String, ?params:Array<Dynamic>):T {
+	static inline function createByName<T>(e:Enum<T>, constr:String, ?params:Array<Dynamic>):T {
 		return Type.createEnum(e, constr, params);
 		return Type.createEnum(e, constr, params);
 	}
 	}
 
 
@@ -78,7 +78,7 @@ extern class EnumTools {
 		does not match the expected number of constructor arguments, or if any
 		does not match the expected number of constructor arguments, or if any
 		argument has an invalid type, the result is unspecified.
 		argument has an invalid type, the result is unspecified.
 	**/
 	**/
-	static public inline function createByIndex<T>(e:Enum<T>, index:Int, ?params:Array<Dynamic>):T {
+	static inline function createByIndex<T>(e:Enum<T>, index:Int, ?params:Array<Dynamic>):T {
 		return Type.createEnumIndex(e, index, params);
 		return Type.createEnumIndex(e, index, params);
 	}
 	}
 
 
@@ -95,7 +95,7 @@ extern class EnumTools {
 
 
 		If `e` is `null`, the result is unspecified.
 		If `e` is `null`, the result is unspecified.
 	**/
 	**/
-	static public inline function createAll<T>(e:Enum<T>):Array<T> {
+	static inline function createAll<T>(e:Enum<T>):Array<T> {
 		return Type.allEnums(e);
 		return Type.allEnums(e);
 	}
 	}
 
 
@@ -107,7 +107,7 @@ extern class EnumTools {
 
 
 		If `c` is `null`, the result is unspecified.
 		If `c` is `null`, the result is unspecified.
 	**/
 	**/
-	static public inline function getConstructors<T>(e:Enum<T>):Array<String> {
+	static inline function getConstructors<T>(e:Enum<T>):Array<String> {
 		return Type.getEnumConstructs(e);
 		return Type.getEnumConstructs(e);
 	}
 	}
 }
 }
@@ -130,7 +130,7 @@ extern class EnumValueTools {
 
 
 		If `a` or `b` are `null`, the result is unspecified.
 		If `a` or `b` are `null`, the result is unspecified.
 	**/
 	**/
-	static public inline function equals<T:EnumValue>(a:T, b:T):Bool {
+	static inline function equals<T:EnumValue>(a:T, b:T):Bool {
 		return Type.enumEq(a, b);
 		return Type.enumEq(a, b);
 	}
 	}
 
 
@@ -141,7 +141,7 @@ extern class EnumValueTools {
 
 
 		If `e` is `null`, the result is unspecified.
 		If `e` is `null`, the result is unspecified.
 	**/
 	**/
-	static public inline function getName(e:EnumValue):String {
+	static inline function getName(e:EnumValue):String {
 		return Type.enumConstructor(e);
 		return Type.enumConstructor(e);
 	}
 	}
 
 
@@ -155,7 +155,7 @@ extern class EnumValueTools {
 
 
 		If `e` is `null`, the result is unspecified.
 		If `e` is `null`, the result is unspecified.
 	**/
 	**/
-	static public inline function getParameters(e:EnumValue):Array<Dynamic> {
+	static inline function getParameters(e:EnumValue):Array<Dynamic> {
 		return Type.enumParameters(e);
 		return Type.enumParameters(e);
 	}
 	}
 
 
@@ -167,7 +167,7 @@ extern class EnumValueTools {
 
 
 		If `e` is `null`, the result is unspecified.
 		If `e` is `null`, the result is unspecified.
 	**/
 	**/
-	static public inline function getIndex(e:EnumValue):Int {
+	static inline function getIndex(e:EnumValue):Int {
 		return Type.enumIndex(e);
 		return Type.enumIndex(e);
 	}
 	}
 }
 }

+ 12 - 12
std/haxe/ds/IntMap.hx

@@ -33,27 +33,27 @@ extern class IntMap<T> implements haxe.Constraints.IMap<Int, T> {
 	/**
 	/**
 		Creates a new IntMap.
 		Creates a new IntMap.
 	**/
 	**/
-	public function new():Void;
+	function new():Void;
 
 
 	/**
 	/**
 		See `Map.set`
 		See `Map.set`
 	**/
 	**/
-	public function set(key:Int, value:T):Void;
+	function set(key:Int, value:T):Void;
 
 
 	/**
 	/**
 		See `Map.get`
 		See `Map.get`
 	**/
 	**/
-	public function get(key:Int):Null<T>;
+	function get(key:Int):Null<T>;
 
 
 	/**
 	/**
 		See `Map.exists`
 		See `Map.exists`
 	**/
 	**/
-	public function exists(key:Int):Bool;
+	function exists(key:Int):Bool;
 
 
 	/**
 	/**
 		See `Map.remove`
 		See `Map.remove`
 	**/
 	**/
-	public function remove(key:Int):Bool;
+	function remove(key:Int):Bool;
 
 
 	/**
 	/**
 		See `Map.keys`
 		See `Map.keys`
@@ -61,7 +61,7 @@ extern class IntMap<T> implements haxe.Constraints.IMap<Int, T> {
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		iterating, as it may cause a resize, which will break iteration.
 		iterating, as it may cause a resize, which will break iteration.
 	**/
 	**/
-	public function keys():Iterator<Int>;
+	function keys():Iterator<Int>;
 
 
 	/**
 	/**
 		See `Map.iterator`
 		See `Map.iterator`
@@ -69,31 +69,31 @@ extern class IntMap<T> implements haxe.Constraints.IMap<Int, T> {
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		iterating, as it may cause a resize, which will break iteration.
 		iterating, as it may cause a resize, which will break iteration.
 	**/
 	**/
-	public function iterator():Iterator<T>;
+	function iterator():Iterator<T>;
 
 
 	/**
 	/**
 		See `Map.keyValueIterator`
 		See `Map.keyValueIterator`
 	**/
 	**/
 	#if eval
 	#if eval
-	@:runtime public inline function keyValueIterator():KeyValueIterator<Int, T> {
+	@:runtime inline function keyValueIterator():KeyValueIterator<Int, T> {
 		return new haxe.iterators.MapKeyValueIterator(this);
 		return new haxe.iterators.MapKeyValueIterator(this);
 	}
 	}
 	#else
 	#else
-	public function keyValueIterator():KeyValueIterator<Int, T>;
+	function keyValueIterator():KeyValueIterator<Int, T>;
 	#end
 	#end
 
 
 	/**
 	/**
 		See `Map.copy`
 		See `Map.copy`
 	**/
 	**/
-	public function copy():IntMap<T>;
+	function copy():IntMap<T>;
 
 
 	/**
 	/**
 		See `Map.toString`
 		See `Map.toString`
 	**/
 	**/
-	public function toString():String;
+	function toString():String;
 
 
 	/**
 	/**
 		See `Map.clear`
 		See `Map.clear`
 	**/
 	**/
-	public function clear():Void;
+	function clear():Void;
 }
 }

+ 12 - 12
std/haxe/ds/ObjectMap.hx

@@ -36,27 +36,27 @@ extern class ObjectMap<K:{}, V> implements haxe.Constraints.IMap<K, V> {
 	/**
 	/**
 		Creates a new ObjectMap.
 		Creates a new ObjectMap.
 	**/
 	**/
-	public function new():Void;
+	function new():Void;
 
 
 	/**
 	/**
 		See `Map.set`
 		See `Map.set`
 	**/
 	**/
-	public function set(key:K, value:V):Void;
+	function set(key:K, value:V):Void;
 
 
 	/**
 	/**
 		See `Map.get`
 		See `Map.get`
 	**/
 	**/
-	public function get(key:K):Null<V>;
+	function get(key:K):Null<V>;
 
 
 	/**
 	/**
 		See `Map.exists`
 		See `Map.exists`
 	**/
 	**/
-	public function exists(key:K):Bool;
+	function exists(key:K):Bool;
 
 
 	/**
 	/**
 		See `Map.remove`
 		See `Map.remove`
 	**/
 	**/
-	public function remove(key:K):Bool;
+	function remove(key:K):Bool;
 
 
 	/**
 	/**
 		See `Map.keys`
 		See `Map.keys`
@@ -64,7 +64,7 @@ extern class ObjectMap<K:{}, V> implements haxe.Constraints.IMap<K, V> {
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		iterating, as it may cause a resize, which will break iteration.
 		iterating, as it may cause a resize, which will break iteration.
 	**/
 	**/
-	public function keys():Iterator<K>;
+	function keys():Iterator<K>;
 
 
 	/**
 	/**
 		See `Map.iterator`
 		See `Map.iterator`
@@ -72,31 +72,31 @@ extern class ObjectMap<K:{}, V> implements haxe.Constraints.IMap<K, V> {
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		iterating, as it may cause a resize, which will break iteration.
 		iterating, as it may cause a resize, which will break iteration.
 	**/
 	**/
-	public function iterator():Iterator<V>;
+	function iterator():Iterator<V>;
 
 
 	/**
 	/**
 		See `Map.keyValueIterator`
 		See `Map.keyValueIterator`
 	**/
 	**/
 	#if eval
 	#if eval
-	@:runtime public inline function keyValueIterator():KeyValueIterator<K, V> {
+	@:runtime inline function keyValueIterator():KeyValueIterator<K, V> {
 		return new haxe.iterators.MapKeyValueIterator(this);
 		return new haxe.iterators.MapKeyValueIterator(this);
 	}
 	}
 	#else
 	#else
-	public function keyValueIterator():KeyValueIterator<K, V>;
+	function keyValueIterator():KeyValueIterator<K, V>;
 	#end
 	#end
 
 
 	/**
 	/**
 		See `Map.copy`
 		See `Map.copy`
 	**/
 	**/
-	public function copy():ObjectMap<K, V>;
+	function copy():ObjectMap<K, V>;
 
 
 	/**
 	/**
 		See `Map.toString`
 		See `Map.toString`
 	**/
 	**/
-	public function toString():String;
+	function toString():String;
 
 
 	/**
 	/**
 		See `Map.clear`
 		See `Map.clear`
 	**/
 	**/
-	public function clear():Void;
+	function clear():Void;
 }
 }

+ 12 - 12
std/haxe/ds/StringMap.hx

@@ -33,27 +33,27 @@ extern class StringMap<T> implements haxe.Constraints.IMap<String, T> {
 	/**
 	/**
 		Creates a new StringMap.
 		Creates a new StringMap.
 	**/
 	**/
-	public function new():Void;
+	function new():Void;
 
 
 	/**
 	/**
 		See `Map.set`
 		See `Map.set`
 	**/
 	**/
-	public function set(key:String, value:T):Void;
+	function set(key:String, value:T):Void;
 
 
 	/**
 	/**
 		See `Map.get`
 		See `Map.get`
 	**/
 	**/
-	public function get(key:String):Null<T>;
+	function get(key:String):Null<T>;
 
 
 	/**
 	/**
 		See `Map.exists`
 		See `Map.exists`
 	**/
 	**/
-	public function exists(key:String):Bool;
+	function exists(key:String):Bool;
 
 
 	/**
 	/**
 		See `Map.remove`
 		See `Map.remove`
 	**/
 	**/
-	public function remove(key:String):Bool;
+	function remove(key:String):Bool;
 
 
 	/**
 	/**
 		See `Map.keys`
 		See `Map.keys`
@@ -61,7 +61,7 @@ extern class StringMap<T> implements haxe.Constraints.IMap<String, T> {
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		iterating, as it may cause a resize, which will break iteration.
 		iterating, as it may cause a resize, which will break iteration.
 	**/
 	**/
-	public function keys():Iterator<String>;
+	function keys():Iterator<String>;
 
 
 	/**
 	/**
 		See `Map.iterator`
 		See `Map.iterator`
@@ -69,31 +69,31 @@ extern class StringMap<T> implements haxe.Constraints.IMap<String, T> {
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		(cs, java) Implementation detail: Do not `set()` any new value while
 		iterating, as it may cause a resize, which will break iteration.
 		iterating, as it may cause a resize, which will break iteration.
 	**/
 	**/
-	public function iterator():Iterator<T>;
+	function iterator():Iterator<T>;
 
 
 	/**
 	/**
 		See `Map.keyValueIterator`
 		See `Map.keyValueIterator`
 	**/
 	**/
 	#if eval
 	#if eval
-	@:runtime public inline function keyValueIterator():KeyValueIterator<String, T> {
+	@:runtime inline function keyValueIterator():KeyValueIterator<String, T> {
 		return new haxe.iterators.MapKeyValueIterator(this);
 		return new haxe.iterators.MapKeyValueIterator(this);
 	}
 	}
 	#else
 	#else
-	public function keyValueIterator():KeyValueIterator<String, T>;
+	function keyValueIterator():KeyValueIterator<String, T>;
 	#end
 	#end
 
 
 	/**
 	/**
 		See `Map.copy`
 		See `Map.copy`
 	**/
 	**/
-	public function copy():StringMap<T>;
+	function copy():StringMap<T>;
 
 
 	/**
 	/**
 		See `Map.toString`
 		See `Map.toString`
 	**/
 	**/
-	public function toString():String;
+	function toString():String;
 
 
 	/**
 	/**
 		See `Map.clear`
 		See `Map.clear`
 	**/
 	**/
-	public function clear():Void;
+	function clear():Void;
 }
 }

+ 4 - 4
std/hl/_std/sys/thread/Deque.hx

@@ -24,10 +24,10 @@ package sys.thread;
 
 
 #if doc_gen
 #if doc_gen
 @:coreApi extern class Deque<T> {
 @:coreApi extern class Deque<T> {
-	public function new():Void;
-	public function add(i:T):Void;
-	public function push(i:T):Void;
-	public function pop(block:Bool):Null<T>;
+	function new():Void;
+	function add(i:T):Void;
+	function push(i:T):Void;
+	function pop(block:Bool):Null<T>;
 }
 }
 #else
 #else
 
 

+ 4 - 4
std/hl/_std/sys/thread/Mutex.hx

@@ -25,10 +25,10 @@ package sys.thread;
 #if doc_gen
 #if doc_gen
 @:coreApi
 @:coreApi
 extern class Mutex {
 extern class Mutex {
-	public function new():Void;
-	public function acquire():Void;
-	public function tryAcquire():Bool;
-	public function release():Void;
+	function new():Void;
+	function acquire():Void;
+	function tryAcquire():Bool;
+	function release():Void;
 }
 }
 #else
 #else
 
 

+ 2 - 2
std/hl/_std/sys/thread/Tls.hx

@@ -25,8 +25,8 @@ package sys.thread;
 #if doc_gen
 #if doc_gen
 @:coreApi
 @:coreApi
 extern class Tls<T> {
 extern class Tls<T> {
-	public var value(get, set):T;
-	public function new():Void;
+	var value(get, set):T;
+	function new():Void;
 }
 }
 #else
 #else
 
 

+ 3 - 3
std/java/NativeArray.hx

@@ -36,15 +36,15 @@ import haxe.extern.Rest;
 		var elements = NativeArray.make(1,2,3,4,5,6);
 		var elements = NativeArray.make(1,2,3,4,5,6);
 		```
 		```
 	**/
 	**/
-	public static function make<T>(elements:Rest<T>):NativeArray<T>;
+	static function make<T>(elements:Rest<T>):NativeArray<T>;
 
 
 	/**
 	/**
 		The length of the array
 		The length of the array
 	**/
 	**/
-	public var length(default, null):Int;
+	var length(default, null):Int;
 
 
 	/**
 	/**
 		Allocates a new array with size `len`
 		Allocates a new array with size `len`
 	**/
 	**/
-	public function new(len:Int):Void;
+	function new(len:Int):Void;
 }
 }

+ 5 - 5
std/jvm/NativeTools.hx

@@ -23,27 +23,27 @@
 package jvm;
 package jvm;
 
 
 extern class ObjectTools {
 extern class ObjectTools {
-	static public inline function object<T>(t:T):java.lang.Object {
+	static inline function object<T>(t:T):java.lang.Object {
 		return cast t;
 		return cast t;
 	}
 	}
 }
 }
 
 
 extern class NativeClassTools {
 extern class NativeClassTools {
-	static public inline function native<T>(c:Class<T>):java.lang.Class<T> {
+	static inline function native<T>(c:Class<T>):java.lang.Class<T> {
 		return cast c;
 		return cast c;
 	}
 	}
 
 
-	static public inline function haxe<T>(c:java.lang.Class<T>):Class<T> {
+	static inline function haxe<T>(c:java.lang.Class<T>):Class<T> {
 		return cast c;
 		return cast c;
 	}
 	}
 
 
-	static public inline function haxeEnum<T>(c:java.lang.Class<T>):std.Enum<T> {
+	static inline function haxeEnum<T>(c:java.lang.Class<T>):std.Enum<T> {
 		return cast c;
 		return cast c;
 	}
 	}
 }
 }
 
 
 extern class NativeEnumTools {
 extern class NativeEnumTools {
-	static public inline function native<T>(e:std.Enum<Dynamic>):java.lang.Class<T> {
+	static inline function native<T>(e:std.Enum<Dynamic>):java.lang.Class<T> {
 		return cast e;
 		return cast e;
 	}
 	}
 }
 }

+ 9 - 9
std/lua/Bit.hx

@@ -27,15 +27,15 @@ package lua;
 **/
 **/
 @:native("_hx_bit")
 @:native("_hx_bit")
 extern class Bit {
 extern class Bit {
-	public static function bnot(x:Float):Int;
-	public static function band(a:Float, b:Float):Int;
-	public static function bor(a:Float, b:Float):Int;
-	public static function bxor(a:Float, b:Float):Int;
-	public static function lshift(x:Float, places:Int):Int;
-	public static function rshift(x:Float, places:Int):Int;
-	public static function arshift(x:Float, places:Int):Int;
-	public static function mod(numerator:Float, denominator:Float):Int;
-	public static function __init__():Void {
+	static function bnot(x:Float):Int;
+	static function band(a:Float, b:Float):Int;
+	static function bor(a:Float, b:Float):Int;
+	static function bxor(a:Float, b:Float):Int;
+	static function lshift(x:Float, places:Int):Int;
+	static function rshift(x:Float, places:Int):Int;
+	static function arshift(x:Float, places:Int):Int;
+	static function mod(numerator:Float, denominator:Float):Int;
+	static function __init__():Void {
 		untyped _hx_bit = __define_feature__("use._bitop", _hx_bit);
 		untyped _hx_bit = __define_feature__("use._bitop", _hx_bit);
 	}
 	}
 }
 }

+ 6 - 6
std/lua/Coroutine.hx

@@ -33,17 +33,17 @@ extern class Coroutine<T:Function> extends Thread {
 	/**
 	/**
 		Creates a new coroutine, with body `f`. `f` must be a Lua function.
 		Creates a new coroutine, with body `f`. `f` must be a Lua function.
 	**/
 	**/
-	public static function create<T:Function>(f:T):Coroutine<T>;
+	static function create<T:Function>(f:T):Coroutine<T>;
 
 
 	/**
 	/**
 		Returns the running coroutine plus a boolean, true when the running coroutine is the main one.
 		Returns the running coroutine plus a boolean, true when the running coroutine is the main one.
 	**/
 	**/
-	public static function running():CoroutineRunning;
+	static function running():CoroutineRunning;
 
 
 	/**
 	/**
 		Returns the status of coroutine.
 		Returns the status of coroutine.
 	**/
 	**/
-	public static function status(c:Coroutine<Dynamic>):CoroutineState;
+	static function status(c:Coroutine<Dynamic>):CoroutineState;
 
 
 	/**
 	/**
 		Starts or continues the execution of coroutine.
 		Starts or continues the execution of coroutine.
@@ -57,14 +57,14 @@ extern class Coroutine<T:Function> extends Thread {
 		by the body function (if the coroutine terminates). If there is any error,
 		by the body function (if the coroutine terminates). If there is any error,
 		`resume` returns `false` plus the error message.
 		`resume` returns `false` plus the error message.
 	**/
 	**/
-	public static function resume<A, B>(c:Coroutine<Dynamic>, args:Rest<A>):CoroutineResume<B>;
+	static function resume<A, B>(c:Coroutine<Dynamic>, args:Rest<A>):CoroutineResume<B>;
 
 
 	/**
 	/**
 		Suspends the execution of the calling coroutine.
 		Suspends the execution of the calling coroutine.
 		The coroutine cannot be running a C function, a metamethod, or an iterator.
 		The coroutine cannot be running a C function, a metamethod, or an iterator.
 		Any arguments to `yield` are passed as extra results to `resume`.
 		Any arguments to `yield` are passed as extra results to `resume`.
 	**/
 	**/
-	public static function yield<T>(args:Rest<Dynamic>):T;
+	static function yield<T>(args:Rest<Dynamic>):T;
 
 
 	/**
 	/**
 		Creates a new coroutine, with body `f`.
 		Creates a new coroutine, with body `f`.
@@ -73,7 +73,7 @@ extern class Coroutine<T:Function> extends Thread {
 		Returns the same values returned by `resume`, except the first boolean.
 		Returns the same values returned by `resume`, except the first boolean.
 		In case of error, propagates the error.
 		In case of error, propagates the error.
 	**/
 	**/
-	public static function wrap<T:Function>(f:T):T;
+	static function wrap<T:Function>(f:T):T;
 }
 }
 
 
 /**
 /**

+ 16 - 16
std/lua/Debug.hx

@@ -34,25 +34,25 @@ extern class Debug {
 		This function returns the name and the value of the local variable with
 		This function returns the name and the value of the local variable with
 		index local of the function at level level of the stack.
 		index local of the function at level level of the stack.
 	**/
 	**/
-	public static function getlocal(stackLevel:Int, idx:Int):Dynamic;
+	static function getlocal(stackLevel:Int, idx:Int):Dynamic;
 
 
 	/**
 	/**
 		This function assigns the value value to the local variable with index
 		This function assigns the value value to the local variable with index
 		local of the function at level level of the stack.
 		local of the function at level level of the stack.
 		Call `getinfo` to check whether the level is valid.
 		Call `getinfo` to check whether the level is valid.
 	**/
 	**/
-	public static function setlocal(stackLevel:Int, varName:String, value:Dynamic):Void;
+	static function setlocal(stackLevel:Int, varName:String, value:Dynamic):Void;
 
 
 	/**
 	/**
 		Returns a table with information about a function.
 		Returns a table with information about a function.
 	**/
 	**/
-	public static function getinfo(stackLevel:Int):DebugInfo;
+	static function getinfo(stackLevel:Int):DebugInfo;
 
 
 	/**
 	/**
 		Sets the given function as a hook.
 		Sets the given function as a hook.
 		When called without arguments, `Debug.sethook` turns off the hook.
 		When called without arguments, `Debug.sethook` turns off the hook.
 	**/
 	**/
-	public static function sethook(?fun:Function, ?monitor:String):Void;
+	static function sethook(?fun:Function, ?monitor:String):Void;
 
 
 	/**
 	/**
 		Enters an interactive mode with the user, running each string that the user enters.
 		Enters an interactive mode with the user, running each string that the user enters.
@@ -64,55 +64,55 @@ extern class Debug {
 		Note that commands for `Debug.debug` are not lexically nested within any
 		Note that commands for `Debug.debug` are not lexically nested within any
 		function, and so have no direct access to local variables.
 		function, and so have no direct access to local variables.
 	**/
 	**/
-	public static function debug():Void;
+	static function debug():Void;
 
 
 	/**
 	/**
 		Returns the current hook settings of the thread, as three values:
 		Returns the current hook settings of the thread, as three values:
 		the current hook function, the current hook mask, and the current hook count
 		the current hook function, the current hook mask, and the current hook count
 		(as set by the `Debug.sethook` function).
 		(as set by the `Debug.sethook` function).
 	**/
 	**/
-	public static function gethook(thread:Thread):Function;
+	static function gethook(thread:Thread):Function;
 
 
 	/**
 	/**
 		Returns the registry table.
 		Returns the registry table.
 	**/
 	**/
-	public static function getregistry():AnyTable;
+	static function getregistry():AnyTable;
 
 
 	/**
 	/**
 		Returns the metatable of the given `value` or `null` if it does not have a metatable.
 		Returns the metatable of the given `value` or `null` if it does not have a metatable.
 	**/
 	**/
-	public static function getmetatable(value:AnyTable):AnyTable;
+	static function getmetatable(value:AnyTable):AnyTable;
 
 
 	/**
 	/**
 		Sets the metatable for the given `value` to the given `table` (can be `null`).
 		Sets the metatable for the given `value` to the given `table` (can be `null`).
 	**/
 	**/
-	public static function setmetatable(value:AnyTable, table:AnyTable):Void;
+	static function setmetatable(value:AnyTable, table:AnyTable):Void;
 
 
 	/**
 	/**
 		This function returns the name and the value of the upvalue with index `up`
 		This function returns the name and the value of the upvalue with index `up`
 		of the function `f`. The function returns `null` if there is no upvalue with
 		of the function `f`. The function returns `null` if there is no upvalue with
 		the given index.
 		the given index.
 	**/
 	**/
-	public static function getupvalue(f:Function, up:Int):Dynamic;
+	static function getupvalue(f:Function, up:Int):Dynamic;
 
 
 	/**
 	/**
 		This function assigns the value value to the upvalue with index up of
 		This function assigns the value value to the upvalue with index up of
 		the function `f`. The function returns `null` if there is no upvalue with
 		the function `f`. The function returns `null` if there is no upvalue with
 		the given index. Otherwise, it returns the name of the upvalue.
 		the given index. Otherwise, it returns the name of the upvalue.
 	**/
 	**/
-	public static function setupvalue(f:Function, up:Int, val:Dynamic):Void;
+	static function setupvalue(f:Function, up:Int, val:Dynamic):Void;
 
 
 	/**
 	/**
 		Returns the Lua value associated to `val`.
 		Returns the Lua value associated to `val`.
 		If `val` is not a `UserData`, returns `null`.
 		If `val` is not a `UserData`, returns `null`.
 	**/
 	**/
-	public static function getuservalue(val:Dynamic):Dynamic;
+	static function getuservalue(val:Dynamic):Dynamic;
 
 
 	/**
 	/**
 		Sets the given value as the Lua value associated to the given udata.
 		Sets the given value as the Lua value associated to the given udata.
 		`udata` must be a full `UserData`.
 		`udata` must be a full `UserData`.
 	**/
 	**/
-	public static function setuservalue(udata:Dynamic, val:Dynamic):Void;
+	static function setuservalue(udata:Dynamic, val:Dynamic):Void;
 
 
 	/**
 	/**
 		Returns a string with a traceback of the call stack.
 		Returns a string with a traceback of the call stack.
@@ -120,19 +120,19 @@ extern class Debug {
 		@param level (optional) tells at which level to start the traceback.
 		@param level (optional) tells at which level to start the traceback.
 			   default is `1`, the function calling traceback.
 			   default is `1`, the function calling traceback.
 	**/
 	**/
-	public static function traceback(?thread:Thread, ?message:String, ?level:Int):String;
+	static function traceback(?thread:Thread, ?message:String, ?level:Int):String;
 
 
 	/**
 	/**
 		Returns a unique identifier (as a light userdata) for the upvalue numbered
 		Returns a unique identifier (as a light userdata) for the upvalue numbered
 		`n` from the given function `f`.
 		`n` from the given function `f`.
 	**/
 	**/
-	public static function upvalueid(f:Function, n:Int):Dynamic;
+	static function upvalueid(f:Function, n:Int):Dynamic;
 
 
 	/**
 	/**
 		Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th
 		Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th
 		upvalue of the Lua closure `f2`.
 		upvalue of the Lua closure `f2`.
 	**/
 	**/
-	public static function upvaluejoin(f1:Function, n1:Int, f2:Function, n2:Int):Void;
+	static function upvaluejoin(f1:Function, n1:Int, f2:Function, n2:Int):Void;
 }
 }
 
 
 /**
 /**

+ 18 - 18
std/lua/Ffi.hx

@@ -28,34 +28,34 @@ import lua.Table;
 #if lua_jit
 #if lua_jit
 @:luaRequire("ffi")
 @:luaRequire("ffi")
 extern class Ffi {
 extern class Ffi {
-	public function new(type:String, arg:Dynamic);
+	function new(type:String, arg:Dynamic);
 
 
 	// Declaring and accessing external symbols
 	// Declaring and accessing external symbols
-	public static function cdef(def:String):Void;
-	public static var C:Dynamic;
-	public static function gc(cdata:Dynamic, finalizer:Function):Void;
-	public static function load(name:String, ?global:Bool):Dynamic;
-	public static function metatype<T>(ct:Ctype<T>, metatable:Table<Dynamic, Dynamic>):Ctype<T>;
-	public static function typeof(str:String):Ctype<Dynamic>;
+	static function cdef(def:String):Void;
+	static var C:Dynamic;
+	static function gc(cdata:Dynamic, finalizer:Function):Void;
+	static function load(name:String, ?global:Bool):Dynamic;
+	static function metatype<T>(ct:Ctype<T>, metatable:Table<Dynamic, Dynamic>):Ctype<T>;
+	static function typeof(str:String):Ctype<Dynamic>;
 
 
 	// C Type functionality
 	// C Type functionality
-	public static function alignof<T>(ct:Ctype<T>):Int;
-	public static function istype<T>(ct:Ctype<T>, obj:Dynamic):Bool;
-	public static function offsetof<T>(ct:Ctype<T>, field:String):Int;
-	public static function sizeof<T>(ct:Ctype<T>, ?nelem:Int):Int;
+	static function alignof<T>(ct:Ctype<T>):Int;
+	static function istype<T>(ct:Ctype<T>, obj:Dynamic):Bool;
+	static function offsetof<T>(ct:Ctype<T>, field:String):Int;
+	static function sizeof<T>(ct:Ctype<T>, ?nelem:Int):Int;
 
 
 	// Utility functionality
 	// Utility functionality
-	public static function errno(?newerr:Int):Int;
-	public static function fill(dst:Dynamic, len:Int, c:Int):Void;
-	public static function string(ptr:Dynamic, ?len:Int):String;
+	static function errno(?newerr:Int):Int;
+	static function fill(dst:Dynamic, len:Int, c:Int):Void;
+	static function string(ptr:Dynamic, ?len:Int):String;
 
 
 	@:overload(function(dst:Dynamic, str:String):Dynamic {})
 	@:overload(function(dst:Dynamic, str:String):Dynamic {})
-	public static function copy(dst:Dynamic, src:Dynamic, len:Int):String;
+	static function copy(dst:Dynamic, src:Dynamic, len:Int):String;
 
 
 	// Target specific functionality
 	// Target specific functionality
-	public static var os:String;
-	public static var arch:String;
-	public static function abi(param:String):Bool;
+	static var os:String;
+	static var arch:String;
+	static function abi(param:String):Bool;
 }
 }
 
 
 extern class Ctype<T> {}
 extern class Ctype<T> {}

+ 5 - 5
std/lua/FileHandle.hx

@@ -27,13 +27,13 @@ import haxe.extern.Rest;
 import sys.io.FileInput;
 import sys.io.FileInput;
 
 
 extern class FileHandle extends UserData {
 extern class FileHandle extends UserData {
-	public function flush():Void;
-	public function read(arg:Rest<EitherType<String, Int>>):String;
-	public function close():Void;
+	function flush():Void;
+	function read(arg:Rest<EitherType<String, Int>>):String;
+	function close():Void;
 
 
-	public function write(str:String):Void;
+	function write(str:String):Void;
 
 
 	@:overload(function():Int {})
 	@:overload(function():Int {})
 	@:overload(function(arg:String):Int {})
 	@:overload(function(arg:String):Int {})
-	public function seek(arg:String, pos:Int):Void;
+	function seek(arg:String, pos:Int):Void;
 }
 }

+ 14 - 14
std/lua/Io.hx

@@ -29,19 +29,19 @@ import haxe.extern.Rest;
 **/
 **/
 @:native("_G.io")
 @:native("_G.io")
 extern class Io {
 extern class Io {
-	public static var stdin:FileHandle;
-	public static var stderr:FileHandle;
-	public static var stdout:FileHandle;
+	static var stdin:FileHandle;
+	static var stderr:FileHandle;
+	static var stdout:FileHandle;
 
 
 	/**
 	/**
 		Function to close regular files.
 		Function to close regular files.
 	**/
 	**/
-	public static function close(?file:FileHandle):Void;
+	static function close(?file:FileHandle):Void;
 
 
 	/**
 	/**
 		Saves any written data to file.
 		Saves any written data to file.
 	**/
 	**/
-	public static function flush():Void;
+	static function flush():Void;
 
 
 	/**
 	/**
 		When called with a file name, it opens the named file (in text mode),
 		When called with a file name, it opens the named file (in text mode),
@@ -53,13 +53,13 @@ extern class Io {
 		error code.
 		error code.
 	**/
 	**/
 	@:overload(function(file:String):Void {})
 	@:overload(function(file:String):Void {})
-	public static function input(file:FileHandle):Void;
+	static function input(file:FileHandle):Void;
 
 
 	/**
 	/**
 		Opens the given file name in read mode and returns an iterator function that,
 		Opens the given file name in read mode and returns an iterator function that,
 		each time it is called, returns a new line from the file.
 		each time it is called, returns a new line from the file.
 	**/
 	**/
-	public static function lines(?file:String):NativeIterator<String>;
+	static function lines(?file:String):NativeIterator<String>;
 
 
 	/**
 	/**
 		This function opens a file, in the mode specified in the string mode.
 		This function opens a file, in the mode specified in the string mode.
@@ -79,7 +79,7 @@ extern class Io {
 		to open the file in binary mode. This string is exactly what is used in the
 		to open the file in binary mode. This string is exactly what is used in the
 		standard C function fopen.
 		standard C function fopen.
 	**/
 	**/
-	public static function open(filename:String, ?mode:String):FileHandle;
+	static function open(filename:String, ?mode:String):FileHandle;
 
 
 	/**
 	/**
 		Starts program `command` in a separated process and returns a file handle that
 		Starts program `command` in a separated process and returns a file handle that
@@ -88,10 +88,10 @@ extern class Io {
 
 
 		This function is system dependent and is not available on all platforms.
 		This function is system dependent and is not available on all platforms.
 	**/
 	**/
-	public static function popen(command:String, ?mode:String):FileHandle;
+	static function popen(command:String, ?mode:String):FileHandle;
 
 
 	@:overload(function(?count:Int):String {})
 	@:overload(function(?count:Int):String {})
-	public static function read(?filename:String):String;
+	static function read(?filename:String):String;
 
 
 	/**
 	/**
 		Writes the value of each of its arguments to the file. The arguments must
 		Writes the value of each of its arguments to the file. The arguments must
@@ -99,20 +99,20 @@ extern class Io {
 		To write other values, use `Lua.tostring` or `NativeStringTools.format`
 		To write other values, use `Lua.tostring` or `NativeStringTools.format`
 		before write.
 		before write.
 	**/
 	**/
-	public static function write(v:Rest<String>):Void;
+	static function write(v:Rest<String>):Void;
 
 
-	public static function output(?file:String):FileHandle;
+	static function output(?file:String):FileHandle;
 
 
 	/**
 	/**
 		Returns a handle for a temporary file. This file is opened in update mode
 		Returns a handle for a temporary file. This file is opened in update mode
 		and it is automatically removed when the program ends.
 		and it is automatically removed when the program ends.
 	**/
 	**/
-	public static function tmpfile():FileHandle;
+	static function tmpfile():FileHandle;
 
 
 	/**
 	/**
 		Checks whether `obj` is a valid file handle.
 		Checks whether `obj` is a valid file handle.
 	**/
 	**/
-	public static function type(obj:FileHandle):IoType;
+	static function type(obj:FileHandle):IoType;
 }
 }
 
 
 /**
 /**

+ 10 - 10
std/lua/Jit.hx

@@ -5,15 +5,15 @@ import haxe.Constraints.Function;
 #if lua_jit
 #if lua_jit
 @:native("_G.jit")
 @:native("_G.jit")
 extern class Jit {
 extern class Jit {
-	public static function on(?f:Function, ?recursive:Bool):Void;
-	public static function off(?f:Function, ?recursive:Bool):Void;
-	public static function flush(?f:Function, ?recursive:Bool):Void;
-	public static function status():Bool;
-	public static var version:String;
-	public static var version_num:Int;
-	public static var os:String;
-	public static var arch:String;
-	public static var opt:{start:Function};
-	public static var util:Dynamic;
+	static function on(?f:Function, ?recursive:Bool):Void;
+	static function off(?f:Function, ?recursive:Bool):Void;
+	static function flush(?f:Function, ?recursive:Bool):Void;
+	static function status():Bool;
+	static var version:String;
+	static var version_num:Int;
+	static var os:String;
+	static var arch:String;
+	static var opt:{start:Function};
+	static var util:Dynamic;
 }
 }
 #end
 #end

+ 25 - 25
std/lua/Lua.hx

@@ -35,20 +35,20 @@ extern class Lua {
 		A global variable that holds a string containing the current interpreter
 		A global variable that holds a string containing the current interpreter
 		version.
 		version.
 	**/
 	**/
-	public static var _VERSION:String;
+	static var _VERSION:String;
 
 
-	public static var arg:Table<Int, String>;
+	static var arg:Table<Int, String>;
 
 
 	/**
 	/**
 		Pushes onto the stack the metatable in the registry.
 		Pushes onto the stack the metatable in the registry.
 	**/
 	**/
-	public static function getmetatable(tbl:Table<Dynamic, Dynamic>):Table<Dynamic, Dynamic>;
+	static function getmetatable(tbl:Table<Dynamic, Dynamic>):Table<Dynamic, Dynamic>;
 
 
 	/**
 	/**
 		Pops a table from the stack and sets it as the new metatable for the value
 		Pops a table from the stack and sets it as the new metatable for the value
 		at the given acceptable index.
 		at the given acceptable index.
 	**/
 	**/
-	public static function setmetatable(tbl:Table<Dynamic, Dynamic>, mtbl:Table<Dynamic, Dynamic>):Table<Dynamic, Dynamic>;
+	static function setmetatable(tbl:Table<Dynamic, Dynamic>, mtbl:Table<Dynamic, Dynamic>):Table<Dynamic, Dynamic>;
 
 
 	/**
 	/**
 		Pops a table from the stack and sets it as the new environment for the value
 		Pops a table from the stack and sets it as the new environment for the value
@@ -56,7 +56,7 @@ extern class Lua {
 		a thread nor a userdata, lua_setfenv returns `0`.
 		a thread nor a userdata, lua_setfenv returns `0`.
 		Otherwise it returns `1`.
 		Otherwise it returns `1`.
 	**/
 	**/
-	public static function setfenv(i:Int, tbl:Table<Dynamic, Dynamic>):Void;
+	static function setfenv(i:Int, tbl:Table<Dynamic, Dynamic>):Void;
 
 
 	/**
 	/**
 		Allows a program to traverse all fields of a table.
 		Allows a program to traverse all fields of a table.
@@ -75,7 +75,7 @@ extern class Lua {
 		to a non-existent field in the table is assigned. Existing fields may
 		to a non-existent field in the table is assigned. Existing fields may
 		however be modified. In particular, existing fields may be cleared.
 		however be modified. In particular, existing fields may be cleared.
 	**/
 	**/
-	public static function next<K, V>(k:Table<K, V>, ?i:K):NextResult<K, V>;
+	static function next<K, V>(k:Table<K, V>, ?i:K):NextResult<K, V>;
 
 
 	/**
 	/**
 		Receives an argument of any type and converts it to a string in a reasonable
 		Receives an argument of any type and converts it to a string in a reasonable
@@ -83,20 +83,20 @@ extern class Lua {
 
 
 		For complete control of how numbers are converted, use`NativeStringTools.format`.
 		For complete control of how numbers are converted, use`NativeStringTools.format`.
 	**/
 	**/
-	public static function tostring(v:Dynamic):String;
+	static function tostring(v:Dynamic):String;
 
 
-	public static function ipairs<K, V>(t:Table<K, V>):IPairsResult<K, V>;
+	static function ipairs<K, V>(t:Table<K, V>):IPairsResult<K, V>;
 
 
-	public static function pairs<K, V>(t:Table<K, V>):PairsResult<K, V>;
+	static function pairs<K, V>(t:Table<K, V>):PairsResult<K, V>;
 
 
-	public static function require(module:String):Dynamic;
+	static function require(module:String):Dynamic;
 
 
 	/**
 	/**
 		Converts the Lua value at the given acceptable base to `Int`.
 		Converts the Lua value at the given acceptable base to `Int`.
 		The Lua value must be a number or a string convertible to a number,
 		The Lua value must be a number or a string convertible to a number,
 		otherwise `tonumber` returns `0`.
 		otherwise `tonumber` returns `0`.
 	**/
 	**/
-	public static function tonumber(str:String, ?base:Int):Int;
+	static function tonumber(str:String, ?base:Int):Int;
 
 
 	/**
 	/**
 		Returns the Lua type of its only argument as a string.
 		Returns the Lua type of its only argument as a string.
@@ -111,7 +111,7 @@ extern class Lua {
 		* `"thread"`
 		* `"thread"`
 		* `"userdata"`
 		* `"userdata"`
 	**/
 	**/
-	public static function type(v:Dynamic):String;
+	static function type(v:Dynamic):String;
 
 
 	/**
 	/**
 		Receives any number of arguments, and prints their values to stdout,
 		Receives any number of arguments, and prints their values to stdout,
@@ -121,54 +121,54 @@ extern class Lua {
 
 
 		For complete control of how numbers are converted, use `NativeStringTools.format`.
 		For complete control of how numbers are converted, use `NativeStringTools.format`.
 	**/
 	**/
-	public static function print(v:haxe.extern.Rest<Dynamic>):Void;
+	static function print(v:haxe.extern.Rest<Dynamic>):Void;
 
 
 	/**
 	/**
 		If `n` is a number, returns all arguments after argument number `n`.
 		If `n` is a number, returns all arguments after argument number `n`.
 		Otherwise, `n` must be the string `"#"`, and select returns the total
 		Otherwise, `n` must be the string `"#"`, and select returns the total
 		number of extra arguments it received.
 		number of extra arguments it received.
 	**/
 	**/
-	public static function select(n:Dynamic, rest:Rest<Dynamic>):Dynamic;
+	static function select(n:Dynamic, rest:Rest<Dynamic>):Dynamic;
 
 
 	/**
 	/**
 		Gets the real value of `table[index]`, without invoking any metamethod.
 		Gets the real value of `table[index]`, without invoking any metamethod.
 	**/
 	**/
-	public static function rawget<K, V>(t:Table<K, V>, k:K):V;
+	static function rawget<K, V>(t:Table<K, V>, k:K):V;
 
 
 	/**
 	/**
 		Sets the real value of `table[index]` to value, without invoking any metamethod.
 		Sets the real value of `table[index]` to value, without invoking any metamethod.
 	**/
 	**/
-	public static function rawset<K, V>(t:Table<K, V>, k:K, v:V):Void;
+	static function rawset<K, V>(t:Table<K, V>, k:K, v:V):Void;
 
 
 	/**
 	/**
 		This function is a generic interface to the garbage collector.
 		This function is a generic interface to the garbage collector.
 		It performs different functions according to its first argument.
 		It performs different functions according to its first argument.
 	**/
 	**/
-	public static function collectgarbage(opt:CollectGarbageOption, ?arg:Int):Int;
+	static function collectgarbage(opt:CollectGarbageOption, ?arg:Int):Int;
 
 
 	/**
 	/**
 		Issues an error when the value of its argument `v` is `false` (i.e., `null`
 		Issues an error when the value of its argument `v` is `false` (i.e., `null`
 		or `false`) otherwise, returns all its arguments. message is an error message.
 		or `false`) otherwise, returns all its arguments. message is an error message.
 		when absent, it defaults to "assertion failed!"
 		when absent, it defaults to "assertion failed!"
 	**/
 	**/
-	public static function assert<T>(v:T, ?message:String):T;
+	static function assert<T>(v:T, ?message:String):T;
 
 
 	/**
 	/**
 		Loads and runs the given file.
 		Loads and runs the given file.
 	**/
 	**/
-	public static function dofile(filename:String):Void;
+	static function dofile(filename:String):Void;
 
 
 	/**
 	/**
 		Generates a Lua error. The error message (which can actually be a Lua value
 		Generates a Lua error. The error message (which can actually be a Lua value
 		of any type) must be on the stack top. This function does a long jump,
 		of any type) must be on the stack top. This function does a long jump,
 		and therefore never returns.
 		and therefore never returns.
 	**/
 	**/
-	public static function error(message:String, ?level:Int):Void;
+	static function error(message:String, ?level:Int):Void;
 
 
 	/**
 	/**
 		Calls a function in protected mode.
 		Calls a function in protected mode.
 	**/
 	**/
-	public static function pcall(f:Function, rest:Rest<Dynamic>):PCallResult;
+	static function pcall(f:Function, rest:Rest<Dynamic>):PCallResult;
 
 
 	/**
 	/**
 		Returns `true` if the two values in acceptable indices `v1` and `v2` are
 		Returns `true` if the two values in acceptable indices `v1` and `v2` are
@@ -176,24 +176,24 @@ extern class Lua {
 		Otherwise returns `false`.
 		Otherwise returns `false`.
 		Also returns `false` if any of the indices are non valid.
 		Also returns `false` if any of the indices are non valid.
 	**/
 	**/
-	public static function rawequal(v1:Dynamic, v2:Dynamic):Bool;
+	static function rawequal(v1:Dynamic, v2:Dynamic):Bool;
 
 
 	/**
 	/**
 		This function is similar to pcall, except that you can set a new error
 		This function is similar to pcall, except that you can set a new error
 		handler.
 		handler.
 	**/
 	**/
-	public static function xpcall(f:Function, msgh:Function, rest:Rest<Dynamic>):PCallResult;
+	static function xpcall(f:Function, msgh:Function, rest:Rest<Dynamic>):PCallResult;
 
 
 	/**
 	/**
 		Loads the chunk from file filename or from the standard input if no filename
 		Loads the chunk from file filename or from the standard input if no filename
 		is given.
 		is given.
 	**/
 	**/
-	public static function loadfile(filename:String):LoadResult;
+	static function loadfile(filename:String):LoadResult;
 
 
 	/**
 	/**
 		Loads the chunk from given string.
 		Loads the chunk from given string.
 	**/
 	**/
-	public static function load(code:haxe.extern.EitherType<String, Void->String>):LoadResult;
+	static function load(code:haxe.extern.EitherType<String, Void->String>):LoadResult;
 }
 }
 
 
 /**
 /**

+ 13 - 13
std/lua/NativeStringTools.hx

@@ -34,7 +34,7 @@ extern class NativeStringTools {
 		Receives a string and returns its length. The empty string `""` has
 		Receives a string and returns its length. The empty string `""` has
 		length `0`. Embedded zeros are counted, so `"a\000bc\000"` has length `5`.
 		length `0`. Embedded zeros are counted, so `"a\000bc\000"` has length `5`.
 	**/
 	**/
-	public static function len(str:String):Int;
+	static function len(str:String):Int;
 
 
 	/**
 	/**
 		Receives zero or more integers. Returns a string with length equal to the
 		Receives zero or more integers. Returns a string with length equal to the
@@ -42,7 +42,7 @@ extern class NativeStringTools {
 		code equal to its corresponding argument.
 		code equal to its corresponding argument.
 		Note that numerical codes are not necessarily portable across platforms.
 		Note that numerical codes are not necessarily portable across platforms.
 	**/
 	**/
-	public static function char(codes:haxe.extern.Rest<Int>):String;
+	static function char(codes:haxe.extern.Rest<Int>):String;
 
 
 	// TODO: make a note about handling matched groups with multireturn
 	// TODO: make a note about handling matched groups with multireturn
 
 
@@ -54,7 +54,7 @@ extern class NativeStringTools {
 		with length `end`, and `sub(str, -end)` returns a suffix of `str` with
 		with length `end`, and `sub(str, -end)` returns a suffix of `str` with
 		length `start`.
 		length `start`.
 	**/
 	**/
-	public static function sub(str:String, start:Int, ?end:Int):StringSub;
+	static function sub(str:String, start:Int, ?end:Int):StringSub;
 
 
 	/**
 	/**
 		Looks for the first match of pattern in the string `str`.
 		Looks for the first match of pattern in the string `str`.
@@ -69,13 +69,13 @@ extern class NativeStringTools {
 			   a plain "find substring" operation, with no characters in pattern
 			   a plain "find substring" operation, with no characters in pattern
 			   being considered "magic". Note that if plain is given, then `start` must be given as well.
 			   being considered "magic". Note that if plain is given, then `start` must be given as well.
 	**/
 	**/
-	public static function find(str:String, target:String, ?start:Int, ?plain:Bool):StringFind;
+	static function find(str:String, target:String, ?start:Int, ?plain:Bool):StringFind;
 
 
 	/**
 	/**
 		Returns the internal numerical codes of the characters `str[index]`.
 		Returns the internal numerical codes of the characters `str[index]`.
 		Note that numerical codes are not necessarily portable across platforms.
 		Note that numerical codes are not necessarily portable across platforms.
 	**/
 	**/
-	public static function byte(str:String, ?index:Int):Int;
+	static function byte(str:String, ?index:Int):Int;
 
 
 	/**
 	/**
 		Returns a formatted version of its variable number of arguments following
 		Returns a formatted version of its variable number of arguments following
@@ -99,14 +99,14 @@ extern class NativeStringTools {
 		This function does not accept string values containing embedded zeros,
 		This function does not accept string values containing embedded zeros,
 		except as arguments to the `q` option.
 		except as arguments to the `q` option.
 	**/
 	**/
-	public static function format(str:String, ?e1:Dynamic, ?e2:Dynamic, ?e3:Dynamic, ?e4:Dynamic):String;
+	static function format(str:String, ?e1:Dynamic, ?e2:Dynamic, ?e3:Dynamic, ?e4:Dynamic):String;
 
 
 	/**
 	/**
 
 
 	**/
 	**/
 	@:overload(function(str:String, pattern:String, replace:String->Void, ?n:Int):String {})
 	@:overload(function(str:String, pattern:String, replace:String->Void, ?n:Int):String {})
 	@:overload(function(str:String, pattern:String, replace:String->String, ?n:Int):String {})
 	@:overload(function(str:String, pattern:String, replace:String->String, ?n:Int):String {})
-	public static function gsub(str:String, pattern:String, replace:String, ?n:Int):String;
+	static function gsub(str:String, pattern:String, replace:String, ?n:Int):String;
 
 
 	/**
 	/**
 		Returns an iterator function that, each time it is called, returns the next
 		Returns an iterator function that, each time it is called, returns the next
@@ -114,7 +114,7 @@ extern class NativeStringTools {
 		then the whole match is produced in each call.
 		then the whole match is produced in each call.
 	**/
 	**/
 	@:overload(function(str:String, pattern:String, match:Void->String, ?n:Int):String->Void {})
 	@:overload(function(str:String, pattern:String, match:Void->String, ?n:Int):String->Void {})
-	public static function gmatch(str:String, pattern:String):Void->String;
+	static function gmatch(str:String, pattern:String):Void->String;
 
 
 	/**
 	/**
 		Looks for the first match of pattern in the string s. If it finds one,
 		Looks for the first match of pattern in the string s. If it finds one,
@@ -123,28 +123,28 @@ extern class NativeStringTools {
 		The optional argument `n` specifies where to start the search;
 		The optional argument `n` specifies where to start the search;
 		its default value is `1` and can be negative.
 		its default value is `1` and can be negative.
 	**/
 	**/
-	public static function match(str:String, pattern:String, ?n:Int):String;
+	static function match(str:String, pattern:String, ?n:Int):String;
 
 
 	/**
 	/**
 		Receives a string and returns a copy of this string with all lowercase
 		Receives a string and returns a copy of this string with all lowercase
 		letters changed to uppercase. All other characters are left unchanged.
 		letters changed to uppercase. All other characters are left unchanged.
 		The definition of what a lowercase letter is depends on the current locale.
 		The definition of what a lowercase letter is depends on the current locale.
 	**/
 	**/
-	public static function upper(str:String):String;
+	static function upper(str:String):String;
 
 
 	/**
 	/**
 		Receives a string and returns a copy of this string with all uppercase
 		Receives a string and returns a copy of this string with all uppercase
 		letters changed to lowercase. All other characters are left unchanged.
 		letters changed to lowercase. All other characters are left unchanged.
 		The definition of what an uppercase letter is depends on the current locale.
 		The definition of what an uppercase letter is depends on the current locale.
 	**/
 	**/
-	public static function lower(str:String):String;
+	static function lower(str:String):String;
 
 
 	/**
 	/**
 		Returns a string containing a binary representation of the given function,
 		Returns a string containing a binary representation of the given function,
 		so that a later loadstring on this string returns a copy of the function.
 		so that a later loadstring on this string returns a copy of the function.
 		function must be a Lua function without upvalues.
 		function must be a Lua function without upvalues.
 	**/
 	**/
-	public static function dump(d:Dynamic):Dynamic;
+	static function dump(d:Dynamic):Dynamic;
 
 
 
 
     /**
     /**
@@ -155,7 +155,7 @@ extern class NativeStringTools {
         it is very easy to exhaust the memory of your machine with
         it is very easy to exhaust the memory of your machine with
         a single call to this function.)
         a single call to this function.)
     **/
     **/
-    public static function rep(s:String, n : Int, ?sep : String) : String;
+    static function rep(s:String, n : Int, ?sep : String) : String;
 
 
 }
 }
 
 

+ 13 - 13
std/lua/Os.hx

@@ -31,17 +31,17 @@ extern class Os {
 		Returns an approximation of the amount in seconds of CPU time used by the
 		Returns an approximation of the amount in seconds of CPU time used by the
 		program.
 		program.
 	**/
 	**/
-	public static function clock():Float;
+	static function clock():Float;
 
 
 	@:overload(function(format:String, time:Time):DateType {})
 	@:overload(function(format:String, time:Time):DateType {})
 	@:overload(function(format:String):DateType {})
 	@:overload(function(format:String):DateType {})
-	public static function date():DateType;
+	static function date():DateType;
 
 
 	/**
 	/**
 		Returns the number of seconds from time `t1` to time `t2`.
 		Returns the number of seconds from time `t1` to time `t2`.
 		In POSIX, Windows, and some other systems, this value is exactly `t2-t1`.
 		In POSIX, Windows, and some other systems, this value is exactly `t2-t1`.
 	**/
 	**/
-	public static function difftime(t2:Time, t1:Time):Float;
+	static function difftime(t2:Time, t1:Time):Float;
 
 
 	// TODO: multi-return
 	// TODO: multi-return
 
 
@@ -52,40 +52,40 @@ extern class Os {
 		nonzero if a shell is available and zero otherwise.
 		nonzero if a shell is available and zero otherwise.
 	**/
 	**/
 	#if (lua_ver < 5.2)
 	#if (lua_ver < 5.2)
-	public static function execute(?command:String):Int;
+	static function execute(?command:String):Int;
 	#elseif (lua_ver >= 5.2)
 	#elseif (lua_ver >= 5.2)
-	public static function execute(?command:String):OsExecute;
+	static function execute(?command:String):OsExecute;
 	#else
 	#else
-	public static function execute(?command:String):Dynamic;
+	static function execute(?command:String):Dynamic;
 	#end
 	#end
 
 
 	/**
 	/**
 		Calls the C function exit, with an optional code, to terminate the host program.
 		Calls the C function exit, with an optional code, to terminate the host program.
 		The default value for code is the success code.
 		The default value for code is the success code.
 	**/
 	**/
-	public static function exit(code:Int):Int;
+	static function exit(code:Int):Int;
 
 
 	/**
 	/**
 		Returns the value of the process environment variable `varname`, or `null`
 		Returns the value of the process environment variable `varname`, or `null`
 		if the variable is not defined.
 		if the variable is not defined.
 	**/
 	**/
-	public static function getenv(varname:String):String;
+	static function getenv(varname:String):String;
 
 
 	/**
 	/**
 		Deletes the file or directory with the given name.
 		Deletes the file or directory with the given name.
 		Directories must be empty to be removed.
 		Directories must be empty to be removed.
 	**/
 	**/
-	public static function remove(filename:String):OsSuccess;
+	static function remove(filename:String):OsSuccess;
 
 
 	/**
 	/**
 		Renames file or directory named `oldname` to `newname`.
 		Renames file or directory named `oldname` to `newname`.
 	**/
 	**/
-	public static function rename(oldname:String, newname:String):OsSuccess;
+	static function rename(oldname:String, newname:String):OsSuccess;
 
 
 	/**
 	/**
 		Sets the current locale of the program.
 		Sets the current locale of the program.
 	**/
 	**/
-	public static function setlocale(locale:String, ?category:LocaleCategory):String;
+	static function setlocale(locale:String, ?category:LocaleCategory):String;
 
 
 	/**
 	/**
 		Returns the current time when called without arguments, or a time
 		Returns the current time when called without arguments, or a time
@@ -97,7 +97,7 @@ extern class Os {
 		In other systems, the meaning is not specified, and the number returned
 		In other systems, the meaning is not specified, and the number returned
 		by time can be used only as an argument to date and difftime.
 		by time can be used only as an argument to date and difftime.
 	**/
 	**/
-	public static function time(?arg:TimeParam):Time;
+	static function time(?arg:TimeParam):Time;
 
 
 	/**
 	/**
 		Returns a string with a file name that can be used for a temporary file.
 		Returns a string with a file name that can be used for a temporary file.
@@ -107,7 +107,7 @@ extern class Os {
 		When possible, you may prefer to use `Io.tmpfile`, which automatically
 		When possible, you may prefer to use `Io.tmpfile`, which automatically
 		removes the file when the program ends.
 		removes the file when the program ends.
 	**/
 	**/
-	public static function tmpname():String;
+	static function tmpname():String;
 }
 }
 
 
 /**
 /**

+ 8 - 8
std/lua/Package.hx

@@ -30,42 +30,42 @@ extern class Package {
 	/**
 	/**
 		A string describing some compile-time configurations for packages.
 		A string describing some compile-time configurations for packages.
 	**/
 	**/
-	public static var config:String;
+	static var config:String;
 
 
 	/**
 	/**
 		The path used by require to search for a Lua loader.
 		The path used by require to search for a Lua loader.
 	**/
 	**/
-	public static var path:String;
+	static var path:String;
 
 
 	/**
 	/**
 		The path used by require to search for a C loader.
 		The path used by require to search for a C loader.
 	**/
 	**/
-	public static var cpath:String;
+	static var cpath:String;
 
 
 	/**
 	/**
 		A table used by require to control which modules are already loaded.
 		A table used by require to control which modules are already loaded.
 	**/
 	**/
-	public static var loaded:Table<String, Bool>;
+	static var loaded:Table<String, Bool>;
 
 
 	/**
 	/**
 		A table to store loaders for specific modules.
 		A table to store loaders for specific modules.
 	**/
 	**/
-	public static var preload:Table<String, Bool>;
+	static var preload:Table<String, Bool>;
 
 
 	/**
 	/**
 		A table used by require to control how to load modules.
 		A table used by require to control how to load modules.
 		Each entry in this table is a searcher function.
 		Each entry in this table is a searcher function.
 	**/
 	**/
-	public static var searchers:Table<Int, Void->Null<String>>;
+	static var searchers:Table<Int, Void->Null<String>>;
 
 
 	/**
 	/**
 		Searches for the given `libname` in the given path `funcname`.
 		Searches for the given `libname` in the given path `funcname`.
 		A path is a string containing a sequence of templates separated by semicolons.
 		A path is a string containing a sequence of templates separated by semicolons.
 	**/
 	**/
-	public static function searchpath(name:String, path:String, ?sep:String, ?rep:String):Null<String>;
+	static function searchpath(name:String, path:String, ?sep:String, ?rep:String):Null<String>;
 
 
 	/**
 	/**
 		Dynamically links the host program with the C library `libname`.
 		Dynamically links the host program with the C library `libname`.
 	**/
 	**/
-	public static function loadlib(libname:String, funcname:String):Void;
+	static function loadlib(libname:String, funcname:String):Void;
 }
 }

+ 15 - 15
std/lua/Table.hx

@@ -32,9 +32,9 @@ import haxe.ds.ObjectMap;
 
 
 @:native("_G.table")
 @:native("_G.table")
 extern class Table<A, B> implements ArrayAccess<B> implements Dynamic<B> {
 extern class Table<A, B> implements ArrayAccess<B> implements Dynamic<B> {
-	@:pure public static function create<A, B>(?arr:Array<B>, ?hsh:Dynamic):Table<A, B>;
+	@:pure static function create<A, B>(?arr:Array<B>, ?hsh:Dynamic):Table<A, B>;
 
 
-	public inline static function fromArray<T>(arr:Array<T>):Table<Int, T> {
+	inline static function fromArray<T>(arr:Array<T>):Table<Int, T> {
 		var ret = Table.create();
 		var ret = Table.create();
 		for (idx in 0...arr.length) {
 		for (idx in 0...arr.length) {
 			ret[idx + 1] = arr[idx];
 			ret[idx + 1] = arr[idx];
@@ -42,7 +42,7 @@ extern class Table<A, B> implements ArrayAccess<B> implements Dynamic<B> {
 		return ret;
 		return ret;
 	}
 	}
 
 
-	public inline static function fromMap<A, B>(map:Map<A, B>):Table<A, B> {
+	inline static function fromMap<A, B>(map:Map<A, B>):Table<A, B> {
 		var ret = Table.create();
 		var ret = Table.create();
 		for (k in map.keys()) {
 		for (k in map.keys()) {
 			ret[untyped k] = map.get(k);
 			ret[untyped k] = map.get(k);
@@ -50,7 +50,7 @@ extern class Table<A, B> implements ArrayAccess<B> implements Dynamic<B> {
 		return ret;
 		return ret;
 	}
 	}
 
 
-	public inline static function fromDynamic<A, B>(dyn:Dynamic):Table<A, B> {
+	inline static function fromDynamic<A, B>(dyn:Dynamic):Table<A, B> {
 		var ret = Table.create();
 		var ret = Table.create();
 		for (f in Reflect.fields(dyn)) {
 		for (f in Reflect.fields(dyn)) {
 			ret[untyped f] = Reflect.field(dyn, f);
 			ret[untyped f] = Reflect.field(dyn, f);
@@ -58,7 +58,7 @@ extern class Table<A, B> implements ArrayAccess<B> implements Dynamic<B> {
 		return ret;
 		return ret;
 	}
 	}
 
 
-    public inline static function toMap<A,B>(tbl : Table<A,B>) : Map<A,B> {
+    inline static function toMap<A,B>(tbl : Table<A,B>) : Map<A,B> {
         var obj = new ObjectMap();
         var obj = new ObjectMap();
         PairTools.pairsFold(tbl, (k,v,m) ->{
         PairTools.pairsFold(tbl, (k,v,m) ->{
             obj.set(k,v);
             obj.set(k,v);
@@ -70,34 +70,34 @@ extern class Table<A, B> implements ArrayAccess<B> implements Dynamic<B> {
 	/**
 	/**
 		Copies the table argument and converts it to an Object.
 		Copies the table argument and converts it to an Object.
 	**/
 	**/
-	public inline static function toObject<T>(t:Table<String, T>):Dynamic<T> {
+	inline static function toObject<T>(t:Table<String, T>):Dynamic<T> {
 		return Boot.tableToObject(PairTools.copy(t));
 		return Boot.tableToObject(PairTools.copy(t));
 	}
 	}
 
 
 
 
-    public inline static function toArray<T>(tbl : Table<Int,T>, ?length:Int) : Array<T> {
+    inline static function toArray<T>(tbl : Table<Int,T>, ?length:Int) : Array<T> {
 		return Boot.defArray(PairTools.copy(tbl), length);
 		return Boot.defArray(PairTools.copy(tbl), length);
     }
     }
 
 
 	@:overload(function<A, B>(table:Table<A, B>):Void {})
 	@:overload(function<A, B>(table:Table<A, B>):Void {})
-	public static function concat<A, B>(table:Table<A, B>, ?sep:String, ?i:Int, ?j:Int):String;
+	static function concat<A, B>(table:Table<A, B>, ?sep:String, ?i:Int, ?j:Int):String;
 
 
     #if (lua_ver == 5.1)
     #if (lua_ver == 5.1)
-	public static function foreach<A, B>(table:Table<A, B>, f:A->B->Void):Void;
-	public static function foreachi<A, B>(table:Table<A, B>, f:A->B->Int->Void):Void;
+	static function foreach<A, B>(table:Table<A, B>, f:A->B->Void):Void;
+	static function foreachi<A, B>(table:Table<A, B>, f:A->B->Int->Void):Void;
     #end
     #end
 
 
-	public static function sort<A, B>(table:Table<A, B>, ?order:A->A->Bool):Void;
+	static function sort<A, B>(table:Table<A, B>, ?order:A->A->Bool):Void;
 
 
 	@:overload(function<B>(table:Table<Int, B>, value:B):Void {})
 	@:overload(function<B>(table:Table<Int, B>, value:B):Void {})
-	public static function insert<B>(table:Table<Int, B>, pos:Int, value:B):Void;
+	static function insert<B>(table:Table<Int, B>, pos:Int, value:B):Void;
 
 
 	@:overload(function<B>(table:Table<Int, B>):Void {})
 	@:overload(function<B>(table:Table<Int, B>):Void {})
-	public static function remove<B>(table:Table<Int, B>, ?pos:Int):Void;
+	static function remove<B>(table:Table<Int, B>, ?pos:Int):Void;
 
 
 	#if (lua_ver >= 5.2)
 	#if (lua_ver >= 5.2)
-	public static function pack<T>(args:haxe.extern.Rest<T>):Table<Int, T>;
-	public static function unpack<Int, V>(args:lua.Table<Int, V>, ?min:Int, ?max:Int):Dynamic;
+	static function pack<T>(args:haxe.extern.Rest<T>):Table<Int, T>;
+	static function unpack<Int, V>(args:lua.Table<Int, V>, ?min:Int, ?max:Int):Dynamic;
 	#end
 	#end
 }
 }
 
 

+ 4 - 4
std/lua/TableTools.hx

@@ -30,10 +30,10 @@ import lua.Table.AnyTable;
 **/
 **/
 @:native("_hx_table")
 @:native("_hx_table")
 extern class TableTools {
 extern class TableTools {
-	public static function pack<T>(args:haxe.extern.Rest<T>):Table<Int, T>;
-	public static function unpack<Int, V>(args:lua.Table<Int, V>, ?min:Int, ?max:Int):Dynamic;
-	public static function maxn(t:AnyTable):Int;
-	public static function __init__():Void {
+	static function pack<T>(args:haxe.extern.Rest<T>):Table<Int, T>;
+	static function unpack<Int, V>(args:lua.Table<Int, V>, ?min:Int, ?max:Int):Dynamic;
+	static function maxn(t:AnyTable):Int;
+	static function __init__():Void {
 		untyped __define_feature__("use._hx_table", null);
 		untyped __define_feature__("use._hx_table", null);
 	}
 	}
 }
 }

+ 10 - 10
std/lua/lib/lrexlib/Rex.hx

@@ -26,7 +26,7 @@ import haxe.extern.EitherType;
 
 
 @:luaRequire("rex_pcre")
 @:luaRequire("rex_pcre")
 extern class Rex {
 extern class Rex {
-	inline public static function create(expr:String, flag:EitherType<Int, String>):Rex {
+	inline static function create(expr:String, flag:EitherType<Int, String>):Rex {
 		return untyped Rex['new'](expr, flag);
 		return untyped Rex['new'](expr, flag);
 	}
 	}
 
 
@@ -36,13 +36,13 @@ extern class Rex {
 
 
 		@return matched string, or array of strings.
 		@return matched string, or array of strings.
 	**/
 	**/
-	public static function match(patt:EitherType<Rex, String>, subj:String, ?init:Int, ?ef:Int):Dynamic;
+	static function match(patt:EitherType<Rex, String>, subj:String, ?init:Int, ?ef:Int):Dynamic;
 
 
 	/**
 	/**
 		The function searches for the first match of the regexp patt in the string
 		The function searches for the first match of the regexp patt in the string
 		`subj`, starting from offset `init`, subject to flags `cf` and `ef`.
 		`subj`, starting from offset `init`, subject to flags `cf` and `ef`.
 	**/
 	**/
-	public static function find(patt:EitherType<Rex, String>, subj:String, ?init:Int, ?ef:Int):Dynamic;
+	static function find(patt:EitherType<Rex, String>, subj:String, ?init:Int, ?ef:Int):Dynamic;
 
 
 	/**
 	/**
 		The function is intended for use in the generic for Lua construct. It is
 		The function is intended for use in the generic for Lua construct. It is
@@ -50,37 +50,37 @@ extern class Rex {
 		parameter is a regular expression pattern representing separators between
 		parameter is a regular expression pattern representing separators between
 		the sections.
 		the sections.
 	**/
 	**/
-	public static function split(subj:String, sep:EitherType<Rex, String>, ?cf:Int, ?ef:Int):Void->String;
+	static function split(subj:String, sep:EitherType<Rex, String>, ?cf:Int, ?ef:Int):Void->String;
 
 
 	/**
 	/**
 		This function counts matches of the pattern `patt` in the string `subj`.
 		This function counts matches of the pattern `patt` in the string `subj`.
 	**/
 	**/
-	public static function count(subj:String, patt:EitherType<Rex, String>, cf:Int, ef:Int):Dynamic;
+	static function count(subj:String, patt:EitherType<Rex, String>, cf:Int, ef:Int):Dynamic;
 
 
-	public static function flags(?tb:Dynamic):Dynamic;
+	static function flags(?tb:Dynamic):Dynamic;
 
 
 	/**
 	/**
 		The function searches for the first match of the regexp in the string
 		The function searches for the first match of the regexp in the string
 		`subj`, starting from offset `init`, subject to execution flags `ef`.
 		`subj`, starting from offset `init`, subject to execution flags `ef`.
 	**/
 	**/
-	public function tfind(subj:String, ?init:Int, ?ef:Int):Dynamic;
+	function tfind(subj:String, ?init:Int, ?ef:Int):Dynamic;
 
 
 	/**
 	/**
 		This function searches for the first match of the regexp in the string
 		This function searches for the first match of the regexp in the string
 		`subj`, starting from offset `init`, subject to execution flags `ef`.
 		`subj`, starting from offset `init`, subject to execution flags `ef`.
 	**/
 	**/
-	public function exec(subj:String, ?init:Int, ?ef:Int):Dynamic;
+	function exec(subj:String, ?init:Int, ?ef:Int):Dynamic;
 
 
 	/**
 	/**
 		The function is intended for use in the generic for Lua construct. It
 		The function is intended for use in the generic for Lua construct. It
 		returns an iterator for repeated matching of the pattern patt in the
 		returns an iterator for repeated matching of the pattern patt in the
 		string `subj`, subject to flags `cf` and `ef`.
 		string `subj`, subject to flags `cf` and `ef`.
 	**/
 	**/
-	public static function gmatch(subj:String, patt:EitherType<Rex, String>, ?cf:Int, ?ef:Int):Void->String;
+	static function gmatch(subj:String, patt:EitherType<Rex, String>, ?cf:Int, ?ef:Int):Void->String;
 
 
 	/**
 	/**
 		  This function searches for all matches of the pattern `patt` in the string
 		  This function searches for all matches of the pattern `patt` in the string
 		`subj` and replaces them according to the parameters `repl` and `n`.
 		`subj` and replaces them according to the parameters `repl` and `n`.
 	**/
 	**/
-	public static function gsub(subj:String, patt:EitherType<Rex, String>, repl:Dynamic, ?n:Int, ?cf:Int, ?ef:Int):String;
+	static function gsub(subj:String, patt:EitherType<Rex, String>, repl:Dynamic, ?n:Int, ?cf:Int, ?ef:Int):String;
 }
 }

+ 10 - 10
std/lua/lib/luasocket/Socket.hx

@@ -26,14 +26,14 @@ import lua.lib.luasocket.socket.*;
 
 
 @:luaRequire("socket")
 @:luaRequire("socket")
 extern class Socket {
 extern class Socket {
-	public static var _DEBUG:Bool;
-	public static var _VERSION:String;
-	public static function tcp():Result<TcpMaster>;
-	public static function bind(address:String, port:Int, ?backlog:Int):Result<TcpServer>;
-	public static function connect(address:String, port:Int, ?locaddr:String, ?locport:Int):Result<TcpClient>;
-	public static function gettime():Float;
-	public static function select(recvt:Table<Int, Socket>, sendt:Table<Int, Socket>, ?timeout:Float):SelectResult;
-	public function close():Void;
-	public function getsockname():AddrInfo;
-	public function settimeout(value:Float, ?mode:TimeoutMode):Void;
+	static var _DEBUG:Bool;
+	static var _VERSION:String;
+	static function tcp():Result<TcpMaster>;
+	static function bind(address:String, port:Int, ?backlog:Int):Result<TcpServer>;
+	static function connect(address:String, port:Int, ?locaddr:String, ?locport:Int):Result<TcpClient>;
+	static function gettime():Float;
+	static function select(recvt:Table<Int, Socket>, sendt:Table<Int, Socket>, ?timeout:Float):SelectResult;
+	function close():Void;
+	function getsockname():AddrInfo;
+	function settimeout(value:Float, ?mode:TimeoutMode):Void;
 }
 }

+ 1 - 1
std/lua/lib/luasocket/socket/Dns.hx

@@ -24,5 +24,5 @@ package lua.lib.luasocket.socket;
 
 
 @:luaRequire("socket", "dns")
 @:luaRequire("socket", "dns")
 extern class Dns {
 extern class Dns {
-	public static function gethostname():String;
+	static function gethostname():String;
 }
 }

+ 6 - 6
std/lua/lib/luasocket/socket/TcpClient.hx

@@ -25,10 +25,10 @@ package lua.lib.luasocket.socket;
 import haxe.extern.EitherType;
 import haxe.extern.EitherType;
 
 
 extern class TcpClient extends Socket {
 extern class TcpClient extends Socket {
-	public function getpeername():AddrInfo;
-	public function receive(pattern:EitherType<ReceivePattern, Int>, ?prefix:String):Result<String>;
-	public function send(data:String, ?i:Int, ?j:Int):Result<Int>;
-	public function shutdown(mode:ShutdownMode):Result<Int>;
-	public function settimeout(value:Float, ?mode:TimeoutMode):Void;
-	public function setoption(option:TcpOption, value:EitherType<Bool, {on:Bool, timeout:Float}>):Void;
+	function getpeername():AddrInfo;
+	function receive(pattern:EitherType<ReceivePattern, Int>, ?prefix:String):Result<String>;
+	function send(data:String, ?i:Int, ?j:Int):Result<Int>;
+	function shutdown(mode:ShutdownMode):Result<Int>;
+	function settimeout(value:Float, ?mode:TimeoutMode):Void;
+	function setoption(option:TcpOption, value:EitherType<Bool, {on:Bool, timeout:Float}>):Void;
 }
 }

+ 3 - 3
std/lua/lib/luasocket/socket/TcpMaster.hx

@@ -26,8 +26,8 @@ import haxe.extern.EitherType;
 
 
 extern class TcpMaster extends Socket {
 extern class TcpMaster extends Socket {
 	// transforms master to TcpServer
 	// transforms master to TcpServer
-	public function listen(backlog:Int):Void;
+	function listen(backlog:Int):Void;
 	// transforms master to TcpClient
 	// transforms master to TcpClient
-	public function connect(address:String, port:Int):Void;
-	public function bind(address:String, port:Int):Void;
+	function connect(address:String, port:Int):Void;
+	function bind(address:String, port:Int):Void;
 }
 }

+ 3 - 3
std/lua/lib/luasocket/socket/TcpServer.hx

@@ -25,7 +25,7 @@ package lua.lib.luasocket.socket;
 import lua.*;
 import lua.*;
 
 
 extern class TcpServer extends Socket {
 extern class TcpServer extends Socket {
-	public function accept():Result<TcpClient>;
-	public function settimeout(value:Int, ?mode:TimeoutMode):Void;
-	public function setoption(option:String, value:TcpOption):Void;
+	function accept():Result<TcpClient>;
+	function settimeout(value:Int, ?mode:TimeoutMode):Void;
+	function setoption(option:String, value:TcpOption):Void;
 }
 }

+ 12 - 12
std/lua/lib/luautf8/Utf8.hx

@@ -12,7 +12,7 @@ extern class Utf8 {
 		Receives a string and returns its length. The empty string `""` has
 		Receives a string and returns its length. The empty string `""` has
 		length `0`. Embedded zeros are counted, so `"a\000bc\000"` has length `5`.
 		length `0`. Embedded zeros are counted, so `"a\000bc\000"` has length `5`.
 	**/
 	**/
-	public static function len(str:String):Int;
+	static function len(str:String):Int;
 
 
 	/**
 	/**
 		Receives zero or more integers. Returns a string with length equal to the
 		Receives zero or more integers. Returns a string with length equal to the
@@ -20,7 +20,7 @@ extern class Utf8 {
 		code equal to its corresponding argument.
 		code equal to its corresponding argument.
 		Note that numerical codes are not necessarily portable across platforms.
 		Note that numerical codes are not necessarily portable across platforms.
 	**/
 	**/
-	public static function char(codes:haxe.extern.Rest<Int>):String;
+	static function char(codes:haxe.extern.Rest<Int>):String;
 
 
 	/**
 	/**
 		Returns the substring of `str` that starts at `start` and continues until `end`;
 		Returns the substring of `str` that starts at `start` and continues until `end`;
@@ -30,12 +30,12 @@ extern class Utf8 {
 		with length `end`, and `sub(str, -end)` returns a suffix of `str` with
 		with length `end`, and `sub(str, -end)` returns a suffix of `str` with
 		length `start`.
 		length `start`.
 	**/
 	**/
-	public static function sub(str:String, start:Int, ?end:Int):StringSub;
+	static function sub(str:String, start:Int, ?end:Int):StringSub;
 
 
 	/**
 	/**
 		Returns the character code at position `index` of `str`.
 		Returns the character code at position `index` of `str`.
 	**/
 	**/
-	public static function charCodeAt(str:String, index:Int):Int;
+	static function charCodeAt(str:String, index:Int):Int;
 
 
 	/**
 	/**
 		Looks for the first match of pattern in the string `str`.
 		Looks for the first match of pattern in the string `str`.
@@ -50,20 +50,20 @@ extern class Utf8 {
 			   a plain "find substring" operation, with no characters in pattern
 			   a plain "find substring" operation, with no characters in pattern
 			   being considered "magic". Note that if plain is given, then `start` must be given as well.
 			   being considered "magic". Note that if plain is given, then `start` must be given as well.
 	**/
 	**/
-	public static function find(str:String, target:String, ?start:Int, ?plain:Bool):StringFind;
+	static function find(str:String, target:String, ?start:Int, ?plain:Bool):StringFind;
 
 
 	/**
 	/**
 		Returns the internal numerical codes of the characters `str[index]`.
 		Returns the internal numerical codes of the characters `str[index]`.
 		Note that numerical codes are not necessarily portable across platforms.
 		Note that numerical codes are not necessarily portable across platforms.
 	**/
 	**/
-	public static function byte(str:String, ?index:Int):Int;
+	static function byte(str:String, ?index:Int):Int;
 
 
 	/**
 	/**
 
 
 	**/
 	**/
 	@:overload(function(str:String, pattern:String, replace:String->Void, ?n:Int):String {})
 	@:overload(function(str:String, pattern:String, replace:String->Void, ?n:Int):String {})
 	@:overload(function(str:String, pattern:String, replace:String->String, ?n:Int):String {})
 	@:overload(function(str:String, pattern:String, replace:String->String, ?n:Int):String {})
-	public static function gsub(str:String, pattern:String, replace:String, ?n:Int):String;
+	static function gsub(str:String, pattern:String, replace:String, ?n:Int):String;
 
 
 	/**
 	/**
 		Returns an iterator function that, each time it is called, returns the next
 		Returns an iterator function that, each time it is called, returns the next
@@ -71,7 +71,7 @@ extern class Utf8 {
 		then the whole match is produced in each call.
 		then the whole match is produced in each call.
 	**/
 	**/
 	@:overload(function(str:String, pattern:String, match:Void->String, ?n:Int):String->Void {})
 	@:overload(function(str:String, pattern:String, match:Void->String, ?n:Int):String->Void {})
-	public static function gmatch(str:String, pattern:String):Void->String;
+	static function gmatch(str:String, pattern:String):Void->String;
 
 
 	/**
 	/**
 		Looks for the first match of pattern in the string s. If it finds one,
 		Looks for the first match of pattern in the string s. If it finds one,
@@ -80,23 +80,23 @@ extern class Utf8 {
 		The optional argument `n` specifies where to start the search;
 		The optional argument `n` specifies where to start the search;
 		its default value is `1` and can be negative.
 		its default value is `1` and can be negative.
 	**/
 	**/
-	public static function match(str:String, pattern:String, ?n:Int):String;
+	static function match(str:String, pattern:String, ?n:Int):String;
 
 
 	/**
 	/**
 		Receives a string and returns a copy of this string with all lowercase
 		Receives a string and returns a copy of this string with all lowercase
 		letters changed to uppercase. All other characters are left unchanged.
 		letters changed to uppercase. All other characters are left unchanged.
 		The definition of what a lowercase letter is depends on the current locale.
 		The definition of what a lowercase letter is depends on the current locale.
 	**/
 	**/
-	public static function upper(str:String):String;
+	static function upper(str:String):String;
 
 
 	/**
 	/**
 		Receives a string and returns a copy of this string with all uppercase
 		Receives a string and returns a copy of this string with all uppercase
 		letters changed to lowercase. All other characters are left unchanged.
 		letters changed to lowercase. All other characters are left unchanged.
 		The definition of what an uppercase letter is depends on the current locale.
 		The definition of what an uppercase letter is depends on the current locale.
 	**/
 	**/
-	public static function lower(str:String):String;
+	static function lower(str:String):String;
 
 
-	public static function codes(str:String):Void->StringCodePoint;
+	static function codes(str:String):Void->StringCodePoint;
 }
 }
 
 
 @:multiReturn extern class StringFind {
 @:multiReturn extern class StringFind {

+ 25 - 25
std/lua/lib/luv/Misc.hx

@@ -24,42 +24,42 @@ package lua.lib.luv;
 
 
 @:luaRequire("luv")
 @:luaRequire("luv")
 extern class Misc {
 extern class Misc {
-	public static function chdir(path:String):Bool;
+	static function chdir(path:String):Bool;
 
 
-	public static function cpu_info():Table<Int, CpuInfo>;
+	static function cpu_info():Table<Int, CpuInfo>;
 
 
-	public static function cwd():String;
-	public static function exepath():String;
-	public static function get_process_title():String;
-	public static function get_total_memory():Int;
-	public static function get_free_memory():Int;
-	public static function getpid():Int;
+	static function cwd():String;
+	static function exepath():String;
+	static function get_process_title():String;
+	static function get_total_memory():Int;
+	static function get_free_memory():Int;
+	static function getpid():Int;
 
 
-	public static function getrusage():ResourceUsage;
-	public static function guess_handle(handle:Int):String;
-	public static function hrtime():Float;
+	static function getrusage():ResourceUsage;
+	static function guess_handle(handle:Int):String;
+	static function hrtime():Float;
 
 
-    public static function gettimeofday() : TimeOfDay;
+    static function gettimeofday() : TimeOfDay;
 
 
 	// TODO: implement this
 	// TODO: implement this
-	public static function interface_addresses() : Dynamic;
+	static function interface_addresses() : Dynamic;
 
 
-	public static function loadavg():Float;
-	public static function resident_set_memory():Int;
-	public static function set_process_title(title:String):Bool;
-	public static function uptime():Int;
-	public static function version():Int;
-	public static function version_string():String;
+	static function loadavg():Float;
+	static function resident_set_memory():Int;
+	static function set_process_title(title:String):Bool;
+	static function uptime():Int;
+	static function version():Int;
+	static function version_string():String;
 
 
 	// Windows only
 	// Windows only
-	public static function getuid():Int;
-	public static function setuid(from:Int, to:Int):String;
-	public static function getgid():Int;
-	public static function setgid(from:Int, to:Int):Void;
+	static function getuid():Int;
+	static function setuid(from:Int, to:Int):String;
+	static function getgid():Int;
+	static function setgid(from:Int, to:Int):Void;
 
 
 	// Windows only
 	// Windows only
-	public static function print_all_handles():Table<Int, String>;
-	public static function print_active_handles():Table<Int, String>;
+	static function print_all_handles():Table<Int, String>;
+	static function print_active_handles():Table<Int, String>;
 
 
 }
 }
 
 

+ 30 - 32
std/lua/lib/luv/Os.hx

@@ -24,51 +24,49 @@ package lua.lib.luv;
 
 
 @:luaRequire("luv")
 @:luaRequire("luv")
 extern class Os {
 extern class Os {
-    @:native("os_homedir")
-	public static function homedir():String;
+	@:native("os_homedir")
+	static function homedir():String;
 
 
-    @:native("os_tmpdir")
-	public static function tmpdir():String;
+	@:native("os_tmpdir")
+	static function tmpdir():String;
 
 
-    @:native("os_get_passwd")
-	public static function get_passwd():String;
+	@:native("os_get_passwd")
+	static function get_passwd():String;
 
 
-    @:native("os_getenv")
-	public static function getenv(env:String):String;
+	@:native("os_getenv")
+	static function getenv(env:String):String;
 
 
-    @:native("os_setenv")
-	public static function setenv(env:String, value:String):Void;
+	@:native("os_setenv")
+	static function setenv(env:String, value:String):Void;
 
 
-    @:native("os_unsetenv")
-	public static function unsetenv(env:String):Void;
+	@:native("os_unsetenv")
+	static function unsetenv(env:String):Void;
 
 
-    @:native("os_gethostname")
-    public static function gethostname():String;
+	@:native("os_gethostname")
+	static function gethostname():String;
 
 
-    @:native("os_environ")
-    public static function environ() : Table<String,String>;
+	@:native("os_environ")
+	static function environ():Table<String, String>;
 
 
-    @:native("os_uname")
-    public static function uname() : Uname;
+	@:native("os_uname")
+	static function uname():Uname;
 
 
-    @:native("os_getpid")
-    public static function getpid() : Int;
+	@:native("os_getpid")
+	static function getpid():Int;
 
 
-    @:native("os_getppid")
-    public static function getppid() : Int;
+	@:native("os_getppid")
+	static function getppid():Int;
 
 
-    @:native("os_getpriority")
-    public static function getpriority(pid :Int) : Int;
-
-    @:native("os_setpriority")
-    public static function setpriority(pid :Int, priority : Int) : Bool;
+	@:native("os_getpriority")
+	static function getpriority(pid:Int):Int;
 
 
+	@:native("os_setpriority")
+	static function setpriority(pid:Int, priority:Int):Bool;
 }
 }
 
 
 typedef Uname = {
 typedef Uname = {
-    sysname : String,
-    release : String,
-    version : String,
-    machine : String
+	sysname:String,
+	release:String,
+	version:String,
+	machine:String
 }
 }
-

+ 47 - 47
std/lua/lib/luv/fs/FileSystem.hx

@@ -127,8 +127,8 @@ extern class FileSystem {
 	static function symlink(oldpath:String, newpath:String, flags:Int):Bool;
 	static function symlink(oldpath:String, newpath:String, flags:Int):Bool;
 
 
 	@:native("fs_readlink")
 	@:native("fs_readlink")
-	@:overload(function(path : String, cb : String->String->Void) : Request {})
-	static function readlink(path : String) : String;
+	@:overload(function(path:String, cb:String->String->Void):Request {})
+	static function readlink(path:String):String;
 
 
 	@:native("fs_realpath")
 	@:native("fs_realpath")
 	@:overload(function(path:String, cb:String->String->Void):Request {})
 	@:overload(function(path:String, cb:String->String->Void):Request {})
@@ -142,74 +142,74 @@ extern class FileSystem {
 	@:overload(function(descriptor:FileDescriptor, uid:Int, gid:Int, cb:String->Bool->Void):Request {})
 	@:overload(function(descriptor:FileDescriptor, uid:Int, gid:Int, cb:String->Bool->Void):Request {})
 	static function fchown(descriptor:FileDescriptor, uid:Int, gid:Int):Bool;
 	static function fchown(descriptor:FileDescriptor, uid:Int, gid:Int):Bool;
 
 
-    /**
-      Not available on windows
-    **/
+	/**
+		Not available on windows
+	**/
 	@:native("fs_lchown")
 	@:native("fs_lchown")
 	@:overload(function(descriptor:FileDescriptor, uid:Int, gid:Int, cb:String->Bool->Void):Request {})
 	@:overload(function(descriptor:FileDescriptor, uid:Int, gid:Int, cb:String->Bool->Void):Request {})
 	static function lchown(descriptor:FileDescriptor, uid:Int, gid:Int):Bool;
 	static function lchown(descriptor:FileDescriptor, uid:Int, gid:Int):Bool;
 
 
-    @:native("fs_statfs")
-    @:overload(function(path:String, cb:StatFs->Bool->Void):Request{})
-    static function statfs(path:String):StatFs;
+	@:native("fs_statfs")
+	@:overload(function(path:String, cb:StatFs->Bool->Void):Request {})
+	static function statfs(path:String):StatFs;
 
 
-    @:native("fs_opendir")
-    @:overload(function(path:String, cb:Handle->Bool->Void):Request{})
-    static function opendir(path : String) : Handle;
+	@:native("fs_opendir")
+	@:overload(function(path:String, cb:Handle->Bool->Void):Request {})
+	static function opendir(path:String):Handle;
 
 
-    @:native("fs_readdir")
-    @:overload(function(dir:Handle, cb:Table<Int,NameType>->Bool->Void):Request{})
-    static function readdir(path : String) : Table<Int,NameType>;
+	@:native("fs_readdir")
+	@:overload(function(dir:Handle, cb:Table<Int, NameType>->Bool->Void):Request {})
+	static function readdir(path:String):Table<Int, NameType>;
 
 
-    @:native("fs_closedir")
-    @:overload(function(dir:Handle, cb:Bool->Void):Request{})
-    static function closedir(dir:Handle):Bool;
+	@:native("fs_closedir")
+	@:overload(function(dir:Handle, cb:Bool->Void):Request {})
+	static function closedir(dir:Handle):Bool;
 }
 }
 
 
 extern class ScanDirMarker {}
 extern class ScanDirMarker {}
 
 
 @:multiReturn
 @:multiReturn
 extern class ScandirNext {
 extern class ScandirNext {
-	var name : String;
-	var type : String;
+	var name:String;
+	var type:String;
 }
 }
 
 
 typedef NameType = {
 typedef NameType = {
-    name : String,
-    type : String
+	name:String,
+	type:String
 }
 }
 
 
 typedef Stat = {
 typedef Stat = {
-	ino       : Int,
-	ctime     : TimeStamp,
-	uid       : Int,
-	dev       : Int,
-	nlink     : Int,
-	mode      : Int,
-	size      : Int,
-	birthtime : TimeStamp,
-	gid       : Int,
-	type      : String,
-	rdev      : Int,
-	gen       : Int,
-	blocks    : Int,
-	mtime     : TimeStamp,
-	atime     : TimeStamp,
-	blksize   : Int,
-	flags     : Int
+	ino:Int,
+	ctime:TimeStamp,
+	uid:Int,
+	dev:Int,
+	nlink:Int,
+	mode:Int,
+	size:Int,
+	birthtime:TimeStamp,
+	gid:Int,
+	type:String,
+	rdev:Int,
+	gen:Int,
+	blocks:Int,
+	mtime:TimeStamp,
+	atime:TimeStamp,
+	blksize:Int,
+	flags:Int
 }
 }
 
 
 typedef TimeStamp = {
 typedef TimeStamp = {
-	sec  : Int,
-	nsec : Int
+	sec:Int,
+	nsec:Int
 }
 }
 
 
 typedef StatFs = {
 typedef StatFs = {
-    type   : Int,
-    bsize  : Int,
-    blocks : Int,
-    bfree  : Int,
-    bavail : Int,
-    files  : Int,
-    ffree  : Int
+	type:Int,
+	bsize:Int,
+	blocks:Int,
+	bfree:Int,
+	bavail:Int,
+	files:Int,
+	ffree:Int
 }
 }

+ 2 - 2
std/lua/lib/luv/net/Dns.hx

@@ -25,10 +25,10 @@ package lua.lib.luv.net;
 @:luaRequire("luv")
 @:luaRequire("luv")
 extern class Dns {
 extern class Dns {
 	@:overload(function(node:String, ?service:String, ?hints:AddrInfo, cb:String->Table<Int, AddrInfo>->Void):Request {})
 	@:overload(function(node:String, ?service:String, ?hints:AddrInfo, cb:String->Table<Int, AddrInfo>->Void):Request {})
-	public static function getaddrinfo(node:String, ?service:String, ?hints:AddrInfo):Result<Table<Int, AddrInfo>>;
+	static function getaddrinfo(node:String, ?service:String, ?hints:AddrInfo):Result<Table<Int, AddrInfo>>;
 
 
 	@:overload(function(ip:String, ?port:Int, ?family:String, ?cb:String->AddrInfo->Void):Request {})
 	@:overload(function(ip:String, ?port:Int, ?family:String, ?cb:String->AddrInfo->Void):Request {})
-	public static function getnameinfo(info:AddrInfo):Result<String>;
+	static function getnameinfo(info:AddrInfo):Result<String>;
 }
 }
 
 
 typedef AddrInfo = {
 typedef AddrInfo = {

+ 2 - 2
std/php/Closure.hx

@@ -29,6 +29,6 @@ import haxe.extern.Rest;
 **/
 **/
 @:native('Closure')
 @:native('Closure')
 extern class Closure {
 extern class Closure {
-	public function bindTo(newthis:{}, newscope:Dynamic = "static"):Closure;
-	public function call(newthis:{}, args:Rest<Dynamic>):Dynamic;
+	function bindTo(newthis:{}, newscope:Dynamic = "static"):Closure;
+	function call(newthis:{}, args:Rest<Dynamic>):Dynamic;
 }
 }

+ 18 - 18
std/php/reflection/ReflectionMethod.hx

@@ -34,23 +34,23 @@ extern class ReflectionMethod extends ReflectionFunctionAbstract {
 	@:phpClassConst static final IS_ABSTRACT:Int;
 	@:phpClassConst static final IS_ABSTRACT:Int;
 	@:phpClassConst static final IS_FINAL:Int;
 	@:phpClassConst static final IS_FINAL:Int;
 
 
-	// public var class : String;
-	public static function export(className:String, name:String, ?returnValue:Bool):String;
+	// var class : String;
+	static function export(className:String, name:String, ?returnValue:Bool):String;
 
 
-	public function new(cls:Dynamic, name:String):Void;
-	public function getClosure(object:{}):Function;
-	public function getDeclaringClass():ReflectionClass;
-	public function getModifiers():Int;
-	public function getPrototype():ReflectionMethod;
-	public function invoke(object:{}, args:Rest<Dynamic>):Dynamic;
-	public function invokeArgs(object:{}, args:NativeIndexedArray<Dynamic>):Dynamic;
-	public function isAbstract():Bool;
-	public function isConstructor():Bool;
-	public function isDestructor():Bool;
-	public function isFinal():Bool;
-	public function isPrivate():Bool;
-	public function isProtected():Bool;
-	public function isPublic():Bool;
-	public function isStatic():Bool;
-	public function setAccessible(accessible:Bool):Void;
+	function new(cls:Dynamic, name:String):Void;
+	function getClosure(object:{}):Function;
+	function getDeclaringClass():ReflectionClass;
+	function getModifiers():Int;
+	function getPrototype():ReflectionMethod;
+	function invoke(object:{}, args:Rest<Dynamic>):Dynamic;
+	function invokeArgs(object:{}, args:NativeIndexedArray<Dynamic>):Dynamic;
+	function isAbstract():Bool;
+	function isConstructor():Bool;
+	function isDestructor():Bool;
+	function isFinal():Bool;
+	function isPrivate():Bool;
+	function isProtected():Bool;
+	function isPublic():Bool;
+	function isStatic():Bool;
+	function setAccessible(accessible:Bool):Void;
 }
 }

+ 6 - 6
std/python/Bytearray.hx

@@ -26,13 +26,13 @@ import python.Syntax;
 
 
 @:native("bytearray")
 @:native("bytearray")
 extern class Bytearray implements ArrayAccess<Int> {
 extern class Bytearray implements ArrayAccess<Int> {
-	public var length(get, never):Int;
+	var length(get, never):Int;
 
 
 	@:overload(function():Void {})
 	@:overload(function():Void {})
 	@:overload(function(it:Array<Int>):Void {})
 	@:overload(function(it:Array<Int>):Void {})
 	@:overload(function(it:NativeIterable<Int>):Void {})
 	@:overload(function(it:NativeIterable<Int>):Void {})
 	@:overload(function(size:Int):Void {})
 	@:overload(function(size:Int):Void {})
-	public function new(source:String, encoding:String, ?errors:Dynamic):Void;
+	function new(source:String, encoding:String, ?errors:Dynamic):Void;
 
 
 	private inline function get_length():Int {
 	private inline function get_length():Int {
 		return python.internal.UBuiltins.len(this);
 		return python.internal.UBuiltins.len(this);
@@ -41,15 +41,15 @@ extern class Bytearray implements ArrayAccess<Int> {
 	function append(x:Int):Void;
 	function append(x:Int):Void;
 	function extend(t:Bytearray):Void;
 	function extend(t:Bytearray):Void;
 
 
-	public inline function get(i:Int):Int {
+	inline function get(i:Int):Int {
 		return Syntax.arrayAccess(this, i);
 		return Syntax.arrayAccess(this, i);
 	}
 	}
 
 
-	public inline function set(i:Int, v:Int):Void {
+	inline function set(i:Int, v:Int):Void {
 		this.__setitem__(i, v);
 		this.__setitem__(i, v);
 	}
 	}
 
 
-	public function __setitem__(i:Int, v:Int):Void;
+	function __setitem__(i:Int, v:Int):Void;
 
 
-	public function decode(encoding:String = "utf-8", errors:String = "strict"):String;
+	function decode(encoding:String = "utf-8", errors:String = "strict"):String;
 }
 }

+ 1 - 1
std/python/Bytes.hx

@@ -26,5 +26,5 @@ import python.Bytearray;
 
 
 @:native("bytes")
 @:native("bytes")
 extern class Bytes extends Bytearray {
 extern class Bytes extends Bytearray {
-	// public function decode(encoding:String="utf-8", errors:String="strict"):String;
+	// function decode(encoding:String="utf-8", errors:String="strict"):String;
 }
 }

+ 10 - 10
std/python/Syntax.hx

@@ -61,19 +61,19 @@ extern class Syntax {
 	extern static function _newInstance(c:Dynamic, args:Array<Dynamic>):Dynamic;
 	extern static function _newInstance(c:Dynamic, args:Array<Dynamic>):Dynamic;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function isIn(a:Dynamic, b:Dynamic):Bool;
+	extern static function isIn(a:Dynamic, b:Dynamic):Bool;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function delete(a:Dynamic):Void;
+	extern static function delete(a:Dynamic):Void;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function binop(a:Dynamic, op:String, b:Dynamic):Dynamic;
+	extern static function binop(a:Dynamic, op:String, b:Dynamic):Dynamic;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function assign(a:Dynamic, b:Dynamic):Void;
+	extern static function assign(a:Dynamic, b:Dynamic):Void;
 
 
 	#if !macro
 	#if !macro
-	public static function code(code:String, args:Rest<Dynamic>):Dynamic;
+	static function code(code:String, args:Rest<Dynamic>):Dynamic;
 	#end
 	#end
 
 
 	@:noUsing
 	@:noUsing
@@ -86,7 +86,7 @@ extern class Syntax {
 
 
 	#if !macro
 	#if !macro
 	@:noUsing
 	@:noUsing
-	public static function _pythonCode<T>(b:String, args:Array<Dynamic>):T;
+	static function _pythonCode<T>(b:String, args:Array<Dynamic>):T;
 	#end
 	#end
 	@:noUsing
 	@:noUsing
 	macro public static function arrayAccess(x:Expr, rest:Array<Expr>):ExprOf<Dynamic> {
 	macro public static function arrayAccess(x:Expr, rest:Array<Expr>):ExprOf<Dynamic> {
@@ -101,7 +101,7 @@ extern class Syntax {
 	extern static function _arrayAccess(a:Dynamic, args:Array<Dynamic>, ?trailingColon:Bool = false):Dynamic;
 	extern static function _arrayAccess(a:Dynamic, args:Array<Dynamic>, ?trailingColon:Bool = false):Dynamic;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function arraySet(a:Dynamic, i:Dynamic, v:Dynamic):Dynamic;
+	extern static function arraySet(a:Dynamic, i:Dynamic, v:Dynamic):Dynamic;
 
 
 	extern static function _foreach(id:Dynamic, it:Dynamic, block:Dynamic):Dynamic;
 	extern static function _foreach(id:Dynamic, it:Dynamic, block:Dynamic):Dynamic;
 
 
@@ -142,7 +142,7 @@ extern class Syntax {
 	extern static function call(e:Dynamic, args:Array<Dynamic>):Dynamic;
 	extern static function call(e:Dynamic, args:Array<Dynamic>):Dynamic;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function field(o:Dynamic, field:String):Dynamic;
+	extern static function field(o:Dynamic, field:String):Dynamic;
 
 
 	@:noUsing
 	@:noUsing
 	macro public static function tuple(args:Array<Expr>):Dynamic {
 	macro public static function tuple(args:Array<Expr>):Dynamic {
@@ -153,7 +153,7 @@ extern class Syntax {
 	extern static function _tuple(args:Array<Dynamic>):Dynamic;
 	extern static function _tuple(args:Array<Dynamic>):Dynamic;
 
 
 	@:noUsing
 	@:noUsing
-	extern public static function varArgs(args:Array<Dynamic>):Dynamic;
+	extern static function varArgs(args:Array<Dynamic>):Dynamic;
 
 
 	macro public static function callNamedUntyped(e:Expr, args:Expr):Expr {
 	macro public static function callNamedUntyped(e:Expr, args:Expr):Expr {
 		return macro @:pos(e.pos) $self._callNamedUntyped($e, $args);
 		return macro @:pos(e.pos) $self._callNamedUntyped($e, $args);
@@ -161,5 +161,5 @@ extern class Syntax {
 
 
 	extern static function _callNamedUntyped(e:Dynamic, args:Dynamic):Dynamic;
 	extern static function _callNamedUntyped(e:Dynamic, args:Dynamic):Dynamic;
 
 
-	extern public static function opPow(a:Int, b:Int):Int;
+	extern static function opPow(a:Int, b:Int):Int;
 }
 }

+ 23 - 23
std/python/_std/Array.hx

@@ -28,91 +28,91 @@ import python.NativeIterator;
 @:native("list")
 @:native("list")
 @:coreApi
 @:coreApi
 extern class Array<T> implements ArrayAccess<T> {
 extern class Array<T> implements ArrayAccess<T> {
-	public var length(default, null):Int;
+	var length(default, null):Int;
 
 
-	public function new():Void;
+	function new():Void;
 
 
-	public inline function concat(a:Array<T>):Array<T> {
+	inline function concat(a:Array<T>):Array<T> {
 		return ArrayImpl.concat(this, a);
 		return ArrayImpl.concat(this, a);
 	}
 	}
 
 
-	public inline function copy():Array<T> {
+	inline function copy():Array<T> {
 		return ArrayImpl.copy(this);
 		return ArrayImpl.copy(this);
 	}
 	}
 
 
-	@:runtime public inline function iterator():haxe.iterators.ArrayIterator<T> {
+	@:runtime inline function iterator():haxe.iterators.ArrayIterator<T> {
 		return new haxe.iterators.ArrayIterator(this);
 		return new haxe.iterators.ArrayIterator(this);
 	}
 	}
 
 
-	public inline function insert(pos:Int, x:T):Void {
+	inline function insert(pos:Int, x:T):Void {
 		ArrayImpl.insert(this, pos, x);
 		ArrayImpl.insert(this, pos, x);
 	}
 	}
 
 
-	@:runtime public inline function join(sep:String):String {
+	@:runtime inline function join(sep:String):String {
 		return ArrayImpl.join(this, sep);
 		return ArrayImpl.join(this, sep);
 	}
 	}
 
 
-	public inline function toString():String {
+	inline function toString():String {
 		return ArrayImpl.toString(this);
 		return ArrayImpl.toString(this);
 	}
 	}
 
 
-	@:runtime public inline function pop():Null<T> {
+	@:runtime inline function pop():Null<T> {
 		return ArrayImpl.pop(this);
 		return ArrayImpl.pop(this);
 	}
 	}
 
 
-	@:runtime public inline function push(x:T):Int {
+	@:runtime inline function push(x:T):Int {
 		return ArrayImpl.push(this, x);
 		return ArrayImpl.push(this, x);
 	}
 	}
 
 
-	public inline function unshift(x:T):Void {
+	inline function unshift(x:T):Void {
 		ArrayImpl.unshift(this, x);
 		ArrayImpl.unshift(this, x);
 	}
 	}
 
 
-	public inline function indexOf(x:T, ?fromIndex:Int):Int {
+	inline function indexOf(x:T, ?fromIndex:Int):Int {
 		return ArrayImpl.indexOf(this, x, fromIndex);
 		return ArrayImpl.indexOf(this, x, fromIndex);
 	}
 	}
 
 
-	public inline function lastIndexOf(x:T, ?fromIndex:Int):Int {
+	inline function lastIndexOf(x:T, ?fromIndex:Int):Int {
 		return ArrayImpl.lastIndexOf(this, x, fromIndex);
 		return ArrayImpl.lastIndexOf(this, x, fromIndex);
 	}
 	}
 
 
-	public inline function remove(x:T):Bool {
+	inline function remove(x:T):Bool {
 		return ArrayImpl.remove(this, x);
 		return ArrayImpl.remove(this, x);
 	}
 	}
 
 
-	public inline function contains(x:T):Bool {
+	inline function contains(x:T):Bool {
 		return ArrayImpl.contains(this,x);
 		return ArrayImpl.contains(this,x);
 	}
 	}
 
 
-	public inline function reverse():Void {
+	inline function reverse():Void {
 		ArrayImpl.reverse(this);
 		ArrayImpl.reverse(this);
 	}
 	}
 
 
-	@:runtime public inline function shift():Null<T> {
+	@:runtime inline function shift():Null<T> {
 		return ArrayImpl.shift(this);
 		return ArrayImpl.shift(this);
 	}
 	}
 
 
-	public inline function slice(pos:Int, ?end:Int):Array<T> {
+	inline function slice(pos:Int, ?end:Int):Array<T> {
 		return ArrayImpl.slice(this, pos, end);
 		return ArrayImpl.slice(this, pos, end);
 	}
 	}
 
 
-	public inline function sort(f:T->T->Int):Void {
+	inline function sort(f:T->T->Int):Void {
 		ArrayImpl.sort(this, f);
 		ArrayImpl.sort(this, f);
 	}
 	}
 
 
-	public inline function splice(pos:Int, len:Int):Array<T> {
+	inline function splice(pos:Int, len:Int):Array<T> {
 		return ArrayImpl.splice(this, pos, len);
 		return ArrayImpl.splice(this, pos, len);
 	}
 	}
 
 
-	@:runtime public inline function map<S>(f:T->S):Array<S> {
+	@:runtime inline function map<S>(f:T->S):Array<S> {
 		return ArrayImpl.map(this, f);
 		return ArrayImpl.map(this, f);
 	}
 	}
 
 
-	@:runtime public inline function filter(f:T->Bool):Array<T> {
+	@:runtime inline function filter(f:T->Bool):Array<T> {
 		return ArrayImpl.filter(this, f);
 		return ArrayImpl.filter(this, f);
 	}
 	}
 
 
-	public inline function resize(len:Int):Void {
+	inline function resize(len:Int):Void {
 		ArrayImpl.resize(this, len);
 		ArrayImpl.resize(this, len);
 	}
 	}
 
 

+ 9 - 9
std/python/_std/Math.hx

@@ -33,23 +33,23 @@ extern class Math {
 
 
 	static var NaN(default, null):Float;
 	static var NaN(default, null):Float;
 
 
-	public static inline function abs(v:Float):Float {
+	static inline function abs(v:Float):Float {
 		return (Math : Dynamic).fabs(v);
 		return (Math : Dynamic).fabs(v);
 	}
 	}
 
 
-	public static inline function min(a:Float, b:Float):Float {
+	static inline function min(a:Float, b:Float):Float {
 		return if (isNaN(a)) a else if (isNaN(b)) b else UBuiltins.min(a, b);
 		return if (isNaN(a)) a else if (isNaN(b)) b else UBuiltins.min(a, b);
 	}
 	}
 
 
-	public static inline function max(a:Float, b:Float):Float {
+	static inline function max(a:Float, b:Float):Float {
 		return if (isNaN(a)) a else if (isNaN(b)) b else UBuiltins.max(a, b);
 		return if (isNaN(a)) a else if (isNaN(b)) b else UBuiltins.max(a, b);
 	}
 	}
 
 
-	public static inline function sin(v:Float):Float {
+	static inline function sin(v:Float):Float {
 		return if (v == POSITIVE_INFINITY || v == NEGATIVE_INFINITY) NaN else python.lib.Math.sin(v);
 		return if (v == POSITIVE_INFINITY || v == NEGATIVE_INFINITY) NaN else python.lib.Math.sin(v);
 	}
 	}
 
 
-	public static inline function cos(v:Float):Float {
+	static inline function cos(v:Float):Float {
 		return if (v == POSITIVE_INFINITY || v == NEGATIVE_INFINITY) NaN else python.lib.Math.cos(v);
 		return if (v == POSITIVE_INFINITY || v == NEGATIVE_INFINITY) NaN else python.lib.Math.cos(v);
 	}
 	}
 
 
@@ -59,7 +59,7 @@ extern class Math {
 	static function atan(v:Float):Float;
 	static function atan(v:Float):Float;
 	static function atan2(y:Float, x:Float):Float;
 	static function atan2(y:Float, x:Float):Float;
 
 
-	public static inline function exp(v:Float):Float {
+	static inline function exp(v:Float):Float {
 		if (v == NEGATIVE_INFINITY) {
 		if (v == NEGATIVE_INFINITY) {
 			return 0.0;
 			return 0.0;
 		} else if (v == POSITIVE_INFINITY) {
 		} else if (v == POSITIVE_INFINITY) {
@@ -69,17 +69,17 @@ extern class Math {
 		}
 		}
 	}
 	}
 
 
-	public static inline function log(v:Float):Float {
+	static inline function log(v:Float):Float {
 		return if (v == 0.0) NEGATIVE_INFINITY else if (v < 0.0) NaN else python.lib.Math.log(v);
 		return if (v == 0.0) NEGATIVE_INFINITY else if (v < 0.0) NaN else python.lib.Math.log(v);
 	}
 	}
 
 
 	static function pow(v:Float, exp:Float):Float;
 	static function pow(v:Float, exp:Float):Float;
 
 
-	public static inline function sqrt(v:Float):Float {
+	static inline function sqrt(v:Float):Float {
 		return if (v < 0) NaN else python.lib.Math.sqrt(v);
 		return if (v < 0) NaN else python.lib.Math.sqrt(v);
 	}
 	}
 
 
-	public static inline function round(v:Float):Int {
+	static inline function round(v:Float):Int {
 		return Math.floor(v + 0.5);
 		return Math.floor(v + 0.5);
 	}
 	}
 
 

+ 6 - 6
std/python/_std/String.hx

@@ -31,19 +31,19 @@ extern class String {
 
 
 	function new(string:String):Void;
 	function new(string:String):Void;
 
 
-	@:runtime public inline function toUpperCase():String {
+	@:runtime inline function toUpperCase():String {
 		return StringImpl.toUpperCase(this);
 		return StringImpl.toUpperCase(this);
 	}
 	}
 
 
-	@:runtime public inline function toLowerCase():String {
+	@:runtime inline function toLowerCase():String {
 		return StringImpl.toLowerCase(this);
 		return StringImpl.toLowerCase(this);
 	}
 	}
 
 
-	inline public function charAt(index:Int):String {
+	inline function charAt(index:Int):String {
 		return StringImpl.charAt(this, index);
 		return StringImpl.charAt(this, index);
 	}
 	}
 
 
-	inline public function charCodeAt(index:Int):Null<Int> {
+	inline function charCodeAt(index:Int):Null<Int> {
 		return StringImpl.charCodeAt(this, index);
 		return StringImpl.charCodeAt(this, index);
 	}
 	}
 
 
@@ -59,7 +59,7 @@ extern class String {
 		return StringImpl.split(this, delimiter);
 		return StringImpl.split(this, delimiter);
 	}
 	}
 
 
-	inline public function substr(pos:Int, ?len:Int):String {
+	inline function substr(pos:Int, ?len:Int):String {
 		return StringImpl.substr(this, pos, len);
 		return StringImpl.substr(this, pos, len);
 	}
 	}
 
 
@@ -70,7 +70,7 @@ extern class String {
 	inline function toString():String
 	inline function toString():String
 		return StringImpl.toString(this);
 		return StringImpl.toString(this);
 
 
-	public static inline function fromCharCode(code:Int):String {
+	static inline function fromCharCode(code:Int):String {
 		return StringImpl.fromCharCode(code);
 		return StringImpl.fromCharCode(code);
 	}
 	}
 }
 }

+ 86 - 86
std/python/lib/Builtins.hx

@@ -32,20 +32,20 @@ import python.NativeIterator;
 @:pythonImport("builtins")
 @:pythonImport("builtins")
 extern class Builtins {
 extern class Builtins {
 	@:overload(function(f:Int):Int {})
 	@:overload(function(f:Int):Int {})
-	public static function abs(x:Float):Float;
-	public static function all(i:Iterable<Bool>):Bool;
-	public static function any(i:Iterable<Bool>):Bool;
+	static function abs(x:Float):Float;
+	static function all(i:Iterable<Bool>):Bool;
+	static function any(i:Iterable<Bool>):Bool;
 
 
-	public static function bool(x:Dynamic):Bool;
+	static function bool(x:Dynamic):Bool;
 
 
-	public static function issubclass(x:Class<Dynamic>, from:Class<Dynamic>):Bool;
-	public static function callable(x:Dynamic):Bool;
+	static function issubclass(x:Class<Dynamic>, from:Class<Dynamic>):Bool;
+	static function callable(x:Dynamic):Bool;
 
 
 	@:overload(function(obj:Dynamic, f:Tuple<Dynamic>):Bool {})
 	@:overload(function(obj:Dynamic, f:Tuple<Dynamic>):Bool {})
-	public static function isinstance(obj:Dynamic, cl:Dynamic):Bool;
+	static function isinstance(obj:Dynamic, cl:Dynamic):Bool;
 
 
-	public static function hasattr(obj:Dynamic, attr:String):Bool;
-	public static function getattr(obj:Dynamic, attr:String):Dynamic;
+	static function hasattr(obj:Dynamic, attr:String):Bool;
+	static function getattr(obj:Dynamic, attr:String):Dynamic;
 
 
 	@:overload(function(f:Set<Dynamic>):Int {})
 	@:overload(function(f:Set<Dynamic>):Int {})
 	@:overload(function(f:StringBuf):Int {})
 	@:overload(function(f:StringBuf):Int {})
@@ -55,102 +55,102 @@ extern class Builtins {
 	@:overload(function(f:DictView<Dynamic>):Int {})
 	@:overload(function(f:DictView<Dynamic>):Int {})
 	@:overload(function(f:Bytearray):Int {})
 	@:overload(function(f:Bytearray):Int {})
 	@:overload(function(f:Tuple<Dynamic>):Int {})
 	@:overload(function(f:Tuple<Dynamic>):Int {})
-	public static function len(x:String):Int;
+	static function len(x:String):Int;
 
 
-	public static function open(file:String, mode:String, ?buffering:Int = -1, ?encoding:String = null, ?errors:String, ?newline:String, ?closefd:Bool,
+	static function open(file:String, mode:String, ?buffering:Int = -1, ?encoding:String = null, ?errors:String, ?newline:String, ?closefd:Bool,
 		?opener:String->Int->FileDescriptor):IOBase;
 		?opener:String->Int->FileDescriptor):IOBase;
 
 
-	// public static function divmod():Void;
-	// public static function input():Void;
-	// public static function staticmethod():Void;
-	// public static function enumerate():Void;
+	// static function divmod():Void;
+	// static function input():Void;
+	// static function staticmethod():Void;
+	// static function enumerate():Void;
 	@:overload(function(x:Dynamic, base:Int):Int {})
 	@:overload(function(x:Dynamic, base:Int):Int {})
-	public static function int(x:Dynamic):Int;
-	public static function ord(s:String):Int;
-	public static function str(o:Dynamic):String;
-
-	// public static function eval():Void;
-	// public static function pow():Void;
-	// public static function sum():Void;
-	// public static function basestring():Void;
-	// public static function execfile():Void;
-	public static function print(o:Dynamic):Void;
-
-	// public static function super():Void;
-	// public static function bin():Void;
-	// public static function file():Void;
-	public static function iter<X>(d:DictView<X>):NativeIterator<X>;
-
-	// public static function property():Void;
+	static function int(x:Dynamic):Int;
+	static function ord(s:String):Int;
+	static function str(o:Dynamic):String;
+
+	// static function eval():Void;
+	// static function pow():Void;
+	// static function sum():Void;
+	// static function basestring():Void;
+	// static function execfile():Void;
+	static function print(o:Dynamic):Void;
+
+	// static function super():Void;
+	// static function bin():Void;
+	// static function file():Void;
+	static function iter<X>(d:DictView<X>):NativeIterator<X>;
+
+	// static function property():Void;
 	/*
 	/*
 		@:overload(function <X>():Tuple<X> {})
 		@:overload(function <X>():Tuple<X> {})
-		public static function tuple<X>(a:Array<X>):Tuple<X>;
+		static function tuple<X>(a:Array<X>):Tuple<X>;
 	 */
 	 */
-	// public static function range():Void;
-	public static function type():Void;
+	// static function range():Void;
+	static function type():Void;
 	/*
 	/*
 		@:overload(function (it:Array<Int>):python.Bytearray {})
 		@:overload(function (it:Array<Int>):python.Bytearray {})
 		@:overload(function (it:NativeIterable<Int>):python.Bytearray {})
 		@:overload(function (it:NativeIterable<Int>):python.Bytearray {})
 		@:overload(function (size:Int):python.Bytearray {})
 		@:overload(function (size:Int):python.Bytearray {})
-		public static function bytearray(source:String,encoding:String,?errors:Dynamic):python.Bytearray;
+		static function bytearray(source:String,encoding:String,?errors:Dynamic):python.Bytearray;
 	 */
 	 */
-	public static function float(x:Dynamic):Float;
+	static function float(x:Dynamic):Float;
 
 
 	@:overload(function<T>(f:Array<T>):Array<T> {})
 	@:overload(function<T>(f:Array<T>):Array<T> {})
 	@:overload(function<T>(f:Tuple<T>):Array<T> {})
 	@:overload(function<T>(f:Tuple<T>):Array<T> {})
 	@:overload(function<T>(f:Dict.DictView<T>):Array<T> {})
 	@:overload(function<T>(f:Dict.DictView<T>):Array<T> {})
 	@:overload(function(f:String):Array<String> {})
 	@:overload(function(f:String):Array<String> {})
-	public static function list<T>(i:NativeIterable<T>):Array<T>;
+	static function list<T>(i:NativeIterable<T>):Array<T>;
 
 
 	@:overload(function<A>(f:A->Bool, i:NativeIterable<A>):NativeIterator<A> {})
 	@:overload(function<A>(f:A->Bool, i:NativeIterable<A>):NativeIterator<A> {})
-	public static function filter<A>(f:A->Bool, i:Array<A>):NativeIterator<A>;
-
-	// public static function raw_input():Void;
-	// public static function unichr():Void;
-	// public static function format():Void;
-	// public static function locals():Void;
-	// public static function reduce():Void;
-	// public static function unicode():Void;
-	public static function chr(c:Int):String;
-
-	// public static function frozenset():Void;
-	// public static function long():Void;
-	// public static function reload():Void;
-	// public static function vars():Void;
-	// public static function classmethod():Void;
-	public static function map<A, B>(fn:A->B, it:NativeIterable<A>):NativeIterator<B>;
-	public static function repr(o:Dynamic):String;
-	// public static function xrange():Void;
-	// public static function cmp():Void;
-	// public static function globals():Void;
+	static function filter<A>(f:A->Bool, i:Array<A>):NativeIterator<A>;
+
+	// static function raw_input():Void;
+	// static function unichr():Void;
+	// static function format():Void;
+	// static function locals():Void;
+	// static function reduce():Void;
+	// static function unicode():Void;
+	static function chr(c:Int):String;
+
+	// static function frozenset():Void;
+	// static function long():Void;
+	// static function reload():Void;
+	// static function vars():Void;
+	// static function classmethod():Void;
+	static function map<A, B>(fn:A->B, it:NativeIterable<A>):NativeIterator<B>;
+	static function repr(o:Dynamic):String;
+	// static function xrange():Void;
+	// static function cmp():Void;
+	// static function globals():Void;
 	@:overload(function(a1:Float, a2:Float, rest:Rest<Float>):Float {})
 	@:overload(function(a1:Float, a2:Float, rest:Rest<Float>):Float {})
-	public static function max(a1:Int, a2:Int, rest:Rest<Int>):Int;
-
-	// public static function reversed():Void;
-	// public static function zip():Void;
-	// public static function compile():Void;
-	// public static function memoryview():Void;
-	public static function round(f:Float):Int;
-	// public static function __import__():Void;
-	// public static function complex():Void;
-	// public static function hash():Void;
+	static function max(a1:Int, a2:Int, rest:Rest<Int>):Int;
+
+	// static function reversed():Void;
+	// static function zip():Void;
+	// static function compile():Void;
+	// static function memoryview():Void;
+	static function round(f:Float):Int;
+	// static function __import__():Void;
+	// static function complex():Void;
+	// static function hash():Void;
 	@:overload(function(a1:Float, a2:Float, rest:Rest<Float>):Float {})
 	@:overload(function(a1:Float, a2:Float, rest:Rest<Float>):Float {})
-	public static function min(a1:Int, a2:Int, rest:Rest<Int>):Int;
-	// public static function set():Void;
-	// public static function apply():Void;
-	public static function delattr(o:Dynamic, attr:String):Void;
-	// public static function help():Void;
-	// public static function next():Void;
-	public static function setattr(o:Dynamic, attr:String, val:Dynamic):Void;
-	// public static function buffer():Void;
-	// public static function dict():Void;
-	// public static function hex():Void;
-	// public static function object():Void;
-	// public static function slice():Void;
-	// public static function coerce():Void;
-	// public static function dir():Void;
-	public static function id(x:{}):Int;
-	// public static function oct():Void;
-	// public static function sorted():Void;
-	// public static function intern():Void;
+	static function min(a1:Int, a2:Int, rest:Rest<Int>):Int;
+	// static function set():Void;
+	// static function apply():Void;
+	static function delattr(o:Dynamic, attr:String):Void;
+	// static function help():Void;
+	// static function next():Void;
+	static function setattr(o:Dynamic, attr:String, val:Dynamic):Void;
+	// static function buffer():Void;
+	// static function dict():Void;
+	// static function hex():Void;
+	// static function object():Void;
+	// static function slice():Void;
+	// static function coerce():Void;
+	// static function dir():Void;
+	static function id(x:{}):Int;
+	// static function oct():Void;
+	// static function sorted():Void;
+	// static function intern():Void;
 }
 }

+ 1 - 1
std/python/lib/Functools.hx

@@ -24,5 +24,5 @@ package python.lib;
 
 
 @:pythonImport("functools")
 @:pythonImport("functools")
 extern class Functools {
 extern class Functools {
-	public static function cmp_to_key<A>(f:A->A->Int):Dynamic;
+	static function cmp_to_key<A>(f:A->A->Int):Dynamic;
 }
 }

+ 2 - 2
std/python/lib/Glob.hx

@@ -26,6 +26,6 @@ import python.NativeIterator;
 
 
 @:pythonImport("glob")
 @:pythonImport("glob")
 extern class Glob {
 extern class Glob {
-	public static function glob(pathname:String):Array<String>;
-	public static function iglob(pathname:String):NativeIterator<String>;
+	static function glob(pathname:String):Array<String>;
+	static function iglob(pathname:String):NativeIterator<String>;
 }
 }

+ 1 - 1
std/python/lib/Inspect.hx

@@ -32,7 +32,7 @@ extern class Inspect {
 	static function isfunction(object:Dynamic):Bool;
 	static function isfunction(object:Dynamic):Bool;
 	static function getsourcefile(object:Dynamic):String;
 	static function getsourcefile(object:Dynamic):String;
 
 
-	static public inline function isInterface(cls:Class<Dynamic>):Bool {
+	static inline function isInterface(cls:Class<Dynamic>):Bool {
 		return untyped __define_feature__("python._hx_is_interface", c._hx_is_interface);
 		return untyped __define_feature__("python._hx_is_interface", c._hx_is_interface);
 	}
 	}
 }
 }

+ 2 - 2
std/python/lib/Io.hx

@@ -26,8 +26,8 @@ import python.lib.io.IOBase;
 
 
 @:pythonImport("io")
 @:pythonImport("io")
 extern class Io {
 extern class Io {
-	public static var DEFAULT_BUFFER_SIZE:Int;
+	static var DEFAULT_BUFFER_SIZE:Int;
 
 
-	public static function open(file:String, mode:String, ?buffering:Int = -1, ?encoding:String = null, ?errors:String, ?newline:String, ?closefd:Bool,
+	static function open(file:String, mode:String, ?buffering:Int = -1, ?encoding:String = null, ?errors:String, ?newline:String, ?closefd:Bool,
 		?opener:String->Int->FileDescriptor):IOBase;
 		?opener:String->Int->FileDescriptor):IOBase;
 }
 }

+ 2 - 2
std/python/lib/Json.hx

@@ -47,6 +47,6 @@ typedef JsonLoadsOptions = {
 
 
 @:pythonImport("json")
 @:pythonImport("json")
 extern class Json {
 extern class Json {
-	public static function loads(s:String, ?options:KwArgs<JsonLoadsOptions>):Dict<String, Dynamic>;
-	public static function dumps(x:Dynamic, ?options:KwArgs<JsonDumpsOptions>):String;
+	static function loads(s:String, ?options:KwArgs<JsonLoadsOptions>):Dict<String, Dynamic>;
+	static function dumps(x:Dynamic, ?options:KwArgs<JsonDumpsOptions>):String;
 }
 }

+ 7 - 7
std/python/lib/Math.hx

@@ -24,15 +24,15 @@ package python.lib;
 
 
 @:pythonImport("math")
 @:pythonImport("math")
 extern class Math {
 extern class Math {
-	public static function isnan(f:Float):Bool;
+	static function isnan(f:Float):Bool;
 
 
-	public static var pi:Float;
+	static var pi:Float;
 
 
-	public static function sqrt(f:Float):Float;
-	public static function log(f:Float):Float;
-	public static function cos(f:Float):Float;
-	public static function sin(f:Float):Float;
-	public static function tan(f:Float):Float;
+	static function sqrt(f:Float):Float;
+	static function log(f:Float):Float;
+	static function cos(f:Float):Float;
+	static function sin(f:Float):Float;
+	static function tan(f:Float):Float;
 	static function asin(v:Float):Float;
 	static function asin(v:Float):Float;
 	static function acos(v:Float):Float;
 	static function acos(v:Float):Float;
 	static function atan(v:Float):Float;
 	static function atan(v:Float):Float;

+ 2 - 2
std/python/lib/Msvcrt.hx

@@ -24,6 +24,6 @@ package python.lib;
 
 
 @:pythonImport("msvcrt", ignoreError = true)
 @:pythonImport("msvcrt", ignoreError = true)
 extern class Msvcrt {
 extern class Msvcrt {
-	public static function getch():python.Bytes;
-	public static function getwch():String;
+	static function getch():python.Bytes;
+	static function getwch():String;
 }
 }

+ 41 - 41
std/python/lib/Os.hx

@@ -27,66 +27,66 @@ import python.Tuple;
 import python.Dict;
 import python.Dict;
 
 
 extern class Stat {
 extern class Stat {
-	public var st_mode:Int;
-	public var st_ino:Int;
-	public var st_dev:Int;
-	public var st_nlink:Int;
-	public var st_uid:Int;
-	public var st_gid:Int;
-	public var st_size:Int;
-	public var st_atime:Int;
-	public var st_mtime:Int;
-	public var st_ctime:Int;
-
-	@:optional public var st_blocks:Int;
-	@:optional public var st_blksize:Int;
-	@:optional public var st_rdev:Int;
-	@:optional public var st_flags:Int;
-
-	@:optional public var st_gen:Int;
-	@:optional public var st_birthtime:Int;
-
-	@:optional public var st_rsize:Int;
-	@:optional public var st_creator:Int;
-	@:optional public var st_type:Int;
+	var st_mode:Int;
+	var st_ino:Int;
+	var st_dev:Int;
+	var st_nlink:Int;
+	var st_uid:Int;
+	var st_gid:Int;
+	var st_size:Int;
+	var st_atime:Int;
+	var st_mtime:Int;
+	var st_ctime:Int;
+
+	@:optional var st_blocks:Int;
+	@:optional var st_blksize:Int;
+	@:optional var st_rdev:Int;
+	@:optional var st_flags:Int;
+
+	@:optional var st_gen:Int;
+	@:optional var st_birthtime:Int;
+
+	@:optional var st_rsize:Int;
+	@:optional var st_creator:Int;
+	@:optional var st_type:Int;
 }
 }
 
 
 @:pythonImport("os")
 @:pythonImport("os")
 extern class Os {
 extern class Os {
-	public static var environ:Dict<String, String>;
+	static var environ:Dict<String, String>;
 
 
-	public static function putenv(name:String, value:String):Void;
+	static function putenv(name:String, value:String):Void;
 
 
-	public static function chdir(path:String):Void;
+	static function chdir(path:String):Void;
 
 
-	public static function unlink(path:String):Void;
-	public static function remove(path:String):Void;
+	static function unlink(path:String):Void;
+	static function remove(path:String):Void;
 
 
-	public static function getcwd():String;
+	static function getcwd():String;
 
 
-	public static function getcwdb():Bytes;
+	static function getcwdb():Bytes;
 
 
-	public static function removedirs(path:String):Void;
+	static function removedirs(path:String):Void;
 
 
-	public static function rename(src:String, dest:String):Void;
+	static function rename(src:String, dest:String):Void;
 
 
-	public static function renames(oldName:String, newName:String):Void;
+	static function renames(oldName:String, newName:String):Void;
 
 
-	public static function rmdir(path:String):Void;
+	static function rmdir(path:String):Void;
 
 
-	public static function stat(path:String):Stat;
+	static function stat(path:String):Stat;
 
 
-	public static function fchdir(fd:FileDescriptor):Void;
+	static function fchdir(fd:FileDescriptor):Void;
 
 
-	public static function listdir(path:String = "."):Array<String>;
+	static function listdir(path:String = "."):Array<String>;
 
 
-	public static function walk(top:String, topdown:Bool = true, onerror:OSError->Void = null,
+	static function walk(top:String, topdown:Bool = true, onerror:OSError->Void = null,
 		followlinks:Bool = false):Tuple3<String, Array<String>, Array<String>>;
 		followlinks:Bool = false):Tuple3<String, Array<String>, Array<String>>;
 
 
-	public static var sep(default, null):String;
-	public static var pathsep(default, null):String;
+	static var sep(default, null):String;
+	static var pathsep(default, null):String;
 
 
-	public static function makedirs(path:String, mode:Int = 511 /* Oktal 777 */, exist_ok:Bool = false):Void;
+	static function makedirs(path:String, mode:Int = 511 /* Oktal 777 */, exist_ok:Bool = false):Void;
 
 
-	public static function mkdir(path:String, mode:Int = 511 /* Oktal 777 */):Void;
+	static function mkdir(path:String, mode:Int = 511 /* Oktal 777 */):Void;
 }
 }

+ 2 - 2
std/python/lib/Pprint.hx

@@ -24,7 +24,7 @@ package python.lib;
 
 
 @:pythonImport("pprint")
 @:pythonImport("pprint")
 extern class Pprint {
 extern class Pprint {
-	public static function pprint(x:Dynamic):Void;
+	static function pprint(x:Dynamic):Void;
 
 
-	public static function pformat(object:Dynamic, indent:Int = 1, width:Int = 80, depth:Int = null):String;
+	static function pformat(object:Dynamic, indent:Int = 1, width:Int = 80, depth:Int = null):String;
 }
 }

+ 58 - 58
std/python/lib/Re.hx

@@ -36,38 +36,38 @@ typedef Pattern = Choice<String, Regex>;
 typedef Repl = Choice<String, MatchObject->String>;
 typedef Repl = Choice<String, MatchObject->String>;
 
 
 extern class MatchObject {
 extern class MatchObject {
-	public var pos(default, null):Int;
-	public var endpos(default, null):Int;
-	public var lastindex(default, null):Int;
-	public var lastgroup(default, null):Int;
-	public var re(default, null):Regex;
-	public var string(default, null):String;
+	var pos(default, null):Int;
+	var endpos(default, null):Int;
+	var lastindex(default, null):Int;
+	var lastgroup(default, null):Int;
+	var re(default, null):Regex;
+	var string(default, null):String;
 
 
-	public function expand(template:String):String;
+	function expand(template:String):String;
 
 
 	@:overload(function(x:String):String {})
 	@:overload(function(x:String):String {})
-	public function group(?i:Int = 0):String;
+	function group(?i:Int = 0):String;
 
 
-	public function groups(defaultVal:String = null):Tuple<String>;
-	public function groupdict(defaultVal:Dict<String, String> = null):Dict<String, String>;
+	function groups(defaultVal:String = null):Tuple<String>;
+	function groupdict(defaultVal:Dict<String, String> = null):Dict<String, String>;
 
 
 	@:overload(function(x:String):Int {})
 	@:overload(function(x:String):Int {})
-	public function start(?i:Int = 0):Int;
+	function start(?i:Int = 0):Int;
 
 
 	@:overload(function(x:String):Int {})
 	@:overload(function(x:String):Int {})
-	public function end(?i:Int = 0):Int;
+	function end(?i:Int = 0):Int;
 
 
-	public function span(?i:Int):Tuple2<Int, Int>;
+	function span(?i:Int):Tuple2<Int, Int>;
 
 
-	public inline function groupById(s:String):String {
+	inline function groupById(s:String):String {
 		return group(s);
 		return group(s);
 	}
 	}
 
 
-	public inline function startById(s:String):Int {
+	inline function startById(s:String):Int {
 		return start(s);
 		return start(s);
 	}
 	}
 
 
-	public inline function endById(s:String):Int {
+	inline function endById(s:String):Int {
 		return end(s);
 		return end(s);
 	}
 	}
 }
 }
@@ -87,93 +87,93 @@ private class RegexHelper {
 }
 }
 
 
 extern class Regex {
 extern class Regex {
-	public function search(string:String, pos:Int = 0, ?endpos:Int):Null<MatchObject>;
-	public function match(string:String, pos:Int = 0, ?endpos:Int):Null<MatchObject>;
+	function search(string:String, pos:Int = 0, ?endpos:Int):Null<MatchObject>;
+	function match(string:String, pos:Int = 0, ?endpos:Int):Null<MatchObject>;
 
 
-	public function split(string:String, maxsplit:Int = 0):Array<String>;
+	function split(string:String, maxsplit:Int = 0):Array<String>;
 
 
-	public inline function findallString(string:String, ?pos:Int, ?endpos:Int):Array<String> {
+	inline function findallString(string:String, ?pos:Int, ?endpos:Int):Array<String> {
 		return cast this.findallDynamic(string, pos, endpos);
 		return cast this.findallDynamic(string, pos, endpos);
 	}
 	}
 
 
-	public inline function findallDynamic(string:String, ?pos:Int, ?endpos:Int):Array<Dynamic> {
+	inline function findallDynamic(string:String, ?pos:Int, ?endpos:Int):Array<Dynamic> {
 		return RegexHelper.findallDynamic(this, string, pos, endpos);
 		return RegexHelper.findallDynamic(this, string, pos, endpos);
 	}
 	}
 
 
-	public inline function findallTuple(string:String, ?pos:Int, ?endpos:Int):Array<Tuple<String>> {
+	inline function findallTuple(string:String, ?pos:Int, ?endpos:Int):Array<Tuple<String>> {
 		return cast this.findallDynamic(string, pos, endpos);
 		return cast this.findallDynamic(string, pos, endpos);
 	}
 	}
 
 
-	public inline function findallArray(string:String, ?pos:Int, ?endpos:Int):Array<Array<String>> {
+	inline function findallArray(string:String, ?pos:Int, ?endpos:Int):Array<Array<String>> {
 		return findallTuple(string, pos, endpos).map(function(t) return t.toArray());
 		return findallTuple(string, pos, endpos).map(function(t) return t.toArray());
 	}
 	}
 
 
-	public function finditer(string:String, ?pos:Int, ?endpos:Int):NativeIterator<MatchObject>;
+	function finditer(string:String, ?pos:Int, ?endpos:Int):NativeIterator<MatchObject>;
 
 
-	public function sub(repl:Repl, string:String, count:Int = 0):String;
-	public function subn(repl:Repl, string:String, count:Int = 0):String;
+	function sub(repl:Repl, string:String, count:Int = 0):String;
+	function subn(repl:Repl, string:String, count:Int = 0):String;
 
 
-	public var flags(default, null):Int;
-	public var groups(default, null):Int;
-	public var groupindex(default, null):Dict<String, Int>;
-	public var pattern(default, null):String;
+	var flags(default, null):Int;
+	var groups(default, null):Int;
+	var groupindex(default, null):Dict<String, Int>;
+	var pattern(default, null):String;
 }
 }
 
 
 @:pythonImport("re")
 @:pythonImport("re")
 extern class Re {
 extern class Re {
-	public static var A:Int;
-	public static var ASCII:Int;
-	public static var DEBUG:Int;
-	public static var I:Int;
-	public static var IGNORECASE:Int;
+	static var A:Int;
+	static var ASCII:Int;
+	static var DEBUG:Int;
+	static var I:Int;
+	static var IGNORECASE:Int;
 
 
-	public static var L:Int;
-	public static var LOCALE:Int;
+	static var L:Int;
+	static var LOCALE:Int;
 
 
-	public static var M:Int;
-	public static var MULTILINE:Int;
+	static var M:Int;
+	static var MULTILINE:Int;
 
 
-	public static var S:Int;
-	public static var DOTALL:Int;
+	static var S:Int;
+	static var DOTALL:Int;
 
 
-	public static var X:Int;
-	public static var VERBOSE:Int;
+	static var X:Int;
+	static var VERBOSE:Int;
 
 
-	public static var U:Int;
-	public static var UNICODE:Int;
+	static var U:Int;
+	static var UNICODE:Int;
 
 
-	public static function compile(pattern:String, ?flags:Int = 0):Regex;
+	static function compile(pattern:String, ?flags:Int = 0):Regex;
 
 
-	public static function match(pattern:Pattern, string:String, flags:Int = 0):Null<MatchObject>;
+	static function match(pattern:Pattern, string:String, flags:Int = 0):Null<MatchObject>;
 
 
-	public static function search(pattern:Pattern, string:String, flags:Int = 0):Null<MatchObject>;
+	static function search(pattern:Pattern, string:String, flags:Int = 0):Null<MatchObject>;
 
 
-	public static function split(pattern:Pattern, string:String, maxsplit:Int = 0, flags:Int = 0):Array<String>;
+	static function split(pattern:Pattern, string:String, maxsplit:Int = 0, flags:Int = 0):Array<String>;
 
 
-	public static inline function findallDynamic(pattern:Pattern, string:String, flags:Int = 0):Array<Dynamic> {
+	static inline function findallDynamic(pattern:Pattern, string:String, flags:Int = 0):Array<Dynamic> {
 		return python.Syntax.field(pattern, "findall")(string, flags);
 		return python.Syntax.field(pattern, "findall")(string, flags);
 	}
 	}
 
 
-	public static inline function findallString(pattern:Pattern, string:String, flags:Int = 0):Array<String> {
+	static inline function findallString(pattern:Pattern, string:String, flags:Int = 0):Array<String> {
 		return python.Syntax.field(pattern, "findall")(string, flags);
 		return python.Syntax.field(pattern, "findall")(string, flags);
 	}
 	}
 
 
-	public static inline function findallTuple(pattern:Pattern, string:String, flags:Int = 0):Array<Tuple<String>> {
+	static inline function findallTuple(pattern:Pattern, string:String, flags:Int = 0):Array<Tuple<String>> {
 		return python.Syntax.field(pattern, "findall")(string, flags);
 		return python.Syntax.field(pattern, "findall")(string, flags);
 	}
 	}
 
 
-	public static inline function findallArray(pattern:Pattern, string:String, flags:Int = 0):Array<Array<String>> {
+	static inline function findallArray(pattern:Pattern, string:String, flags:Int = 0):Array<Array<String>> {
 		return findallTuple(pattern, string, flags).map(function(t) return t.toArray());
 		return findallTuple(pattern, string, flags).map(function(t) return t.toArray());
 	}
 	}
 
 
-	public static function finditer(pattern:Pattern, string:String, flags:Int = 0):NativeIterator<MatchObject>;
+	static function finditer(pattern:Pattern, string:String, flags:Int = 0):NativeIterator<MatchObject>;
 
 
 	@:overload(function(pattern:Pattern, repl:String, string:String, ?count:Int = 0, ?flags:Int = 0):String {})
 	@:overload(function(pattern:Pattern, repl:String, string:String, ?count:Int = 0, ?flags:Int = 0):String {})
-	public static function sub(pattern:Pattern, repl:MatchObject->String, string:String, ?count:Int = 0, ?flags:Int = 0):String;
+	static function sub(pattern:Pattern, repl:MatchObject->String, string:String, ?count:Int = 0, ?flags:Int = 0):String;
 
 
-	public static function subn(pattern:Pattern, repl:Repl, string:String, count:Int = 0, flags:Int = 0):String;
+	static function subn(pattern:Pattern, repl:Repl, string:String, count:Int = 0, flags:Int = 0):String;
 
 
-	public static function escape(string:String):String;
+	static function escape(string:String):String;
 
 
-	public static function purge():Void;
+	static function purge():Void;
 }
 }

+ 4 - 4
std/python/lib/Shutil.hx

@@ -24,10 +24,10 @@ package python.lib;
 
 
 @:pythonImport("shutil")
 @:pythonImport("shutil")
 extern class Shutil {
 extern class Shutil {
-	public static function rmtree(path:String, ?ignore_errors:Bool = false, ?onerror:python.Exceptions.BaseException->Void):Void;
+	static function rmtree(path:String, ?ignore_errors:Bool = false, ?onerror:python.Exceptions.BaseException->Void):Void;
 
 
-	public static function copyfile(src:String, dst:String):Void;
+	static function copyfile(src:String, dst:String):Void;
 
 
-	public static function copy(src:String, dst:String):Void;
-	public static function copy2(src:String, dst:String):Void;
+	static function copy(src:String, dst:String):Void;
+	static function copy2(src:String, dst:String):Void;
 }
 }

+ 9 - 9
std/python/lib/Ssl.hx

@@ -27,14 +27,14 @@ import python.lib.ssl.SSLContext;
 @:pythonImport("ssl")
 @:pythonImport("ssl")
 extern class Ssl {
 extern class Ssl {
 	@:require(python_version >= 3.4)
 	@:require(python_version >= 3.4)
-	public static function create_default_context(purpose:String):SSLContext;
+	static function create_default_context(purpose:String):SSLContext;
 
 
 	/**
 	/**
 		Prevents a TLSv1 connection. This option is only applicable in conjunction
 		Prevents a TLSv1 connection. This option is only applicable in conjunction
 		with PROTOCOL_TLS. It prevents the peers from choosing TLSv1 as the
 		with PROTOCOL_TLS. It prevents the peers from choosing TLSv1 as the
 		protocol version.
 		protocol version.
 	**/
 	**/
-	public static var OP_NO_TLSv1:Int;
+	static var OP_NO_TLSv1:Int;
 
 
 	/**
 	/**
 		Prevents a TLSv1.1 connection. This option is only applicable in conjunction
 		Prevents a TLSv1.1 connection. This option is only applicable in conjunction
@@ -44,20 +44,20 @@ extern class Ssl {
 		since python 3.4
 		since python 3.4
 	**/
 	**/
 	@:require(python_version >= 3.4)
 	@:require(python_version >= 3.4)
-	public static var OP_NO_TLSv1_1:Int;
+	static var OP_NO_TLSv1_1:Int;
 
 
-	public static var OP_NO_SSLv3:Int;
-	public static var OP_NO_SSLv2:Int;
+	static var OP_NO_SSLv3:Int;
+	static var OP_NO_SSLv2:Int;
 
 
-	public static var OP_NO_COMPRESSION:Int;
+	static var OP_NO_COMPRESSION:Int;
 
 
 	#if (python_version >= 3.6)
 	#if (python_version >= 3.6)
 	@:deprecated("deprecated, use PROTOCOL_TLS instead")
 	@:deprecated("deprecated, use PROTOCOL_TLS instead")
 	#end
 	#end
-	public static var PROTOCOL_SSLv23:String;
+	static var PROTOCOL_SSLv23:String;
 
 
 	@:require(python_version >= 3.6)
 	@:require(python_version >= 3.6)
-	public static var PROTOCOL_TLS:String;
+	static var PROTOCOL_TLS:String;
 
 
-	public static var CERT_REQUIRED:Int;
+	static var CERT_REQUIRED:Int;
 }
 }

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff