Matthew Hoops
6f9d84665f
COMMON: Add MKTAG16 for 16-bit multi-character constants
2012-08-26 12:38:35 -04:00
Matthew Hoops
4d65be8264
COMMON: Add a READ_UINT24 macro
...
Complements READ_UINT16 and READ_UINT32
2012-03-20 01:06:48 +01:00
Christoph Mallon
a64b5e2a77
ALL: Use GCC_ATLEAST().
2012-03-17 20:09:49 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
9511af6682
COMMON: Always prefer GCC 4.x versions of READ_UINT*/WRITE_UINT*
...
In addition, we use them if in GCC >= 3.3 if unaligned access is
possible. The GCC variants of these macros also contain protection
against overzealous compilers' static aliasing optimizations.
2011-05-10 15:38:18 +02:00
Max Horn
b4058a696a
COMMON: Tweak some comments
2011-05-09 14:32:03 +02:00
Max Horn
f1471689cf
COMMON: Let MKTAG always return an uint32
2011-04-12 17:23:21 +02:00
Max Horn
58b4cc0220
COMMON: Use correct MKTAG definition, stupid
2011-04-12 17:04:49 +02:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Yotam Barnoy
cdd27ca943
COMMON: changed read/write endian function to use __may_alias__ attribute
...
This is a better solution for the gcc aliasing problem that happens when aliasing a struct onto something else. What happens is that the compiler assumes no aliasing can happen when -O2 and -O3 are activated, and a call to READ_UINT32() followed by WRITE_UINT32() and another READ_UINT32() will be optimized to return the original read value instead of re-reading.
svn-id: r52480
2010-09-01 12:41:16 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
1011508325
Slightly modified version of Patch #2838562 : Improve endian.h and stream.h
...
svn-id: r44027
2009-09-11 08:55:47 +00:00
Norbert Lange
54ef7a892b
reverting changes from patch 43696 that shouldnt have been committed
...
svn-id: r43697
2009-08-24 13:08:21 +00:00
Norbert Lange
184aae3c8c
Enable alternative palettse for Amiga Monkey Island - Patch ID: 2819787
...
use tables for palette colors instead of code with constants
svn-id: r43696
2009-08-24 12:39:03 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
7ca6b29f35
Double-invert the logic on some big/little endian checks (the idea is that we want to fallback to safe code unless we definitely know no endian/alignment issues are in the way; this way it will work even if the endianess is unknown)
...
svn-id: r26649
2007-04-28 10:40:00 +00:00
Eugene Sandulenko
3e6414a55f
Slighty modified Patch #1571787 : "Support for Mac Broken Sword 1". sword1macdemo
...
target was commented out until existence of the demo is confirmed.
svn-id: r24697
2006-11-12 19:05:51 +00:00
Max Horn
68450b31e3
cleanup
...
svn-id: r21919
2006-04-15 21:22:33 +00:00
Max Horn
1c93f7bcea
Removed the obsolete MKID macro; added some doxygen comments, in particular for MKID_BE
...
svn-id: r20873
2006-02-25 11:45:56 +00:00
Max Horn
6931478e91
Removed the (useless and confusing) PROTO_MKID_BE macro
...
svn-id: r20860
2006-02-25 01:24:10 +00:00
Max Horn
36934b611d
Change CVS keywords to SVN keywords
...
svn-id: r20510
2006-02-11 09:53:53 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Torbjörn Andersson
aa8df56744
Added WRITE_UINT16() and WRITE_UINT32() as well.
...
svn-id: r19019
2005-10-11 13:40:29 +00:00
Torbjörn Andersson
c23f1c5c72
Added READ_UINT16(). It looks like SAGA will need it.
...
svn-id: r19018
2005-10-11 13:33:01 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn
f80dab367c
Moved endian macros to a separate header file
...
svn-id: r18441
2005-06-23 14:15:49 +00:00