mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-08 16:29:27 +00:00
Minor renaming of internal API function
This commit is contained in:
parent
25a0f69a5f
commit
c30c50be06
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user