projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aa34b5
)
Ignoble trick to allow us to override _init with a macro.
author
Pierre Habouzit
<madcoder@debian.org>
Mon, 28 May 2007 09:44:49 +0000
(11:44 +0200)
committer
Pierre Habouzit
<madcoder@debian.org>
Mon, 28 May 2007 09:44:49 +0000
(11:44 +0200)
Will be changed in a (I hope) near future. Used in madmutt.cpkg
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
tools/cpkg2c.mll
patch
|
blob
|
history
diff --git
a/tools/cpkg2c.mll
b/tools/cpkg2c.mll
index
0abfe8b
..
b04a849
100644
(file)
--- a/
tools/cpkg2c.mll
+++ b/
tools/cpkg2c.mll
@@
-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