1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-30 06:35:23 +00:00
icecast-common/timing
giles cfb106b16b Add a name mangling mechanism so we can safely compile in code we share with applications that might link with use. Currently only hooked up for the timing liblet, but thread is the real target.
Basically we define _mangle() in config.h, and use that in timing.h (if available) to prepend the package name to all the symbols in the header and including C files. It's thus fairly invisible.

Unfortunately the prefix is hardwired, so it's another thing that has to be maintained by hand (not that is changes often, but we can't make it a macro). AH_VERBATIM seems to be the only way to add a macro that takes arguments, and it explicitly doesn't do shell expansion. Further, @PACKAGE@ substitution doesn't happen on config.h.in. Insert standard autotools frustration here.

svn path=/trunk/timing/; revision=5060
2003-07-04 23:18:26 +00:00
..
.cvsignore .cvsignore is fun! 2001-09-10 03:04:11 +00:00
BUILDING Initial revision 2001-09-10 02:24:39 +00:00
COPYING Initial revision 2001-09-10 02:24:39 +00:00
Makefile.am Get everthing in make dist, and remove bitkeeper cruft 2003-07-03 12:59:06 +00:00
README Initial revision 2001-09-10 02:24:39 +00:00
timing.c Add a name mangling mechanism so we can safely compile in code we share with applications that might link with use. Currently only hooked up for the timing liblet, but thread is the real target. 2003-07-04 23:18:26 +00:00
timing.h Add a name mangling mechanism so we can safely compile in code we share with applications that might link with use. Currently only hooked up for the timing liblet, but thread is the real target. 2003-07-04 23:18:26 +00:00
TODO Initial revision 2001-09-10 02:24:39 +00:00

this is the timing library.

lgpl

by jack moffitt <jack@icecast.org>