summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-12-24 22:18:22 +0000
committerMamoru Komachi <usata@gentoo.org>2003-12-24 22:18:22 +0000
commita8f9a2a5fc5c478365575d4b02d522c98795b8fe (patch)
treef9ed7d4bebe9615e4397c4203c71678b3f9f0c5a /dev-ruby/sary-ruby/files
parentMarked as stable. Added a patch to make prime running on ruby 1.8 (diff)
downloadhistorical-a8f9a2a5fc5c478365575d4b02d522c98795b8fe.tar.gz
historical-a8f9a2a5fc5c478365575d4b02d522c98795b8fe.tar.bz2
historical-a8f9a2a5fc5c478365575d4b02d522c98795b8fe.zip
Marked as stable. Added a patch to make prime running on ruby 1.8
Diffstat (limited to 'dev-ruby/sary-ruby/files')
-rw-r--r--dev-ruby/sary-ruby/files/sary-ruby-0.5_pre20030507-gentoo.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-ruby/sary-ruby/files/sary-ruby-0.5_pre20030507-gentoo.diff b/dev-ruby/sary-ruby/files/sary-ruby-0.5_pre20030507-gentoo.diff
new file mode 100644
index 000000000000..16cd50082d29
--- /dev/null
+++ b/dev-ruby/sary-ruby/files/sary-ruby-0.5_pre20030507-gentoo.diff
@@ -0,0 +1,13 @@
+diff -urN sary-ruby.ORIG/searcher.c sary-ruby/searcher.c
+--- sary-ruby.ORIG/searcher.c 2002-11-24 04:05:00.000000000 +0900
++++ sary-ruby/searcher.c 2003-12-25 06:13:47.000000000 +0900
+@@ -119,7 +119,8 @@
+ GET_Searcher(klass, searcher);
+
+ Check_SafeStr(pattern);
+- pat = str2cstr(pattern, &len);
++ pat = RSTRING(pattern)->ptr;
++ len = RSTRING(pattern)->len;
+
+ if (sary_searcher_search2(searcher, pat, len))
+ return Qtrue;