From ee7facd1db22adb32b5f9077591e4cf2468e32c2 Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Rename verbatum to verbatim --- smp.1 | 2 +- src/macro_processor/macro_processor.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/smp.1 b/smp.1 index 78d2973..f64559c 100644 --- a/smp.1 +++ b/smp.1 @@ -14,7 +14,7 @@ Macros Includes a file in-place, performing macro-expansion on it. NOTE, THERE IS NO LOOP PROTECTION HERE! -.IP "\fBinclude_verbatum()\fR" +.IP "\fBinclude_varbatim()\fR" Same as \fBinclude\fR, but does not expand macros. .IP "\fBdefine( [, ])\fR" diff --git a/src/macro_processor/macro_processor.rs b/src/macro_processor/macro_processor.rs index 96d5471..93a86af 100644 --- a/src/macro_processor/macro_processor.rs +++ b/src/macro_processor/macro_processor.rs @@ -144,8 +144,8 @@ fn smp_builtin_include( return smp.process_input(&input_file); } -/// Include a new file verbatum, don't do ANY additional processing -fn smp_builtin_include_verbatum( +/// Include a new file verbatim, don't do ANY additional processing +fn smp_builtin_include_verbatim ( smp: &mut MacroProcessor, macro_name: &str, args: &mut [String], @@ -300,8 +300,8 @@ impl MacroProcessor { MacroType::Function(smp_builtin_include), ); self.define_macro( - String::from("include_verbatum"), - MacroType::Function(smp_builtin_include_verbatum), + String::from("include_verbatim"), + MacroType::Function(smp_builtin_include_verbatim), ); self.define_macro( String::from("shell"), -- cgit v1.2.3