Fix various bad prototypes

This commit is contained in:
Jens Ayton 2017-06-06 12:19:38 +02:00
parent aeb8f33364
commit 43328c7963
8 changed files with 19 additions and 19 deletions

View File

@ -34,7 +34,7 @@ SOFTWARE.
@synthesize canBecomeMainWindow = _canBecomeMainWindow;
- (id) initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
- (id) initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{
self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag];
if (self != nil)

View File

@ -37,8 +37,8 @@ void OOStandardsError(NSString *message);
// Return true if in standard enforcing mode
// Always false in release builds
// This will *not* exit in "exit on error" mode
BOOL OOEnforceStandards();
BOOL OOEnforceStandards(void);
void OOSetStandardsForOXPVerifierMode();
void OOSetStandardsForOXPVerifierMode(void);

View File

@ -41,7 +41,7 @@ void OOSetStandardsForOXPVerifierMode() {}
#else
void OOStandardsSetup();
void OOStandardsSetup(void);
void OOStandardsInternal(NSString *type, NSString *message);
static BOOL sSetup = NO;

View File

@ -386,9 +386,9 @@ void OODrawStringAligned(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize
*
* - CIM
*/
void OOStartDrawingStrings();
void OOStartDrawingStrings(void);
void OODrawStringQuadsAligned(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign);
void OOStopDrawingStrings();
void OOStopDrawingStrings(void);

View File

@ -49,5 +49,5 @@ NSString *OOLogHandlerGetLogPath(void);
NSString *OOLogHandlerGetLogBasePath(void);
void OOLogOutputHandlerChangeLogFile(NSString *newLogName);
void OOLogOutputHandlerStartLoggingToStdout();
void OOLogOutputHandlerStopLoggingToStdout();
void OOLogOutputHandlerStartLoggingToStdout(void);
void OOLogOutputHandlerStopLoggingToStdout(void);

View File

@ -101,10 +101,10 @@ enum
@end
void OOGLPushModelView();
OOMatrix OOGLPopModelView();
OOMatrix OOGLGetModelView();
void OOGLResetModelView();
void OOGLPushModelView(void);
OOMatrix OOGLPopModelView(void);
OOMatrix OOGLGetModelView(void);
void OOGLResetModelView(void);
void OOGLLoadModelView(OOMatrix matrix);
void OOGLMultModelView(OOMatrix matrix);
void OOGLTranslateModelView(Vector vector);
@ -112,10 +112,10 @@ void OOGLRotateModelView(GLfloat angle, Vector axis);
void OOGLScaleModelView(Vector scale);
void OOGLLookAt(Vector eye, Vector center, Vector up);
void OOGLResetProjection();
void OOGLPushProjection();
OOMatrix OOGLPopProjection();
OOMatrix OOGLGetProjection();
void OOGLResetProjection(void);
void OOGLPushProjection(void);
OOMatrix OOGLPopProjection(void);
OOMatrix OOGLGetProjection(void);
void OOGLLoadProjection(OOMatrix matrix);
void OOGLMultProjection(OOMatrix matrix);
void OOGLTranslateProjection(Vector vector);
@ -125,5 +125,5 @@ void OOGLFrustum(double left, double right, double bottom, double top, double ne
void OOGLOrtho(double left, double right, double bottom, double top, double near, double far);
void OOGLPerspective(double fovy, double aspect, double zNear, double zFar);
OOMatrix OOGLGetModelViewProjection();
OOMatrix OOGLGetModelViewProjection(void);

View File

@ -29,4 +29,4 @@ MA 02110-1301, USA.
#include <jsapi.h>
void InitOOJSMission(JSContext *context, JSObject *global);
void MissionRunCallback();
void MissionRunCallback(void);

View File

@ -65,7 +65,7 @@ extern const Random_Seed kNilRandomSeed;
// checksum stuff
void clear_checksum();
void clear_checksum(void);
int16_t munge_checksum(long long value);
// cunning price rounding routine: