1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-17 15:33:16 +03:00
Commit Graph

35 Commits

Author SHA1 Message Date
Jelmer Vernooij
03eef5f337 r23542: Include function documentation in prototype headers. 2007-10-10 14:53:26 -05:00
Jelmer Vernooij
44248f662f r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_. 2007-10-10 14:53:08 -05:00
Jelmer Vernooij
222acbe33b r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl 2007-10-10 14:52:59 -05:00
Andrew Bartlett
13c9df1d4f r19633: Merge to lorikeet-heimdal, removing krb5_rd_req_return_keyblock in favour of a more tasteful replacement.
Remove kerberos_verify.c, as we don't need that code any more.
Replace with code for using the new krb5_rd_req_ctx() borrowed from
Heimdal's accecpt_sec_context.c

Andrew Bartlett
2007-10-10 14:25:21 -05:00
Jelmer Vernooij
4f5987e77f r18750: Disable not updating the last-modifification-time of proto headers because this was confusing make. 2007-10-10 14:19:07 -05:00
Jelmer Vernooij
587a681c19 r18171: Generate prototypes for functions returning bool. 2007-10-10 14:17:45 -05:00
Stefan Metzmacher
1686c69d0e r17838: revert rev 17754
readd --always-create option to mkproto.pl

metze
2007-10-10 14:16:46 -05:00
Stefan Metzmacher
e85d7eeb0a r17754: remove the --always-create option from mkproto.pl
and make this behavior the default.

as with make 3.81 and autodependencies this way is much
faster as make can use faster codepathes internally.

(without this make needed more and more startup time after using
 autodependencies for a few weeks)

metze
2007-10-10 14:16:37 -05:00
Stefan Metzmacher
248d56af9d r15642: add an '--always-create' option to mkproto.pl
with this the proto headers will be always regenerated,
even if the content hasn't changed

you can use currently by
#>make MK_PROTO_ALWAYS_CREATE=yes'
or
#>export MK_PROTO_ALWAYS_CREATE=yes
#>make

metze
2007-10-10 14:07:26 -05:00
Alexander Bokovoy
9329854489 r15036: Add out of tree build support and see how buildfarm will respond to make constructs 2007-10-10 14:04:03 -05:00
Jelmer Vernooij
06403ea2be r14607: Update mkproto.pl to only write out new header files if the contents changed. 2007-10-10 13:59:00 -05:00
Jelmer Vernooij
9bfc3c2537 r14479: Cope with _PUBLIC_ not being defined. Needed for when external projects
include this header.
2007-10-10 13:57:31 -05:00
Stefan Metzmacher
2db081fd70 r13964: make lp_* functions public
metze
2007-10-10 13:52:32 -05:00
Jelmer Vernooij
ea9988dfda r13898: Add a subsystem-specific DEFAULT_VISIBILITY property that can be used
to not export symbols when building shared libraries. Symbols that have to be
available to users of the library can be explicitly exported by
prepending them with _PUBLIC_ in the C source.
2007-10-10 13:52:20 -05:00
Andrew Bartlett
a88933668f r13019: Again protect us against format string mismatches, with the new split
out proto headers.

The reason this is done in this way is that the attribute must be on
the prototype, not the actual function defintion.  Hence the macros
which expand to nothing in the C file, but expand to an __attribute__
in the prototype header.

Andrew Bartlett
2007-10-10 13:51:17 -05:00
Stefan Metzmacher
d4d2f011e2 r12831: add 'extern' to public prototypes
metze
2007-10-10 13:50:03 -05:00
Jelmer Vernooij
87f665a1d5 r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server. 2007-10-10 13:47:51 -05:00
Jelmer Vernooij
cdfd20fa17 r12520: Add support for --help to mkproto.pl
Allow the use of {PRIVATE,PUBLIC}_PROTO_HEADER for [SUBSYSTEM]
and [LIBRARY] sections in .mk files. Public functions can be marked
by adding _PUBLIC_ between their return type and function name.

This should eventually make include/proto.h and include/structs.h obsolete.
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
b6d2ad4ce0 r12494: Support loading modules from .so files for most subsystems.
We now use a different system for initializing the modules for a subsystem.
Most subsystems now have an init function that looks something like this:

	init_module_fn static_init[] = STATIC_AUTH_MODULES;
	init_module_fn *shared_init = load_samba_modules(NULL, "auth");

	run_init_functions(static_init);
	run_init_functions(shared_init);

	talloc_free(shared_init);

I hope to eliminate the other init functions later on (the
init_programname_subsystems; defines).
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
95f6e49cb8 r12449: Fix some warnings 2007-10-10 13:47:41 -05:00
Jelmer Vernooij
e3466df6df r12446: Merge mkproto.sh's functionality into mkproto.pl
Allow specifying the _PUBLIC_ keyword on functions to indicate a function
is public.

Public prototypes can now be written to a seperate header, although this
functionality is not used yet.
2007-10-10 13:47:40 -05:00
Jelmer Vernooij
897d7b7d39 r7859: Merge a few scripts to one script that checks for the following unused
(used in configure.in, but their output is never used) autoconf macros:
- AC_DEFINE
- AC_CHECK_FUNC
- AC_CHECK_FUNCS
- AC_CHECK_HEADER
- AC_CHECK_HEADERS
2007-10-10 13:18:43 -05:00
Andrew Tridgell
01288e82bc r2583: mkproto.pl now treats "int main" as a special case and avoids it. 2007-10-10 12:59:07 -05:00
Andrew Tridgell
fe60e899d7 r2407: extend mkproto.pl to handle smb_ucs2_t for toupper_w() 2007-10-10 12:58:49 -05:00
Stefan Metzmacher
b3cae309ae r1904: catch the common gtk function prototypes with make proto
metze
2007-10-10 12:58:10 -05:00
Andrew Bartlett
5d39d7497f r1123: Make all lp_ string functions return 'const char *'.
Fix other 'const' warnings in the torture code.

Andrew Bartlett
2007-10-10 12:56:38 -05:00
Jelmer Vernooij
7cab3a00d7 r20: Add the registry library. Still needs a lot of work,
see source/lib/registry/TODO for details.
2007-10-10 12:50:33 -05:00
Andrew Tridgell
f4abd20b84 more portability fixes. We now almost compile on solaris -
Andrew Tridgell
f6bb118799 by using a single proto.h we gain another factor of 4 in the speed of
"make proto"
-
Andrew Tridgell
1c980e6c4e final bit of tidyup and speedup -
Andrew Tridgell
9ea02c51d4 much faster inner loop and neater code -
Andrew Tridgell
945ada7e7e fixed loadparm handling properly -
Andrew Tridgell
e58384eb53 nicer base type handling -
Andrew Tridgell
04eb12b56c reduced the number of magic types we need in mkproto.pl
In general I prefer "struct foo" to just "foo" for most
structures. There are exceptions.
-
Andrew Tridgell
9386326868 changed to perl for mkproto, patch from vance -