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

25 Commits

Author SHA1 Message Date
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 -