Permalink
Browse files

Added HCDB support

  • Loading branch information...
1 parent 873ee7e commit 1e079e1bdd780ad105d2d950acd80dad3133c63f @Voker57 committed Jan 7, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 amsg2.rb
View
@@ -1,6 +1,11 @@
#!/usr/bin/env ruby
require 'digest'
require 'zlib'
+begin
+ require 'gdbm'
+rescue v
+ puts v
+end
if ARGV.include? '-hc'
ARGV.delete '-hc'
@@ -10,6 +15,13 @@
hc = false
end
+if ARGV.include? '-hcdb'
+ ARGV.delete '-hcdb'
+ hc = true
+ dict = GDBM.open('hdb.dbm',0666)
+else
+ hc = false
+end
if ARGV.size < 1
data = STDIN.read

0 comments on commit 1e079e1

Please sign in to comment.