From: Dmitry Selyutin Date: Thu, 21 Sep 2023 19:56:22 +0000 (+0300) Subject: caveat/crunch_isa.py: introduce header guard X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9bd7bb427e195aa29656f33acb758f3e2abced1c;p=cavatools.git caveat/crunch_isa.py: introduce header guard --- diff --git a/caveat/crunch_isa.py b/caveat/crunch_isa.py index fd6b211..8507bed 100644 --- a/caveat/crunch_isa.py +++ b/caveat/crunch_isa.py @@ -12,6 +12,8 @@ rf = open('decode_insn.h', 'w') ef = open('execute_insn.h', 'w') af = open('disasm_insn.h', 'w') kf = open('opcodes_attr.h', 'w') +for fh in (df, rf, ef, af, kf): + fh.write("#pragma once\n") Field = {} Opcode = {}