public
Rubygem
Description: Ruby osx/plist extension for reading/writing property lists
Clone URL: git://github.com/kballard/osx-plist.git
Search Repo:
Prevent timeEpoch from GCing
kballard (author)
Thu Jul 20 11:55:08 -0700 2006
commit  ba9405acea871a7b8f10b41422db50885f37e192
tree    dd6429ec7f808f8d0d1505af35cbaf930e7e9896
parent  fee9a8be9a683b9c48304e4d18fe41f2334db4ce
...
67
68
69
70
71
72
 
 
 
 
73
74
75
...
564
565
566
 
567
568
569
...
67
68
69
 
 
 
70
71
72
73
74
75
76
...
565
566
567
568
569
570
571
0
@@ -67,9 +67,10 @@
0
   } while (0)
0
 #endif
0
 
0
-VALUE mPlist;
0
-VALUE ePropertyListError;
0
-VALUE timeEpoch;
0
+static VALUE mPlist;
0
+static VALUE timeEpoch;
0
+static VALUE ePropertyListError;
0
+
0
 static VALUE id_gm;
0
 static VALUE id_plus;
0
 static VALUE id_minus;
0
@@ -564,6 +565,7 @@
0
   ePropertyListError = rb_define_class("PropertyListError", rb_eStandardError);
0
   id_gm = rb_intern("gm");
0
   timeEpoch = rb_funcall(rb_cTime, id_gm, 1, INT2FIX(2001));
0
+ rb_define_const(mPlist, "EPOCH", timeEpoch);
0
   id_plus = rb_intern("+");
0
   id_minus = rb_intern("-");
0
   id_read = rb_intern("read");

Comments

    No one has commented yet.