1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-23 16:48:31 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
thor
cd793ecebd getlopt: Machinery to avoid leaking strdup() memory.
Hm, why are we using strdup, anyway?



git-svn-id: svn://scm.orgis.org/mpg123/trunk@4657 35dc7657-300d-0410-a2e5-dc2837fedb53
2020-04-26 14:04:33 +00:00
thor
8063845129 Another go at the ANSI/ISO C vs. POSIX extensions business, reworking the use of compatibility functions. Somewhat cleaner now, but output modules get about 1K of bloat from string/memory compat functions ...
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4022 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-04-12 23:24:13 +00:00
thor
f8940cb2d9 Hackery for more standards conformity, triggered by bugs 227 and 228.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4021 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-04-10 22:49:21 +00:00
thor
a0f0686164 various fixes, standards conformance, compiler pedantism, plain little screwups
git-svn-id: svn://scm.orgis.org/mpg123/trunk@3867 35dc7657-300d-0410-a2e5-dc2837fedb53
2015-09-10 18:44:20 +00:00
thor
df961f4c2f Fix behaviour on certain command line arguments that only call a handler
function and do neither have a short name, nor an address to store
a value to (--cdr, --au). The effect was that on

	mpg123 --au test.au -n 300 file.bla

parsing stopped after test.au and mpg123 tried to open the file "-n".

I fail to understand the idea behind the lines in getlopt.c that I
disabled. Perhaps one time, Oliver can explain the reasoning to me.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@3777 35dc7657-300d-0410-a2e5-dc2837fedb53
2015-09-05 10:07:46 +00:00
thor
a76ae47854 Moved that replacement strdup to commpat.c, also check for it instead of assuming some specific system.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1594 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-10-08 08:16:35 +00:00
thor
462b68b2b7 Update some copyright years.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1426 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-03-20 13:55:01 +00:00
thor
0e6ff48a5e Ensure that debug.h is included after any system headers.
There may be funny conflicts with my generic macro names.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@1425 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-03-20 13:51:55 +00:00
njh
a7bea0d89e Changed all occurrences of http://mpg123.de to http://mpg123.org (for consistency)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@683 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-06-01 00:32:13 +00:00
thor
933198fc46 I couldn't help myself... here is the option for a build using the generic decoder that produces 32bit float output.
You select it via --with-cpu=generic_float, which implies dummy output and also disables the buffer.
The decoded audio can be written raw or to a IEEE float wav file.

This demonstrates that it's doable and not too complicated for the generic code.
Next would be to a) make it into a runtime option and b) adapt assembler opts to that.
The latter will most likely not happen for every opt.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@668 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-05-31 15:54:06 +00:00
thor
6fb3b706cc Big commit, inspired by bug 1555113
a) turning any potentially harmful (to terminal) exit()s into return or safe_exit in mpg123.c
b) alsong that, convert many fprintf(stderr to the error macro

I tried to refrain from more cleanups...


git-svn-id: svn://scm.orgis.org/mpg123/trunk@490 35dc7657-300d-0410-a2e5-dc2837fedb53
2006-09-29 23:42:47 +00:00
thor
7629b027dc memory gets lost on strdup according to valgrind...
git-svn-id: svn://scm.orgis.org/mpg123/trunk@439 35dc7657-300d-0410-a2e5-dc2837fedb53
2006-08-25 09:24:38 +00:00
thor
45bf7cf02f equalizer patch really was jsut a path to equalizer, new author for linux-ppc-nas make target
git-svn-id: svn://scm.orgis.org/mpg123/trunk@248 35dc7657-300d-0410-a2e5-dc2837fedb53
2006-07-17 14:59:14 +00:00
thor
0d729b47c8 There were several option parsing regressions most probably caused by application of Nicholas' changes to my code with changed command line parsing.
Fixed the obvious ones and made the option parser bail out if it encouters such an error again.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@181 35dc7657-300d-0410-a2e5-dc2837fedb53
2006-06-26 21:36:07 +00:00
thor
7f83f4e3ef These got some new-style debugging through the terminal control bug hunt.
Also, I want to take the chance to hint at scripts/debugdef.pl that I added previously:
It is a Perl script generating the debug.h header in a way to avoid variadic macros for fprintf.
Result are debugN macros that mean "debug line with N arguments". Examples:

debug1("Ok, there's one value: %i", var)
debug3("now three of them: %i %f %i", var1, var2, var3)

simplest case:

debug("just a message");


git-svn-id: svn://scm.orgis.org/mpg123/trunk@176 35dc7657-300d-0410-a2e5-dc2837fedb53
2006-06-26 12:11:40 +00:00
njh
f6101fd8b8 Tidying up a bit: moved all source code into 'src' directory.
Moving aside old build system and calling it 'legacy'.
Can build legacy system using ./MakeLegacy.sh <foo>


git-svn-id: svn://scm.orgis.org/mpg123/trunk@149 35dc7657-300d-0410-a2e5-dc2837fedb53
2006-06-21 03:19:32 +00:00