diff options
-rw-r--r-- | src/prim.sml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/prim.sml b/src/prim.sml index e094e0b1..849518f4 100644 --- a/src/prim.sml +++ b/src/prim.sml @@ -74,20 +74,7 @@ fun pad (n, ch, s) = else str ch ^ pad (n-1, ch, s) -val gccify = String.translate (fn ch => - case ch of - #"\"" => "\\\"" - | #"\\" => "\\\\" - | #"'" => "\\'" - | #"\n" => "\\n" - | #"\r" => "\\r" - | #"\t" => "\\t" - | #" " => " " - | _ => - if Char.isPrint ch then - str ch - else - "\\" ^ pad (3, #"0", Int.fmt StringCvt.OCT (ord ch))) +val gccify = String.toCString fun p_t_GCC t = case t of |