summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-10-26 11:45:52 +0200
committerAaron Patterson <tenderlove@ruby-lang.org>2023-10-26 13:07:08 -0700
commit8e62596e38fc4a9247f306fb81c95ee85a42acbe (patch)
tree35659384afe2a5c423c2e68ba6855bc4d95e2d5a /shape.h
parent719b40bdf636ff21b3951da2843595c538ead46c (diff)
Move some defines from shape.h to shape.c
If they are only used there, we might as well not expose them.
Diffstat (limited to 'shape.h')
-rw-r--r--shape.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/shape.h b/shape.h
index 0529dc45b6..b69c84ea36 100644
--- a/shape.h
+++ b/shape.h
@@ -11,7 +11,6 @@ typedef uint32_t attr_index_t;
typedef uint32_t shape_id_t;
typedef uint32_t redblack_id_t;
# define SHAPE_ID_NUM_BITS 32
-# define SHAPE_BUFFER_SIZE 0x80000
#else
@@ -21,7 +20,6 @@ typedef uint16_t attr_index_t;
typedef uint16_t shape_id_t;
typedef uint16_t redblack_id_t;
# define SHAPE_ID_NUM_BITS 16
-# define SHAPE_BUFFER_SIZE 0x8000
#endif
@@ -34,7 +32,6 @@ typedef uint16_t redblack_id_t;
# define SHAPE_MAX_VARIATIONS 8
-# define MAX_SHAPE_ID (SHAPE_BUFFER_SIZE - 1)
# define INVALID_SHAPE_ID SHAPE_MASK
# define ROOT_SHAPE_ID 0x0