From fca10b517b448b4023ad8c3225e59dcefd4004e4 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 10 Nov 2024 21:20:34 -0700 Subject: overhaul eval architecture --- src/makefile/conditional.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/makefile/conditional.rs') diff --git a/src/makefile/conditional.rs b/src/makefile/conditional.rs index 98400e6..6eed14a 100644 --- a/src/makefile/conditional.rs +++ b/src/makefile/conditional.rs @@ -99,7 +99,7 @@ fn decode_condition_args(line_body: &str) -> Option<(TokenString, TokenString)> impl Line { pub fn from( line: &str, - expand_macro: impl Fn(&TokenString) -> Result, + mut expand_macro: impl FnMut(&TokenString) -> Result, ) -> Result> { let line = line.trim_start(); Ok(Some(if let Some(line) = line.strip_prefix("ifeq ") { @@ -134,7 +134,7 @@ impl Line { &self, current_state: Option<&State>, is_macro_defined: impl Fn(&str) -> bool, - expand_macro: impl Fn(&TokenString) -> Result, + mut expand_macro: impl FnMut(&TokenString) -> Result, ) -> Result { Ok(match self { Self::IfEqual(arg1, arg2) => { -- cgit v1.2.3