This commit is contained in:
Steve Checkoway
2005-10-31 21:28:53 +00:00
parent 6a7cf6be38
commit 4df02ed98d
8 changed files with 47 additions and 59 deletions
+4 -8
View File
@@ -1,13 +1,9 @@
#import <Cocoa/Cocoa.h>
void InformUserOfCrash( const char *sPath ) void InformUserOfCrash( const char *sPath )
{ {
int ret = NSRunAlertPanel(@"StepMania has crashed", NSString *s = @"StepMania has crashed. Debugging information has been output to\n\n%s\n\n"
@"StepMania has crashed. Debugging information " @"Please file a bug report at\n\nhttp://sf.net/tracker/?func=add&group_id=37892&atid=421366";
@"has been output to\n\n%s\n\nPlease file a bug "
@"report at\n\nhttp://sf.net/tracker/?func=add&" int ret = NSRunAlertPanel( @"StepMania has crashed", s, @"Open crashinfo.txt", @"Quit", nil, sPath );
@"group_id=37892&atid=421366",
@"Open crashinfo.txt", @"Quit", nil, sPath);
if( ret == NSAlertDefaultReturn ) if( ret == NSAlertDefaultReturn )
{ {
@@ -1,5 +1,3 @@
#import "Cocoa/Cocoa.h"
char *GetPreferredLanguage() char *GetPreferredLanguage()
{ {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-2
View File
@@ -4,8 +4,6 @@
bool wglSwapIntervalEXT( int swapInterval ) bool wglSwapIntervalEXT( int swapInterval )
{ {
/* I really have no idea what the expected return value for success. If it was an int
* I would return 0, since it is a bool, I'm going to guess that true is success. */
return !CGLSetParameter( CGLGetCurrentContext(), kCGLCPSwapInterval, (long*)(&swapInterval) ); return !CGLSetParameter( CGLGetCurrentContext(), kCGLCPSwapInterval, (long*)(&swapInterval) );
} }
@@ -1,6 +1,3 @@
#import <Cocoa/Cocoa.h>
#import <assert.h>
void SM_ShowCursor( bool b ) void SM_ShowCursor( bool b )
{ {
if( b ) if( b )
+4 -5
View File
@@ -125,7 +125,8 @@ namespace std
{ {
typedef wchar_t char_type; typedef wchar_t char_type;
typedef wchar_t int_type; // it's big enough typedef wchar_t int_type; // it's big enough
/* streampos and wstreampos are both required to be typedefs for /*
* streampos and wstreampos are both required to be typedefs for
* fpos<mbstate_t> as per clause 27.2--whatever that is. * fpos<mbstate_t> as per clause 27.2--whatever that is.
*/ */
typedef streampos pos_type; typedef streampos pos_type;
@@ -142,8 +143,7 @@ namespace std
wmemset( s, c, n ); wmemset( s, c, n );
} }
static int compare(const char_type *s1, const char_type *s2, static int compare( const char_type *s1, const char_type *s2, size_t n )
size_t n)
{ {
return wmemcmp( s1, s2, n ); return wmemcmp( s1, s2, n );
} }
@@ -153,8 +153,7 @@ namespace std
return wmemcpy( s1, s2, n ); return wmemcpy( s1, s2, n );
} }
static const char_type *find(const char_type *s, size_t n, static const char_type *find( const char_type *s, size_t n, const char_type& c )
const char_type& c)
{ {
return wmemchr( s, c, n ); return wmemchr( s, c, n );
} }