From 11adcb0291d2267f14b375b1f57b6a50e90b51f1 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 21 Sep 2023 23:01:38 +0300 Subject: [PATCH] caveat/make_ecall_tbl.py: introduce header guard --- caveat/make_ecall_tbl.py | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.30.2