From 73eecbd0cad2e4d16a6a2d0aa197e3bb60f93b1f Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 11 Apr 2011 21:55:03 -0400 Subject: Factor out creation of calls into ExtFmt.RT --- src/lib/ExtFmt.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ExtFmt.rs b/src/lib/ExtFmt.rs index 7ef91605..e08de7ee 100644 --- a/src/lib/ExtFmt.rs +++ b/src/lib/ExtFmt.rs @@ -264,15 +264,15 @@ mod CT { // Functions used by the fmt extension at runtime mod RT { - fn int_to_str(int i) -> str { + fn conv_int(int i) -> str { ret _int.to_str(i, 10u); } - fn uint_to_str(uint u) -> str { + fn conv_uint(uint u) -> str { ret _uint.to_str(u, 10u); } - fn bool_to_str(bool b) -> str { + fn conv_bool(bool b) -> str { if (b) { ret "true"; } else { @@ -280,7 +280,7 @@ mod RT { } } - fn char_to_str(char c) -> str { + fn conv_char(char c) -> str { ret _str.from_char(c); } } -- cgit v1.2.3