diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-06 22:13:13 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-06 22:51:19 +0200 |
| commit | a3ec0b1f643d00b9418e4884bd7caa07bf052201 (patch) | |
| tree | 82000510ac9c9cf3f0c7cf4ae5f3c6b123b559cb /src/lib/_u8.rs | |
| parent | Register new snapshots. (diff) | |
| download | rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.tar.xz rust-a3ec0b1f643d00b9418e4884bd7caa07bf052201.zip | |
Rename std modules to be camelcased
(Have fun mergining your stuff with this.)
Diffstat (limited to 'src/lib/_u8.rs')
| -rw-r--r-- | src/lib/_u8.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib/_u8.rs b/src/lib/_u8.rs deleted file mode 100644 index e094e581..00000000 --- a/src/lib/_u8.rs +++ /dev/null @@ -1,28 +0,0 @@ -fn add(u8 x, u8 y) -> u8 { ret x + y; } -fn sub(u8 x, u8 y) -> u8 { ret x - y; } -fn mul(u8 x, u8 y) -> u8 { ret x * y; } -fn div(u8 x, u8 y) -> u8 { ret x / y; } -fn rem(u8 x, u8 y) -> u8 { ret x % y; } - -fn lt(u8 x, u8 y) -> bool { ret x < y; } -fn le(u8 x, u8 y) -> bool { ret x <= y; } -fn eq(u8 x, u8 y) -> bool { ret x == y; } -fn ne(u8 x, u8 y) -> bool { ret x != y; } -fn ge(u8 x, u8 y) -> bool { ret x >= y; } -fn gt(u8 x, u8 y) -> bool { ret x > y; } - -iter range(u8 lo, u8 hi) -> u8 { - while (lo < hi) { - put lo; - lo += 1u8; - } -} - -// Local Variables: -// mode: rust; -// fill-column: 78; -// indent-tabs-mode: nil -// c-basic-offset: 4 -// buffer-file-coding-system: utf-8-unix -// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'"; -// End: |