From bc7cd928f435d3472872bd6e9760bde0d3158cd4 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 25 Aug 2021 18:00:43 +0200 Subject: [PATCH] fxconv: add synonyms Structure=ObjectData and ptr=ref --- fxconv/fxconv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 40ad28d..55024e3 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -169,6 +169,8 @@ def ref(base, offset=None, padding=None): raise FxconvError(f"invalid type {type(base)} for ref()") +ptr = ref + def sym(name): return Sym("_" + name) @@ -228,6 +230,8 @@ class ObjectData: assembly += f".long {name} + {offset}\n" return assembly +Structure = ObjectData + # # Area specifications #