mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +00:00
fixed const-ness and compiler warnings
This commit is contained in:
parent
1fbacc9c73
commit
23b0bda1a5
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* macos_util.h - MacOS definitions/utility functions
|
||||
*
|
||||
* SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig
|
||||
* SheepShaver (C) Christian Bauer and Marc Hellwig
|
||||
*
|
||||
* 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
|
||||
@ -353,7 +353,7 @@ extern void Enqueue(uint32 elem, uint32 list); // Enqueue QElem to list
|
||||
extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num"
|
||||
extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h)
|
||||
extern void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_size); // Calculate disk image file layout given file size and first 256 data bytes
|
||||
extern uint32 FindLibSymbol(char *lib, char *sym); // Find symbol in shared library
|
||||
extern uint32 FindLibSymbol(const char *lib, const char *sym); // Find symbol in shared library
|
||||
extern void InitCallUniversalProc(void); // Init CallUniversalProc()
|
||||
extern long CallUniversalProc(void *upp, uint32 info); // CallUniversalProc()
|
||||
extern uint32 TimeToMacTime(time_t t); // Convert time_t value to MacOS time
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* macos_util.cpp - MacOS definitions/utility functions
|
||||
*
|
||||
* SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig
|
||||
* SheepShaver (C) Christian Bauer and Marc Hellwig
|
||||
*
|
||||
* 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
|
||||
@ -163,7 +163,7 @@ void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_s
|
||||
* lib and sym must be Pascal strings!
|
||||
*/
|
||||
|
||||
uint32 FindLibSymbol(char *lib_str, char *sym_str)
|
||||
uint32 FindLibSymbol(const char *lib_str, const char *sym_str)
|
||||
{
|
||||
SheepVar32 conn_id = 0;
|
||||
SheepVar32 main_addr = 0;
|
||||
@ -192,7 +192,7 @@ uint32 FindLibSymbol(char *lib_str, char *sym_str)
|
||||
0x3f, 0x3c, 0x00, 0x01, // (GetSharedLibrary)
|
||||
0xaa, 0x5a, // CFMDispatch
|
||||
0x30, 0x1f, // move.w (a7)+,d0
|
||||
M68K_RTS >> 8, M68K_RTS
|
||||
M68K_RTS >> 8, M68K_RTS & 0xff
|
||||
};
|
||||
BUILD_SHEEPSHAVER_PROCEDURE(proc1);
|
||||
r.a[0] = lib.addr();
|
||||
@ -214,7 +214,7 @@ uint32 FindLibSymbol(char *lib_str, char *sym_str)
|
||||
0x3f, 0x3c, 0x00, 0x05, // (FindSymbol)
|
||||
0xaa, 0x5a, // CFMDispatch
|
||||
0x30, 0x1f, // move.w (a7)+,d0
|
||||
M68K_RTS >> 8, M68K_RTS
|
||||
M68K_RTS >> 8, M68K_RTS & 0xff
|
||||
};
|
||||
BUILD_SHEEPSHAVER_PROCEDURE(proc2);
|
||||
r.d[0] = conn_id.value();
|
||||
|
Loading…
x
Reference in New Issue
Block a user