mirror of
https://git.wuffs.org/MWCC
synced 2025-12-13 23:26:14 +00:00
let's commit all this before my VM blows up and nukes my work
This commit is contained in:
@@ -4,7 +4,7 @@ static OSFileTypeMappings *defaultList;
|
||||
static OSFileTypeMappings **fmList = &defaultList;
|
||||
int (*__OS_ExtendedGetMacFileTypeHook)(const OSSpec *, OSType *);
|
||||
|
||||
void OS_AddFileTypeMappingList(OSFileTypeMappings **list, OSFileTypeMappingList *entry) {
|
||||
void OS_AddFileTypeMappingList(OSFileTypeMappings **list, const OSFileTypeMappingList *entry) {
|
||||
OSFileTypeMappings **scan;
|
||||
|
||||
if (!list)
|
||||
@@ -27,7 +27,7 @@ void OS_UseFileTypeMappings(OSFileTypeMappings *list) {
|
||||
|
||||
void OS_MacType_To_OSType(OSType mactype, uOSTypePair *type) {
|
||||
OSFileTypeMappings *list;
|
||||
OSFileTypeMappingList *scan;
|
||||
const OSFileTypeMappingList *scan;
|
||||
int idx;
|
||||
|
||||
for (list = *fmList; list; list = list->next) {
|
||||
@@ -51,7 +51,7 @@ int OS_SetMacFileType(const OSSpec *spec, OSType mactype) {
|
||||
|
||||
Boolean OS_GetMacFileTypeMagic(const char *buffer, int count, OSType *mactype) {
|
||||
OSFileTypeMappings *list;
|
||||
OSFileTypeMappingList *scan;
|
||||
const OSFileTypeMappingList *scan;
|
||||
int idx;
|
||||
|
||||
*mactype = 0;
|
||||
|
||||
@@ -408,14 +408,14 @@ int OS_EqualPath(const char *a, const char *b) {
|
||||
return !strcmp(a, b);
|
||||
}
|
||||
|
||||
int OS_CanonPath(char *src, char *dst) {
|
||||
int OS_CanonPath(const char *src, char *dst) {
|
||||
int idx;
|
||||
|
||||
if (strlen(src) > 255)
|
||||
return ENAMETOOLONG;
|
||||
|
||||
if (!dst)
|
||||
dst = src;
|
||||
dst = (char *) src;
|
||||
|
||||
for (idx = 0; src[idx]; idx++) {
|
||||
if (src[idx] == '\\')
|
||||
@@ -956,6 +956,6 @@ int OS_LoadMacResourceFork(const OSSpec *spec, void **file_data, SInt32 *file_le
|
||||
return ENOENT;
|
||||
}
|
||||
|
||||
int OS_IsMultiByte(const char *str, int offset) {
|
||||
Boolean OS_IsMultiByte(const char *str, int offset) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user