mirror of
https://github.com/mauiaaron/apple2.git
synced 2026-04-20 10:16:58 +00:00
Minor renaming of internal API function
This commit is contained in:
+3
-3
@@ -1065,13 +1065,13 @@ bool json_serialize(JSON_ref jsonRef, int fd, bool pretty) {
|
||||
}
|
||||
}
|
||||
|
||||
bool json_unescapeSlashes(char **kbdPath) {
|
||||
bool json_unescapeSlashes(char **strPtr) {
|
||||
// A big "fhank-you" to the Java org.json.JSONStringer API which "helpfully" escapes slash '/' characters
|
||||
if (!kbdPath) {
|
||||
if (!strPtr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
char *str = *kbdPath;
|
||||
char *str = *strPtr;
|
||||
size_t len = strlen(str) + 1; // include termination \0
|
||||
char *p0 = NULL;
|
||||
char *p = str;
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ bool json_arrayParseFloatValueAtIndex(const JSON_ref array, unsigned long index,
|
||||
bool json_serialize(JSON_ref json, int fd, bool pretty);
|
||||
|
||||
// unescape all \/ characters (<sigh> a big fhank you to Java org.json.JSONXXX !)
|
||||
bool json_unescapeSlashes(char **kbdPath);
|
||||
bool json_unescapeSlashes(char **strPtr);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// destructor
|
||||
|
||||
Reference in New Issue
Block a user