mirror of git://gcc.gnu.org/git/gcc.git
runtime: use <stdbool.h>
<stdbool.h> has been available since C99. Use it rather than defining our own boolean type and values. Fixes https://gcc.gnu.org/PR114875 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/582275
This commit is contained in:
parent
050a4f7fc5
commit
678dc5e850
|
|
@ -1,4 +1,4 @@
|
||||||
98e92493db2ab7857a5934a950a830fc1f95a4e5
|
1f0c8364cd35026a647aa4e66ee4d8563c8a5d27
|
||||||
|
|
||||||
The first line of this file holds the git revision number of the last
|
The first line of this file holds the git revision number of the last
|
||||||
merge done from the gofrontend repository.
|
merge done from the gofrontend repository.
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
#include "go-assert.h"
|
#include "go-assert.h"
|
||||||
#include <complex.h>
|
#include <complex.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
@ -51,7 +52,6 @@ typedef uintptr uintreg;
|
||||||
|
|
||||||
/* Defined types. */
|
/* Defined types. */
|
||||||
|
|
||||||
typedef _Bool bool;
|
|
||||||
typedef uint8 byte;
|
typedef uint8 byte;
|
||||||
typedef struct g G;
|
typedef struct g G;
|
||||||
typedef struct mutex Lock;
|
typedef struct mutex Lock;
|
||||||
|
|
@ -114,11 +114,6 @@ extern M* runtime_m(void);
|
||||||
extern G* runtime_g(void)
|
extern G* runtime_g(void)
|
||||||
__asm__(GOSYM_PREFIX "runtime.getg");
|
__asm__(GOSYM_PREFIX "runtime.getg");
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
true = 1,
|
|
||||||
false = 0,
|
|
||||||
};
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PtrSize = sizeof(void*),
|
PtrSize = sizeof(void*),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue