From c5d868c928d8542617266b13fdc90fcf54d9bfcd Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 5 Nov 2019 19:24:00 +0300 Subject: [PATCH] start the C header removal process --- fns.h | 12 ++++++++++++ vlib/compiler/cheaders.v | 1 + vlib/os/os.v | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 fns.h diff --git a/fns.h b/fns.h new file mode 100644 index 0000000000..bfe8c47616 --- /dev/null +++ b/fns.h @@ -0,0 +1,12 @@ +// +/* +void sigaction(); +void sigemptyset(); + +// +void* memcpy(); +void* memmove(); +void* memset(); +unsigned long strlen(const char*); +char* strerror(int); +*/ diff --git a/vlib/compiler/cheaders.v b/vlib/compiler/cheaders.v index baa14c4ddf..6b5cfa9215 100644 --- a/vlib/compiler/cheaders.v +++ b/vlib/compiler/cheaders.v @@ -6,6 +6,7 @@ CommonCHeaders = ' #include // TODO remove all these includes, define all function signatures and types manually #include +//#include "fns.h" #include #include // for va_list #include // int64_t etc diff --git a/vlib/os/os.v b/vlib/os/os.v index a8508a6657..26538440c1 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -7,7 +7,7 @@ module os import filepath #include -#include +//#include #include /*