From: Dmitry Selyutin Date: Thu, 21 Sep 2023 20:01:38 +0000 (+0300) Subject: caveat/make_ecall_tbl.py: introduce header guard X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11adcb0291d2267f14b375b1f57b6a50e90b51f1;p=cavatools.git caveat/make_ecall_tbl.py: introduce header guard --- diff --git a/caveat/make_ecall_tbl.py b/caveat/make_ecall_tbl.py index 6ae34c5..9447738 100644 --- a/caveat/make_ecall_tbl.py +++ b/caveat/make_ecall_tbl.py @@ -39,6 +39,7 @@ for line in rv: highest = max(num, highest) en = open('ecall_nums.h', 'w') +en.write("#pragma once\n") for name in sorted(enames.keys()): en.write('#ifndef __NR_{:s}\n'.format(name))