75c801898d
- Recreate some patches using upstream svn when available, and add some comments for patches Tue May 11 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.8.6.399-2 - tcltk: Give up using potentially unmaintained ruby_1_8_6 branch and instead completely replace with ruby_1_8 branch head (at this time, using rev 27738) (seems to fix 560053, 590503) - Fix Japanese encoding strings under ruby-tcltk/ext/tk/sample/
17 lines
501 B
Diff
17 lines
501 B
Diff
Index: ruby_1_8/ruby.h
|
|
===================================================================
|
|
--- ruby_1_8/ruby.h (revision 13310)
|
|
+++ ruby_1_8/ruby.h (revision 13311)
|
|
@@ -374,6 +374,11 @@
|
|
int iter_lev;
|
|
VALUE ifnone;
|
|
};
|
|
+#define RHASH_TBL(h) (RHASH(h)->tbl)
|
|
+#define RHASH_ITER_LEV(h) (RHASH(h)->iter_lev)
|
|
+#define RHASH_IFNONE(h) (RHASH(h)->ifnone)
|
|
+#define RHASH_SIZE(h) (RHASH(h)->tbl->num_entries)
|
|
+#define RHASH_EMPTY_P(h) (RHASH_SIZE(h) == 0)
|
|
|
|
struct RFile {
|
|
struct RBasic basic;
|