diff options
author | 卜部昌平 <[email protected]> | 2020-04-08 13:28:13 +0900 |
---|---|---|
committer | <[email protected]> | 2020-04-08 13:28:13 +0900 |
commit | 9e6e39c3512f7a962c44dc3729c98a0f8be90341 () | |
tree | 901a22676d54d78240e450b64a8cd06eb1703910 /internal/hash.h | |
parent | 5ac4bf2cd87e1eb5779ca5ae7f96a1a22e8436d9 (diff) |
Merge pull request #2991 from shyouhei/ruby.h
Split ruby.h
Notes: Merged-By: shyouhei <[email protected]>
-rw-r--r-- | internal/hash.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,17 +1,17 @@ -#ifndef INTERNAL_HASH_H /* -*- C -*- */ -#define INTERNAL_HASH_H -/** * @file - * @brief Internal header for Hash. - * @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" #include <stddef.h> /* for size_t */ -#include "internal/stdbool.h" /* for bool */ #include "ruby/ruby.h" /* for struct RBasic */ #include "ruby/st.h" /* for struct st_table */ @@ -200,9 +200,9 @@ RHASH_ST_CLEAR(VALUE h) static inline unsigned RHASH_AR_TABLE_SIZE_RAW(VALUE h) { - unsigned ret = FL_TEST_RAW(h, RHASH_AR_TABLE_SIZE_MASK); ret >>= RHASH_AR_TABLE_SIZE_SHIFT; - return ret; } static inline bool |