Moritz Bunkus
88cdc30938
Fix several gcc warnings occurring with -Wextra
...
Warnings fixed are:
- warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
- warning: unused parameter ... [-Wunused-parameter]
- warning: comparison is always true due to limited range of data type [-Wtype-limits]
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@822 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2011-11-25 21:01:45 +00:00
Steve Lhomme
2490c80ad1
libebml: fix the Debug class use
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@796 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2011-09-09 04:00:42 +00:00
Steve Lhomme
527f98c367
libebml: only use the test element to read once in the loop
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@788 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2011-07-15 13:31:03 +00:00
Steve Lhomme
676d1ba310
libebml: fix compilation of debug builds under win32
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@708 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2011-03-20 17:33:49 +00:00
Moritz Bunkus
3a490a84ce
Avoid compiler warnings due to differences in signs in comparisons
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@671 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2011-02-05 21:15:22 +00:00
Steve Lhomme
866099132f
libebml: EbmlElement::VoidMe() now returns a uint64
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@364 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-06-30 06:07:40 +00:00
Steve Lhomme
33c808ec0e
libebml: a plain integer doesn't need a const
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@280 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-05-27 15:52:47 +00:00
Steve Lhomme
ece95ac6b7
libebml: we should mark the files we modify
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@256 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-05-22 18:20:42 +00:00
Steve Lhomme
2ddda867cd
libebml: 0.8.1 fix the infinite/unknown size reading in EbmlElement::FindNextElement()
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@250 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-05-22 12:10:55 +00:00
Steve Lhomme
2753bfd8a3
v1/v2: simplify EBML_SEM_ID(EBML_CTX_IDX()) to EBML_CTX_IDX_ID()
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@138 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-04-19 12:41:49 +00:00
Steve Lhomme
19ae0bb418
v1/v2: clean the access of EbmlId data
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@124 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-04-15 14:59:25 +00:00
Steve Lhomme
769a6c3ab7
v1/v2: rename bKeepIntact to bWithDefault for more clarity in the API
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@123 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-04-15 14:54:49 +00:00
Steve Lhomme
66ccb761d8
use DECLARE_EBML_*** in the legacy code too
...
add a EBML_CTX_IDX() macro to avoid direct access to MyTable
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@92 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-04-08 16:36:43 +00:00
Moritz Bunkus
d7b335f0a8
Properly compare elements
...
If you have "virtual operator <" in a base class and a derived
class and each takes a reference of its own class as an arugment
then the function in the derived class hides the one in the base
class and does not override is as the signatures do not match:
class base {
public:
bool virtual operator <(const base &cmp);
};
class derived: public base {
public:
bool virtual operator <(const derived &cmp);
};
If two instances of base are compared then base::operator< is called:
base *p1, *p2;
if (*p1 < *p2) // calls base::operator<
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@61 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-27 23:07:20 +00:00
Moritz Bunkus
22a45d1ac3
EbmlDummy elements do not have or need a Create method.
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@50 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-23 13:13:53 +00:00
Steve Lhomme
3171db6ec6
introduce filepos_t for all the file position values (depends wether the system can handle 32 bits or 64 bits offsets)
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@44 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-19 15:35:26 +00:00
Steve Lhomme
baa61c54cb
factorize some common macros
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@26 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-17 10:30:26 +00:00
Steve Lhomme
cd5d717fb9
move some of the <cassert> includes and assert() calls out of the include files
...
+ the DefaultValue() methods return const objects
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@25 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-17 10:29:32 +00:00
Steve Lhomme
71367a12c9
new macros to hide the internal variables of the context classes
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@23 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-17 10:26:39 +00:00
Steve Lhomme
995bc139c4
update the copyright notice to 2010
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@18 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-15 16:19:18 +00:00
Steve Lhomme
de3185abde
add macros to access the EbmlId internal variables
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@15 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-15 16:08:31 +00:00
Steve Lhomme
56aecb45f7
integer and boolean variables don't need a const when used as parameters
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@6 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-03-15 15:55:14 +00:00
Steve Lhomme
0a891b23be
move the sources from the dead coreforge server
...
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@1 a6f86f6d-0131-4f8e-9e7b-e335508773d5
2010-02-18 08:13:06 +00:00