From 77caffff8eadfc980fb45a9e0b01b4b0bc0ce73f Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sat, 19 Sep 2009 21:16:13 -0500 Subject: [PATCH] update tokyo structs --- extra/tokyo/alien/tcrdb/tcrdb.factor | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/extra/tokyo/alien/tcrdb/tcrdb.factor b/extra/tokyo/alien/tcrdb/tcrdb.factor index 3ff3bc6428..0450e6522c 100755 --- a/extra/tokyo/alien/tcrdb/tcrdb.factor +++ b/extra/tokyo/alien/tcrdb/tcrdb.factor @@ -2,7 +2,7 @@ ! See http://factorcode.org/license.txt for BSD license. USING: alien alien.c-types alien.libraries alien.syntax combinators kernel system tokyo.alien.tchdb tokyo.alien.tcutil -tokyo.alien.tctdb ; +tokyo.alien.tctdb classes.struct ; IN: tokyo.alien.tcrdb << "tokyotyrant" { @@ -14,16 +14,16 @@ IN: tokyo.alien.tcrdb LIBRARY: tokyotyrant TYPEDEF: void* TCRDB* -! C-STRUCT: TCRDB -! { "pthread_mutex_t" mmtx } -! { "pthread_key_t" eckey } -! { "char*" host } -! { "int" port } -! { "char*" expr } -! { "int" fd } -! { "TTSOCK*" sock } -! { "double" timeout } -! { "int" opts } ; +! STRUCT: TCRDB +! { mmtx pthread_mutex_t } +! { eckey pthread_key_t } +! { host char* } +! { port int } +! { expr char* } +! { fd int } +! { sock TTSOCK* } +! { timeout double } +! { opts int } ; C-ENUM: TTESUCCESS @@ -96,9 +96,9 @@ CONSTANT: RDBITVOID TDBITVOID CONSTANT: RDBITKEEP TDBITKEEP TYPEDEF: void* RDBQRY* -! C-STRUCT: RDBQRY -! { "TCRDB*" rdb } -! { "TCLIST*" args } ; +! STRUCT: RDBQRY +! { rdb TCRDB* } +! { args TCLIST* } ; CONSTANT: RDBQCSTREQ TDBQCSTREQ CONSTANT: RDBQCSTRINC TDBQCSTRINC