From: Richard Henderson Date: Thu, 28 Feb 2019 22:45:50 +0000 (-0800) Subject: decodetree: Prefix extract function names with decode_function X-Git-Tag: v4.0.0-rc0~26^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71ecf79bf40db20237a3cfc01cc407cc4cad8817;p=thirdparty%2Fqemu.git decodetree: Prefix extract function names with decode_function This makes it easier to name Formats within multiple decode files. Signed-off-by: Richard Henderson --- diff --git a/scripts/decodetree.py b/scripts/decodetree.py index f6f58e2fec1..ac158b42d07 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(), '(',