chiark / gitweb /
ulongs and ushorts
[chiark-tcl.git] / base / tables-examples.tct
index 71cb4bf..37286ad 100644 (file)
@@ -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