3138 Commits

Author SHA1 Message Date
Erik de Castro Lopo
c7603948de include/share/Makefile.am : Add win_utf8_io.h. 2013-04-02 06:05:47 +11:00
Erik de Castro Lopo
932c7ba26c Purge more strcpy/strcat usage. 2013-04-01 22:00:59 +11:00
Erik de Castro Lopo
36c1f08564 configure.ac : Version 1.3.0pre3. 2013-04-01 20:49:41 +11:00
Erik de Castro Lopo
0cd2e9ed69 Purge FLAC__STRINGS_IN_UTF8 from VC project files. 2013-04-01 20:01:37 +11:00
Erik de Castro Lopo
2199d08692 Enable utf8 I/O stuff when compiling with MinGW. 2013-04-01 19:57:13 +11:00
Erik de Castro Lopo
b3c3e2ac4f Use recursive automake in src/share/ part of tree.
This will make it easier to incorporate the win_utf8_io stuff.
2013-04-01 19:46:12 +11:00
Erik de Castro Lopo
e14a08766a Add CLEANFILES to relevant Makefile.am to force removal of Windows EXEs.
This ensures they are removed even we've cross-compiled from Linux
to Windows and then configured for Linux. We don't want the Windows
EXEs to be run after configuring for Linux.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
b3dab5416d include/share/compat.h : Cleanup. 2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
7dc5e3a8ff Rename _flac_stat to flac_stat_s. 2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
608e246f52 Rename all 'utf8_io' -> 'win_utf8_io'. 2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
5705b4d7b2 Huge Windows utf8 I/O patch.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
9b8fdafe3a src/test_libFLAC/decoders.c : Minor improvement. 2013-03-29 20:54:34 +11:00
Miroslav Lichvar
1ec6e3a064 Fix option names in documentation and help messages.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-03-29 16:31:15 +11:00
Erik de Castro Lopo
9a93680d2b include/share/compat.h : Simplify. 2013-03-23 22:02:56 +11:00
Erik de Castro Lopo
14c28ae485 Replace a couple of safe_strncpy/cat with snprintf. 2013-03-21 17:28:47 +11:00
Erik de Castro Lopo
2d6354ff2a Replace broken str* functions with safe versions. 2013-03-19 20:23:44 +11:00
Erik de Castro Lopo
15a011c43d Add new file include/share/safe_str.h.
New functions safe_strncat() and safe_strncpy() which always return
a NUL terminated string and do not overflow the destination buffer.
2013-03-19 20:15:49 +11:00
Erik de Castro Lopo
619b43df36 autogen.sh : OpenBSD tweaks. 2013-03-18 19:35:30 +11:00
Erik de Castro Lopo
c152d1adf9 More Microsoft Visual Studio project file updates.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-18 06:22:57 +11:00
Erik de Castro Lopo
74aac94cda Windows flac_snprintf tweaks.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-17 22:06:11 +11:00
Erik de Castro Lopo
5a14742dad include/share/private.h : Add FLAC_API to private functions.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-17 22:04:43 +11:00
Erik de Castro Lopo
3c84f9e86b Use new function flac_snprintf() where ever appropriate.
This replaces un-safe usage of sprintf() and Micorsoft's _snprintf()
with something sane.
2013-03-17 21:00:07 +11:00
Erik de Castro Lopo
06af237c70 Add file src/share/grabbag/snprintf.c to grabbag library.
Define function flac_snprintf() which has ISO C99 snprintf() behavior
even when compiling with Microsoft Visual Studio, by wrapping the
MSVS snprintf_s() function.
2013-03-17 20:52:04 +11:00
Erik de Castro Lopo
248d7924b7 FLAC.sln : Remove obsolete in_flac project.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-17 19:41:37 +11:00
Erik de Castro Lopo
d3dac717ce changelog.html : Updates. 2013-03-17 18:31:46 +11:00
Erik de Castro Lopo
f86b1a3353 Wave64 patch from Janne Hyvrinen <cse@sci.fi>.
GUID had one word incorrectly in little endian order.
2013-03-17 18:28:57 +11:00
Erik de Castro Lopo
ca7a3cb822 Restore code dropped in commit f25b2602dc. 2013-03-15 06:37:59 +11:00
Erik de Castro Lopo
f25b2602dc Fix a couple of Windows 2Gig file size issues.
Patch submitted by Janne Hyvärinen <cse@sci.fi>.
2013-03-14 18:22:37 +11:00
Erik de Castro Lopo
6497ce1977 configure.ac : Detect the size of off_t. 2013-03-13 21:54:15 +11:00
Erik de Castro Lopo
195470fe2e Add configure option to enable GNU GCC stack smash protection.
This option is disabled by default because it is known not to work
on FreeBSD 9.1 and for Linux -> Windows cross compiling using the
Debian MinGW-w64 tool chain.

It is known to work for native compiles in Debian testing and
OpenBSD 5.2.
2013-03-13 18:59:50 +11:00
Erik de Castro Lopo
300d17c56f MS VS : Add alloc.c to the grabbag static build.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-03-12 19:15:04 +11:00
Erik de Castro Lopo
9edb817dd2 MS VS inline/extern fix from Ben Alison plus comments.
Add explicit extern to functions that are locally declared inline
but which also have non-inline public prototypes.

It seems MS VS does not quite meet the C99 spec (section 6.7.4).
2013-03-12 17:12:07 +11:00
Erik de Castro Lopo
06f3812d79 configure.ac : When compiling with GCC use some extra warning flags. 2013-03-11 06:06:34 +11:00
Erik de Castro Lopo
96a5ba7120 Fix -Wshadow warnings. 2013-03-11 06:06:34 +11:00
Erik de Castro Lopo
0a2b901e99 src/libFLAC/include/private/macros.h : Fix flac_min.
The existing flac_min macro was generating -Wshadow compiler warnings
when nested.
2013-03-11 06:06:34 +11:00
Erik de Castro Lopo
dd1fa80883 Fix -Wstrict-prototypes -Wmissing-prototypes warnings.
The files src/flac/encode.c and src/libFLAC/stream_encoder.c use
functions in libFLAC that are marked as 'unpublished debug routines'.
This patch moves these functions to new file include/share/private.h
and marks them as 'unpublished debug routines'.
2013-03-11 06:06:33 +11:00
Erik de Castro Lopo
b85cc57d73 include/share/compat.h : feeko and ftello fixes for MinGW.
Patch from LRN <lrn1986@gmail.com>.
2013-03-10 18:38:07 +11:00
Erik de Castro Lopo
11efaa37f7 gcc_version.m4 : Use cut instead of sed.
Add this and other macros to Makefile.am.
2013-03-10 12:38:38 +11:00
Erik de Castro Lopo
168c258aa3 Purge old un-maintained MSVC 6 project files. 2013-03-10 11:17:20 +11:00
Erik de Castro Lopo
c8f84e243f doc/html/changelog.html : Prepare for 1.3.0 release. 2013-03-10 10:58:57 +11:00
Erik de Castro Lopo
c574ffbd3e doc/html/documentation_tools_flac.html : Tweaks. 2013-03-09 23:56:19 +11:00
Erik de Castro Lopo
1ad32efb89 Version 1.3.0pre2. 1.3.0pre2 2013-03-09 22:06:12 +11:00
Erik de Castro Lopo
05ef63b44d Update .gitignore. 2013-03-09 20:50:27 +11:00
Erik de Castro Lopo
b555ec1a6c m4/gcc_version.m4 : Fix XIPH_GCC_VERSION macro.
Macro was misbehaving with OpenBSD's sed.
2013-03-09 20:07:38 +11:00
Erik de Castro Lopo
2860f1780c configure.ac : If gcc is version 4.2, use -fgnu89-inline.
Using -gnu-inline avoids a rather ugly warning message that only
seems to be present with gcc-4.2.
2013-03-09 19:45:27 +11:00
Erik de Castro Lopo
cd3162a2f6 test/test_compression.sh : Replace seq with numbers.
Apparently seq is a GNU program that isn't installed by default
on OpenBSD.
2013-03-09 19:40:19 +11:00
Erik de Castro Lopo
712b578539 configure.ac : Disable stack protector on FreeBSD. 2013-03-09 18:42:59 +11:00
Erik de Castro Lopo
71d630dbba FLAC/ordinals.h : Add <stdint.h> definitions for MSVC < 2010. 2013-03-09 10:25:39 +11:00
Erik de Castro Lopo
d5b03bcc36 configure.ac : Don't enable stack protector for mingw* host_os. 2013-03-09 09:18:06 +11:00
Erik de Castro Lopo
ae663c36af FLAC/ordinals.h : Provide links for <stdint.h> replacements. 2013-03-08 21:13:13 +11:00