From: Jelmer Vernooij Date: Tue, 1 Apr 2008 22:01:04 +0000 (+0200) Subject: Don't write public functions to protoheaders. X-Git-Url: http://git.samba.org/samba.git/?p=jelmer%2Fsamba4-debian.git;a=commitdiff_plain;h=0528e30cf7c8a18c757e8cd9ddd6bea235ae4f1f Don't write public functions to protoheaders. Since the public functions can be used by external parties we should make changing their signature as hard as possible. It's also a lot easier to document functions in manually written headers. --- diff --git a/source/build/smb_build/makefile.pm b/source/build/smb_build/makefile.pm index 03198fd94..fb3ac561f 100644 --- a/source/build/smb_build/makefile.pm +++ b/source/build/smb_build/makefile.pm @@ -336,7 +336,7 @@ sub ProtoHeader($$) $self->output("$priv: $ctx->{MK_FILE} \$($ctx->{NAME}_OBJ_LIST:.o=.c) \$(srcdir)/script/mkproto.pl\n"); $self->output("\t\@echo \"Creating \$@\"\n"); $self->output("\t\@mkdir -p \$(\@D)\n"); - $self->output("\t\@\$(PERL) \$(srcdir)/script/mkproto.pl --srcdir=\$(srcdir) --builddir=\$(builddir) --all=\$@ \$($ctx->{NAME}_OBJ_LIST)\n\n"); + $self->output("\t\@\$(PERL) \$(srcdir)/script/mkproto.pl --srcdir=\$(srcdir) --builddir=\$(builddir) --public=/dev/null --private=\$@ \$($ctx->{NAME}_OBJ_LIST)\n\n"); } sub write($$)