Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change data_make to type-safe calls #3137

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

zuckschwerdt
Copy link
Collaborator

A preview for the (scripted) change from the data_make() varargs convention to the new type-safe and compact data api.

This can later be shortened from e.g.

data_t *data = NULL;
data = data_str(data, "model", ...);
data = data_int(data, "id", ...);

to

data_t *data = data_new();
data_str(data, "model", ...);
data_int(data, "id", ...);

if we use introduce a fixed header for data_t lists.

# Conflicts:
#	src/devices/flex.c
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.

1 participant