Browse Source

parser-inc: C++ headers: cassert, cerrno, fstream, new, cstdlib, csetjmp

rdb 7 years ago
parent
commit
a76747cba5

+ 1 - 0
dtool/src/parser-inc/cassert

@@ -0,0 +1 @@
+#include <assert.h>

+ 1 - 0
dtool/src/parser-inc/cerrno

@@ -0,0 +1 @@
+#include <errno.h>

+ 5 - 0
dtool/src/parser-inc/csetjmp

@@ -0,0 +1,5 @@
+#pragma once
+
+namespace std {
+  typedef int jmp_buf[1];
+}

+ 21 - 0
dtool/src/parser-inc/cstdlib

@@ -0,0 +1,21 @@
+#pragma once
+
+#include <stdlib.h>
+
+namespace std {
+  struct div_t {
+    int quot, rem;
+  };
+
+  struct ldiv_t {
+    long quot, rem;
+  };
+
+  struct lldiv_t {
+    long long quot, rem;
+  };
+
+  struct imaxdiv_t {
+    long long quot, rem;
+  };
+}

+ 1 - 0
dtool/src/parser-inc/fstream

@@ -0,0 +1 @@
+#include <iosfwd>

+ 13 - 0
dtool/src/parser-inc/new

@@ -0,0 +1,13 @@
+#pragma once
+
+namespace std {
+  class bad_alloc;
+  class bad_array_new_length;
+
+  struct nothrow_t {
+    explicit nothrow_t() = default;
+  };
+  extern const nothrow_t nothrow;
+
+  using new_handler = void (*)();
+}

+ 3 - 0
dtool/src/parser-inc/stdlib.h

@@ -1 +1,4 @@
 #include <stdtypedefs.h>
+
+#define EXIT_SUCCESS 0
+#define EXIT_FAILURE 1