diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-19 09:01:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 09:01:32 +0200 |
commit | 51bfb061af4aeb6ba5413eba68369c20b93ce6fd (patch) | |
tree | 3484e19ea57d195dec42190caa8e52cb88f47d21 | |
parent | 250c31a25d81339cfe928a433ada3c0f17eae580 (diff) | |
parent | 93aba6a7e4ed4a81269b6f673b14f4a3ba03979c (diff) | |
download | ffi-51bfb061af4aeb6ba5413eba68369c20b93ce6fd.tar.gz |
Merge pull request #1024 from peterzhu2118/pz-old-compat
Remove old definitions in compat.h for Ruby 1.x
-rw-r--r-- | ext/ffi_c/compat.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ext/ffi_c/compat.h b/ext/ffi_c/compat.h index 889a4be..856836f 100644 --- a/ext/ffi_c/compat.h +++ b/ext/ffi_c/compat.h @@ -32,26 +32,6 @@ #include <ruby.h> -#ifndef RARRAY_LEN -# define RARRAY_LEN(ary) RARRAY(ary)->len -#endif - -#ifndef RARRAY_PTR -# define RARRAY_PTR(ary) RARRAY(ary)->ptr -#endif - -#ifndef RSTRING_LEN -# define RSTRING_LEN(s) RSTRING(s)->len -#endif - -#ifndef RSTRING_PTR -# define RSTRING_PTR(s) RSTRING(s)->ptr -#endif - -#ifndef NUM2ULL -# define NUM2ULL(x) rb_num2ull((VALUE)x) -#endif - #ifndef roundup # define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) #endif @@ -75,9 +55,6 @@ # define MIN(a, b) ((a) < (b) ? (a) : (b)) #endif -#ifndef RB_GC_GUARD -# define RB_GC_GUARD(x) (x) -#endif #ifdef HAVE_RB_GC_MARK_MOVABLE #define ffi_compact_callback(x) .dcompact = (x), |