diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-08 13:28:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 13:28:13 +0900 |
commit | 9e6e39c3512f7a962c44dc3729c98a0f8be90341 (patch) | |
tree | 901a22676d54d78240e450b64a8cd06eb1703910 /internal/stdbool.h | |
parent | 5ac4bf2cd87e1eb5779ca5ae7f96a1a22e8436d9 (diff) | |
download | ruby-9e6e39c3512f7a962c44dc3729c98a0f8be90341.tar.gz |
Merge pull request #2991 from shyouhei/ruby.h
Split ruby.h
Diffstat (limited to 'internal/stdbool.h')
-rw-r--r-- | internal/stdbool.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/internal/stdbool.h b/internal/stdbool.h deleted file mode 100644 index e090e575e7..0000000000 --- a/internal/stdbool.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef INTERNAL_STDBOOL_H /* -*- C -*- */ -#define INTERNAL_STDBOOL_H -/** - * @file - * @brief Thin wrapper to <stdbool.h> - * @author \@shyouhei - * @copyright This file is a part of the programming language Ruby. - * Permission is hereby granted, to either redistribute and/or - * modify this file, provided that the conditions mentioned in the - * file COPYING are met. Consult the file for details. - */ -#include "ruby/config.h" /* for HAVE_STDBOOL_H */ - -#ifdef HAVE_STDBOOL_H -# include <stdbool.h> -#endif - -/* Note that we assume the compiler isn't C++. */ -#ifdef __bool_true_false_are_defined -# undef bool -# undef true -# undef false -# undef __bool_true_false_are_defined -#else -typedef unsigned char _Bool; -#endif - -/* See also http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2229.htm */ -#define bool _Bool -#define true ((_Bool)+1) -#define false ((_Bool)+0) -#define __bool_true_false_are_defined - -#endif /* INTERNAL_STDBOOL_H */ |