]> git.proxmox.com Git - wasi-libc.git/commitdiff
gen-headers: make handle output consistient with prior
authorPat Hickey <pat@moreproductive.org>
Thu, 2 Apr 2020 21:45:52 +0000 (14:45 -0700)
committerPat Hickey <pat@moreproductive.org>
Thu, 2 Apr 2020 22:54:40 +0000 (15:54 -0700)
tools/wasi-headers/src/c_header.rs

index 8e87972c95d5e1be32aa81f850902ee5027cf69e..4035f191ee24e92ee2175e78e3eaa7315ca71def 100644 (file)
@@ -374,7 +374,7 @@ fn print_union(ret: &mut String, name: &Id, u: &UnionDatatype) {
 }
 
 fn print_handle(ret: &mut String, name: &Id, h: &HandleDatatype) {
-    ret.push_str(&format!("typedef int __wasi_{}_t;", ident_name(name)));
+    ret.push_str(&format!("typedef int __wasi_{}_t;\n\n", ident_name(name)));
 
     ret.push_str(&format!(
         "_Static_assert(sizeof(__wasi_{}_t) == {}, \"witx calculated size\");\n",