Skip to content

Commit

Permalink
* ext/fast_xs/fast_xs.c: patch for 1.8.5 to define RARRAY_PTR. thank…
Browse files Browse the repository at this point in the history
…s, mike perham!
  • Loading branch information
_why committed Mar 31, 2009
1 parent 92e8000 commit cd161c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG
@@ -1,3 +1,10 @@
= 0.8
=== 31st March, 2009
* Saving memory and speed by using RStruct-based elements in the C extension.
* Bug in tag parsing, causing runaway <script> and <style> tags in HTML.
* Problem compiling under Ruby 1.9, due to our_rb_hash_lookup function meant for Ruby 1.8.
* CData was missing inner_text method.

= 0.7
=== 17th March, 2009
* Rewritten parser routine, much lighter on memory, quite a bit faster.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -10,7 +10,7 @@ RbConfig = Config unless defined?(RbConfig)

NAME = "hpricot"
REV = (`#{ENV['GIT'] || "git"} rev-list HEAD`.split.length + 1).to_s
VERS = ENV['VERSION'] || "0.7" + (REV ? ".#{REV}" : "")
VERS = ENV['VERSION'] || "0.8" + (REV ? ".#{REV}" : "")
PKG = "#{NAME}-#{VERS}"
BIN = "*.{bundle,jar,so,o,obj,pdb,lib,def,exp,class}"
CLEAN.include ["ext/hpricot_scan/#{BIN}", "ext/fast_xs/#{BIN}", "lib/**/#{BIN}",
Expand Down
1 change: 1 addition & 0 deletions ext/fast_xs/fast_xs.c
Expand Up @@ -6,6 +6,7 @@

#ifndef RARRAY_LEN
#define RARRAY_LEN(arr) RARRAY(arr)->len
#define RARRAY_PTR(arr) RARRAY(arr)->ptr
#define RSTRING_LEN(str) RSTRING(str)->len
#define RSTRING_PTR(str) RSTRING(str)->ptr
#endif
Expand Down

0 comments on commit cd161c1

Please sign in to comment.