From 71ecf79bf40db20237a3cfc01cc407cc4cad8817 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 28 Feb 2019 14:45:50 -0800 Subject: [PATCH] decodetree: Prefix extract function names with decode_function This makes it easier to name Formats within multiple decode files. Signed-off-by: Richard Henderson --- scripts/decodetree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index f6f58e2fec..ac158b42d0 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -312,7 +312,8 @@ class Format(General): """Class representing an instruction format""" def extract_name(self): - return 'extract_' + self.name + global decode_function + return decode_function + '_extract_' + self.name def output_extract(self): output('static void ', self.extract_name(), '(',