[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2026-g9b16769 |
Date: |
Tue, 20 May 2014 14:51:34 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 9b1676996d680ef788a37dfd73007253ff87bd2f (commit)
via 7521ceb880c5e730f258246af89b2ef03dc5bca1 (commit)
via 0716258a349a196fe9eb595df56c7a81b03cf51f (commit)
from 4fa2b8ac919ad62abd86e1f4062cb780fef95256 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=9b1676996d680ef788a37dfd73007253ff87bd2f
commit 9b1676996d680ef788a37dfd73007253ff87bd2f
Author: Bastiaan Jacques <address@hidden>
Date: Tue May 20 16:51:15 2014 +0200
Use builtin static_assert instead of BOOST_STATIC_ASSERT.
diff --git a/libcore/SWFStream.cpp b/libcore/SWFStream.cpp
index 3b0b018..e7b6890 100644
--- a/libcore/SWFStream.cpp
+++ b/libcore/SWFStream.cpp
@@ -28,7 +28,6 @@
#include <cstring>
#include <climits>
-#include <boost/static_assert.hpp>
//#define USE_TU_FILE_BYTESWAPPING 1
@@ -312,7 +311,7 @@ double SWFStream::read_d64()
const unsigned short dataLength = 8;
double d = 0;
- BOOST_STATIC_ASSERT(sizeof(double) == dataLength);
+ static_assert(sizeof(double) == dataLength, "double must be 8 bytes");
// Should align:
if (read(reinterpret_cast<char*>(&d), dataLength) < dataLength)
diff --git a/libcore/parser/action_buffer.cpp b/libcore/parser/action_buffer.cpp
index d6c64b4..928dd7d 100644
--- a/libcore/parser/action_buffer.cpp
+++ b/libcore/parser/action_buffer.cpp
@@ -22,7 +22,6 @@
#include <string>
#include <cstring> // for memcpy
-#include <boost/static_assert.hpp>
#include "log.h"
#include "SWFStream.h"
@@ -574,7 +573,7 @@ convert_double_wacky(const void *p)
} c;
} u;
- BOOST_STATIC_ASSERT(sizeof(u) == sizeof(u.i));
+ static_assert(sizeof(u) == sizeof(u.i), "u must be 8 bytes");
// Detect endianness of doubles by storing a value that is
// exactly representable and that has different values in the
diff --git a/libcore/swf/DefineBitsTag.cpp b/libcore/swf/DefineBitsTag.cpp
index e360eb4..3222c72 100644
--- a/libcore/swf/DefineBitsTag.cpp
+++ b/libcore/swf/DefineBitsTag.cpp
@@ -26,7 +26,6 @@
#include <limits>
#include <cassert>
-#include <boost/static_assert.hpp>
#include "IOChannel.h"
#include "utility.h"
@@ -615,7 +614,8 @@ inflateWrapper(SWFStream& in, void* buffer, size_t
buffer_bytes)
chunkSize = availableBytes;
}
- BOOST_STATIC_ASSERT(sizeof(char) == sizeof(boost::uint8_t));
+ static_assert(sizeof(char) == sizeof(boost::uint8_t),
+ "char must be 1 byte");
// Fill the buffer
in.read(reinterpret_cast<char*>(buf), chunkSize);
http://git.savannah.gnu.org/cgit//commit/?id=7521ceb880c5e730f258246af89b2ef03dc5bca1
commit 7521ceb880c5e730f258246af89b2ef03dc5bca1
Author: Bastiaan Jacques <address@hidden>
Date: Tue May 20 16:20:00 2014 +0200
Remove unused code.
diff --git a/libbase/IOChannel.h b/libbase/IOChannel.h
index efb61ff..e9a9544 100644
--- a/libbase/IOChannel.h
+++ b/libbase/IOChannel.h
@@ -110,15 +110,6 @@ public:
///
int read_string(char* dst, int max_length);
- /// Read a 32-bit float from a little-endian stream.
- //
- /// NOTE: this currently relies on host FP format being the
- /// same as the Flash one (presumably IEEE 754).
- ///
- /// Throw IOException on error
- ///
- float read_float32();
-
/// Return current stream position
//
/// Throw IOException on error
http://git.savannah.gnu.org/cgit//commit/?id=0716258a349a196fe9eb595df56c7a81b03cf51f
commit 0716258a349a196fe9eb595df56c7a81b03cf51f
Author: Bastiaan Jacques <address@hidden>
Date: Tue May 20 16:19:26 2014 +0200
Remove unused code.
diff --git a/libbase/IOChannel.cpp b/libbase/IOChannel.cpp
index 0e02298..2c145b8 100644
--- a/libbase/IOChannel.cpp
+++ b/libbase/IOChannel.cpp
@@ -21,8 +21,6 @@
#include "IOChannel.h"
-#include <boost/static_assert.hpp>
-
namespace gnash
{
@@ -61,20 +59,6 @@ IOChannel::read_string(char* dst, int max_length)
return -1;
}
-float
-IOChannel::read_float32()
-{
- union {
- float f;
- boost::uint32_t i;
- } u;
-
- BOOST_STATIC_ASSERT(sizeof(u) == sizeof(u.i));
-
- u.i = read_le32();
- return u.f;
-}
-
boost::uint8_t
IOChannel::read_byte()
{
-----------------------------------------------------------------------
Summary of changes:
libbase/IOChannel.cpp | 16 ----------------
libbase/IOChannel.h | 9 ---------
libcore/SWFStream.cpp | 3 +--
libcore/parser/action_buffer.cpp | 3 +--
libcore/swf/DefineBitsTag.cpp | 4 ++--
5 files changed, 4 insertions(+), 31 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2026-g9b16769,
Bastiaan Jacques <=