From 9bd7bb427e195aa29656f33acb758f3e2abced1c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 21 Sep 2023 22:56:22 +0300 Subject: [PATCH] caveat/crunch_isa.py: introduce header guard --- caveat/crunch_isa.py | 2 ++ 1 file changed, 2 insertions(+) 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 = {} -- 2.30.2