Johannes Schickel
223794fb38
ALL: Make use of defined() for the preprocessor consistent.
...
This does not change the use of defined for some NDS source files, since they
seem to be (based on?) third party code.
2012-03-17 22:02:44 +01:00
Tarek Soliman
edc5249772
JANITORIAL: Fix template definition whitespace
2012-02-10 21:17:27 -06:00
Ori Avtalion
aa0f307e06
ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
...
Silences the clang warning:
static data member specialization of '_singleton' must
originally be declared in namespace 'Common'; accepted as a C++0x
extension [-Wc++0x-extensions]
Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.
Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
62400d2638
COMMON: Reverting r54257 as _singleton already was protected (and I am blind :)
...
svn-id: r54259
2010-11-16 08:24:11 +00:00
Max Horn
abe1959d36
COMMON: Simplify DECLARE_SINGLETON macro
...
This makes it possible to write
DECLARE_SINGLETON(foo);
instead of
DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.
svn-id: r54258
2010-11-16 08:23:13 +00:00
Max Horn
5af8a76b48
COMMON: Make Common::Singleton::_singleton protected instead of public
...
svn-id: r54257
2010-11-16 08:21:53 +00:00
Yotam Barnoy
fdc2a2cd81
CONFIGMAN: added defragmentation methods for one-plugin-at-a-time
...
One-plugin-at-a-time can have fragmentation caused by the ConfigManager if a game changes any configuration value. By reallocating and copying over the ConfigManager, we avoid this problem.
svn-id: r54243
2010-11-15 13:37:06 +00:00
Johannes Schickel
e5e94d4511
Strip trailing whitespaces in our common code base.
...
svn-id: r51094
2010-07-21 18:17:51 +00:00
Johannes Schickel
40562798d6
Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
...
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.
svn-id: r48254
2010-03-13 21:55:49 +00:00
Johannes Schickel
db04dd427d
Formatting.
...
svn-id: r31852
2008-05-03 23:02:05 +00:00
Johannes Schickel
bba003e53a
Fixed segfault when trying to start invalid gameid from command line.
...
svn-id: r31731
2008-04-26 10:21:53 +00:00
Max Horn
b0c6a12c81
Modified Patch #1925352 : Memory leak fixes
...
svn-id: r31244
2008-03-26 19:29:33 +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
Johannes Schickel
86104e0bf0
Reverted r26922.
...
svn-id: r26967
2007-05-27 11:40:03 +00:00
Johannes Schickel
8ff17142c5
Simpilified Singleton implementation and usage.
...
svn-id: r26922
2007-05-22 14:17:44 +00:00
Max Horn
9751421434
Added class NonCopyable, and made various things derive from it
...
svn-id: r26163
2007-03-17 10:36:14 +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
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Lars Persson
1c69696a9a
Patches needed to build for SYMBIAN32 WINS/GCC added.
...
Test built for Symbian and run on P910i without any major problems.
Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA).
svn-id: r18430
2005-06-21 22:08:21 +00:00
Eugene Sandulenko
3890d18e0c
Fix compilation
...
svn-id: r18016
2005-05-10 00:39:59 +00:00
Paweł Kołodziejski
c1ce66efb6
fixed compilation for evc4 and vc7
...
svn-id: r18013
2005-05-09 22:39:16 +00:00
Paweł Kołodziejski
c0c9a68fe5
emsvc4 need public access, hmmm...
...
svn-id: r16650
2005-01-27 21:29:29 +00:00
Max Horn
788c828026
yet another attempt to get makeInstance working for gcc 3.3, gcc 3.2, and MSVC (thanks to wjp for the suggestion). Works fine with GCC 3.2 and 3.3
...
svn-id: r16525
2005-01-10 21:06:49 +00:00
Max Horn
5d88c39549
Modify the singleton code once more to help overcome an issue with MSVC 7 (see also patch #1095133 )
...
svn-id: r16454
2005-01-06 18:38:34 +00:00
Max Horn
74bf578bda
Changed the singleton code to allow for custom object factories; this allowed me to change OSystem to use the singleton base class, too
...
svn-id: r16404
2005-01-01 19:19:06 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
60deb4200b
cleanup
...
svn-id: r16382
2004-12-30 14:13:14 +00:00
Travis Howell
d6547ea536
Compile fix from cyx
...
svn-id: r16366
2004-12-29 05:01:27 +00:00
Max Horn
b15d92e470
Fix running ScummVM in plugin-mode
...
svn-id: r16360
2004-12-28 20:29:42 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
0f7f124de2
slightly altered singleton implemention, might help MSVC6, or might screw it even more :-)
...
svn-id: r11543
2003-12-10 00:12:20 +00:00
Max Horn
b27a871f87
turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)
...
svn-id: r11045
2003-11-02 02:18:16 +00:00
Max Horn
d177364715
new config manager. not everything is completed, and some things will still be changed, but it seems to work well enough to put it into CVS
...
svn-id: r10687
2003-10-08 21:59:23 +00:00