Prechádzať zdrojové kódy

[netlib] Filtered out interface implementation being seen as an override

Caue Waneck 12 rokov pred
rodič
commit
2d552b14e4
63 zmenil súbory, kde vykonal 92 pridanie a 1845 odobranie
  1. 68 15
      gencs.ml
  2. 1 1
      libs
  3. 5 6
      std/cs/StdTypes.hx
  4. 0 27
      std/cs/system/Activator.hx
  5. 0 29
      std/cs/system/Array.hx
  6. 0 41
      std/cs/system/BitConverter.hx
  7. 0 44
      std/cs/system/Console.hx
  8. 0 25
      std/cs/system/Converter.hx
  9. 0 66
      std/cs/system/DateTime.hx
  10. 0 41
      std/cs/system/Environment.hx
  11. 0 29
      std/cs/system/Exception.hx
  12. 0 27
      std/cs/system/IConvertible.hx
  13. 0 27
      std/cs/system/IFormatProvider.hx
  14. 0 27
      std/cs/system/LocalDataStoreSlot.hx
  15. 0 45
      std/cs/system/Math.hx
  16. 0 34
      std/cs/system/OperatingSystem.hx
  17. 0 39
      std/cs/system/PlatformID.hx
  18. 0 35
      std/cs/system/Random.hx
  19. 0 38
      std/cs/system/Type.hx
  20. 0 36
      std/cs/system/Version.hx
  21. 0 32
      std/cs/system/collections/ICollection.hx
  22. 0 40
      std/cs/system/collections/IDictionary.hx
  23. 0 27
      std/cs/system/collections/IEnumerable.hx
  24. 0 29
      std/cs/system/collections/IEnumerator.hx
  25. 0 41
      std/cs/system/io/Directory.hx
  26. 0 39
      std/cs/system/io/DirectoryInfo.hx
  27. 0 41
      std/cs/system/io/File.hx
  28. 0 29
      std/cs/system/io/FileAccess.hx
  29. 0 40
      std/cs/system/io/FileAttributes.hx
  30. 0 40
      std/cs/system/io/FileInfo.hx
  31. 0 32
      std/cs/system/io/FileMode.hx
  32. 0 30
      std/cs/system/io/FileShare.hx
  33. 0 33
      std/cs/system/io/FileStream.hx
  34. 0 33
      std/cs/system/io/MemoryStream.hx
  35. 0 29
      std/cs/system/io/SeekOrigin.hx
  36. 0 48
      std/cs/system/io/Stream.hx
  37. 0 33
      std/cs/system/io/StreamReader.hx
  38. 0 33
      std/cs/system/io/StreamWriter.hx
  39. 0 24
      std/cs/system/net/Dns.hx
  40. 0 10
      std/cs/system/net/EndPoint.hx
  41. 0 26
      std/cs/system/net/IPAddress.hx
  42. 0 14
      std/cs/system/net/IPEndPoint.hx
  43. 0 21
      std/cs/system/net/IPHostEntry.hx
  44. 0 37
      std/cs/system/net/sockets/AddressFamily.hx
  45. 0 22
      std/cs/system/net/sockets/NetworkStream.hx
  46. 0 31
      std/cs/system/net/sockets/ProtocolType.hx
  47. 0 95
      std/cs/system/net/sockets/Socket.hx
  48. 0 16
      std/cs/system/net/sockets/SocketFlags.hx
  49. 0 9
      std/cs/system/net/sockets/SocketShutdown.hx
  50. 0 12
      std/cs/system/net/sockets/SocketType.hx
  51. 0 29
      std/cs/system/reflection/ConstructorInfo.hx
  52. 0 33
      std/cs/system/reflection/MethodBase.hx
  53. 0 30
      std/cs/system/reflection/MethodInfo.hx
  54. 0 27
      std/cs/system/reflection/ParameterInfo.hx
  55. 0 33
      std/cs/system/text/Encoding.hx
  56. 0 76
      std/cs/system/text/regularExpressions/Regex.hx
  57. 0 39
      std/cs/system/threading/Thread.hx
  58. 3 0
      std/cs/types/Char16.hx
  59. 3 0
      std/cs/types/Int16.hx
  60. 3 0
      std/cs/types/Int8.hx
  61. 3 0
      std/cs/types/UInt16.hx
  62. 3 0
      std/cs/types/UInt64.hx
  63. 3 0
      std/cs/types/UInt8.hx

+ 68 - 15
gencs.ml

@@ -2376,14 +2376,27 @@ let hxpath_to_net ctx path =
 	 | Not_found ->
 			[],[],"Not_found"
 
+let add_cs = function
+	| "haxe" :: ns -> "haxe" :: ns
+	| "cs" :: ns -> "cs" :: ns
+	| ns -> "cs" :: ns
+
 let netpath_to_hx std = function
 	| [],[], cl -> [], cl
 	| ns,[], cl ->
 		let ns = (List.map String.lowercase ns) in
-		(if std then "cs" :: ns else ns), cl
+		(if std then add_cs ns else ns), cl
 	| ns,(nhd :: ntl as nested), cl ->
 		let ns = (List.map String.lowercase ns) @ [nhd] in
-		(if std then "cs" :: ns else ns), String.concat "_" nested ^ "_" ^ cl
+		(if std then add_cs ns else ns), String.concat "_" nested ^ "_" ^ cl
+
+let lookup_ilclass std com ilpath =
+  let path = netpath_to_hx std ilpath in
+  List.fold_right (fun (_,_,_,get_raw_class) acc ->
+    match acc with
+    | None -> get_raw_class path
+    | Some p -> acc
+  ) com.net_libs None
 
 let discard_nested = function
 	| (ns,_),cl -> (ns,[]),cl
@@ -2393,7 +2406,7 @@ let mk_type_path ctx path params =
 		| ns,[], cl ->
 			ns, None, cl
 		| ns, (nhd :: ntl as nested), cl ->
-			ns, Some nhd, String.concat "_" nested ^ "_" ^ cl
+			ns, Some (String.concat "_" nested ^ "_" ^ cl), nhd
 	in
   CTPath {
 		tpackage = fst (netpath_to_hx ctx.nstd (pack,[],""));
@@ -2408,15 +2421,15 @@ let rec convert_signature ctx p = function
 	| LBool ->
 		mk_type_path ctx ([],[],"Bool") []
 	| LChar ->
-		mk_type_path ctx (["cs"],["StdTypes"],"Char16") []
+		mk_type_path ctx (["cs";"types"],[],"Char16") []
 	| LInt8 ->
-		mk_type_path ctx (["cs"],["StdTypes"],"Int8") []
+		mk_type_path ctx (["cs";"types"],[],"Int8") []
 	| LUInt8 ->
-		mk_type_path ctx (["cs"],["StdTypes"],"UInt8") []
+		mk_type_path ctx (["cs";"types"],[],"UInt8") []
 	| LInt16 ->
-		mk_type_path ctx (["cs"],["StdTypes"],"Int16") []
+		mk_type_path ctx (["cs";"types"],[],"Int16") []
 	| LUInt16 ->
-		mk_type_path ctx (["cs"],["StdTypes"],"UInt16") []
+		mk_type_path ctx (["cs";"types"],[],"UInt16") []
 	| LInt32 ->
 		mk_type_path ctx ([],[],"Int") []
 	| LUInt32 ->
@@ -2424,7 +2437,7 @@ let rec convert_signature ctx p = function
 	| LInt64 ->
 		mk_type_path ctx (["haxe"],[],"Int64") []
 	| LUInt64 ->
-		mk_type_path ctx (["haxe"],[],"UInt64") []
+		mk_type_path ctx (["cs";"types"],[],"UInt64") []
 	| LFloat32 ->
 		mk_type_path ctx ([],[],"Single") []
 	| LFloat64 ->
@@ -2532,18 +2545,20 @@ let convert_ilmethod ctx p m =
 	let cff_name = match m.mname with
 		| ".ctor" -> "new"
 		| ".cctor"-> raise Exit (* __init__ field *)
+		| "Equals" | "GetHashCode" -> raise Exit
 		| name when String.length name > 5 ->
 				(match String.sub name 0 5 with
 				| "__hx_" -> raise Exit
 				| _ -> name)
 		| name -> name
 	in
-	(* Printf.printf "name %s : %s\n" cff_name (IlMetaDebug.ilsig_s m.msig.ssig); *)
 	let acc = match m.mflags.mf_access with
 		| FAFamily | FAFamOrAssem -> APrivate
+		(* | FAPrivate -> APrivate *)
 		| FAPublic -> APublic
-		| _ -> raise Exit (* private instances aren't useful on externs *)
+		| _ -> raise Exit
 	in
+	Printf.printf "\tname %s : %s\n" cff_name (IlMetaDebug.ilsig_s m.msig.ssig);
 	let acc, is_final = List.fold_left (fun (acc,is_final) -> function
 		| CMStatic when cff_name <> "new" -> AStatic :: acc, is_final
 		| CMVirtual when is_final = None -> acc, Some false
@@ -2565,7 +2580,12 @@ let convert_ilmethod ctx p m =
 
 	let kind =
 		let args = List.map (fun (name,flag,s) ->
-			let t = convert_signature ctx p s.snorm in
+			let t = match s.snorm with
+				| LManagedPointer s ->
+					mk_type_path ctx (["cs"],[],"Ref") [ TPType (convert_signature ctx p s) ]
+				| _ ->
+					convert_signature ctx p s.snorm
+			in
 			let t = if List.mem PIn flag.pf_io then
 					mk_type_path ctx (["cs"],[],"Ref") [ TPType t ]
 				else if List.mem POut flag.pf_io then
@@ -2598,6 +2618,16 @@ let convert_ilmethod ctx p m =
 		else
 			cff_name, meta
 	in
+	let acc = match m.moverride with
+		| None -> acc
+		| Some (path,s) -> match lookup_ilclass ctx.nstd ctx.ncom path with
+			| Some ilcls when not (List.mem SInterface ilcls.cflags.tdf_semantics) ->
+				AOverride :: acc
+			| None when ctx.ncom.verbose ->
+				prerr_endline ("(net-lib) A referenced assembly for path " ^ ilpath_s path ^ " was not found");
+				acc
+			| _ -> acc
+	in
 	{
 		cff_name = cff_name;
 		cff_doc = cff_doc;
@@ -2646,12 +2676,23 @@ let convert_ilprop ctx p prop =
 
 let get_type_path ctx ct = match ct with | CTPath p -> p | _ -> assert false
 
+let is_explicit ctx ilcls i =
+	let s = match i with
+		| LClass(path,_) | LValueType(path,_) -> ilpath_s path
+		| _ -> assert false
+	in
+	let len = String.length s in
+	List.exists (fun m ->
+		String.length m.mname > len && String.sub m.mname 0 len = s
+	) ilcls.cmethods
+
 let convert_ilclass ctx p ilcls = match ilcls.csuper with
 	| Some { snorm = LClass ((["System"],[],"Enum"),[]) } ->
 		convert_ilenum ctx p ilcls
 	| _ ->
 		let flags = ref [HExtern] in
-		(* todo: instead of JavaNative, use more specific definitions *)
+		(* todo: instead of CsNative, use more specific definitions *)
+		print_endline ("converting " ^ ilpath_s ilcls.cpath);
 		let meta = ref [Meta.CsNative, [], p; Meta.Native, [EConst (String (ilpath_s ilcls.cpath) ), p], p] in
 
 		let is_interface = ref false in
@@ -2679,6 +2720,7 @@ let convert_ilclass ctx p ilcls = match ilcls.csuper with
 				match i.snorm with
 				| LClass ( (["haxe";"lang"],[], "IHxObject"), _ ) ->
 					meta := (Meta.HxGen,[],p) :: !meta
+				| i when is_explicit ctx ilcls i -> ()
 				| i -> flags :=
 					if !is_interface then
 						HExtends (get_type_path ctx (convert_signature ctx p i)) :: !flags
@@ -2696,7 +2738,12 @@ let convert_ilclass ctx p ilcls = match ilcls.csuper with
 						| Exit -> ()
 				) f
 			in
-			run_fields (convert_ilmethod ctx p) ilcls.cmethods;
+			let meths = if !is_interface then
+					List.filter (fun m -> m.moverride = None) ilcls.cmethods
+				else
+					ilcls.cmethods
+			in
+			run_fields (convert_ilmethod ctx p) meths;
 			run_fields (convert_ilfield ctx p) ilcls.cfields;
 			run_fields (convert_ilprop ctx p) ilcls.cprops;
 
@@ -2746,13 +2793,19 @@ let add_net_lib com file std =
 			ilctx := Some meta;
 			meta
 	in
+
+	let cache = Hashtbl.create 0 in
 	let lookup path =
 		try
+			Hashtbl.find cache path
+		with | Not_found -> try
 			let ctx = get_ctx() in
 			let ns, n, cl = hxpath_to_net ctx path in
 			let cls = IlMetaTools.convert_class ctx.nil (ns,n,cl) in
+			Hashtbl.add cache path (Some cls);
 			Some cls
 		with | Not_found ->
+			Hashtbl.add cache path None;
 			None
 	in
 
@@ -2763,7 +2816,7 @@ let add_net_lib com file std =
 	in
 
 	let build path =
-		let p = { pfile = !real_file; pmin = 0; pmax = 0; } in
+		let p = { pfile = !real_file ^ " @ " ^ path_s path; pmin = 0; pmax = 0; } in
 		let pack = match fst path with | ["haxe";"root"] -> [] | p -> p in
 		let cp = ref [] in
 		let rec build path = try

+ 1 - 1
libs

@@ -1 +1 @@
-Subproject commit 6efaf6de0d4c5f7822851b29aa60f1a9ff9c07ea
+Subproject commit 8293b99822096b8cd593a6aadb4d00383a5422eb

+ 5 - 6
std/cs/StdTypes.hx

@@ -21,10 +21,9 @@
  */
 package cs;
 
-typedef Int8 = Int;
-typedef UInt8 = Int;
-typedef Int16 = Int;
-typedef UInt16 = Int;
-//UInt is top-level
+@:notNull @:runtimeValue @:coreType abstract Int8 from Int {}
+@:notNull @:runtimeValue @:coreType abstract Int16 from Int {}
+@:notNull @:runtimeValue @:coreType abstract Char16 from Int {}
+@:notNull @:runtimeValue @:coreType abstract UInt8 from Int {}
+@:notNull @:runtimeValue @:coreType abstract UInt16 from Int {}
 typedef UInt64 = haxe.Int64;
-typedef Char16 = Int;

+ 0 - 27
std/cs/system/Activator.hx

@@ -1,27 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native('System.Activator') extern class Activator 
-{
-	static function CreateInstance(t:cs.system.Type):Dynamic;
-}

+ 0 - 29
std/cs/system/Array.hx

@@ -1,29 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
- 
-@:native("System.Array")
-extern class Array 
-{
-
-	public static function Copy(sourceArray:Array, sourceIndex:Int, destinationArray:Array, destinationIndex:Int, length:Int):Void;
-}

+ 0 - 41
std/cs/system/BitConverter.hx

@@ -1,41 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-import cs.NativeArray;
-import cs.NativeArray;
-import cs.StdTypes;
-import haxe.Int64;
-
-@:native('System.BitConverter') extern class BitConverter 
-{
-	static var IsLittleEndian(default, null):Bool;
-	static function DoubleToInt64Bits(v:Float):Int64;
-	static function Int64BitsToDouble(v:Int64):Float;
-	static function GetBytes(d:Dynamic):NativeArray<UInt8>;
-	static function ToBoolean(b:NativeArray<UInt8>, startIndex:Int):Bool;
-	static function ToChar(b:NativeArray<UInt8>, startIndex:Int):Char16;
-	static function ToDouble(b:NativeArray<UInt8>, startIndex:Int):Float;
-	static function ToInt16(b:NativeArray<UInt8>, startIndex:Int):Int16;
-	static function ToInt32(b:NativeArray<UInt8>, startIndex:Int):Int;
-	static function ToInt64(b:NativeArray<UInt8>, startIndex:Int):Int64;
-	static function ToSingle(b:NativeArray<UInt8>, startIndex:Int):Single;
-}

+ 0 - 44
std/cs/system/Console.hx

@@ -1,44 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install/update hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.Console') extern class Console 
-{
-	static var Error(default, null):cs.system.io.StreamWriter;
-	static var In(default, null):cs.system.io.StreamReader;
-	static var Out(default, null):cs.system.io.StreamWriter;
-	
-	static function Write(obj:Dynamic):Void;
-	static function WriteLine(obj:Dynamic):Void;
-	
-	#if !(Xbox || CF || MF)
-	static function OpenStandardOutput():cs.system.io.Stream;
-	static function OpenStandardInput():cs.system.io.Stream;
-	static function OpenStandardError():cs.system.io.Stream;
-	#end
-}

+ 0 - 25
std/cs/system/Converter.hx

@@ -1,25 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native("System.Converter") 
-@:delegate extern typedef Converter<TInput,TOutput> = TInput->TOutput;

+ 0 - 66
std/cs/system/DateTime.hx

@@ -1,66 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-import haxe.Int64;
-
-/**
- * ...
- * @author waneck
- */
-
-@:native("System.DateTime")
-extern class DateTime 
-{
-
-	@:overload(function(year : Int, month : Int, day : Int, hour : Int, min : Int, sec : Int ):Void {})
-	function new(ticks:Int64):Void;
-	
-	var Day(default, null):Int;
-	var DayOfWeek(default, null):DayOfWeek;
-	var DayOfYear(default, null):Int;
-	var Hour(default, null):Int;
-	var Millisecond(default, null):Int;
-	var Minute(default, null):Int;
-	var Second(default, null):Int;
-	var Year(default, null):Int;
-	var Month(default, null):Int;
-	var Ticks(default, null):Int64;
-	static var Now(default, null):DateTime;
-	static var UtcNow(default, null):DateTime;
-}
-
-@:native("System.DayOfWeek")
-extern enum DayOfWeek
-{
-	Sunday;
-	Monday;
-	Tuesday;
-	Wedsneday;
-	Thursday;
-	Friday;
-	Saturday;
-}
-@:native("System.TimeSpan")
-extern class TimeSpan
-{
-	static var TicksPerMillisecond(default, null):Int;
-}

+ 0 - 41
std/cs/system/Environment.hx

@@ -1,41 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install/update hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.Environment') extern class Environment
-{
-	static function Exit(code:Int):Void;
-	static function GetEnvironmentVariables():cs.system.collections.IDictionary;
-	static function GetEnvironmentVariable(k:String):String;
-	static function SetEnvironmentVariable(k:String, v:String):Void;
-	static function GetCommandLineArgs():cs.NativeArray<String>;
-	static var NewLine(default, null):String;
-	static var TickCount(default, null):Int;
-	static var OSVersion(default, null):OperatingSystem;
-	
-}

+ 0 - 29
std/cs/system/Exception.hx

@@ -1,29 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native("System.Exception") @:nativeGen extern class Exception
-{
-	public var message:String;
-
-	private function new():Void;
-}

+ 0 - 27
std/cs/system/IConvertible.hx

@@ -1,27 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native("System.IConvertible") extern interface IConvertible
-{
-	function ToType(conversionType:cs.system.Type, provider:IFormatProvider):Dynamic;
-}

+ 0 - 27
std/cs/system/IFormatProvider.hx

@@ -1,27 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native("System.IFormatProvider") extern interface IFormatProvider
-{
-	
-}

+ 0 - 27
std/cs/system/LocalDataStoreSlot.hx

@@ -1,27 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:final @:native('System.LocalDataStoreSlot') extern class LocalDataStoreSlot 
-{
-	
-}

+ 0 - 45
std/cs/system/Math.hx

@@ -1,45 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native("System.Math") @:nativeGen extern class Math
-{
-	public static var PI(default, null) : Float;
-
-	public static function Abs(v:Float):Float;
-	public static function Min(a:Float,b:Float):Float;
-	public static function Max(a:Float,b:Float):Float;
-	public static function Sin(v:Float):Float;
-	public static function Cos(v:Float):Float;
-	public static function Atan2(y:Float,x:Float):Float;
-	public static function Tan(v:Float):Float;
-	public static function Exp(v:Float):Float;
-	public static function Log(v:Float):Float;
-	public static function Sqrt(v:Float):Float;
-	public static function Round(v:Float):Float;
-	public static function Floor(v:Float):Float;
-	public static function Ceiling(v:Float):Float;
-	public static function Atan(v:Float):Float;
-	public static function Asin(v:Float):Float;
-	public static function Acos(v:Float):Float;
-	public static function Pow(v:Float,exp:Float):Float;
-}

+ 0 - 34
std/cs/system/OperatingSystem.hx

@@ -1,34 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install/update hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.OperatingSystem') extern class OperatingSystem
-{
-	var Platform(default, null):cs.system.PlatformID;
-	var Version(default, null):cs.system.Version;
-}

+ 0 - 39
std/cs/system/PlatformID.hx

@@ -1,39 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install/update hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.PlatformID') extern enum PlatformID
-{
-	Win32S;
-	Win32Windows;
-	Win32NT;
-	WinCE;
-	Unix;
-	Xbox;
-	MacOSX;
-}

+ 0 - 35
std/cs/system/Random.hx

@@ -1,35 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-@:native("System.Random")
-extern class Random 
-{
-
-	public function new():Void;
-	
-	@:overload(function(max:Int):Int {})
-	@:overload(function(min:Int, max:Int):Int {})
-	public function Next():Int;
-	
-	public function NextDouble():Float;
-}

+ 0 - 38
std/cs/system/Type.hx

@@ -1,38 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-import cs.NativeArray;
-import cs.system.reflection.ConstructorInfo;
-
-@:native("System.Type")
-extern class Type 
-{
-	public var Name(default, null):String;
-	public var BaseType(default, null):Type;
-	public var IsInterface(default, null):Bool;
-	public var ContainsGenericParameters(default, null):Bool;
-	public var IsValueType(default, null):Bool;
-	public function IsAssignableFrom(c:Type):Bool;
-	
-	public static function GetType(name:String):Null<Type>;
-	public function GetConstructors():NativeArray<ConstructorInfo>;
-}

+ 0 - 36
std/cs/system/Version.hx

@@ -1,36 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install/update hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.Version') extern class Version
-{
-	var Build(default, null):Int;
-	var Major(default, null):Int;
-	var Minor(default, null):Int;
-	var Revision(default, null):Int;
-}

+ 0 - 32
std/cs/system/collections/ICollection.hx

@@ -1,32 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.collections;
-
-@:native('System.Collections.ICollection') extern interface ICollection extends IEnumerable
-{
-	var Count(default, null):Int;
-	var IsSynchronized(default, null):Bool;
-	var SyncRoot(default, null):Bool;
-	
-	function CopyTo(arr:cs.system.Array, index:Int):Void;
-	function GetEnumerator():IEnumerator;
-}

+ 0 - 40
std/cs/system/collections/IDictionary.hx

@@ -1,40 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.collections;
-
-@:native('System.Collections.IDictionary') extern interface IDictionary extends ICollection
-{
-	var IsFixedSize(default, null):Bool;
-	var IsReadOnly(default, null):Bool;
-
-	function Add(key:Dynamic, value:Dynamic):Void;
-	function Clear():Void;
-	function Contains(key:Dynamic):Bool;
-	function Remove(key:Dynamic):Void;
-	function GetEnumerator():IDictionaryEnumerator;
-}
-
-@:native('System.Collections.IDictionaryEnumerator') extern interface IDictionaryEnumerator extends IEnumerator
-{
-	var Key(default, null):Dynamic;
-	var Value(default, null):Dynamic;
-}

+ 0 - 27
std/cs/system/collections/IEnumerable.hx

@@ -1,27 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.collections;
-
-@:native('System.Collections.IEnumerable') extern interface IEnumerable
-{
-	function GetEnumerator():IEnumerator;
-}

+ 0 - 29
std/cs/system/collections/IEnumerator.hx

@@ -1,29 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.collections;
-
-@:native('System.Collections.IEnumerator') extern interface IEnumerator
-{
-	var Current(default, null):Dynamic;
-	function MoveNext():Bool;
-	function Reset():Void;
-}

+ 0 - 41
std/cs/system/io/Directory.hx

@@ -1,41 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-import cs.NativeArray;
-import cs.NativeArray;
-
-@:native('System.IO.Directory') extern class Directory 
-{
-	static function CreateDirectory(path:String):Void;
-	static function Delete(path:String):Void;
-	static function Exists(path:String):Bool;
-	static function GetCurrentDirectory():String;
-	static function GetDirectories(path:String):NativeArray<String>;
-	static function GetDirectoryRoot(path:String):String;
-	static function GetFiles(path:String):NativeArray<String>;
-	static function GetFileSystemEntries(path:String):NativeArray<String>;
-	static function GetCreationTime(path:String):cs.system.DateTime;
-	static function GetLastAccessTime(path:String):cs.system.DateTime;
-	static function GetLastWriteTime(path:String):cs.system.DateTime;
-	static function Move(path:String, newpath:String):Void;
-	static function SetCurrentDirectory(path:String):Void;
-}

+ 0 - 39
std/cs/system/io/DirectoryInfo.hx

@@ -1,39 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-import haxe.Int64;
-
-@:final @:native('System.IO.DirectoryInfo') extern class DirectoryInfo 
-{
-	var Attributes(default, null):FileAttributes;
-	var CreationTime(default, null):cs.system.DateTime;
-	var Exists(default, null):Bool;
-	var Extension(default, null):String;
-	var FullName(default, null):String;
-	var LastAccessTime(default, null):cs.system.DateTime;
-	var LastWriteTime(default, null):cs.system.DateTime;
-	var Name(default, null):String;
-	var Parent(default, null):DirectoryInfo;
-	var Root(default, null):DirectoryInfo;
-	
-	function new(path:String):Void;
-}

+ 0 - 41
std/cs/system/io/File.hx

@@ -1,41 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.File') extern class File 
-{
-	//not compatible with XNA
-	//static function AppendAllText(path:String, contents:String):Void;
-	static function Copy(source:String, dest:String):Void;
-	
-	@:overload(function(path:String, bufferSize:Int):FileStream {})
-	static function Create(path:String):FileStream;
-	
-	static function Delete(path:String):Void;
-	static function Exists(path:String):Bool;
-	static function GetCreationTime(path:String):cs.system.DateTime;
-	static function GetLastAccessTime(path:String):cs.system.DateTime;
-	static function GetLastWriteTime(path:String):cs.system.DateTime;
-	static function Move(source:String, dest:String):Void;
-	
-	
-}

+ 0 - 29
std/cs/system/io/FileAccess.hx

@@ -1,29 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.FileAccess') extern enum FileAccess 
-{
-	Read;
-	Write;
-	ReadWrite;
-}

+ 0 - 40
std/cs/system/io/FileAttributes.hx

@@ -1,40 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.FileAttributes') extern enum FileAttributes 
-{
-	ReadOnly;
-	Hidden;
-	System;
-	Directory;
-	Archive;
-	Device;
-	Normal;
-	Temporary;
-	SparseFile;
-	ReparsePoint;
-	Compressed;
-	Offline;
-	NotContentIndexed;
-	Encrypted;
-}

+ 0 - 40
std/cs/system/io/FileInfo.hx

@@ -1,40 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-import haxe.Int64;
-
-@:final @:native('System.IO.FileInfo') extern class FileInfo 
-{
-	var Attributes(default, null):FileAttributes;
-	var CreationTime(default, null):cs.system.DateTime;
-	var Directory(default, null):DirectoryInfo;
-	var DirectoryName(default, null):String;
-	var Exists(default, null):Bool;
-	var Extension(default, null):String;
-	var FullName(default, null):String;
-	var LastAccessTime(default, null):cs.system.DateTime;
-	var LastWriteTime(default, null):cs.system.DateTime;
-	var Length(default, null):Int64;
-	var Name(default, null):String;
-	
-	function new(filename:String):Void;
-}

+ 0 - 32
std/cs/system/io/FileMode.hx

@@ -1,32 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.FileMode') extern enum FileMode 
-{
-	CreateNew;
-	Create;
-	Open;
-	OpenOrCreate;
-	Truncate;
-	Append;
-}

+ 0 - 30
std/cs/system/io/FileShare.hx

@@ -1,30 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.FileShare') extern enum FileShare 
-{
-	None;
-	Read;
-	Write;
-	ReadWrite;
-}

+ 0 - 33
std/cs/system/io/FileStream.hx

@@ -1,33 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.FileStream') extern class FileStream extends Stream
-{
-	@:overload(function (path:String, mode:FileMode, access:FileAccess, share:FileShare, bufferSize:Int, useAsync:Bool):Void {})
-	@:overload(function (path:String, mode:FileMode, access:FileAccess, share:FileShare, bufferSize:Int):Void {})
-	@:overload(function (path:String, mode:FileMode, access:FileAccess, share:FileShare):Void {})
-	@:overload(function (path:String, mode:FileMode, access:FileAccess):Void {})
-	function new(path:String, mode:FileMode):Void;
-	var IsAsync(default, null):Bool;
-	var Name(default, null):String;
-}

+ 0 - 33
std/cs/system/io/MemoryStream.hx

@@ -1,33 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-import cs.NativeArray;
-import cs.StdTypes;
-import haxe.Int64;
-import haxe.io.BytesData;
-
-@:native('System.IO.MemoryStream') extern class MemoryStream extends Stream 
-{
-	function new():Void;
-	function GetBuffer():NativeArray<UInt8>;
-	
-}

+ 0 - 29
std/cs/system/io/SeekOrigin.hx

@@ -1,29 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-@:native('System.IO.SeekOrigin') extern enum SeekOrigin 
-{
-	Begin;
-	Current;
-	End;
-}

+ 0 - 48
std/cs/system/io/Stream.hx

@@ -1,48 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-import cs.StdTypes;
-import haxe.Int64;
-import haxe.io.BytesData;
-
-@:native('System.IO.Stream') extern class Stream 
-{
-	var CanRead(default, null):Bool;
-	var CanSeek(default, null):Bool;
-	var CanTimeout(default, null):Bool;
-	var CanWrite(default, null):Bool;
-	var Length(default, null):Int64;
-	var Position(default, null):Int64;
-	var ReadTimeout:Bool;
-	var WriteTimeout:Bool;
-	
-	function Close():Void;
-	function CopyTo(dest:Stream):Void;
-	function Dispose():Void;
-	function Flush():Void;
-	function Read(buf:BytesData, offset:Int, count:Int):Int;
-	function ReadByte():Int;
-	function Seek(offset:Int64, origin:SeekOrigin):Int64;
-	function SetLength(value:Int64):Void;
-	function Write(buf:BytesData, offset:Int, count:Int):Void;
-	function WriteByte(value:UInt8):Void;
-}

+ 0 - 33
std/cs/system/io/StreamReader.hx

@@ -1,33 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.IO.StreamReader') extern class StreamReader 
-{
-	var BaseStream(default, null):cs.system.io.Stream;
-}

+ 0 - 33
std/cs/system/io/StreamWriter.hx

@@ -1,33 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.io;
-
-/**
-	Warning: This class definition is incomplete.
-	In order to get most current extern definitions, install hxcs library with:
-		haxelib install hxcs
-	Please refer to http://lib.haxe.org/p/hxcs for more information.
-**/
-@:native('System.IO.StreamWriter') extern class StreamWriter 
-{
-	var BaseStream(default, null):cs.system.io.Stream;
-}

+ 0 - 24
std/cs/system/net/Dns.hx

@@ -1,24 +0,0 @@
-
-package cs.system.net;
-
-import Array;
-
-@:native("System.Net.Dns") 
-extern class Dns
-{
-	/**
-	 * Returns the Internet Protocol (IP) addresses for the specified host.
-	 */
-	public static function GetHostAddresses(hostNameOrAddress : String) : Array<IPAddress>;
-	
-	/**
-	 * Resolves an IP address to an IPHostEntry instance.
-	 */
-	@:overload(function ( address : IPAddress ) : IPHostEntry { } )
-	public static function GetHostEntry( hostNameOrAddress : String ) : IPHostEntry;
-	
-	/**
-	 * Gets the host name of the local computer.
-	 */
-	public static function GetHostName() : String;
-}

+ 0 - 10
std/cs/system/net/EndPoint.hx

@@ -1,10 +0,0 @@
-
-package cs.system.net;
-
-@:native("System.Net.EndPoint") 
-extern class EndPoint {
-	/**
-	 * Gets the address family to which the endpoint belongs.
-	 */
-	public var AddressFamily (get, never) : cs.system.net.sockets.AddressFamily;
-}

+ 0 - 26
std/cs/system/net/IPAddress.hx

@@ -1,26 +0,0 @@
-
-package cs.system.net;
-
-@:native("System.Net.IPAddress")
-extern class IPAddress
-{
-	/**
-	 * Provides a copy of the IPAddress as an array of bytes.
-	 */
-	public function GetAddressBytes() : haxe.io.BytesData;
-	
-	/**
-	 * Gets the address family of the IP address.
-	 */
-	public var AddressFamily(default, never) : cs.system.net.sockets.AddressFamily;
-	
-	/**
-	 * Determines whether a string is a valid IP address.
-	 * @param	ipString	The string to validate.
-	 * @param	address		(out) The IPAddress version of the string.
-	 * @return true if ipString is a valid IP address; otherwise, false.
-	 */
-	public static function TryParse( ipString : String, /* out */ address : IPAddress ) : Bool;
-	
-	public function ToString() : String;
-}

+ 0 - 14
std/cs/system/net/IPEndPoint.hx

@@ -1,14 +0,0 @@
-
-package cs.system.net;
-
-@:native("System.Net.IPEndPoint") 
-extern class IPEndPoint extends EndPoint {
-	
-	/**
-	 * Initializes a new instance of the IPEndPoint class with the specified address and port number.
-	 */
-	public function new( address : IPAddress, port : Int);
-	
-	public var Address (default, default) : IPAddress;
-	public var Port (default, default) : Int;
-}

+ 0 - 21
std/cs/system/net/IPHostEntry.hx

@@ -1,21 +0,0 @@
-
-package cs.system.net;
-
-@:native("System.Net.IPHostEntry") 
-extern class IPHostEntry
-{
-	/**
-	 * Gets or sets a list of IP addresses that are associated with a host.
-	 */
-	public var AddressList(default, default) : NativeArray<IPAddress>;
-	
-	/**
-	 * Gets or sets a list of aliases that are associated with a host.
-	 */
-	public var Aliases(default, default) : NativeArray<String>;
-	
-	/**
-	 * Gets or sets the DNS name of the host.
-	 */
-	public var HostName (default, default) : String;
-}

+ 0 - 37
std/cs/system/net/sockets/AddressFamily.hx

@@ -1,37 +0,0 @@
-
-package cs.system.net.sockets;
-
-@:native("System.Net.Sockets.AddressFamily")
-extern enum AddressFamily {
-	Unknown; // Unbekannte Adressfamilie. 
-	Unspecified; // Nicht definierte Adressfamilie. 
-	Unix; // UNIX-Hostadresse. 
-	InterNetwork; // Adresse für IP Version 4. 
-	ImpLink; // ARPANET IMP-Adresse. 
-	Pup; // Adresse für PUP-Protokolle. 
-	Chaos; // Adresse für MIT CHAOS-Protokolle. 
-	NS; // Adresse für Xerox NS-Protokolle. 
-	Ipx; // IPX- oder SPX-Adresse. 
-	Iso; // Adresse für ISO-Protokolle. 
-	Osi; // Adresse für ISO-Protokolle. 
-	Ecma; // ECMA-Adresse (European Computer Manufacturers Association). 
-	DataKit; // Adresse für Datakit-Protokolle. 
-	Ccitt; // Adressen für CCITT-Protokolle, z. B. X.25. 
-	Sna; // IBM SNA-Adresse. 
-	DecNet; // DECnet-Adresse. 
-	DataLink; // Adresse der Direct Data Link-Schnittstelle. 
-	Lat; // LAT-Adresse. 
-	HyperChannel; // NSC Hyperchannel-Adresse. 
-	AppleTalk; // AppleTalk-Adresse. 
-	NetBios; // NetBios-Adresse. 
-	VoiceView; // VoiceView-Adresse. 
-	FireFox; // FireFox-Adresse. 
-	Banyan; // Banyan-Adresse. 
-	Atm; // Systemeigene Adresse für ATM-Dienste. 
-	InterNetworkV6; // Adresse für IP Version 6. 
-	Cluster; // Adresse für Microsoft Cluster-Produkte. 
-	Ieee12844; // Adresse der IEEE 1284.4-Arbeitsgruppe. 
-	Irda; // IrDA-Adresse. 
-	NetworkDesigners; // Adresse für Network Designers OSI-Gateway-fähige Protokolle. 
-	Max; //MAX-Adresse. 
-}

+ 0 - 22
std/cs/system/net/sockets/NetworkStream.hx

@@ -1,22 +0,0 @@
-
-package cs.system.net.sockets;
-
-import cs.system.io.Stream;
-
-@:native("System.Net.Sockets.NetworkStream") 
-extern class NetworkStream extends Stream{
-	public function new( socket : Socket );
-	
-	/**
-	 * This method reads data into the buffer parameter and returns the number of bytes successfully read. 
-	 * If no data is available for reading, the Read method returns 0.
-	 * The Read operation reads as much data as is available, up to the number of bytes specified by the size parameter.
-	 */
-	public override function Read( buffer : haxe.io.BytesData, offset : Int, size : Int ) : Int;
-	
-	/**
-	 * The Write method starts at the specified offset and sends size bytes from the contents of buffer to the network. 
-	 * The Write method blocks until the requested number of bytes is sent or a SocketException is thrown.
-	 */
-	public override function Write( buffer : haxe.io.BytesData, offset : Int, size : Int ) : Void;
-}

+ 0 - 31
std/cs/system/net/sockets/ProtocolType.hx

@@ -1,31 +0,0 @@
-
-package cs.system.net.sockets;
-
-@:native("System.Net.Sockets.ProtocolType")
-extern enum ProtocolType {
-	IP; // Internet Protocol. 
-	IPv6HopByHopOptions; // IPv6 Hop by Hop Options header. 
-	Icmp; // Internet Control Message Protocol. 
-	Igmp; // Internet Group Management Protocol. 
-	Ggp; // Gateway To Gateway Protocol. 
-	IPv4; // Internet Protocol version 4. 
-	Tcp; // Transmission Control Protocol. 
-	Pup; // PARC Universal Packet Protocol. 
-	Udp; // User Datagram Protocol. 
-	Idp; // Internet Datagram Protocol. 
-	IPv6; // Internet Protocol version 6 (IPv6).  
-	IPv6RoutingHeader; // IPv6 Routing header. 
-	IPv6FragmentHeader; // IPv6 Fragment header. 
-	IPSecEncapsulatingSecurityPayload; // IPv6 Encapsulating Security Payload header. 
-	IPSecAuthenticationHeader; // IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at http://www.ietf.org. 
-	IcmpV6; // Internet Control Message Protocol for IPv6. 
-	IPv6NoNextHeader; // IPv6 No next header. 
-	IPv6DestinationOptions; // IPv6 Destination Options header. 
-	ND; // Net Disk Protocol (unofficial). 
-	Raw; // Raw IP packet protocol. 
-	Unspecified; // Unspecified protocol. 
-	Ipx; // Internet Packet Exchange Protocol. 
-	Spx; // Sequenced Packet Exchange protocol. 
-	SpxII; // Sequenced Packet Exchange version 2 protocol. 
-	Unknown; // Unknown protocol. 
-}

+ 0 - 95
std/cs/system/net/sockets/Socket.hx

@@ -1,95 +0,0 @@
-
-package cs.system.net.sockets;
-
-@:native("System.Net.Sockets.Socket") 
-extern class Socket {
-	public function new ( addressFamily : AddressFamily, socketType : SocketType, protocolType : ProtocolType );
-	
-	/**
-	 * Gets the amount of data that has been received from the network and is available to be read.
-	 */
-	public var Available (default, never) : Int;
-	
-	/**
-	 * Gets or sets a value that indicates whether the Socket is in blocking mode.
-	 */
-	public var Blocking (default, default) : Bool;
-	
-	/**
-	 * Gets a value that indicates whether a Socket is connected to a remote host as of the last Send or Receive operation.
-	 */
-	public var Connected (default, never) : Bool;
-	
-	/**
-	 * The LocalEndPoint property gets an EndPoint that contains the local IP address and port number to which your Socket is bound.
-	 * You must cast this EndPoint to an IPEndPoint before retrieving any information.
-	 */
-	public var LocalEndPoint (default, never) : cs.system.net.EndPoint;
-	
-	/**
-	 * Gets or sets a Boolean value that specifies whether the stream Socket is using the Nagle algorithm.
-	 */
-	public var NoDelay(default, default) : Bool;
-	
-	/**
-	 * The time-out value, in milliseconds. 
-	 * The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
-	 */
-	public var ReceiveTimeout (default, default) : Int;
-	
-	/**
-	 * If you are using a connection-oriented protocol, the RemoteEndPoint property gets the EndPoint that contains the remote IP address and port number to which the Socket is connected.
-	 */
-	public var RemoteEndPoint (default, null) : cs.system.net.EndPoint;
-	
-	/**
-	 * The time-out value, in milliseconds. 
-	 * If you set the property with a value between 1 and 499, the value will be changed to 500. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
-	 */
-	public var SendTimeout (default, default) : Int;
-	
-	
-	/**
-	 * Creates a new Socket for a newly created connection.
-	 */
-	public function Accept() : Socket;
-	
-	/**
-	 * Associates a Socket with a local endpoint.
-	 */
-	public function Bind(localEP : EndPoint) : Void;
-	
-	/**
-	 * Establishes a connection to a remote host. The host is specified by an IP address and a port number.
-	 */
-	public function Connect(address : IPAddress, port : Int) : Void;
-	
-	/**
-	 * Closes the Socket connection and releases all associated resources.
-	 */
-	public function Close() : Void;
-	
-	/**
-	 * Places a Socket in a listening state.
-	 * @param	backlog		The maximum length of the pending connections queue. 
-	 */
-	public function Listen(	backlog : Int ) : Void;
-	
-	/**
-	 * Receives the specified number of bytes of data from a bound Socket into a receive buffer, using the specified SocketFlags.
-	 * @return The number of bytes received.
-	 */
-	@:overload(function ( buffer : haxe.io.BytesData ) : Int { } ) 
-	public function Receive( buffer : haxe.io.BytesData, size : Int, socketFlags : SocketFlags ) : Int;
-	
-	/**
-	 * Send synchronously sends data to the remote host specified in the Connect or Accept method and returns the number of bytes successfully sent.
-	 */
-	public function Send( buffer : haxe.io.BytesData ) : Int;
-	
-	/**
-	 * Disables sends and receives on a Socket.
-	 * @param	how		One of the SocketShutdown values that specifies the operation that will no longer be allowed.
-	 */
-	public function Shutdown(how : SocketShutdown) : Void;
-}

+ 0 - 16
std/cs/system/net/sockets/SocketFlags.hx

@@ -1,16 +0,0 @@
-
-package cs.system.net.sockets;
-
-@:native("System.Net.Sockets.SocketFlags")
-extern enum SocketFlags {
-	None; // Use no flags for this call. 
-	OutOfBand; // Process out-of-band data. 
-	Peek; // Peek at the incoming message. 
-	DontRoute; // Send without using routing tables. 
-	MaxIOVectorLength; // Provides a standard value for the number of WSABUF structures that are used to send and receive data. 
-	Truncated; // The message was too large to fit into the specified buffer and was truncated. 
-	ControlDataTruncated; // Indicates that the control data did not fit into an internal 64-KB buffer and was truncated. 
-	Broadcast; // Indicates a broadcast packet. 
-	Multicast; // Indicates a multicast packet. 
-	Partial; // Partial send or receive for message. 
-}

+ 0 - 9
std/cs/system/net/sockets/SocketShutdown.hx

@@ -1,9 +0,0 @@
-
-package cs.system.net.sockets;
-
-@:native("System.Net.Sockets.SocketShutdown")
-extern enum SocketShutdown {
-	Receive; // Disables a Socket for receiving. This field is constant. 
-	Send; // Disables a Socket for sending. This field is constant. 
-	Both; // Disables a Socket for both sending and receiving. This field is constant. 
-}

+ 0 - 12
std/cs/system/net/sockets/SocketType.hx

@@ -1,12 +0,0 @@
-
-package cs.system.net.sockets;
-
-@:native("System.Net.Sockets.SocketType")
-extern enum SocketType {
-	Stream; // Supports reliable, two - way, connection - based byte streams without the duplication of data and without preservation of boundaries. A Socket of this type communicates with a single peer and requires a remote host connection before communication can begin. Stream uses the Transmission Control Protocol (Tcp) ProtocolType and the InterNetwork AddressFamily. 
-	Dgram; // Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximum length. Messages might be lost or duplicated and might arrive out of order. A Socket of type Dgram requires no connection prior to sending and receiving data, and can communicate with multiple peers. Dgram uses the Datagram Protocol (Udp) and the InterNetwork AddressFamily. 
-	Raw; // Supports access to the underlying transport protocol. Using the SocketType Raw, you can communicate using protocols like Internet Control Message Protocol (Icmp) and Internet Group Management Protocol (Igmp). Your application must provide a complete IP header when sending. Received datagrams return with the IP header and options intact. 
-	Rdm; // Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundaries in data. Rdm (Reliably Delivered Messages) messages arrive unduplicated and in order. Furthermore, the sender is notified if messages are lost. If you initialize a Socket using Rdm, you do not require a remote host connection before sending and receiving data. With Rdm, you can communicate with multiple peers. 
-	Seqpacket; // Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network. Seqpacket does not duplicate data, and it preserves boundaries within the data stream. A Socket of type Seqpacket communicates with a single peer and requires a remote host connection before communication can begin. 
-	Unknown; // Specifies an unknown Socket type.
-}

+ 0 - 29
std/cs/system/reflection/ConstructorInfo.hx

@@ -1,29 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.reflection;
-import cs.NativeArray;
-
-@:native('System.Reflection.ConstructorInfo') extern class ConstructorInfo extends MethodBase
-{
-	@:overload(function(args:NativeArray<Dynamic>):Dynamic {})
-	override function Invoke(obj:Dynamic, args:NativeArray<Dynamic>):Dynamic;
-}

+ 0 - 33
std/cs/system/reflection/MethodBase.hx

@@ -1,33 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.reflection;
-import cs.NativeArray;
-
-@:native('System.Reflection.MethodBase') extern class MethodBase 
-{
-	var Name(default, null):String;
-	var ContainsGenericParameters(default, null):Bool;
-	function GetParameters():NativeArray<ParameterInfo>;
-	function GetGenericArguments():NativeArray<cs.system.Type>;
-	@:overload(function():Dynamic {})
-	function Invoke(obj:Dynamic, args:NativeArray<Dynamic>):Dynamic;
-}

+ 0 - 30
std/cs/system/reflection/MethodInfo.hx

@@ -1,30 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.reflection;
-import cs.NativeArray;
-import cs.NativeArray;
-import cs.system.Type;
-
-@:native('System.Reflection.MethodInfo') extern class MethodInfo extends MethodBase 
-{
-	function MakeGenericMethod(g:NativeArray<Type>):MethodInfo;
-}

+ 0 - 27
std/cs/system/reflection/ParameterInfo.hx

@@ -1,27 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.reflection;
-
-@:native('System.Reflection.ParameterInfo') extern class ParameterInfo 
-{
-	var ParameterType(default, null):cs.system.Type;
-}

+ 0 - 33
std/cs/system/text/Encoding.hx

@@ -1,33 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.text;
-import cs.NativeArray;
-import cs.StdTypes;
-
-@:native("System.Text.Encoding") extern class Encoding
-{
-	static var UTF8(default, null):Encoding;
-	
-	function GetString(b:NativeArray<UInt8>, index:Int, count:Int):String;
-	function GetBytes(s:String):NativeArray<UInt8>;
-	
-}

+ 0 - 76
std/cs/system/text/regularExpressions/Regex.hx

@@ -1,76 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.text.regularExpressions;
-import cs.NativeArray;
-
-@:native('System.Text.RegularExpressions.Regex') extern class Regex
-{
-	function new(pattern:String, options:RegexOptions):Void;
-	@:overload(function(input:String, startPos:Int, len:Int):Match{})
-	@:overload(function(input:String, startPos:Int):Match{})
-	function Match(input:String):Match;
-	function Split(input:String):NativeArray<String>;
-	@:overload(function(input:String, replacement:String,max:Int):String{})
-	function Replace(input:String, replacement:String):String;
-}
-
-@:native("System.Text.RegularExpressions.RegexOptions") extern enum RegexOptions
-{
-	None;
-	IgnoreCase;
-	Multiline;
-	ExplicitCapture;
-	Compiled;
-	Singleline;
-	IgnorePatternWhitespace;
-	RightToLeft;
-	ECMAScript;
-	CultureInvariant;
-}
-
-@:native("System.Text.RegularExpressions.Capture") extern class Capture
-{
-	var Index(default, null):Int;
-	var Length(default, null):Int;
-	var Value(default, null):String;
-}
-
-@:native("System.Text.RegularExpressions.Group") extern class Group extends Capture
-{
-	var Success(default, null):Bool;
-}
-
-@:native("System.Text.RegularExpressions.Match") extern class Match extends Group
-{
-	var Captures(default, null):CaptureCollection;
-	var Groups(default, null):GroupCollection;
-}
-
-@:native("System.Text.RegularExpressions.CaptureCollection") extern class CaptureCollection implements ArrayAccess<Capture>
-{
-	var Count(default, null):Int;
-}
-
-@:native("System.Text.RegularExpressions.GroupCollection") extern class GroupCollection implements ArrayAccess<Group>
-{
-	var Count(default, null):Int;
-}

+ 0 - 39
std/cs/system/threading/Thread.hx

@@ -1,39 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-package cs.system.threading;
-import cs.system.LocalDataStoreSlot;
-
-@:native("System.Threading.Thread") extern class Thread
-{
-	static function AllocateDataStoreSlot():LocalDataStoreSlot;
-	static function GetData(slot:LocalDataStoreSlot):Dynamic;
-	static function SetData(slot:LocalDataStoreSlot, data:Dynamic):Void;
-	static function Sleep(ms:Int):Void;
-
-	@:overload(function(obj:Dynamic):Void {})
-	function Abort():Void;
-
-	@:overload(function(msTimeout:Int):Void {})
-	function Join():Void;
-
-	function Start():Void;
-}

+ 3 - 0
std/cs/types/Char16.hx

@@ -0,0 +1,3 @@
+package cs.types;
+
+typedef Char16 = cs.StdTypes.Char16;

+ 3 - 0
std/cs/types/Int16.hx

@@ -0,0 +1,3 @@
+package cs.types;
+
+typedef Int16 = cs.StdTypes.Int16;

+ 3 - 0
std/cs/types/Int8.hx

@@ -0,0 +1,3 @@
+package cs.types;
+
+typedef Int8 = cs.StdTypes.Int8;

+ 3 - 0
std/cs/types/UInt16.hx

@@ -0,0 +1,3 @@
+package cs.types;
+
+typedef UInt16 = cs.StdTypes.UInt16;

+ 3 - 0
std/cs/types/UInt64.hx

@@ -0,0 +1,3 @@
+package cs.types;
+
+typedef UInt64 = cs.StdTypes.UInt64;

+ 3 - 0
std/cs/types/UInt8.hx

@@ -0,0 +1,3 @@
+package cs.types;
+
+typedef UInt8 = cs.StdTypes.UInt8;