1. Dmitry Grebeniuk
  2. ocaml-cstruct-codegen

Commits

Dmitry Grebeniuk  committed 5bd01d7

+ [u]int16

  • Participants
  • Parent commits d0274a7
  • Branches default

Comments (0)

Files changed (1)

File lib/cstruct_codegen.ml

View file
       }
 ;
 
-value int8  = fld 1 "int8"  "int"
-  and uint8 = fld 1 "uint8" "int"
-  and int64 = fld 8 "int64" "int64"
+(*                 bytes
+                   |  getter-setter
+                   |  |        ocaml type
+                   |  |        |            *)
+value int8   = fld 1  "int8"   "int"
+  and uint8  = fld 1  "uint8"  "int"
+  and int16  = fld 2  "int16"  "int"
+  and uint16 = fld 2  "uint16" "int"
+  and int64  = fld 8  "int64"  "int64"
 ;