From dd23359b77210453122a07f77f7f783c0ec6dfea Mon Sep 17 00:00:00 2001 From: deadwood Date: Sat, 9 Mar 2013 19:50:24 +0000 Subject: [PATCH] vgpostprocess.py: assign method to correct object for call event git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46861 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- tools/vgpostprocess.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tools/vgpostprocess.py b/tools/vgpostprocess.py index 8b6bec57e7..6e8fd4840a 100644 --- a/tools/vgpostprocess.py +++ b/tools/vgpostprocess.py @@ -47,13 +47,19 @@ def loadsymbolinformation(): return modules def addmodulespec(line, module, output): - if (line[0] != 'c'): - if (module.id == -1): - module.id = addmodulespec.nextmoduleid - addmodulespec.nextmoduleid += 1 - output.write("ob=(" + str(module.id) + ") " + module.name + os.linesep) - else: - output.write("ob=(" + str(module.id) + ")" + os.linesep) + if (line[0] == 'c'): + prefix="c" + else: + prefix="" + + if (module.id == -1): + module.id = addmodulespec.nextmoduleid + addmodulespec.nextmoduleid += 1 + modulename = " " + module.name + else: + modulename = "" + + output.write(prefix + "ob=(" + str(module.id) + ")" + modulename + os.linesep) def main(): -- 2.11.4.GIT