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

Incorrect pointer to function parameter in wrappers #588

Open
ladisgin opened this issue Feb 20, 2023 · 0 comments
Open

Incorrect pointer to function parameter in wrappers #588

ladisgin opened this issue Feb 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ladisgin
Copy link
Member

ladisgin commented Feb 20, 2023

To Reproduce
Steps to reproduce the behavior:

  1. Open the JQ project in IDE
  2. Use plugin to generate tests
  3. Run the generated test

Expected behavior
Tests are supposed to be runnable.

Actual behavior
Compile error.

Additional context

/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:61:76: error: expected ')'
int onig_st_foreach_modules_oniguruma_src_st_c(st_table * table, int (*)() func, st_data_t arg) {
                                                                           ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:61:47: note: to match this '('
int onig_st_foreach_modules_oniguruma_src_st_c(st_table * table, int (*)() func, st_data_t arg) {
                                              ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:61:72: error: parameter name omitted
int onig_st_foreach_modules_oniguruma_src_st_c(st_table * table, int (*)() func, st_data_t arg) {
                                                                       ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:62:31: error: use of undeclared identifier 'func'
return onig_st_foreach(table, func, arg);
                              ^
/home/utbot/jq/tests/makefiles/src/../../../tests/wrapper/modules/oniguruma/src/st_wrapper.c:62:37: error: use of undeclared identifier 'arg'
return onig_st_foreach(table, func, arg);
                                    ^
4 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant