From 311663f55722699ee64fd53228d06b4ba8ef7ac0 Mon Sep 17 00:00:00 2001 From: Jadon Fowler Date: Tue, 26 Dec 2017 15:50:53 -0800 Subject: [PATCH] Add rename rules for 'as', 'box', 'true', & 'false' Fixes #156 Signed-off-by: Jadon Fowler --- src/Language/Rust/Corrode/C.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Language/Rust/Corrode/C.md b/src/Language/Rust/Corrode/C.md index 3ae88cf..d137ac4 100644 --- a/src/Language/Rust/Corrode/C.md +++ b/src/Language/Rust/Corrode/C.md @@ -333,6 +333,9 @@ treatment. ```haskell applyRenames :: Ident -> String applyRenames ident = case identToString ident of + "as" -> "as_" + "box" -> "box_" + "false" -> "false_" "final" -> "final_" "fn" -> "fn_" "in" -> "in_" @@ -341,6 +344,7 @@ applyRenames ident = case identToString ident of "match" -> "match_" "mod" -> "mod_" "proc" -> "proc_" + "true" -> "true_" "type" -> "type_" "where" -> "where_" name -> name