mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-24 22:32:19 +00:00
fix all compiler warnings around nuklear_app, create new build
This commit is contained in:
parent
dfe9dd565a
commit
f48280b866
@ -12,4 +12,6 @@ void callEvalOnCoprocessor(char* toEval, char* output);
|
|||||||
|
|
||||||
void wait(float whatever);
|
void wait(float whatever);
|
||||||
|
|
||||||
|
char *strtokm(char *str, const char *delim);
|
||||||
|
|
||||||
OSErr closeSerialPort();
|
OSErr closeSerialPort();
|
BIN
dist/MessagesForMacintosh.dsk
vendored
BIN
dist/MessagesForMacintosh.dsk
vendored
Binary file not shown.
BIN
dist/MessagesForMacintosh.zip
vendored
BIN
dist/MessagesForMacintosh.zip
vendored
Binary file not shown.
@ -260,7 +260,7 @@ void getChatCounts() {
|
|||||||
int chatCount = 0;
|
int chatCount = 0;
|
||||||
char *(*chats[16])[64];
|
char *(*chats[16])[64];
|
||||||
|
|
||||||
chatCount = strsplit(tempChatCountFunctionResponse, chats, ",");
|
chatCount = strsplit(tempChatCountFunctionResponse, (char **)chats, ",");
|
||||||
|
|
||||||
for (int chatLoopCounter = 0; chatLoopCounter < chatCount; chatLoopCounter++) {
|
for (int chatLoopCounter = 0; chatLoopCounter < chatCount; chatLoopCounter++) {
|
||||||
|
|
||||||
@ -284,7 +284,7 @@ void getChatCounts() {
|
|||||||
int results = 0;
|
int results = 0;
|
||||||
char *(*chatUpdate[2])[64];
|
char *(*chatUpdate[2])[64];
|
||||||
|
|
||||||
results = strsplit(chats[chatLoopCounter], chatUpdate, ":::");
|
results = strsplit((char *)chats[chatLoopCounter], (char **)chatUpdate, ":::");
|
||||||
|
|
||||||
if (results != 2) {
|
if (results != 2) {
|
||||||
|
|
||||||
@ -306,7 +306,7 @@ void getChatCounts() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
short count = atoi(chatUpdate[1]);
|
short count = atoi((char *)chatUpdate[1]);
|
||||||
|
|
||||||
#ifdef MESSAGES_FOR_MACINTOSH_DEBUGGING
|
#ifdef MESSAGES_FOR_MACINTOSH_DEBUGGING
|
||||||
char x[255];
|
char x[255];
|
||||||
@ -324,7 +324,7 @@ void getChatCounts() {
|
|||||||
int updateResults = 0;
|
int updateResults = 0;
|
||||||
char *(*updatePieces[2])[64];
|
char *(*updatePieces[2])[64];
|
||||||
|
|
||||||
updateResults = strsplit(chatName, updatePieces, " new) ");
|
updateResults = strsplit(chatName, (char **)updatePieces, " new) ");
|
||||||
|
|
||||||
if (updateResults != 2) {
|
if (updateResults != 2) {
|
||||||
|
|
||||||
@ -344,35 +344,35 @@ void getChatCounts() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefix(updatePieces[1], chatUpdate[0])) {
|
if (prefix((char *)updatePieces[1], (char *)chatUpdate[0])) {
|
||||||
|
|
||||||
#ifdef MESSAGES_FOR_MACINTOSH_DEBUGGING
|
#ifdef MESSAGES_FOR_MACINTOSH_DEBUGGING
|
||||||
writeSerialPortDebug(boutRefNum, "match1");
|
writeSerialPortDebug(boutRefNum, "match1");
|
||||||
writeSerialPortDebug(boutRefNum, chatUpdate[0]);
|
writeSerialPortDebug(boutRefNum, chatUpdate[0]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (count == 0 || !strcmp(activeChat, chatUpdate[0])) {
|
if (count == 0 || !strcmp(activeChat, (char *)chatUpdate[0])) {
|
||||||
|
|
||||||
sprintf(chatFriendlyNames[i], "%s", chatUpdate[0]);
|
sprintf(chatFriendlyNames[i], "%.63s", (char *)chatUpdate[0]);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
sprintf(chatFriendlyNames[i], "(%d new) %s", count, chatUpdate[0]);
|
sprintf(chatFriendlyNames[i], "(%d new) %.63s", count, (char *)chatUpdate[0]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (prefix(chatFriendlyNames[i], chatUpdate[0])) {
|
} else if (prefix(chatFriendlyNames[i], (char *)chatUpdate[0])) {
|
||||||
|
|
||||||
#ifdef MESSAGES_FOR_MACINTOSH_DEBUGGING
|
#ifdef MESSAGES_FOR_MACINTOSH_DEBUGGING
|
||||||
writeSerialPortDebug(boutRefNum, "match2");
|
writeSerialPortDebug(boutRefNum, "match2");
|
||||||
writeSerialPortDebug(boutRefNum, chatUpdate[0]);
|
writeSerialPortDebug(boutRefNum, chatUpdate[0]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (count == 0 || !strcmp(activeChat, chatUpdate[0])) {
|
if (count == 0 || !strcmp(activeChat, (char *)chatUpdate[0])) {
|
||||||
|
|
||||||
sprintf(chatFriendlyNames[i], "%s", chatUpdate[0]);
|
sprintf(chatFriendlyNames[i], "%.63s", (char *)chatUpdate[0]);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
sprintf(chatFriendlyNames[i], "(%d new) %s", count, chatUpdate[0]);
|
sprintf(chatFriendlyNames[i], "(%d new) %.63s", count, (char *)chatUpdate[0]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user