From dfc9ced33cd22f349bb1f82a3ec5f542c6319286 Mon Sep 17 00:00:00 2001 From: Michael Sippel <micha@fragmental.art> Date: Thu, 20 Feb 2025 05:24:50 +0100 Subject: [PATCH] msb continuation ((ammend)) --- src/main.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6240852..7aab3b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,10 +60,21 @@ pub fn get_c_repr_type(dict: &mut impl TypeDict, t: laddertypes::TypeTerm, skip_ } else { Some(format!("{} *", c_type)) } - } else { + } + else if args[0] == laddertypes::TypeTerm::TypeID(dict.get_typeid(&"MsbCont".into()).unwrap()) + { + let c_type = get_c_repr_type(dict, args[1].clone(), false)?; + if skip_pointer { + Some(c_type) + } else { + Some(format!("{} *", c_type)) + } + } + else { None } } + _ => None } }