2
0

Missing accessory, fixes for data object lookup.

This commit is contained in:
Maarten Billemont 2019-07-28 17:43:19 -04:00
parent 4c6d7ac36c
commit bf572a5e62
2 changed files with 6 additions and 5 deletions

View File

@ -218,7 +218,7 @@ static const char *mpw_identicon_leftArms[] = { "╔", "╚", "╰", "═" };
static const char *mpw_identicon_bodies[] = { "", "", "", "", "", "" };
static const char *mpw_identicon_rightArms[] = { "", "", "", "" };
static const char *mpw_identicon_accessories[] = {
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""
};

View File

@ -174,13 +174,14 @@ MPMarshalledData *mpw_marshal_data_new() {
MPMarshalledData *data = malloc( sizeof( MPMarshalledData ) );
*data = (MPMarshalledData){};
mpw_marshal_data_set_null( data, NULL );
data->is_null = false;
return data;
}
MPMarshalledData *mpw_marshal_data_vget(
MPMarshalledData *data, va_list nodes) {
MPMarshalledData *parent = data, *child;
MPMarshalledData *parent = data, *child = parent;
for (const char *node; parent && (node = va_arg( nodes, const char * )); parent = child) {
child = NULL;
@ -203,7 +204,7 @@ MPMarshalledData *mpw_marshal_data_vget(
}
}
return parent;
return child;
}
MPMarshalledData *mpw_marshal_data_get(
@ -220,7 +221,7 @@ MPMarshalledData *mpw_marshal_data_get(
const MPMarshalledData *mpw_marshal_data_vfind(
const MPMarshalledData *data, va_list nodes) {
const MPMarshalledData *parent = data, *child;
const MPMarshalledData *parent = data, *child = parent;
for (const char *node; parent && (node = va_arg( nodes, const char * )); parent = child) {
child = NULL;
@ -236,7 +237,7 @@ const MPMarshalledData *mpw_marshal_data_vfind(
break;
}
return parent;
return child;
}
const MPMarshalledData *mpw_marshal_data_find(