]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/tokyo/alien/tcutil/tcutil.factor
Remove ENUM: f and replace uses with CONSTANTs.
[factor.git] / extra / tokyo / alien / tcutil / tcutil.factor
index afb78dba228ec02a1b44713ecb267adbde91d30b..54fe000df77af8c243518c340cb86c701dbbdc44 100644 (file)
@@ -8,15 +8,14 @@ IN: tokyo.alien.tcutil
     { [ os macosx? ] [ "/opt/local/lib/libtokyocabinet.dylib" ] }
     { [ os unix? ] [ "libtokyocabinet.so" ] }
     { [ os windows? ] [ "tokyocabinet.dll" ] }
-} cond "cdecl" add-library >>
+} cond cdecl add-library >>
 
 LIBRARY: tokyocabinet
 
-C-ENUM:
-    TCDBTHASH
-    TCDBTBTREE
-    TCDBTFIXED
-    TCDBTTABLE ;
+CONSTANT: TCDBTHASH 0
+CONSTANT: TCDBTBTREE 1
+CONSTANT: TCDBTFIXED 2
+CONSTANT: TCDBTTABLE 3
 
 ! FIXME: on windows 64bits this isn't correct, because long is 32bits there, and time_t is int64
 TYPEDEF: long tokyo_time_t