reorder headers to allow OpenBSD hack to function

This commit is contained in:
dzaima 2022-11-20 18:22:51 +02:00
parent af74369e0b
commit 24195780df
9 changed files with 13 additions and 13 deletions

View File

@ -1,8 +1,8 @@
#include <math.h>
#include "../core.h"
#include "../utils/talloc.h"
#include "../utils/mut.h"
#include "../builtins.h"
#include <math.h>
B md2BI_uc1(Md2* t, B o, B f, B g, B x) { return ((BMd2*)t)->uc1(t, o, f, g, x); }
B md2BI_ucw(Md2* t, B o, B f, B g, B w, B x) { return ((BMd2*)t)->ucw(t, o, f, g, w, x); }

View File

@ -1,8 +1,3 @@
#include <unistd.h>
#include <poll.h>
#include <errno.h>
#include "../core.h"
#include "../utils/hash.h"
#include "../utils/calls.h"
@ -13,6 +8,9 @@
#include "../ns.h"
#include "../nfns.h"
#include <unistd.h>
#include <poll.h>
#include <errno.h>
static bool eqStr(B w, u32* x) {
if (isAtm(w) || RNK(w)!=1) return false;

View File

@ -1,9 +1,9 @@
#include <stdarg.h>
#include "../core.h"
#include "../utils/mut.h"
#include "../utils/utf.h"
#include "../utils/talloc.h"
#include "../builtins.h"
#include <stdarg.h>
bool please_tail_call_err = true;

View File

@ -1,4 +1,3 @@
#include <sys/mman.h>
#include "../core.h"
#include "../core/gstack.h"
#include "../ns.h"
@ -6,6 +5,7 @@
#include "../utils/talloc.h"
#include "../utils/wyhash.h"
#include "../vm.h"
#include <sys/mman.h>
#ifndef USE_PERF
#define USE_PERF 0 // enable writing symbols to /tmp/perf-<pid>.map

View File

@ -1,3 +1,4 @@
#include "../core.h"
#if !NO_MMAP
#include <sys/mman.h>
#endif

View File

@ -1,3 +1,4 @@
#include "../core.h"
#if !NO_MMAP
#include <sys/mman.h>
#endif

View File

@ -1,6 +1,6 @@
#include <math.h>
#include "../../core.h"
#include "../../builtins.h"
#include <math.h>
extern bool please_tail_call_err;
static NOINLINE void cmp_err() { if (please_tail_call_err) thrM("Invalid comparison"); }

View File

@ -1,10 +1,10 @@
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
#include "../core.h"
#include "file.h"
#include "talloc.h"
#include "cstr.h"
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
FILE* file_open(B path, char* desc, char* mode) { // doesn't consume

View File

@ -1,10 +1,10 @@
#include <unistd.h>
#include "core.h"
#include "vm.h"
#include "ns.h"
#include "utils/utf.h"
#include "utils/talloc.h"
#include "utils/interrupt.h"
#include <unistd.h>
#ifndef UNWIND_COMPILER // whether to hide stackframes of the compiler in compiling errors
#define UNWIND_COMPILER 1