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

This commit is contained in:
rdb 2018-06-09 10:07:35 +02:00
parent 7790f8429d
commit a76747cba5
7 changed files with 45 additions and 0 deletions

View File

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

View File

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

View File

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

View File

@ -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;
};
}

View File

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

13
dtool/src/parser-inc/new Normal file
View File

@ -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 (*)();
}

View File

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