Skip to content

Support lists with multiple keys#80

Merged
carlgsmith merged 1 commit into
masterfrom
list_2keys
Aug 4, 2025
Merged

Support lists with multiple keys#80
carlgsmith merged 1 commit into
masterfrom
list_2keys

Conversation

@carlgsmith

Copy link
Copy Markdown
Contributor

No description provided.

@carlgsmith carlgsmith requested a review from gcampbell512 August 1, 2025 03:42
Comment thread rest.c Outdated
for (GNode *node = g_node_first_sibling (tnode); node; node = g_node_next_sibling (node))
{
if (g_strcmp0 (key, APTERYX_NAME (node)) == 0 && node->children)
for (GList *key = keys; key != NULL; key = key->next)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand what's going on here with this inner for loop. Maybe we could discuss this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added check to outer loop to avoid continuing the checks if we catch an attempt to change the any key value. Add tests for all combinations.

@carlgsmith carlgsmith merged commit 526b1d1 into master Aug 4, 2025
1 check passed
@carlgsmith carlgsmith deleted the list_2keys branch August 4, 2025 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants