From c2b720d3423c12276b0eeda978de5b0848b83788 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Tue, 15 Jun 2021 09:03:01 +0000 Subject: [PATCH] [kernel][asmxygen.py] Remove debug output git-svn-id: svn://kolibrios.org@8856 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/asmxygen.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/asmxygen.py b/kernel/trunk/asmxygen.py index 562ec16dd4..8fcccde8d4 100644 --- a/kernel/trunk/asmxygen.py +++ b/kernel/trunk/asmxygen.py @@ -67,7 +67,8 @@ class AsmLabel: self.name = name class AsmMacro: - def __init__(self, line, name, comment, args): + def __init__(self, asm_file_name, line, name, comment, args): + self.file = asm_file_name self.line = line self.name = name self.comment = comment @@ -244,8 +245,6 @@ def parse_macro(asm_file_name, lines, line_idx): f"in the macro declaration:\n'{line}'") if arg != '': args.append(arg) - if len(args) > 0: - print(line, args) # Find a comment if any comment = "" while curr() and curr() != ';': step() @@ -272,7 +271,7 @@ def parse_macro(asm_file_name, lines, line_idx): warnings += f"{asm_file_name}:{line_idx + 1}: Сomment sarting with lowercase\n" # Build the output line_span = line_idx - line_idx_orig + 1 - result = AsmMacro(line_idx_orig, name, comment, args) + result = AsmMacro(asm_file_name, line_idx_orig, name, comment, args) return (line_span, result) def get_declarations(asm_file_contents, asm_file_name):