summaryrefslogtreecommitdiffstats
path: root/ruby.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-19 13:16:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-19 13:16:12 +0000
commite8a76b643b8fc4a989bf8bb4d9eec941356b3cd1 (patch)
treeb23835045489cb1ba3d73b602df4e2182a7a6c95 /ruby.h
parente6325be47b68dc3c2a2d849673844e75539959d3 (diff)
downloadruby-e8a76b643b8fc4a989bf8bb4d9eec941356b3cd1.tar.gz
ruby-e8a76b643b8fc4a989bf8bb4d9eec941356b3cd1.tar.xz
ruby-e8a76b643b8fc4a989bf8bb4d9eec941356b3cd1.zip
* configure.in (RUBY_REPLACE_TYPE): cache convertible type info.
* intern.h (rb_detach_process): use rb_pid_t instead of pid_t. * ruby.h (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM, NUM2GIDT): defaulted to conversion using long. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index 6cb3143e4..fb0511fef 100644
--- a/ruby.h
+++ b/ruby.h
@@ -187,6 +187,25 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
# define OFFT2NUM(v) INT2NUM(v)
#endif
+#ifndef PIDT2NUM
+#define PIDT2NUM(v) LONG2NUM(v)
+#endif
+#ifndef NUM2PIDT
+#define NUM2PIDT(v) NUM2LONG(v)
+#endif
+#ifndef UIDT2NUM
+#define UIDT2NUM(v) LONG2NUM(v)
+#endif
+#ifndef NUM2UIDT
+#define NUM2UIDT(v) NUM2LONG(v)
+#endif
+#ifndef GIDT2NUM
+#define GIDT2NUM(v) LONG2NUM(v)
+#endif
+#ifndef NUM2GIDT
+#define NUM2GIDT(v) NUM2LONG(v)
+#endif
+
#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)
#define FIX2ULONG(x) (((VALUE)(x))>>1)
#define FIXNUM_P(f) (((SIGNED_VALUE)(f))&FIXNUM_FLAG)