* Warning: For a seamless upgrade, upgrade to version 3
* of the decoder before upgrading to version 3 of the
* encoder!
+3.001_005 Mon, July 28 2014
+ - Fixup how MakeMaker runs the tests.
+
3.001_004 Sun, July 27 2014
- Rework bulk tests so that tests are grouped by options and version
- Fixups for non-x86 architectures.
#define int32_t int
#define int16_t short
+#define __SNAPPY_STRICT_ALIGN
+
#elif defined(__s390x__) || defined(__zarch__) || defined(__SYSC_ZARCH__)
+#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 87654321
+#endif
+#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN 12345678
+#endif
+#ifndef __BYTE_ORDER
#define __BYTE_ORDER __BIG_ENDIAN
+#endif
+
+#define __SNAPPY_STRICT_ALIGN
#endif
ptr->x = v;
}
-#elif defined(__hpux) || defined(__sparc) || defined(__sparc__) /* strict architectures */
+#elif defined(__SNAPPY_STRICT_ALIGN) || defined(__sparc) || defined(__sparc__) /* strict architectures */
/* For these platforms, there really are no unaligned loads/stores.
* Read/write everything as uint8_t. Smart compilers might recognize
["short ascii string", "fooo"],
["short latin1 string", "Müller"],
["short utf8 string", do {use utf8; " עדיין ח"}],
- ["long ascii string", do{"abc" x 1000}],
- ["long latin1 string", "üll" x 1000],
- ["long utf8 string", do {use utf8; " עדיין חשב" x 1000}],
- ["long utf8 string with only ascii", do {use utf8; "foo" x 1000}],
- ["long utf8 string with only latin1 subset", do {use utf8; "üll" x 1000}],
+
+ ["long ascii string", do{"abc" x 10000}],
+ ["long latin1 string", "üll" x 10000],
+ ["long utf8 string", do {use utf8; " עדיין חשב" x 10000}],
+ ["long utf8 string with only ascii", do {use utf8; "foo" x 10000}],
+ ["long utf8 string with only latin1 subset", do {use utf8; "üll" x 10000}],
+
["simple regexp", qr/foo/],
["regexp with inline modifiers", qr/(?i-xsm:foo)/],
["regexp with modifiers", qr/foo/i],
(map {["nested scalar ref to " . $_->[0], (\\($_->[1]))]} @ScalarRoundtripTests),
(map {["array ref to " . $_->[0], ([$_->[1]])]} @ScalarRoundtripTests),
(map {["hash ref to " . $_->[0], ({foo => $_->[1]})]} @ScalarRoundtripTests),
+ # ---
(map {["array ref to duplicate " . $_->[0], ([$_->[1], $_->[1]])]} @ScalarRoundtripTests),
+ # ---
(map {["array ref to aliases " . $_->[0], (sub {\@_}->($_->[1], $_->[1]))]} @ScalarRoundtripTests),
(map {["array ref to scalar refs to same " . $_->[0], ([\($_->[1]), \($_->[1])])]} @ScalarRoundtripTests),
);