Orgad Shaneh
a05e54f00c
JANITORIAL: Remove trailing whitespaces
2021-05-04 11:46:30 +03:00
Bartosz Gentkowski
24e3b6096e
DOXYGEN: Doxygen improvements part 3
...
Editing doxygen comments in files:
- debug.h
- dialogs.h
- encoding.h
- endian.h
- error.h
- events.h
- fft.h
- file.h
- frac.h
- fs.h
- gui_options.h
- hash-ptr.h
- hashmap.h
- huffman.h
- ini-file.h
Plus some small changes in the config file.
2020-11-04 19:42:34 +00:00
Bartosz Gentkowski
ec24687ce4
DOXYGEN: Add doxygen groups to header files in the common folder
...
Adding @defgroup and @ingroup doxygen tags into all headers
in the common folder that contain doxygen blocks.
This improves the structure, readability, and findability
of information in the resulting output.
This commit targets purely structure and does not deal with
the content of the currently existing doxygen documentation.
2020-10-04 18:25:50 +02:00
Cameron Cawley
5d912b6923
COMMON: Add WRITE_UINT24
2019-03-02 07:29:22 +01:00
Bastien Bouclet
86573a8eaf
COMMON: Unconditionally enable 64 bit integer features
2017-09-30 21:35:16 +02:00
D G Turner
d2a7c296a2
COMMON: Migrate Various Endian Functions to Common from Engine Code.
...
Thanks to N.E.C <beholdnec@gmail.com> for this.
2017-07-30 22:03:29 +02:00
clone2727
db64442c4a
COMMON: Fix strict-alignment READ_BE_UINT64 on LE and READ_LE_UINT64 on BE
2015-01-18 14:41:15 -05:00
Willem Jan Palenstijn
cc045f7a83
COMMON: Fix strict-alignment READ_UINT64
2015-01-14 23:20:33 +01:00
Willem Jan Palenstijn
1084f2eea6
COMMON: Implement MIPS SWAP_BYTES_64 in terms of SWAP_BYTES_32
2015-01-04 22:00:00 +01:00
Willem Jan Palenstijn
7c7bdf3543
COMMON: Swap order of functions to 16, 32, 64
2015-01-04 21:59:45 +01:00
Johannes Schickel
e2e61184c6
COMMON: Fix return type of one READ_BE_UINT64 implementation.
...
This makes all unit tests pass for my on amd64 again. Thanks clone2727.
2015-01-04 21:30:05 +01:00
Johannes Schickel
64bad2ec4a
COMMON: Fix some syntax issues.
...
Not compile tested. Then again it didn't look test before either. So, yay!
2015-01-04 21:17:33 +01:00
Eugene Sandulenko
f1765db70f
COMMON: Put all 64-bit code under new HAVE_INT64 constant
...
I regrouped all functions in order to make the code less noisy
with #ifdefs
2015-01-04 20:41:50 +01:00
Adrian Astley
c58f714610
COMMON: Add support for endian-safe reading/writing of int64
2014-09-16 13:49:27 -05:00
Joel Teichroeb
c43ce9ecf3
ALL: Remove support for MSVC8 and older
...
MSVC8 gives various compile error relating to templates that were changed
back in 2008, leading me to belive that no one is using it, and that there
is not point adding work arounds for a 9 year old compiler no one uses.
2014-06-21 11:32:45 -07:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
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