forked from loafle/openapi-generator-original
keyword conflict with zebos list_creat(), list_free() (#11190)
* keyword conflict with zebos list_creat(), list_free() * keyword conflict in zebos list_create list_free
This commit is contained in:
@@ -86,7 +86,7 @@ StoreAPI_getInventory(apiClient_t *apiClient)
|
||||
list_t *localVarQueryParameters = NULL;
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_create();
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = NULL;
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
@@ -114,7 +114,7 @@ StoreAPI_getInventory(apiClient_t *apiClient)
|
||||
//primitive return type not simple
|
||||
cJSON *localVarJSON = cJSON_Parse(apiClient->dataReceived);
|
||||
cJSON *VarJSON;
|
||||
list_t *elementToReturn = list_create();
|
||||
list_t *elementToReturn = list_createList();
|
||||
cJSON_ArrayForEach(VarJSON, localVarJSON){
|
||||
keyValuePair_t *keyPair = keyValuePair_create(strdup(VarJSON->string), cJSON_Print(VarJSON));
|
||||
list_addElement(elementToReturn, keyPair);
|
||||
@@ -129,7 +129,7 @@ StoreAPI_getInventory(apiClient_t *apiClient)
|
||||
|
||||
|
||||
|
||||
list_free(localVarHeaderType);
|
||||
list_freeList(localVarHeaderType);
|
||||
|
||||
free(localVarPath);
|
||||
return elementToReturn;
|
||||
@@ -149,7 +149,7 @@ StoreAPI_getOrderById(apiClient_t *apiClient, long orderId )
|
||||
list_t *localVarQueryParameters = NULL;
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_create();
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = NULL;
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
@@ -212,7 +212,7 @@ StoreAPI_getOrderById(apiClient_t *apiClient, long orderId )
|
||||
|
||||
|
||||
|
||||
list_free(localVarHeaderType);
|
||||
list_freeList(localVarHeaderType);
|
||||
|
||||
free(localVarPath);
|
||||
free(localVarToReplace_orderId);
|
||||
@@ -231,7 +231,7 @@ StoreAPI_placeOrder(apiClient_t *apiClient, order_t * body )
|
||||
list_t *localVarQueryParameters = NULL;
|
||||
list_t *localVarHeaderParameters = NULL;
|
||||
list_t *localVarFormParameters = NULL;
|
||||
list_t *localVarHeaderType = list_create();
|
||||
list_t *localVarHeaderType = list_createList();
|
||||
list_t *localVarContentType = NULL;
|
||||
char *localVarBodyParameters = NULL;
|
||||
|
||||
@@ -286,7 +286,7 @@ StoreAPI_placeOrder(apiClient_t *apiClient, order_t * body )
|
||||
|
||||
|
||||
|
||||
list_free(localVarHeaderType);
|
||||
list_freeList(localVarHeaderType);
|
||||
|
||||
free(localVarPath);
|
||||
if (localVarSingleItemJSON_body) {
|
||||
|
||||
Reference in New Issue
Block a user