diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-31 03:02:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-31 03:02:35 +0000 |
commit | e2ba33a5089f0c9e177114555b98a5a72363d2b9 (patch) | |
tree | 26767e56b33e667ef654f507bfa172d7801f88c1 /complex.c | |
parent | b817cd8a14aee00841c56c28b7a4b0ac0cb3a3bc (diff) | |
download | ruby-e2ba33a5089f0c9e177114555b98a5a72363d2b9.tar.gz |
complex.c: pure declarations
* complex.c (get_dat1, get_dat2): turn into pure variable
declarations only, not mixed code and declarations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -270,13 +270,10 @@ k_complex_p(VALUE x) #define k_exact_zero_p(x) (k_exact_p(x) && f_zero_p(x)) #define get_dat1(x) \ - struct RComplex *dat;\ - dat = ((struct RComplex *)(x)) + struct RComplex *dat = RCOMPLEX(x) #define get_dat2(x,y) \ - struct RComplex *adat, *bdat;\ - adat = ((struct RComplex *)(x));\ - bdat = ((struct RComplex *)(y)) + struct RComplex *adat = RCOMPLEX(x), *bdat = RCOMPLEX(y) inline static VALUE nucomp_s_new_internal(VALUE klass, VALUE real, VALUE imag) |