Project

General

Profile

Actions

Feature #9513

closed

Hide Rational internal

Added by akr (Akira Tanaka) almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
-
[ruby-core:60665]

Description

I'd like to hide C-level Ratinal internal.
I made a patch to do it.
This is similar to [Feature #6083] for struct RBignum.

If the internal is hidden, we can change it without compatibility problem.
For example, we can use GMP.

The patch moves struct RRational and related macros to internal.h.
It also provides two accessors, rb_rational_num and rb_rational_den and
changes ext/bigdecimal/bigdecimal.c and ext/date/date_core.c to
use these accessors.

How do you think, tadf?


Files

hide-rational-internal.patch (5.98 KB) hide-rational-internal.patch akr (Akira Tanaka), 02/12/2014 11:51 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0