diff options
Diffstat (limited to 'backends/platform/symbian')
70 files changed, 521 insertions, 581 deletions
diff --git a/backends/platform/symbian/AdaptAllMMPs.pl b/backends/platform/symbian/AdaptAllMMPs.pl index 921f384c65..dbced3126a 100644 --- a/backends/platform/symbian/AdaptAllMMPs.pl +++ b/backends/platform/symbian/AdaptAllMMPs.pl @@ -36,6 +36,7 @@ chdir("../../../");  	"mmp/scummvm_hugo.mmp",  	"mmp/scummvm_toon.mmp",  	"mmp/scummvm_lastexpress.mmp", +	"mmp/scummvm_tsage.mmp",  	# Target Platform Project Files  	"S60/ScummVM_S60.mmp",  	"S60v3/ScummVM_S60v3.mmp", @@ -111,7 +112,8 @@ ParseModule("_base",	"base",		\@section_empty); # now in ./TRG/ScummVM_TRG.mmp,  ParseModule("_base",	"common",	\@section_empty);  ParseModule("_base",	"gui",		\@section_empty,		\@excludes_gui);  ParseModule("_base",	"graphics",	\@section_empty,		\@excludes_graphics); -ParseModule("_base",	"sound",	\@section_empty,		\@excludes_snd); +ParseModule("_base",	"audio",	\@section_empty,		\@excludes_snd); +ParseModule("_base",	"video",	\@section_empty);  chdir("engines/");  ParseModule("_scumm",	"scumm",	\@sections_scumm,		\@excludes_scumm ); @@ -142,6 +144,7 @@ ParseModule("_mohawk"   ,"mohawk",	\@section_empty);  ParseModule("_hugo"     ,"hugo",	\@section_empty);  ParseModule("_toon"     ,"toon",	\@section_empty);  ParseModule("_lastexpress","lastexpress",	\@section_empty); +ParseModule("_tsage","tsage",	\@section_empty);  print "  =======================================================================================  Done. Enjoy :P diff --git a/backends/platform/symbian/BuildPackageUpload_LocalSettings.pl b/backends/platform/symbian/BuildPackageUpload_LocalSettings.pl index 5c127afaa0..cb1c508fa1 100644 --- a/backends/platform/symbian/BuildPackageUpload_LocalSettings.pl +++ b/backends/platform/symbian/BuildPackageUpload_LocalSettings.pl @@ -4,7 +4,7 @@  	@WorkingEngines = qw(  		scumm agos sky queen gob groovie saga drascula  		kyra lure agi touche parallaction cine -		cruise made m4 tinsel tucker sword1 sword2 draci sci teenagent mohawk hugo toon lastexpress +		cruise made m4 tinsel tucker sword1 sword2 draci sci teenagent mohawk hugo toon lastexpress tsage  	);  	@WorkingEngines_1st = qw( @@ -14,9 +14,10 @@  	);  	@WorkingEngines_2nd = qw( -		agos sky gob -		kyra lure agi tinsel -		sword1 sword2 draci sci teenagent hugo toon +		agos sky gob kyra lure  +		agi tinsel sword1 sword2  +		draci sci teenagent hugo toon +		tsage  	);  	@TestingEngines = qw( diff --git a/backends/platform/symbian/README b/backends/platform/symbian/README index d7e8235e1d..140f442fb6 100644 --- a/backends/platform/symbian/README +++ b/backends/platform/symbian/README @@ -6,8 +6,6 @@   Copyright (C) 2002-2008 Jurgen 'SumthinWicked' Braam   Copyright (C) 2003-2005 Andreas 'Sprawl' Karlsson - $URL$ - $Id$  Using parts of snprintf.c by  Mark Martinec <mark.martinec@ijs.si>, April 1999, June 2000 diff --git a/backends/platform/symbian/S60/ScummVM_S60.mmp.in b/backends/platform/symbian/S60/ScummVM_S60.mmp.in index b76a6a9a89..7b401fd310 100644 --- a/backends/platform/symbian/S60/ScummVM_S60.mmp.in +++ b/backends/platform/symbian/S60/ScummVM_S60.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/S60/ScummVM_S60_App.mmp b/backends/platform/symbian/S60/ScummVM_S60_App.mmp index 40333854af..940997cc73 100644 --- a/backends/platform/symbian/S60/ScummVM_S60_App.mmp +++ b/backends/platform/symbian/S60/ScummVM_S60_App.mmp @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v1.pkg b/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v1.pkg index 755720616d..da69d455d7 100644 --- a/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v1.pkg +++ b/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v1.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v2.pkg b/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v2.pkg index 747f6dff4a..469c815afb 100644 --- a/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v2.pkg +++ b/backends/platform/symbian/S60/scummvm-CVS-SymbianS60v2.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/S60v3/ScummVM_A0000658_S60v3.mmp.in b/backends/platform/symbian/S60v3/ScummVM_A0000658_S60v3.mmp.in index 12b4cb3610..aa5e1f9b18 100644 --- a/backends/platform/symbian/S60v3/ScummVM_A0000658_S60v3.mmp.in +++ b/backends/platform/symbian/S60v3/ScummVM_A0000658_S60v3.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // @@ -63,8 +60,8 @@ START BITMAP    ScummVM.mbm  TARGETPATH              \Resource\Apps  SOURCEPATH              ..\res  // Source Color-depth Source-bitmap-list -// c denotes whether the bitmap is a colour bitmap and the digits represent the -// colour-depth of the bitmap and the bitmap mask respectively +// c denotes whether the bitmap is a color bitmap and the digits represent the +// color-depth of the bitmap and the bitmap mask respectively  SOURCE  c24             ScummSmall.bmp  SOURCE  8               ScummSmallMask.bmp  SOURCE  c24             ScummLarge.bmp @@ -119,6 +116,7 @@ SOURCE backends\platform\sdl\hardwarekeys.cpp  SOURCE backends\platform\sdl\sdl.cpp  SOURCE backends\audiocd\sdl\sdl-audiocd.cpp  SOURCE backends\audiocd\default\default-audiocd.cpp +SOURCE backends\fs\symbian\symbian-fs.cpp  SOURCE backends\fs\symbian\symbian-fs-factory.cpp  SOURCE backends\platform\symbian\src\SymbianOS.cpp  SOURCE backends\platform\symbian\src\SymbianActions.cpp diff --git a/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in b/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in index 9af6535b22..09592ef3e3 100644 --- a/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in +++ b/backends/platform/symbian/S60v3/ScummVM_S60v3.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // @@ -63,8 +60,8 @@ START BITMAP    ScummVM.mbm  TARGETPATH              \Resource\Apps  SOURCEPATH              ..\res  // Source Color-depth Source-bitmap-list -// c denotes whether the bitmap is a colour bitmap and the digits represent the -// colour-depth of the bitmap and the bitmap mask respectively +// c denotes whether the bitmap is a color bitmap and the digits represent the +// color-depth of the bitmap and the bitmap mask respectively  SOURCE  c24             ScummSmall.bmp  SOURCE  8               ScummSmallMask.bmp  SOURCE  c24             ScummLarge.bmp @@ -119,6 +116,7 @@ SOURCE backends\platform\sdl\hardwarekeys.cpp  SOURCE backends\platform\sdl\sdl.cpp  SOURCE backends\audiocd\sdl\sdl-audiocd.cpp  SOURCE backends\audiocd\default\default-audiocd.cpp +SOURCE backends\fs\symbian\symbian-fs.cpp  SOURCE backends\fs\symbian\symbian-fs-factory.cpp  SOURCE backends\platform\symbian\src\SymbianOS.cpp  SOURCE backends\platform\symbian\src\SymbianActions.cpp diff --git a/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg b/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg index a5457fca0e..2cc49a2bc6 100644 --- a/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg +++ b/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg @@ -17,9 +17,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/S80/ScummVM_S80.mmp.in b/backends/platform/symbian/S80/ScummVM_S80.mmp.in index 306dfac9ef..efd0d0ee32 100644 --- a/backends/platform/symbian/S80/ScummVM_S80.mmp.in +++ b/backends/platform/symbian/S80/ScummVM_S80.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/S80/ScummVM_S80_App.mmp b/backends/platform/symbian/S80/ScummVM_S80_App.mmp index d3fb53c3e6..e91b504087 100644 --- a/backends/platform/symbian/S80/ScummVM_S80_App.mmp +++ b/backends/platform/symbian/S80/ScummVM_S80_App.mmp @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/S80/scummvm-CVS-SymbianS80.pkg b/backends/platform/symbian/S80/scummvm-CVS-SymbianS80.pkg index 4cdcace8e0..c3563b4041 100644 --- a/backends/platform/symbian/S80/scummvm-CVS-SymbianS80.pkg +++ b/backends/platform/symbian/S80/scummvm-CVS-SymbianS80.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/S90/Scummvm_S90.mmp.in b/backends/platform/symbian/S90/Scummvm_S90.mmp.in index 333bb4a231..4afdb5c62e 100644 --- a/backends/platform/symbian/S90/Scummvm_S90.mmp.in +++ b/backends/platform/symbian/S90/Scummvm_S90.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/S90/Scummvm_S90_App.mmp b/backends/platform/symbian/S90/Scummvm_S90_App.mmp index 371ab16bba..3aa2cc2a65 100644 --- a/backends/platform/symbian/S90/Scummvm_S90_App.mmp +++ b/backends/platform/symbian/S90/Scummvm_S90_App.mmp @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/S90/scummvm-CVS-SymbianS90.pkg b/backends/platform/symbian/S90/scummvm-CVS-SymbianS90.pkg index 7c206d1b9b..457f41998b 100644 --- a/backends/platform/symbian/S90/scummvm-CVS-SymbianS90.pkg +++ b/backends/platform/symbian/S90/scummvm-CVS-SymbianS90.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/UIQ2/ScummVM.rss b/backends/platform/symbian/UIQ2/ScummVM.rss index 69ca655a67..3550d82f7d 100644 --- a/backends/platform/symbian/UIQ2/ScummVM.rss +++ b/backends/platform/symbian/UIQ2/ScummVM.rss @@ -18,8 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$   */  // ScummVM.RSS diff --git a/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in b/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in index 4fda28e9d9..4000b1653d 100644 --- a/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in +++ b/backends/platform/symbian/UIQ2/ScummVM_UIQ2.mmp.in @@ -18,9 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2.pkg b/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2.pkg index 537e4f6693..e2b8a85162 100644 --- a/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2.pkg +++ b/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2_SE.pkg b/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2_SE.pkg index 204c93e46f..ad3a31cb30 100644 --- a/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2_SE.pkg +++ b/backends/platform/symbian/UIQ2/scummvm-CVS-SymbianUIQ2_SE.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/UIQ3/ScummVM.rss b/backends/platform/symbian/UIQ3/ScummVM.rss index 505bfcdb94..cb47568288 100644 --- a/backends/platform/symbian/UIQ3/ScummVM.rss +++ b/backends/platform/symbian/UIQ3/ScummVM.rss @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // ScummVM.RSS diff --git a/backends/platform/symbian/UIQ3/ScummVM_A0000658.rss b/backends/platform/symbian/UIQ3/ScummVM_A0000658.rss index 505bfcdb94..cb47568288 100644 --- a/backends/platform/symbian/UIQ3/ScummVM_A0000658.rss +++ b/backends/platform/symbian/UIQ3/ScummVM_A0000658.rss @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // ScummVM.RSS diff --git a/backends/platform/symbian/UIQ3/ScummVM_A0000658_UIQ3.mmp.in b/backends/platform/symbian/UIQ3/ScummVM_A0000658_UIQ3.mmp.in index 3fab5cc2b7..e6f2b691ce 100644 --- a/backends/platform/symbian/UIQ3/ScummVM_A0000658_UIQ3.mmp.in +++ b/backends/platform/symbian/UIQ3/ScummVM_A0000658_UIQ3.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // @@ -64,8 +61,8 @@ START BITMAP    ScummVM.mbm  TARGETPATH              \Resource\Apps  SOURCEPATH              ..\res  // Source Color-depth Source-bitmap-list -// c denotes whether the bitmap is a colour bitmap and the digits represent the -// colour-depth of the bitmap and the bitmap mask respectively +// c denotes whether the bitmap is a color bitmap and the digits represent the +// color-depth of the bitmap and the bitmap mask respectively  SOURCE  c24             ScummSmall.bmp  SOURCE  8               ScummSmallMask.bmp  SOURCE  c24             ScummLarge.bmp @@ -117,6 +114,7 @@ SOURCE backends\platform\sdl\hardwarekeys.cpp  SOURCE backends\platform\sdl\sdl.cpp  SOURCE backends\audiocd\sdl\sdl-audiocd.cpp  SOURCE backends\audiocd\default\default-audiocd.cpp +SOURCE backends\fs\symbian\symbian-fs.cpp  SOURCE backends\fs\symbian\symbian-fs-factory.cpp  SOURCE backends\platform\symbian\src\SymbianOS.cpp  SOURCE backends\platform\symbian\src\SymbianActions.cpp diff --git a/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in b/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in index 31dfc36399..3b6a3d9bd7 100644 --- a/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in +++ b/backends/platform/symbian/UIQ3/ScummVM_UIQ3.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // @@ -64,8 +61,8 @@ START BITMAP    ScummVM.mbm  TARGETPATH              \Resource\Apps  SOURCEPATH              ..\res  // Source Color-depth Source-bitmap-list -// c denotes whether the bitmap is a colour bitmap and the digits represent the -// colour-depth of the bitmap and the bitmap mask respectively +// c denotes whether the bitmap is a color bitmap and the digits represent the +// color-depth of the bitmap and the bitmap mask respectively  SOURCE  c24             ScummSmall.bmp  SOURCE  8               ScummSmallMask.bmp  SOURCE  c24             ScummLarge.bmp @@ -117,6 +114,7 @@ SOURCE backends\platform\sdl\hardwarekeys.cpp  SOURCE backends\platform\sdl\sdl.cpp  SOURCE backends\audiocd\sdl\sdl-audiocd.cpp  SOURCE backends\audiocd\default\default-audiocd.cpp +SOURCE backends\fs\symbian\symbian-fs.cpp  SOURCE backends\fs\symbian\symbian-fs-factory.cpp  SOURCE backends\platform\symbian\src\SymbianOS.cpp  SOURCE backends\platform\symbian\src\SymbianActions.cpp diff --git a/backends/platform/symbian/UIQ3/scummvm-CVS-SymbianUIQ3.pkg b/backends/platform/symbian/UIQ3/scummvm-CVS-SymbianUIQ3.pkg index 4323c4e5ac..2187a375a8 100644 --- a/backends/platform/symbian/UIQ3/scummvm-CVS-SymbianUIQ3.pkg +++ b/backends/platform/symbian/UIQ3/scummvm-CVS-SymbianUIQ3.pkg @@ -18,9 +18,6 @@  ; along with this program; if not, write to the Free Software  ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  ; -; $URL$ -; $Id$ -;  ;  ;;; diff --git a/backends/platform/symbian/UIQ3/scummvm_A0000658_loc.rss b/backends/platform/symbian/UIQ3/scummvm_A0000658_loc.rss index a037162d14..a6ee70ab25 100644 --- a/backends/platform/symbian/UIQ3/scummvm_A0000658_loc.rss +++ b/backends/platform/symbian/UIQ3/scummvm_A0000658_loc.rss @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #include <AppInfo.rh> diff --git a/backends/platform/symbian/mmp/scummvm_agi.mmp.in b/backends/platform/symbian/mmp/scummvm_agi.mmp.in index e2d98b9ae4..a7dcfb0bb5 100644 --- a/backends/platform/symbian/mmp/scummvm_agi.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_agi.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_agos.mmp.in b/backends/platform/symbian/mmp/scummvm_agos.mmp.in index 077111d783..4708a040ec 100644 --- a/backends/platform/symbian/mmp/scummvm_agos.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_agos.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_base.mmp.in b/backends/platform/symbian/mmp/scummvm_base.mmp.in index b3bfbab530..9acef57cea 100644 --- a/backends/platform/symbian/mmp/scummvm_base.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_base.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // @@ -96,11 +93,11 @@ SOURCEPATH ..\..\..\..\gui  //SOURCE Actions.cpp  SOURCEPATH ..\..\..\..\audio -//START_AUTO_OBJECTS_SOUND_// +//START_AUTO_OBJECTS_AUDIO_//  	// empty base file, will be updated by Perl build scripts -//STOP_AUTO_OBJECTS_SOUND_// +//STOP_AUTO_OBJECTS_AUDIO_//  SOURCE softsynth\fmtowns_pc98\towns_pc98_fmsynth.cpp // Included since its excluded by filter  #if defined (WINS) diff --git a/backends/platform/symbian/mmp/scummvm_cine.mmp.in b/backends/platform/symbian/mmp/scummvm_cine.mmp.in index 2c8118ef13..aac7d8b5b1 100644 --- a/backends/platform/symbian/mmp/scummvm_cine.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_cine.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_cruise.mmp.in b/backends/platform/symbian/mmp/scummvm_cruise.mmp.in index b43a867da3..fc60bfeace 100644 --- a/backends/platform/symbian/mmp/scummvm_cruise.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_cruise.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_draci.mmp.in b/backends/platform/symbian/mmp/scummvm_draci.mmp.in index 9f24927f27..d879a03797 100644 --- a/backends/platform/symbian/mmp/scummvm_draci.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_draci.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_drascula.mmp.in b/backends/platform/symbian/mmp/scummvm_drascula.mmp.in index d8cc6da6ae..f83bcdb68f 100644 --- a/backends/platform/symbian/mmp/scummvm_drascula.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_drascula.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_gob.mmp.in b/backends/platform/symbian/mmp/scummvm_gob.mmp.in index ce94f85283..900f862846 100644 --- a/backends/platform/symbian/mmp/scummvm_gob.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_gob.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_groovie.mmp.in b/backends/platform/symbian/mmp/scummvm_groovie.mmp.in index 7229edf4aa..1051e6adea 100644 --- a/backends/platform/symbian/mmp/scummvm_groovie.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_groovie.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_hugo.mmp.in b/backends/platform/symbian/mmp/scummvm_hugo.mmp.in index b3f9edd1e6..31975d3107 100644 --- a/backends/platform/symbian/mmp/scummvm_hugo.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_hugo.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_kyra.mmp.in b/backends/platform/symbian/mmp/scummvm_kyra.mmp.in index 654632c229..453d41bdc1 100644 --- a/backends/platform/symbian/mmp/scummvm_kyra.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_kyra.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_lastexpress.mmp.in b/backends/platform/symbian/mmp/scummvm_lastexpress.mmp.in index 418730c064..5d0fe6de36 100644 --- a/backends/platform/symbian/mmp/scummvm_lastexpress.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_lastexpress.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_lure.mmp.in b/backends/platform/symbian/mmp/scummvm_lure.mmp.in index e1a63b602b..add33d7d8b 100644 --- a/backends/platform/symbian/mmp/scummvm_lure.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_lure.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_m4.mmp.in b/backends/platform/symbian/mmp/scummvm_m4.mmp.in index c2e1ce4e8b..6896dadf10 100644 --- a/backends/platform/symbian/mmp/scummvm_m4.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_m4.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_made.mmp.in b/backends/platform/symbian/mmp/scummvm_made.mmp.in index 91b9ca756d..c51d3ac618 100644 --- a/backends/platform/symbian/mmp/scummvm_made.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_made.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_mohawk.mmp.in b/backends/platform/symbian/mmp/scummvm_mohawk.mmp.in index 0edba5eb4d..296c458e39 100644 --- a/backends/platform/symbian/mmp/scummvm_mohawk.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_mohawk.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_parallaction.mmp.in b/backends/platform/symbian/mmp/scummvm_parallaction.mmp.in index 744a756f4e..4052a16693 100644 --- a/backends/platform/symbian/mmp/scummvm_parallaction.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_parallaction.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_queen.mmp.in b/backends/platform/symbian/mmp/scummvm_queen.mmp.in index bf88744701..ec4ccff939 100644 --- a/backends/platform/symbian/mmp/scummvm_queen.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_queen.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_saga.mmp.in b/backends/platform/symbian/mmp/scummvm_saga.mmp.in index a95ee1e7fd..44e222144c 100644 --- a/backends/platform/symbian/mmp/scummvm_saga.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_saga.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_sci.mmp.in b/backends/platform/symbian/mmp/scummvm_sci.mmp.in index ca9e712f3f..12588495cb 100644 --- a/backends/platform/symbian/mmp/scummvm_sci.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_sci.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_scumm.mmp.in b/backends/platform/symbian/mmp/scummvm_scumm.mmp.in index 0a3cd9bb7d..381a6060dd 100644 --- a/backends/platform/symbian/mmp/scummvm_scumm.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_scumm.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_sky.mmp.in b/backends/platform/symbian/mmp/scummvm_sky.mmp.in index 1bc2301745..f34c839076 100644 --- a/backends/platform/symbian/mmp/scummvm_sky.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_sky.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_sword1.mmp.in b/backends/platform/symbian/mmp/scummvm_sword1.mmp.in index 6bf543070b..58f9f8fa05 100644 --- a/backends/platform/symbian/mmp/scummvm_sword1.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_sword1.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_sword2.mmp.in b/backends/platform/symbian/mmp/scummvm_sword2.mmp.in index cee4143f94..4a19be92ce 100644 --- a/backends/platform/symbian/mmp/scummvm_sword2.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_sword2.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_teenagent.mmp.in b/backends/platform/symbian/mmp/scummvm_teenagent.mmp.in index fa4ef79692..6b4812489e 100644 --- a/backends/platform/symbian/mmp/scummvm_teenagent.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_teenagent.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_tinsel.mmp.in b/backends/platform/symbian/mmp/scummvm_tinsel.mmp.in index 569b79ba3c..bb56022f20 100644 --- a/backends/platform/symbian/mmp/scummvm_tinsel.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_tinsel.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_toon.mmp.in b/backends/platform/symbian/mmp/scummvm_toon.mmp.in index f309e6d0fa..05742d5242 100644 --- a/backends/platform/symbian/mmp/scummvm_toon.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_toon.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_touche.mmp.in b/backends/platform/symbian/mmp/scummvm_touche.mmp.in index ab42afe304..ea8dd2392c 100644 --- a/backends/platform/symbian/mmp/scummvm_touche.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_touche.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/mmp/scummvm_tsage.mmp.in b/backends/platform/symbian/mmp/scummvm_tsage.mmp.in new file mode 100644 index 0000000000..b7eb3290b3 --- /dev/null +++ b/backends/platform/symbian/mmp/scummvm_tsage.mmp.in @@ -0,0 +1,61 @@ +/* ScummVM - Graphic Adventure Engine + * Copyright (C) 2003-2005 Andreas 'Sprawl' Karlsson - Original EPOC port, ESDL + * Copyright (C) 2003-2005 Lars 'AnotherGuest' Persson - Original EPOC port, Audio System + * Copyright (C) 2005 Jurgen 'SumthinWicked' Braam - EPOC/CVS maintainer + * Copyright (C) 2005-2011 The ScummVM project + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +// +// EPOC MMP makefile project for ScummVM +// + +// *** Definitions + +TARGET          scummvm_tsage.lib +TARGETTYPE      lib +OPTION			MSVC /QIfist /Ob1 /Oy /GF // /QIfist disables use of __ftol2 to avoid linker probs with MS libc: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcrefQIfistSuppress_ftol.asp +OPTION			GCC -Wno-multichar -Wno-reorder // don't optimize for ARM, platform way too sensitive for that :( just turn off some common warnings +OPTION			GCCE -Wno-multichar -Wno-reorder -Wno-unused -Wno-format -fsigned-char +ALWAYS_BUILD_AS_ARM + +//START_AUTO_MACROS_SLAVE// + +	// empty base file, will be updated by Perl build scripts + +//STOP_AUTO_MACROS_SLAVE// + +// *** SOURCE files + +SOURCEPATH ..\..\..\..\engines\tsage + +//START_AUTO_OBJECTS_TSAGE_// + +	// empty base file, will be updated by Perl build scripts + +//STOP_AUTO_OBJECTS_TSAGE_// + +// *** Include paths + +USERINCLUDE     ..\..\..\..\engines +USERINCLUDE     ..\..\..\.. ..\..\..\..\common ..\..\..\..\gui ..\..\..\..\audio ..\src +SYSTEMINCLUDE	\epoc32\include\ZLIB // before \epoc32\include because symbian already has older version +SYSTEMINCLUDE   \epoc32\include \epoc32\include\libc ..\src diff --git a/backends/platform/symbian/mmp/scummvm_tucker.mmp.in b/backends/platform/symbian/mmp/scummvm_tucker.mmp.in index 434072bc96..0aeb0dc4ec 100644 --- a/backends/platform/symbian/mmp/scummvm_tucker.mmp.in +++ b/backends/platform/symbian/mmp/scummvm_tucker.mmp.in @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  // diff --git a/backends/platform/symbian/res/ScummVmAif.rss b/backends/platform/symbian/res/ScummVmAif.rss index b1ac4faa67..31bf7bd394 100644 --- a/backends/platform/symbian/res/ScummVmAif.rss +++ b/backends/platform/symbian/res/ScummVmAif.rss @@ -22,8 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$   */  #include <aiftool.rh> diff --git a/backends/platform/symbian/res/scummvm.rss b/backends/platform/symbian/res/scummvm.rss index 8239d7e2d3..62da39e6a8 100644 --- a/backends/platform/symbian/res/scummvm.rss +++ b/backends/platform/symbian/res/scummvm.rss @@ -22,8 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$   */  // ScummVM.RSS diff --git a/backends/platform/symbian/res/scummvm_A0000658.rss b/backends/platform/symbian/res/scummvm_A0000658.rss index d3dae5e143..5615bbda9f 100644 --- a/backends/platform/symbian/res/scummvm_A0000658.rss +++ b/backends/platform/symbian/res/scummvm_A0000658.rss @@ -22,8 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$   */  // ScummVM.RSS diff --git a/backends/platform/symbian/src/ScummApp.cpp b/backends/platform/symbian/src/ScummApp.cpp index 01af5e7fd9..c4d9fc88d9 100644 --- a/backends/platform/symbian/src/ScummApp.cpp +++ b/backends/platform/symbian/src/ScummApp.cpp @@ -17,9 +17,6 @@   * You should have received a copy of the GNU General Public License   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $URL$ - * $Id$   */  #include "backends/platform/symbian/src/ScummApp.h" diff --git a/backends/platform/symbian/src/ScummApp.h b/backends/platform/symbian/src/ScummApp.h index cca8e2a7c9..376964f0a1 100644 --- a/backends/platform/symbian/src/ScummApp.h +++ b/backends/platform/symbian/src/ScummApp.h @@ -17,9 +17,6 @@   * You should have received a copy of the GNU General Public License   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $URL$ - * $Id$   */  #ifndef SCUMMAPP_H diff --git a/backends/platform/symbian/src/ScummVMApp.h b/backends/platform/symbian/src/ScummVMApp.h index aee098f989..adc39a9ee2 100644 --- a/backends/platform/symbian/src/ScummVMApp.h +++ b/backends/platform/symbian/src/ScummVMApp.h @@ -18,9 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #ifndef SCUMMVMAPP_H diff --git a/backends/platform/symbian/src/ScummVm.hrh b/backends/platform/symbian/src/ScummVm.hrh index bca5d7291e..c18048c922 100644 --- a/backends/platform/symbian/src/ScummVm.hrh +++ b/backends/platform/symbian/src/ScummVm.hrh @@ -22,9 +22,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #ifndef ScummHRH diff --git a/backends/platform/symbian/src/SymbianActions.cpp b/backends/platform/symbian/src/SymbianActions.cpp index 1a55a68778..5de386b1da 100644 --- a/backends/platform/symbian/src/SymbianActions.cpp +++ b/backends/platform/symbian/src/SymbianActions.cpp @@ -18,9 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #include "backends/platform/symbian/src/SymbianActions.h" diff --git a/backends/platform/symbian/src/SymbianActions.h b/backends/platform/symbian/src/SymbianActions.h index c652d0be7e..2b65c6c950 100644 --- a/backends/platform/symbian/src/SymbianActions.h +++ b/backends/platform/symbian/src/SymbianActions.h @@ -18,9 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #ifndef SYMBIANACTIONS_H diff --git a/backends/platform/symbian/src/SymbianMain.cpp b/backends/platform/symbian/src/SymbianMain.cpp index 837961e89c..8da2b239f4 100644 --- a/backends/platform/symbian/src/SymbianMain.cpp +++ b/backends/platform/symbian/src/SymbianMain.cpp @@ -18,9 +18,6 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #include "backends/platform/symbian/src/portdefs.h" diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index bccbec4a52..9cccc81d19 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -17,9 +17,6 @@   * You should have received a copy of the GNU General Public License   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $URL$ - * $Id$   */  #include <sdlapp.h> // for CSDLApp::GetExecutablePathCStr() @ Symbian::GetExecutablePath() diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index 0142054492..74a102dc15 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -17,9 +17,6 @@   * You should have received a copy of the GNU General Public License   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $URL$ - * $Id$   */  #ifndef PLATFORM_SDL_SYMBIAN_H diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index 1c5de2d43c..ebcd273659 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -17,9 +17,6 @@   * You should have received a copy of the GNU General Public License   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * $URL$ - * $Id$   */  #ifndef SYMBIAN_PORTDEFS_H  #define SYMBIAN_PORTDEFS_H @@ -35,6 +32,11 @@  #include <e32std.h>  #include <math.h> +/* define pi */ +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif  /*  M_PI  */ +  #define DISABLE_COMMAND_LINE  #if defined(USE_TREMOR) && !defined(USE_VORBIS) diff --git a/backends/platform/symbian/src/vsnprintf.h b/backends/platform/symbian/src/vsnprintf.h index 5a9c836ea3..6e75719d55 100644 --- a/backends/platform/symbian/src/vsnprintf.h +++ b/backends/platform/symbian/src/vsnprintf.h @@ -1,8 +1,11 @@  /* - * This is the vsnprintf for scummvm/symbian implementation from the original snprintf.c, - * all support functions has been removed and vsnprintf renamed to symbian_vsnprintf + * This is the vsnprintf for scummvm/symbian implementation from the original + * snprintf.c, all support functions has been removed and vsnprintf renamed to + * symbian_vsnprintf + * According to the homepage this function may be licensed under either the + * Frontier Artistic License or the GPL. + *   * snprintf.c - a portable implementation of snprintf - * According to the homepage this function could be licensed as either Frontier Aritistic or GPL.   *   * AUTHOR   *   Mark Martinec <mark.martinec@ijs.si>, April 1999. @@ -244,13 +247,14 @@ int symbian_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {  			/* if (str_l < str_m) str[str_l++] = *p++;    -- this would be sufficient */  			/* but the following code achieves better performance for cases  			* where format string is long and contains few conversions */ -			const char *q = strchr(p+1,'%'); -			size_t n = !q ? strlen(p) : (q-p); +			const char *q = strchr(p + 1, '%'); +			size_t n = !q ? strlen(p) : (q - p);  			if (str_l < str_m) { -				size_t avail = str_m-str_l; -				fast_memcpy(str+str_l, p, (n>avail?avail:n)); +				size_t avail = str_m - str_l; +				fast_memcpy(str + str_l, p, (n > avail ? avail : n));  			} -			p += n; str_l += n; +			p += n; +			str_l += n;  		} else {  			const char *starting_p;  			size_t min_field_width = 0, precision = 0; @@ -262,398 +266,453 @@ int symbian_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {  			char tmp[32];/* temporary buffer for simple numeric->string conversion */  			const char *str_arg;      /* string address in case of string argument */ -									  size_t str_arg_l;         /* natural field width of arg without padding +			size_t str_arg_l;         /* natural field width of arg without padding  									  and sign */ -									  unsigned char uchar_arg; -									  /* unsigned char argument value - only defined for c conversion. -									  N.B. standard explicitly states the char argument for -									  the c conversion is unsigned */ +			unsigned char uchar_arg; +			/* unsigned char argument value - only defined for c conversion. +			N.B. standard explicitly states the char argument for +			the c conversion is unsigned */ -									  size_t number_of_zeros_to_pad = 0; -									  /* number of zeros to be inserted for numeric conversions -									  as required by the precision or minimal field width */ +			size_t number_of_zeros_to_pad = 0; +			/* number of zeros to be inserted for numeric conversions +			as required by the precision or minimal field width */ -									  size_t zero_padding_insertion_ind = 0; -									  /* index into tmp where zero padding is to be inserted */ +			size_t zero_padding_insertion_ind = 0; +			/* index into tmp where zero padding is to be inserted */ -									  char fmt_spec = '\0'; -									  /* current conversion specifier character */ +			char fmt_spec = '\0'; +			/* current conversion specifier character */ -									  str_arg = credits;/* just to make compiler happy (defined but not used)*/ -									  str_arg = NULL; -									  starting_p = p; p++;  /* skip '%' */ -									  /* parse flags */ -									  while (*p == '0' || *p == '-' || *p == '+' || -										  *p == ' ' || *p == '#' || *p == '\'') { -										  switch (*p) { -										  case '0': zero_padding = 1; break; -										  case '-': justify_left = 1; break; -										  case '+': force_sign = 1; space_for_positive = 0; break; -										  case ' ': force_sign = 1; -											  /* If both the ' ' and '+' flags appear, the ' ' flag should be ignored */ -											  break; -										  case '#': alternate_form = 1; break; -										  case '\'': break; -										  } -										  p++; -									  } -									  /* If the '0' and '-' flags both appear, the '0' flag should be ignored. */ +			str_arg = credits;/* just to make compiler happy (defined but not used)*/ +			str_arg = NULL; +			starting_p = p; +			p++;  /* skip '%' */ +			/* parse flags */ +			while (*p == '0' || *p == '-' || *p == '+' || +			       *p == ' ' || *p == '#' || *p == '\'') { +				switch (*p) { +				case '0': +					zero_padding = 1; +					break; +				case '-': +					justify_left = 1; +					break; +				case '+': +					force_sign = 1; +					space_for_positive = 0; +					break; +				case ' ': +					force_sign = 1; +					/* If both the ' ' and '+' flags appear, the ' ' flag should be ignored */ +					break; +				case '#': +					alternate_form = 1; +					break; +				case '\'': +					break; +				} +				p++; +			} +			/* If the '0' and '-' flags both appear, the '0' flag should be ignored. */ -									  /* parse field width */ -									  if (*p == '*') { -										  int j; -										  p++; j = va_arg(ap, int); -										  if (j >= 0) min_field_width = j; -										  else { min_field_width = -j; justify_left = 1; } -									  } else if (isdigit((int)(*p))) { -									  /* size_t could be wider than unsigned int; -										  make sure we treat argument like common implementations do */ -										  unsigned int uj = *p++ - '0'; -										  while (isdigit((int)(*p))) uj = 10*uj + (unsigned int)(*p++ - '0'); -										  min_field_width = uj; -									  } -									  /* parse precision */ -									  if (*p == '.') { -										  p++; precision_specified = 1; -										  if (*p == '*') { -											  int j = va_arg(ap, int); -											  p++; -											  if (j >= 0) precision = j; -											  else { -												  precision_specified = 0; precision = 0; -												  /* NOTE: -												  *   Solaris 2.6 man page claims that in this case the precision -												  *   should be set to 0.  Digital Unix 4.0, HPUX 10 and BSD man page -												  *   claim that this case should be treated as unspecified precision, -												  *   which is what we do here. -												  */ -											  } -										  } else if (isdigit((int)(*p))) { -										  /* size_t could be wider than unsigned int; -											  make sure we treat argument like common implementations do */ -											  unsigned int uj = *p++ - '0'; -											  while (isdigit((int)(*p))) uj = 10*uj + (unsigned int)(*p++ - '0'); -											  precision = uj; -										  } -									  } -									  /* parse 'h', 'l' and 'll' length modifiers */ -									  if (*p == 'h' || *p == 'l') { -										  length_modifier = *p; p++; -										  if (length_modifier == 'l' && *p == 'l') {   /* double l = long long */ +			/* parse field width */ +			if (*p == '*') { +				int j; +				p++; +				j = va_arg(ap, int); +				if (j >= 0) min_field_width = j; +				else { min_field_width = -j; justify_left = 1; } +			} else if (isdigit((int)(*p))) { +				/* size_t could be wider than unsigned int; +				    make sure we treat argument like common implementations do */ +				unsigned int uj = *p++ - '0'; +				while (isdigit((int)(*p))) uj = 10 * uj + (unsigned int)(*p++ - '0'); +				min_field_width = uj; +			} +			/* parse precision */ +			if (*p == '.') { +				p++; +				precision_specified = 1; +				if (*p == '*') { +					int j = va_arg(ap, int); +					p++; +					if (j >= 0) precision = j; +					else { +						precision_specified = 0; +						precision = 0; +						/* NOTE: +						*   Solaris 2.6 man page claims that in this case the precision +						*   should be set to 0.  Digital Unix 4.0, HPUX 10 and BSD man page +						*   claim that this case should be treated as unspecified precision, +						*   which is what we do here. +						*/ +					} +				} else if (isdigit((int)(*p))) { +					/* size_t could be wider than unsigned int; +					    make sure we treat argument like common implementations do */ +					unsigned int uj = *p++ - '0'; +					while (isdigit((int)(*p))) uj = 10 * uj + (unsigned int)(*p++ - '0'); +					precision = uj; +				} +			} +			/* parse 'h', 'l' and 'll' length modifiers */ +			if (*p == 'h' || *p == 'l') { +				length_modifier = *p; +				p++; +				if (length_modifier == 'l' && *p == 'l') {   /* double l = long long */  #ifdef SNPRINTF_LONGLONG_SUPPORT -											  length_modifier = '2';                  /* double l encoded as '2' */ +					length_modifier = '2';                  /* double l encoded as '2' */  #else -											  length_modifier = 'l';                 /* treat it as a single 'l' */ +					length_modifier = 'l';                 /* treat it as a single 'l' */  #endif -											  p++; -										  } -									  } -									  fmt_spec = *p; -									  /* common synonyms: */ -									  switch (fmt_spec) { -									  case 'i': fmt_spec = 'd'; break; -									  case 'D': fmt_spec = 'd'; length_modifier = 'l'; break; -									  case 'U': fmt_spec = 'u'; length_modifier = 'l'; break; -									  case 'O': fmt_spec = 'o'; length_modifier = 'l'; break; -									  default: break; -									  } -									  /* get parameter value, do initial processing */ -									  switch (fmt_spec) { -									  case '%': /* % behaves similar to 's' regarding flags and field widths */ -									  case 'c': /* c behaves similar to 's' regarding flags and field widths */ -									  case 's': -										  length_modifier = '\0';          /* wint_t and wchar_t not supported */ -										  /* the result of zero padding flag with non-numeric conversion specifier*/ -										  /* is undefined. Solaris and HPUX 10 does zero padding in this case,    */ -										  /* Digital Unix and Linux does not. */ -										  zero_padding = 0;    /* turn zero padding off for string conversions */ -										  str_arg_l = 1; -										  switch (fmt_spec) { -										  case '%': -											  str_arg = p; break; -										  case 'c': { -											  int j = va_arg(ap, int); -											  uchar_arg = (unsigned char) j;   /* standard demands unsigned char */ -											  str_arg = (const char *) &uchar_arg; -											  break; -													} -										  case 's': -											  str_arg = va_arg(ap, const char *); -											  if (!str_arg) str_arg_l = 0; -											  /* make sure not to address string beyond the specified precision !!! */ -											  else if (!precision_specified) str_arg_l = strlen(str_arg); -											  /* truncate string if necessary as requested by precision */ -											  else if (precision == 0) str_arg_l = 0; -											  else { -												  /* memchr on HP does not like n > 2^31  !!! */ -												  const char *q = (const char*) memchr(str_arg, '\0', -													  precision <= 0x7fffffff ? precision : 0x7fffffff); -												  str_arg_l = !q ? precision : (q-str_arg); -											  } -											  break; -										  default: break; -										  } -										  break; -										  case 'd': case 'u': case 'o': case 'x': case 'X': case 'p': { -										  /* NOTE: the u, o, x, X and p conversion specifiers imply -											  the value is unsigned;  d implies a signed value */ +					p++; +				} +			} +			fmt_spec = *p; +			/* common synonyms: */ +			switch (fmt_spec) { +			case 'i': +				fmt_spec = 'd'; +				break; +			case 'D': +				fmt_spec = 'd'; +				length_modifier = 'l'; +				break; +			case 'U': +				fmt_spec = 'u'; +				length_modifier = 'l'; +				break; +			case 'O': +				fmt_spec = 'o'; +				length_modifier = 'l'; +				break; +			default: +				break; +			} +			/* get parameter value, do initial processing */ +			switch (fmt_spec) { +			case '%': /* % behaves similar to 's' regarding flags and field widths */ +			case 'c': /* c behaves similar to 's' regarding flags and field widths */ +			case 's': +				length_modifier = '\0';          /* wint_t and wchar_t not supported */ +				/* the result of zero padding flag with non-numeric conversion specifier*/ +				/* is undefined. Solaris and HPUX 10 does zero padding in this case,    */ +				/* Digital Unix and Linux does not. */ +				zero_padding = 0;    /* turn zero padding off for string conversions */ +				str_arg_l = 1; +				switch (fmt_spec) { +				case '%': +					str_arg = p; +					break; +				case 'c': { +					int j = va_arg(ap, int); +					uchar_arg = (unsigned char) j;   /* standard demands unsigned char */ +					str_arg = (const char *) & uchar_arg; +					break; +				} +				case 's': +					str_arg = va_arg(ap, const char *); +					if (!str_arg) str_arg_l = 0; +					/* make sure not to address string beyond the specified precision !!! */ +					else if (!precision_specified) str_arg_l = strlen(str_arg); +					/* truncate string if necessary as requested by precision */ +					else if (precision == 0) str_arg_l = 0; +					else { +						/* memchr on HP does not like n > 2^31  !!! */ +						const char *q = (const char*) memchr(str_arg, '\0', +						                                     precision <= 0x7fffffff ? precision : 0x7fffffff); +						str_arg_l = !q ? precision : (q - str_arg); +					} +					break; +				default: +					break; +				} +				break; +			case 'd': +			case 'u': +			case 'o': +			case 'x': +			case 'X': +			case 'p': { +				/* NOTE: the u, o, x, X and p conversion specifiers imply +				    the value is unsigned;  d implies a signed value */ -											  int arg_sign = 0; -											  /* 0 if numeric argument is zero (or if pointer is NULL for 'p'), -											  +1 if greater than zero (or nonzero for unsigned arguments), -											  -1 if negative (unsigned argument is never negative) */ +				int arg_sign = 0; +				/* 0 if numeric argument is zero (or if pointer is NULL for 'p'), +				+1 if greater than zero (or nonzero for unsigned arguments), +				-1 if negative (unsigned argument is never negative) */ -											  int int_arg = 0;  unsigned int uint_arg = 0; -											  /* only defined for length modifier h, or for no length modifiers */ +				int int_arg = 0; +				unsigned int uint_arg = 0; +				/* only defined for length modifier h, or for no length modifiers */ -											  long int long_arg = 0;  unsigned long int ulong_arg = 0; -											  /* only defined for length modifier l */ +				long int long_arg = 0; +				unsigned long int ulong_arg = 0; +				/* only defined for length modifier l */ -											  void *ptr_arg = NULL; -											  /* pointer argument value -only defined for p conversion */ +				void *ptr_arg = NULL; +				/* pointer argument value -only defined for p conversion */  #ifdef SNPRINTF_LONGLONG_SUPPORT -											  long long int long_long_arg = 0; -											  unsigned long long int ulong_long_arg = 0; -											  /* only defined for length modifier ll */ +				long long int long_long_arg = 0; +				unsigned long long int ulong_long_arg = 0; +				/* only defined for length modifier ll */  #endif -											  if (fmt_spec == 'p') { -											  /* HPUX 10: An l, h, ll or L before any other conversion character -											  *   (other than d, i, u, o, x, or X) is ignored. -											  * Digital Unix: -											  *   not specified, but seems to behave as HPUX does. -											  * Solaris: If an h, l, or L appears before any other conversion -											  *   specifier (other than d, i, u, o, x, or X), the behavior -											  *   is undefined. (Actually %hp converts only 16-bits of address -											  *   and %llp treats address as 64-bit data which is incompatible -											  *   with (void *) argument on a 32-bit system). -												  */ -												  length_modifier = '\0'; -												  ptr_arg = va_arg(ap, void *); -												  if (ptr_arg != NULL) arg_sign = 1; -											  } else if (fmt_spec == 'd') {  /* signed */ -												  switch (length_modifier) { -												  case '\0': -												  case 'h': -												  /* It is non-portable to specify a second argument of char or short -												  * to va_arg, because arguments seen by the called function -												  * are not char or short.  C converts char and short arguments -												  * to int before passing them to a function. -													  */ -													  int_arg = va_arg(ap, int); -													  if      (int_arg > 0) arg_sign =  1; -													  else if (int_arg < 0) arg_sign = -1; -													  break; -												  case 'l': -													  long_arg = va_arg(ap, long int); -													  if      (long_arg > 0) arg_sign =  1; -													  else if (long_arg < 0) arg_sign = -1; -													  break; +				if (fmt_spec == 'p') { +					/* HPUX 10: An l, h, ll or L before any other conversion character +					*   (other than d, i, u, o, x, or X) is ignored. +					* Digital Unix: +					*   not specified, but seems to behave as HPUX does. +					* Solaris: If an h, l, or L appears before any other conversion +					*   specifier (other than d, i, u, o, x, or X), the behavior +					*   is undefined. (Actually %hp converts only 16-bits of address +					*   and %llp treats address as 64-bit data which is incompatible +					*   with (void *) argument on a 32-bit system). +					    */ +					length_modifier = '\0'; +					ptr_arg = va_arg(ap, void *); +					if (ptr_arg != NULL) arg_sign = 1; +				} else if (fmt_spec == 'd') {  /* signed */ +					switch (length_modifier) { +					case '\0': +					case 'h': +						/* It is non-portable to specify a second argument of char or short +						* to va_arg, because arguments seen by the called function +						* are not char or short.  C converts char and short arguments +						* to int before passing them to a function. +						    */ +						int_arg = va_arg(ap, int); +						if (int_arg > 0) arg_sign =  1; +						else if (int_arg < 0) arg_sign = -1; +						break; +					case 'l': +						long_arg = va_arg(ap, long int); +						if (long_arg > 0) arg_sign =  1; +						else if (long_arg < 0) arg_sign = -1; +						break;  #ifdef SNPRINTF_LONGLONG_SUPPORT -												  case '2': -													  long_long_arg = va_arg(ap, long long int); -													  if      (long_long_arg > 0) arg_sign =  1; -													  else if (long_long_arg < 0) arg_sign = -1; -													  break; +					case '2': +						long_long_arg = va_arg(ap, long long int); +						if (long_long_arg > 0) arg_sign =  1; +						else if (long_long_arg < 0) arg_sign = -1; +						break;  #endif -												  } -											  } else {  /* unsigned */ -												  switch (length_modifier) { -												  case '\0': -												  case 'h': -													  uint_arg = va_arg(ap, unsigned int); -													  if (uint_arg) arg_sign = 1; -													  break; -												  case 'l': -													  ulong_arg = va_arg(ap, unsigned long int); -													  if (ulong_arg) arg_sign = 1; -													  break; +					} +				} else {  /* unsigned */ +					switch (length_modifier) { +					case '\0': +					case 'h': +						uint_arg = va_arg(ap, unsigned int); +						if (uint_arg) arg_sign = 1; +						break; +					case 'l': +						ulong_arg = va_arg(ap, unsigned long int); +						if (ulong_arg) arg_sign = 1; +						break;  #ifdef SNPRINTF_LONGLONG_SUPPORT -												  case '2': -													  ulong_long_arg = va_arg(ap, unsigned long long int); -													  if (ulong_long_arg) arg_sign = 1; -													  break; +					case '2': +						ulong_long_arg = va_arg(ap, unsigned long long int); +						if (ulong_long_arg) arg_sign = 1; +						break;  #endif -												  } -											  } -											  str_arg = tmp; str_arg_l = 0; -											  /* NOTE: -											  *   For d, i, u, o, x, and X conversions, if precision is specified, -											  *   the '0' flag should be ignored. This is so with Solaris 2.6, -											  *   Digital UNIX 4.0, HPUX 10, Linux, FreeBSD, NetBSD; but not with Perl. -											  */ -											  if (precision_specified) zero_padding = 0; -											  if (fmt_spec == 'd') { -												  if (force_sign && arg_sign >= 0) -													  tmp[str_arg_l++] = space_for_positive ? ' ' : '+'; -													  /* leave negative numbers for sprintf to handle, -												  to avoid handling tricky cases like (short int)(-32768) */ -											  } else if (alternate_form) { -												  if (arg_sign != 0 && (fmt_spec == 'x' || fmt_spec == 'X') ) -												  { tmp[str_arg_l++] = '0'; tmp[str_arg_l++] = fmt_spec; } -												  /* alternate form should have no effect for p conversion, but ... */ -											  } -											  zero_padding_insertion_ind = str_arg_l; -											  if (!precision_specified) precision = 1;   /* default precision is 1 */ -											  if (precision == 0 && arg_sign == 0 -												  ) { -												  /* converted to null string */ -												  /* When zero value is formatted with an explicit precision 0, -												  the resulting formatted string is empty (d, i, u, o, x, X, p).   */ -											  } else { -												  char f[5]; int f_l = 0; -												  f[f_l++] = '%';    /* construct a simple format string for sprintf */ -												  if (!length_modifier) { } -												  else if (length_modifier=='2') { f[f_l++] = 'l'; f[f_l++] = 'l'; } -												  else f[f_l++] = length_modifier; -												  f[f_l++] = fmt_spec; f[f_l++] = '\0'; -												  if (fmt_spec == 'p') str_arg_l += sprintf(tmp+str_arg_l, f, ptr_arg); -												  else if (fmt_spec == 'd') {  /* signed */ -													  switch (length_modifier) { -													  case '\0': -													  case 'h': str_arg_l+=sprintf(tmp+str_arg_l, f, int_arg);  break; -													  case 'l': str_arg_l+=sprintf(tmp+str_arg_l, f, long_arg); break; +					} +				} +				str_arg = tmp; +				str_arg_l = 0; +				/* NOTE: +				*   For d, i, u, o, x, and X conversions, if precision is specified, +				*   the '0' flag should be ignored. This is so with Solaris 2.6, +				*   Digital UNIX 4.0, HPUX 10, Linux, FreeBSD, NetBSD; but not with Perl. +				*/ +				if (precision_specified) zero_padding = 0; +				if (fmt_spec == 'd') { +					if (force_sign && arg_sign >= 0) +						tmp[str_arg_l++] = space_for_positive ? ' ' : '+'; +					/* leave negative numbers for sprintf to handle, +					to avoid handling tricky cases like (short int)(-32768) */ +				} else if (alternate_form) { +					if (arg_sign != 0 && (fmt_spec == 'x' || fmt_spec == 'X')) +						{ tmp[str_arg_l++] = '0'; tmp[str_arg_l++] = fmt_spec; } +					/* alternate form should have no effect for p conversion, but ... */ +				} +				zero_padding_insertion_ind = str_arg_l; +				if (!precision_specified) precision = 1;   /* default precision is 1 */ +				if (precision == 0 && arg_sign == 0 +				   ) { +					/* converted to null string */ +					/* When zero value is formatted with an explicit precision 0, +					the resulting formatted string is empty (d, i, u, o, x, X, p).   */ +				} else { +					char f[5]; +					int f_l = 0; +					f[f_l++] = '%';    /* construct a simple format string for sprintf */ +					if (!length_modifier) { } else if (length_modifier == '2') { f[f_l++] = 'l'; f[f_l++] = 'l'; } else f[f_l++] = length_modifier; +					f[f_l++] = fmt_spec; +					f[f_l++] = '\0'; +					if (fmt_spec == 'p') str_arg_l += sprintf(tmp + str_arg_l, f, ptr_arg); +					else if (fmt_spec == 'd') {  /* signed */ +						switch (length_modifier) { +						case '\0': +						case 'h': +							str_arg_l += sprintf(tmp + str_arg_l, f, int_arg); +							break; +						case 'l': +							str_arg_l += sprintf(tmp + str_arg_l, f, long_arg); +							break;  #ifdef SNPRINTF_LONGLONG_SUPPORT -													  case '2': str_arg_l+=sprintf(tmp+str_arg_l,f,long_long_arg); break; +						case '2': +							str_arg_l += sprintf(tmp + str_arg_l, f, long_long_arg); +							break;  #endif -													  } -												  } else {  /* unsigned */ -													  switch (length_modifier) { -													  case '\0': -													  case 'h': str_arg_l+=sprintf(tmp+str_arg_l, f, uint_arg);  break; -													  case 'l': str_arg_l+=sprintf(tmp+str_arg_l, f, ulong_arg); break; +						} +					} else {  /* unsigned */ +						switch (length_modifier) { +						case '\0': +						case 'h': +							str_arg_l += sprintf(tmp + str_arg_l, f, uint_arg); +							break; +						case 'l': +							str_arg_l += sprintf(tmp + str_arg_l, f, ulong_arg); +							break;  #ifdef SNPRINTF_LONGLONG_SUPPORT -													  case '2': str_arg_l+=sprintf(tmp+str_arg_l,f,ulong_long_arg);break; +						case '2': +							str_arg_l += sprintf(tmp + str_arg_l, f, ulong_long_arg); +							break;  #endif -													  } -												  } -												  /* include the optional minus sign and possible "0x" -												  in the region before the zero padding insertion point */ -												  if (zero_padding_insertion_ind < str_arg_l && -													  tmp[zero_padding_insertion_ind] == '-') { -													  zero_padding_insertion_ind++; -												  } -												  if (zero_padding_insertion_ind+1 < str_arg_l && -													  tmp[zero_padding_insertion_ind]   == '0' && -													  (tmp[zero_padding_insertion_ind+1] == 'x' || -													  tmp[zero_padding_insertion_ind+1] == 'X') ) { -													  zero_padding_insertion_ind += 2; -												  } -											  } -											  { size_t num_of_digits = str_arg_l - zero_padding_insertion_ind; -											  if (alternate_form && fmt_spec == 'o' -												  /* unless zero is already the first character */ -												  && !(zero_padding_insertion_ind < str_arg_l -												  && tmp[zero_padding_insertion_ind] == '0') -												  ) {        /* assure leading zero for alternate-form octal numbers */ -												  if (!precision_specified || precision < num_of_digits+1) { -												  /* precision is increased to force the first character to be zero, -												  except if a zero value is formatted with an explicit precision -													  of zero */ -													  precision = num_of_digits+1; precision_specified = 1; -												  } -											  } -											  /* zero padding to specified precision? */ -											  if (num_of_digits < precision) -												  number_of_zeros_to_pad = precision - num_of_digits; -											  } -											  /* zero padding to specified minimal field width? */ -											  if (!justify_left && zero_padding) { -												  int n = min_field_width - (str_arg_l+number_of_zeros_to_pad); -												  if (n > 0) number_of_zeros_to_pad += n; -											  } -											  break; -      } -      default: /* unrecognized conversion specifier, keep format string as-is*/ -		  zero_padding = 0;  /* turn zero padding off for non-numeric convers. */ -		  justify_left = 1; min_field_width = 0;                /* reset flags */ -																/* discard the unrecognized conversion, just keep * -		  * the unrecognized conversion character          */ -		  str_arg = p; str_arg_l = 0; -		  if (*p) str_arg_l++;  /* include invalid conversion specifier unchanged +						} +					} +					/* include the optional minus sign and possible "0x" +					in the region before the zero padding insertion point */ +					if (zero_padding_insertion_ind < str_arg_l && +					        tmp[zero_padding_insertion_ind] == '-') { +						zero_padding_insertion_ind++; +					} +					if (zero_padding_insertion_ind + 1 < str_arg_l && +					        tmp[zero_padding_insertion_ind]   == '0' && +					        (tmp[zero_padding_insertion_ind+1] == 'x' || +					         tmp[zero_padding_insertion_ind+1] == 'X')) { +						zero_padding_insertion_ind += 2; +					} +				} +				{ +					size_t num_of_digits = str_arg_l - zero_padding_insertion_ind; +					if (alternate_form && fmt_spec == 'o' +					        /* unless zero is already the first character */ +					        && !(zero_padding_insertion_ind < str_arg_l +					             && tmp[zero_padding_insertion_ind] == '0') +					   ) {        /* assure leading zero for alternate-form octal numbers */ +						if (!precision_specified || precision < num_of_digits + 1) { +							/* precision is increased to force the first character to be zero, +							except if a zero value is formatted with an explicit precision +							    of zero */ +							precision = num_of_digits + 1; +							precision_specified = 1; +						} +					} +					/* zero padding to specified precision? */ +					if (num_of_digits < precision) +						number_of_zeros_to_pad = precision - num_of_digits; +				} +				/* zero padding to specified minimal field width? */ +				if (!justify_left && zero_padding) { +					int n = min_field_width - (str_arg_l + number_of_zeros_to_pad); +					if (n > 0) number_of_zeros_to_pad += n; +				} +				break; +			} +			default: /* unrecognized conversion specifier, keep format string as-is*/ +				zero_padding = 0;  /* turn zero padding off for non-numeric convers. */ +				justify_left = 1; +				min_field_width = 0;                /* reset flags */ +				/* discard the unrecognized conversion, just keep * +				* the unrecognized conversion character          */ +				str_arg = p; +				str_arg_l = 0; +				if (*p) str_arg_l++;  /* include invalid conversion specifier unchanged  		  if not at end-of-string */ -		  break; -      } -      if (*p) p++;      /* step over the just processed conversion specifier */ -						/* insert padding to the left as requested by min_field_width; -      this does not include the zero padding in case of numerical conversions*/ -      if (!justify_left) {                /* left padding with blank or zero */ -		  int n = min_field_width - (str_arg_l+number_of_zeros_to_pad); -		  if (n > 0) { -			  if (str_l < str_m) { -				  size_t avail = str_m-str_l; -				  fast_memset(str+str_l, (zero_padding?'0':' '), (n>avail?avail:n)); -			  } -			  str_l += n; -		  } -      } -	  /* zero padding as requested by the precision or by the minimal field width -	  * for numeric conversions required? */ -      if (number_of_zeros_to_pad <= 0) { -	  /* will not copy first part of numeric right now, * -		  * force it to be copied later in its entirety    */ -		  zero_padding_insertion_ind = 0; -      } else { -		  /* insert first part of numerics (sign or '0x') before zero padding */ -		  int n = zero_padding_insertion_ind; -		  if (n > 0) { -			  if (str_l < str_m) { -				  size_t avail = str_m-str_l; -				  fast_memcpy(str+str_l, str_arg, (n>avail?avail:n)); -			  } -			  str_l += n; -		  } -		  /* insert zero padding as requested by the precision or min field width */ -		  n = number_of_zeros_to_pad; -		  if (n > 0) { -			  if (str_l < str_m) { -				  size_t avail = str_m-str_l; -				  fast_memset(str+str_l, '0', (n>avail?avail:n)); -			  } -			  str_l += n; -		  } -      } -	  /* insert formatted string -	  * (or as-is conversion specifier for unknown conversions) */ -      { int n = str_arg_l - zero_padding_insertion_ind; -	  if (n > 0) { -          if (str_l < str_m) { -			  size_t avail = str_m-str_l; -			  fast_memcpy(str+str_l, str_arg+zero_padding_insertion_ind, -				  (n>avail?avail:n)); -          } -          str_l += n; -	  } -      } -	  /* insert right padding */ -      if (justify_left) {          /* right blank padding to the field width */ -		  int n = min_field_width - (str_arg_l+number_of_zeros_to_pad); -		  if (n > 0) { -			  if (str_l < str_m) { -				  size_t avail = str_m-str_l; -				  fast_memset(str+str_l, ' ', (n>avail?avail:n)); -			  } -			  str_l += n; -		  } -      } -    } -  } -  if (str_m > 0) { /* make sure the string is null-terminated +				break; +			} +			if (*p) p++;      /* step over the just processed conversion specifier */ +			/* insert padding to the left as requested by min_field_width; +			this does not include the zero padding in case of numerical conversions*/ +			if (!justify_left) {                /* left padding with blank or zero */ +				int n = min_field_width - (str_arg_l + number_of_zeros_to_pad); +				if (n > 0) { +					if (str_l < str_m) { +						size_t avail = str_m - str_l; +						fast_memset(str + str_l, (zero_padding ? '0' : ' '), (n > avail ? avail : n)); +					} +					str_l += n; +				} +			} +			/* zero padding as requested by the precision or by the minimal field width +			* for numeric conversions required? */ +			if (number_of_zeros_to_pad <= 0) { +				/* will not copy first part of numeric right now, * +				    * force it to be copied later in its entirety    */ +				zero_padding_insertion_ind = 0; +			} else { +				/* insert first part of numerics (sign or '0x') before zero padding */ +				int n = zero_padding_insertion_ind; +				if (n > 0) { +					if (str_l < str_m) { +						size_t avail = str_m - str_l; +						fast_memcpy(str + str_l, str_arg, (n > avail ? avail : n)); +					} +					str_l += n; +				} +				/* insert zero padding as requested by the precision or min field width */ +				n = number_of_zeros_to_pad; +				if (n > 0) { +					if (str_l < str_m) { +						size_t avail = str_m - str_l; +						fast_memset(str + str_l, '0', (n > avail ? avail : n)); +					} +					str_l += n; +				} +			} +			/* insert formatted string +			* (or as-is conversion specifier for unknown conversions) */ +			{ +				int n = str_arg_l - zero_padding_insertion_ind; +				if (n > 0) { +					if (str_l < str_m) { +						size_t avail = str_m - str_l; +						fast_memcpy(str + str_l, str_arg + zero_padding_insertion_ind, +						            (n > avail ? avail : n)); +					} +					str_l += n; +				} +			} +			/* insert right padding */ +			if (justify_left) {          /* right blank padding to the field width */ +				int n = min_field_width - (str_arg_l + number_of_zeros_to_pad); +				if (n > 0) { +					if (str_l < str_m) { +						size_t avail = str_m - str_l; +						fast_memset(str + str_l, ' ', (n > avail ? avail : n)); +					} +					str_l += n; +				} +			} +		} +	} +	if (str_m > 0) { /* make sure the string is null-terminated  				   even at the expense of overwriting the last character  	  (shouldn't happen, but just in case) */ -	  str[str_l <= str_m-1 ? str_l : str_m-1] = '\0'; -  } -  /* Return the number of characters formatted (excluding trailing null -  * character), that is, the number of characters that would have been -  * written to the buffer if it were large enough. -  * -  * The value of str_l should be returned, but str_l is of unsigned type -  * size_t, and snprintf is int, possibly leading to an undetected -  * integer overflow, resulting in a negative return value, which is illegal. -  * Both XSH5 and ISO C99 (at least the draft) are silent on this issue. -  * Should errno be set to EOVERFLOW and EOF returned in this case??? -  */ -  return (int) str_l; +		str[str_l <= str_m-1 ? str_l : str_m-1] = '\0'; +	} +	/* Return the number of characters formatted (excluding trailing null +	 * character), that is, the number of characters that would have been +	 * written to the buffer if it were large enough. +	 * +	 * The value of str_l should be returned, but str_l is of unsigned type +	 * size_t, and snprintf is int, possibly leading to an undetected +	 * integer overflow, resulting in a negative return value, which is illegal. +	 * Both XSH5 and ISO C99 (at least the draft) are silent on this issue. +	 * Should errno be set to EOVERFLOW and EOF returned in this case??? +	 */ +	return (int) str_l;  }  int symbian_snprintf(char *text, size_t maxlen, const char *fmt, ...) {  | 
