From 23a5e46b8ebf43b2e16960949b7ee6218f3d5d18 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 21 May 2025 10:04:59 -0700 Subject: [PATCH] bifcl: Minor cleanup of include files --- tools/bifcl/bif_arg.cc | 9 ++------- tools/bifcl/builtin-func.l | 8 ++++---- tools/bifcl/builtin-func.y | 7 +++---- tools/bifcl/include/bif_arg.h | 3 ++- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/tools/bifcl/bif_arg.cc b/tools/bifcl/bif_arg.cc index a0196d7bf9..920846e4a8 100644 --- a/tools/bifcl/bif_arg.cc +++ b/tools/bifcl/bif_arg.cc @@ -1,12 +1,7 @@ - -#include -#include -using namespace std; - -#include - #include "bif_arg.h" +#include + static struct { const char* type_enum; const char* bif_type; diff --git a/tools/bifcl/builtin-func.l b/tools/bifcl/builtin-func.l index a2e73e8a46..9b4d4628e1 100644 --- a/tools/bifcl/builtin-func.l +++ b/tools/bifcl/builtin-func.l @@ -1,15 +1,15 @@ %top{ -// Include stdint.h at the start of the generated file. Typically +// Include cstdint at the start of the generated file. Typically // MSVC will include this header later, after the definitions of // the integral type macros. MSVC then complains that about the -// redefinition of the types. Including stdint.h early avoids this. -#include +// redefinition of the types. Including cstdint early avoids this. +#include } %{ #include -#include #include +#include #include #include "bif_arg.h" #include "bif_parse.h" diff --git a/tools/bifcl/builtin-func.y b/tools/bifcl/builtin-func.y index 901f7892fd..46dd4fb4fa 100644 --- a/tools/bifcl/builtin-func.y +++ b/tools/bifcl/builtin-func.y @@ -1,11 +1,10 @@ %{ +#include +#include +#include #include #include #include -#include - -#include -#include #include "module_util.h" diff --git a/tools/bifcl/include/bif_arg.h b/tools/bifcl/include/bif_arg.h index f983e89dd6..7a62d34af8 100644 --- a/tools/bifcl/include/bif_arg.h +++ b/tools/bifcl/include/bif_arg.h @@ -1,6 +1,7 @@ #pragma once -#include +#include +#include enum builtin_func_arg_type { #define DEFINE_BIF_TYPE(id, bif_type, bro_type, c_type, c_type_smart, accessor, accessor_smart, cast_smart, \