From 3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 12 May 2011 17:24:54 +0200 Subject: Downcase std modules again, move to :: for module dereferencing This should be a snapshot transition. --- src/lib/std.rc | 96 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'src/lib/std.rc') diff --git a/src/lib/std.rc b/src/lib/std.rc index a317b114..5c0ea313 100644 --- a/src/lib/std.rc +++ b/src/lib/std.rc @@ -6,76 +6,76 @@ meta (name = "std", // Built-in types support modules. -mod Int; -mod UInt; -mod U8; -mod Vec; -mod Str; +mod _int; +mod _uint; +mod _u8; +mod _vec; +mod _str; -// General IO and system-services modules. +// General io and system-services modules. -mod IO; -mod Sys; -mod Task; +mod io; +mod sys; +mod _task; // Utility modules. -mod Option; -mod Util; +mod option; +mod util; // Authorize various rule-bendings. -auth IO = unsafe; -auth FS = unsafe; -auth OS_FS = unsafe; -auth Run = unsafe; -auth Str = unsafe; -auth Vec = unsafe; -auth Task = unsafe; +auth io = unsafe; +auth fs = unsafe; +auth os_fs = unsafe; +auth run = unsafe; +auth _str = unsafe; +auth _vec = unsafe; +auth _task = unsafe; -auth Dbg = unsafe; +auth dbg = unsafe; -auth UInt.next_power_of_two = unsafe; -auth Map.mk_hashmap = unsafe; -auth Rand.mk_rng = unsafe; +auth _uint::next_power_of_two = unsafe; +auth map::mk_hashmap = unsafe; +auth rand::mk_rng = unsafe; -// Target-OS module. +// Target-os module. -// TODO: Have each OS module re-export everything from GenericOS. -mod GenericOS; +// TODO: Have each os module re-export everything from genericos. +mod generic_os; alt (target_os) { case ("win32") { - mod OS = "win32_OS.rs"; - mod OS_FS = "win32_FS.rs"; + mod os = "win32_os.rs"; + mod os_fs = "win32_fs.rs"; } case ("macos") { - mod OS = "macos_OS.rs"; - mod OS_FS = "posix_FS.rs"; + mod os = "macos_os.rs"; + mod os_fs = "posix_fs.rs"; } else { - mod OS = "linux_OS.rs"; - mod OS_FS = "posix_FS.rs"; + mod os = "linux_os.rs"; + mod os_fs = "posix_fs.rs"; } } -mod Run = "Run_Program.rs"; -mod FS; +mod run = "run_program.rs"; +mod fs; // FIXME: parametric -mod Map; -mod Deque; -mod List; -mod Rand; -mod Dbg; -mod BitV; -mod Sort; -mod SHA1; -mod EBML; -mod UFind; -mod ExtFmt; -mod Box; -mod GetOpts; -mod Term; -mod Time; +mod map; +mod deque; +mod list; +mod rand; +mod dbg; +mod bitv; +mod sort; +mod sha1; +mod ebml; +mod ufind; +mod extfmt; +mod box; +mod getopts; +mod term; +mod time; // Local Variables: // mode: rust; -- cgit v1.2.3