X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=base%2Ftables-examples.tct;h=37286adb6bcf5597d479aaa4dfbcb9534b59cedd;hp=71cb4bf3935bb88a76524bad4c1a2a61e94c9dce;hb=bc152fdba00b88a09a1c263bc8ff8490099b7027;hpb=ceb4860abfe091be1ff68795d820ea4c9afc4f4a diff --git a/base/tables-examples.tct b/base/tables-examples.tct index 71cb4bf..37286ad 100644 --- a/base/tables-examples.tct +++ b/base/tables-examples.tct @@ -9,6 +9,7 @@ Type sockaddr: SockAddr_Value @ Init sockaddr sockaddr_clear(&@); Type sockid: DgramSockID @ +Type ulong: unsigned long @ H-Include "hbytes.h" @@ -27,6 +28,18 @@ Table hbytes HBytes_SubCommand h2raw hex hb => obj + ulong2h + value ulong + => hb + h2ulong + hex hb + => ulong + ushort2h + value ulong + => hb + h2ushort + hex hb + => ulong length v hb => int