[Prime-cvs] CVS update: prime/lib/engine

Zurück zum Archiv-Index

Hiroyuki Komatsu komat****@users*****
2005年 1月 31日 (月) 04:45:48 JST


Index: prime/lib/engine/engine-userdict2-lib.rb
diff -u prime/lib/engine/engine-userdict2-lib.rb:1.1.2.8 prime/lib/engine/engine-userdict2-lib.rb:1.1.2.9
--- prime/lib/engine/engine-userdict2-lib.rb:1.1.2.8	Sun Jun  6 15:31:25 2004
+++ prime/lib/engine/engine-userdict2-lib.rb	Mon Jan 31 04:45:48 2005
@@ -1,5 +1,5 @@
 #### engine-userdict2-lib.rb: Library for engine-userdict2.rb
-#### $Id: engine-userdict2-lib.rb,v 1.1.2.8 2004/06/06 06:31:25 komatsu Exp $
+#### $Id: engine-userdict2-lib.rb,v 1.1.2.9 2005/01/30 19:45:48 komatsu Exp $
 ####
 #### Copyright (C) 2003 Hiroyuki Komatsu <komat****@taiya*****>
 ####     All rights reserved.
@@ -22,6 +22,7 @@
     else
       @file = open(filename, 'w+')
       initialize_file()
+      @file.flush()
     end
   end
 
@@ -35,6 +36,7 @@
 
   def unlock()
     @file.flock(File::LOCK_UN)
+    @file.flush()
   end
 
   def initialize_file()
@@ -131,7 +133,7 @@
   end
 
   def add_key(key, value, context = 0)
-#    puts "PrimeHash::add_key(key = '#{key}', value = '#{value}', context = #{context})"
+    # puts "PrimeHash::add_key(key = '#{key}', value = '#{value}', context = #{context})"
     key += [context].pack('N')
 
     lock {


Prime-cvs メーリングリストの案内
Zurück zum Archiv-Index