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

Unrecognized pointer to array of pointers #240

Closed
2LeoCode opened this issue Oct 12, 2021 · 0 comments
Closed

Unrecognized pointer to array of pointers #240

2LeoCode opened this issue Oct 12, 2021 · 0 comments

Comments

@2LeoCode
Copy link

2LeoCode commented Oct 12, 2021

Describe the bug
When we declare a pointer to an array of pointers ((void *(*)[n])) in the prototype of a function, the norminette doesn't recognize it as a valid type

Erroneous code

41 static int	ft_mlx_failure(void (*except)(void), t_stack *(*st)[2],
42 		t_queue **instr_q, t_mlxptr mlx_ptr)
43 {
44 	destroy_display(mlx_ptr->key);
45 	return (ft_resolver_failure(except, &((*st)[ST_A]), &((*st)[ST_B]), instr_q));
46 }

`norminette` displays:
`Error: ARG_TYPE_UKN         (line:  41, col:   1):	Unrecognized variable type`

Additional infos

  • OS: Linux
  • python3 --version: Python 3.8.10
  • norminette -v: norminette 3.3.32

Additional context
Add any other context about the problem here.

@N0ich N0ich closed this as completed in 68067ad Oct 29, 2021
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