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

Betty does not support array pointer syntax in function documentation #35

Open
patrickdeyoreo opened this issue Mar 3, 2022 · 0 comments

Comments

@patrickdeyoreo
Copy link

Pointer to array syntax such as int (*array)[10] is not supported for function parameters.

For example, the following code throws the following warnings, indicating that the parameter listint_t *(*buckets)[10] is not parsed correctly.

/**
 * alloc_buckets - dynamically allocate buckets for each digit
 *
 * @array: array of integers to be sorted
 * @size: number of elements in the array to be sorted
 * @factor: factor of digit on which to sort
 * @buckets: pointer to array of pointers to buckets
 */
static void alloc_buckets(const int *array, size_t size, int factor, listint_t *(*buckets)[10])
105-radix_sort.c:81: warning: No description found for parameter or member '(*buckets'
105-radix_sort.c:82: warning: Excess function parameter 'buckets' description in 'alloc_buckets'
@patrickdeyoreo patrickdeyoreo changed the title Betty Does Not Support Pointer to Array Syntax in Function Documentation Betty does not support pointer to array syntax in function documentation Mar 3, 2022
@patrickdeyoreo patrickdeyoreo changed the title Betty does not support pointer to array syntax in function documentation Betty does not support array pointer syntax in function documentation Mar 3, 2022
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

No branches or pull requests

1 participant