Skip to content

Commit dafd649

Browse files
committed
First cut at consolidated core::os module built on core::libc.
1 parent 87c14f1 commit dafd649

File tree

8 files changed

+1270
-13
lines changed

8 files changed

+1270
-13
lines changed

src/etc/libc.c

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <stdio.h>
1111
#include <stdlib.h>
1212
#include <limits.h>
13+
#include <wchar.h>
1314

1415
/* c99 */
1516
#include <inttypes.h>
@@ -53,6 +54,8 @@ void c95_types() {
5354
put_type("clock_t", clock_t);
5455
put_type("time_t", time_t);
5556

57+
put_type("wchar_t", wchar_t);
58+
5659
printf(" }\n");
5760
}
5861

src/libcore/core.rc

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ mod to_str;
8282
// Runtime and language-primitive support
8383

8484
mod libc;
85+
86+
// Rename when transition done.
87+
#[path = "os.rs"]
88+
mod new_os;
89+
mod path;
90+
8591
mod ctypes;
8692
mod math;
8793
mod cmath;

src/libcore/core.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Top-level, visible-everywhere definitions.
22

3-
// Export type option as a synonym for option and export the some and none
4-
// enum constructors.
3+
// Export various ubiquitous types, constructors, methods.
54

65
import option::{some, none};
76
import option = option::t;
7+
import path = path::path;
88
import vec::vec_len;
9-
export option, some, none, vec_len;
9+
export path, option, some, none, vec_len;
1010

1111
// Export the log levels as global constants. Higher levels mean
1212
// more-verbosity. Error is the bottom level, default logging level is

0 commit comments

Comments
 (0)