bifcl: Minor cleanup of include files

This commit is contained in:
Tim Wojtulewicz 2025-05-21 10:04:59 -07:00
parent 7026938082
commit 23a5e46b8e
4 changed files with 11 additions and 16 deletions

View file

@ -1,12 +1,7 @@
#include <set>
#include <string>
using namespace std;
#include <string.h>
#include "bif_arg.h"
#include <cstring>
static struct {
const char* type_enum;
const char* bif_type;

View file

@ -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 <stdint.h>
// redefinition of the types. Including cstdint early avoids this.
#include <cstdint>
}
%{
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include <cstring>
#include <memory>
#include "bif_arg.h"
#include "bif_parse.h"

View file

@ -1,11 +1,10 @@
%{
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <set>
#include <string>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include "module_util.h"

View file

@ -1,6 +1,7 @@
#pragma once
#include <stdio.h>
#include <cstdint>
#include <cstdio>
enum builtin_func_arg_type {
#define DEFINE_BIF_TYPE(id, bif_type, bro_type, c_type, c_type_smart, accessor, accessor_smart, cast_smart, \