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

[POSSIBLE NEW FEATURE] Arrays/VLA #11

Open
silvioprog opened this issue Jan 13, 2019 · 0 comments
Open

[POSSIBLE NEW FEATURE] Arrays/VLA #11

silvioprog opened this issue Jan 13, 2019 · 0 comments

Comments

@silvioprog
Copy link
Member

silvioprog commented Jan 13, 2019

It would be nice to support some array structure (or at least the C99 VLAs support) that could allow to do something like this:

static void download_cb(void *cls, struct sg_route *route) {
    sg_array **segments = sg_route_segments(route);
    printf("Download - %s\n", sg_array_str(segments, 0));
    sg_cleanup(segments);
}

The sg_array above would be the array structure, and the sg_array_str() return the string value of an item retrieved by its index (zero in our example).

@silvioprog silvioprog changed the title [FEATURE REQUEST] Arrays/VLA [POSSIBLE NEW FEATURE] Arrays/VLA Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant