keyword conflict with zebos list_creat(), list_free()#11190
Conversation
|
Hi @ityuhui Can you check this PR? |
|
Thank you @minerba After you changed the function name, you need change all the places where these functions are called, or the build will fail. e.g. The definition of the functions should be changed too And you need execute ./bin/generate-samples.sh bin/configs/c.yamlto generate the sample to verify |
|
cc @zhemant |
What does I'm just thinking if there's a better prefix. |
|
Yes @wing328 Could you have a suggestion ? |
|
We can use project name tag which is fetched from the yaml files. This increases the length of function names but considering the API designer give proper names we shouldn't face issue of functions repeated declaration. This can be achieved by making some changes in the clulibcurlclient java file. |
|
Here are how other functions are named in that file: so I would suggest the following to conform to the convention oag_list_create => list_createList What do you guys think? |
|
Looks good to me now 👍 |
| res = curl_easy_perform(handle); | ||
|
|
||
| curl_slist_free_all(headers); | ||
| curl_slist_freeList_all(headers); |
There was a problem hiding this comment.
I don't think curl_slist_free_all should be modified because it is a function of libcurl https://curl.se/libcurl/c/curl_slist_free_all.html
@minerba
please create a new PR to rollback these changes for curl_slist_free_all
There was a problem hiding this comment.
@ityuhui
Ok I will create a new PR soon.
|
Rollback |
Key work "list_create()" and "list_free()" Conflict with Zebos "llist_create()" and "list_free()"
kubernetes-client/c#90 (comment)
change to
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(5.3.0),6.0.x