From eb185eef2998e7eed1dce6b82e3b4836a3db3ab2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Oct 2012 11:23:58 +0000 Subject: generator: Use an OCaml struct to store the structs. This just makes it simpler to add extra fields to each struct. This is code motion. --- generator/csharp.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator/csharp.ml') diff --git a/generator/csharp.ml b/generator/csharp.ml index 9f86f48f..803a4a5a 100644 --- a/generator/csharp.ml +++ b/generator/csharp.ml @@ -110,7 +110,7 @@ namespace Guestfs * method names (eg. "class stat" and "stat"). *) List.iter ( - fun (typ, cols) -> + fun { s_name = typ; s_cols = cols } -> pr " [StructLayout (LayoutKind.Sequential)]\n"; pr " public class _%s {\n" typ; List.iter ( -- cgit