workaround a stupid issue in how decoding is performed in mutt *sigh*
[apps/madmutt.git] / tools / cpkg2c.mll
index 0abfe8b..b04a849 100644 (file)
@@ -496,7 +496,7 @@ and ext_member m f = parse
           fprintf ob "};\n";
 
           (* dump struct init func *)
-          fprintf ob "\nstatic void %s_init(void)\n{\n" pkg.name;
+          fprintf ob "\nstatic void (%s_init)(void)\n{\n" pkg.name;
           List.iter (function (m, _, _) ->
             if not (fst m.typ) then
               let init, f, l = m.init in