Commit Graph

56 Commits

Author SHA1 Message Date
Erik de Castro Lopo
a7e3705d05 Move code inside #ifdef _MSC_VER to compat.h. 2012-06-22 16:03:04 +10:00
Erik de Castro Lopo
8749dc278d Fix building when configured with --disable-shared.
The problem was that the function safe_malloc_mul_2op_() was originally
defined as static inline in inclide/share/alloc.h but had to be moved
because GCC was refusing to inline it. Once moved however, static linking
would fail when building the flac executable because the function ended
up beiong linked twice.
2012-06-22 14:23:56 +10:00
Erik de Castro Lopo
6c2040dc90 Remove casting of return value from *alloc() functions. 2012-04-04 21:29:25 +10:00
Erik de Castro Lopo
587e118bfc Fix a bunch of -Wtype-limits warnings. 2012-02-17 17:52:12 +11:00
Erik de Castro Lopo
dac99fa20b Patch from Dave Yeo to remove more CPP hackery.
Dave's comments:
This commit will break OS/2's EMX 0.9d library (GCC 2.8.1) which has been
been replaced by klibc. Considering the age of EMX and lack of testing
and that klibc contains so many improvements I think this is exceptable.
2012-02-08 21:07:08 +11:00
Josh Coalson
dea0f5a044 add 2009 copyright 2009-01-07 07:31:28 +00:00
Josh Coalson
e95399c19f fix bug in FLAC__metadata_object_vorbiscomment_replace_comment() 2008-09-15 05:37:27 +00:00
Josh Coalson
82b128050e update copyright for 2008 2008-02-28 05:34:21 +00:00
Josh Coalson
504dcafeb4 minor comments 2007-09-13 15:42:47 +00:00
Josh Coalson
0f008d2e9e extra checking on memory allocation sizes to prevent a class of overflow attacks 2007-09-11 04:49:56 +00:00
Josh Coalson
9bedd7827c fix compiler warnings 2007-02-22 01:37:33 +00:00
Josh Coalson
e74bd9516c add 2007 copyright 2007-02-02 06:58:19 +00:00
Josh Coalson
e3ec2ad59e convert C prototypes for functions with no args from () to (void) 2007-01-31 03:53:22 +00:00
Josh Coalson
2beca73003 patch: support for borland c++ compile (SF#1599018: http://sourceforge.net/tracker/index.php?func=detail&aid=1599018&group_id=13478&atid=313478) 2006-11-21 01:51:58 +00:00
Josh Coalson
a65fd93119 minor syntax 2006-10-03 01:02:44 +00:00
Josh Coalson
74ed294764 add number-of-colors field to PICTURE metadata block 2006-09-23 23:15:05 +00:00
Josh Coalson
e343ab2b87 add support for new PICTURE metadata block 2006-09-23 19:21:19 +00:00
Josh Coalson
6b21f66784 merge down from merged-API-layer branch: cvs -q up -dP -j API_LAYER_MERGING_BASELINE -j API_LAYER_MERGING_BRANCH 2006-09-13 01:42:27 +00:00
Josh Coalson
b1ec796bda complete largefile support 2006-05-24 04:41:36 +00:00
Josh Coalson
0395dac13f add 2206 to copyright notice 2006-04-25 06:59:33 +00:00
Josh Coalson
7cfac0b146 add FLAC__metadata_get_cuesheet() and FLAC__metadata_object_cuesheet_calculate_cddb_id() 2006-04-10 05:37:34 +00:00
Josh Coalson
e9a638d004 add support for building on os/2 with emx 2005-09-03 03:54:16 +00:00
Josh Coalson
b4de1692f3 fixes to remove warnings from gcc-4.0.0 2005-08-24 07:39:25 +00:00
Josh Coalson
4462311644 fix constness in some functions 2005-01-30 18:15:36 +00:00
Josh Coalson
a78fac662c add 2005 to copyright notices 2005-01-25 04:17:55 +00:00
Josh Coalson
80171dc3ac fix all bare malloc() realloc() etc calls to have a proper cast in front 2004-12-30 03:57:13 +00:00
Josh Coalson
2de1124e36 add vorbiscomment validation functions to format.c and test code; validate name part of vorbiscomment in metadata and metadata++ interfaces 2004-12-30 03:41:19 +00:00
Josh Coalson
def597ee59 additions to metadata object api: more vorbiscomment functions, trailing-null on vorbis comment field values enforced everywhere 2004-12-30 00:59:30 +00:00
Josh Coalson
748459cdac fix bug copying a null vorbis comment entry 2004-09-08 00:49:30 +00:00
Josh Coalson
1cb2341298 max the largest metadata type code be 126, reserving 127 to avoid confusion with a frame sync code 2004-07-22 01:32:00 +00:00
Josh Coalson
9564390fb9 update copyright to 2004 2004-01-17 04:14:43 +00:00
Josh Coalson
afd8107872 change license verbiage to Xiph's 2003-01-31 23:34:56 +00:00
Josh Coalson
fb99386385 add some asserts 2003-01-15 03:18:07 +00:00
Josh Coalson
b3538c813d minor comments 2003-01-12 08:42:23 +00:00
Josh Coalson
d060947ce9 big fix to allow codec and metadata interface to handle unknown metadata block types correctly 2003-01-10 05:37:13 +00:00
Josh Coalson
afae69f0e3 Add 2003 to copyright notice 2003-01-02 07:03:16 +00:00
Josh Coalson
8f0c71b877 add "is_cd" flag to CUESHEET everywhere 2002-12-05 06:37:46 +00:00
Josh Coalson
4fa90599fe fix memory leaks found with valgrind 2002-12-04 07:01:37 +00:00
Josh Coalson
bfc8e319c2 revamp MSVC build system, separate dynamic and static builds, separate debug and release intermediate directories 2002-11-21 09:00:25 +00:00
Josh Coalson
3b026e8dd1 more cuesheet convenience functions 2002-11-21 06:41:01 +00:00
Josh Coalson
df7240ac84 add more CUESHEET convenience functions 2002-11-16 06:32:30 +00:00
Josh Coalson
8e9c4519e7 implement new CUESHEET metadata block 2002-11-14 05:00:24 +00:00
Josh Coalson
5e3fcb2603 more strict typecasts 2002-11-06 07:11:26 +00:00
Josh Coalson
b667e70b82 constify first arg of FLAC__metadata_object_vorbiscomment_find_entry_from() 2002-11-05 07:24:33 +00:00
Josh Coalson
45bb9887e1 add more convenience for manipulating vorbis comments 2002-10-26 04:34:16 +00:00
Josh Coalson
ea7155f0ac switch malloc+memset(0) to calloc() 2002-10-18 05:49:19 +00:00
Josh Coalson
6afed9fc7f tweaks to build libs as DLLs under windows 2002-10-16 22:29:47 +00:00
Josh Coalson
5a5de738a8 new functions for seektable templates, point sorting 2002-08-01 06:37:11 +00:00
Josh Coalson
0833f34542 use FLAC__format_seektable_is_legal() 2002-07-15 05:31:55 +00:00
Josh Coalson
d8ab3468fa add some asserts 2002-07-11 05:54:05 +00:00