Skip to content

Commit

Permalink
Updated generated files to match with freshly generated ones in CI pi…
Browse files Browse the repository at this point in the history
…peline
  • Loading branch information
0x17 committed Nov 14, 2023
1 parent 0474ee8 commit 0a1f151
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions generated/gdxcc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* C code generated by API Generator ac63ded for gdx version 9
/* C code generated by API Generator ac63ded for gdx version 10
*
* GAMS - Loading mechanism for GAMS Expert-Level APIs
*
Expand Down Expand Up @@ -1450,7 +1450,7 @@ int GDX_CALLCONV d_gdxRenameUEL (gdxHandle_t pgdx, const char *OldName, const c
printAndReturn(gdxRenameUEL,2,int )
}

/** Flag to store one dimensional sets as potential domains, false saves lots of space for large 1-dim sets that are no domains but can create inconsistent GDX files if used incorrectly.
/** Get flag to store one dimensional sets as potential domains, false (0) saves lots of space for large 1-dim sets that are no domains but can create inconsistent GDX files if used incorrectly. Returns 1 (true) iff. elements of 1-dim sets should be tracked for domain checking, 0 (false) otherwise.
* @param pgdx gdx object handle
*/
int GDX_CALLCONV d_gdxStoreDomainSets (gdxHandle_t pgdx)
Expand All @@ -1460,7 +1460,7 @@ int GDX_CALLCONV d_gdxStoreDomainSets (gdxHandle_t pgdx)
printAndReturn(gdxStoreDomainSets,0,int )
}

/** Flag to store one dimensional sets as potential domains, false saves lots of space for large 1-dim sets that are no domains but can create inconsistent GDX files if used incorrectly.
/** Set flag to store one dimensional sets as potential domains, false (0) saves lots of space for large 1-dim sets that are no domains but can create inconsistent GDX files if used incorrectly. Param flag 1 (true) iff. elements of 1-dim sets should be tracked for domain checking, 0 (false) otherwise.
* @param pgdx gdx object handle
*/
void GDX_CALLCONV d_gdxStoreDomainSetsSet (gdxHandle_t pgdx,const int x)
Expand All @@ -1471,7 +1471,7 @@ void GDX_CALLCONV d_gdxStoreDomainSetsSet (gdxHandle_t pgdx,const int x)
printNoReturn(gdxStoreDomainSetsSet,1)
}

/** Flag to ignore using 1-dim sets as domain when their elements are not tracked.
/** Get flag to ignore using 1-dim sets as domain when their elements are not tracked (see gdxStoreDomainSets). In case the flag is enabled this is allowing potentially unsafe writing of records to symbols with one dimensional sets as domain, when GDX has no lookup table for the elements of this set. This can happen when `gdxStoreDomainSets` was disabled by the user to save memory. For backwards compatability, this is enabled by default. Return 1 (true) iff. using a 1-dim set as domain (when store domain sets option is disabled) should be ignored. Otherwise an error is raised (ERR_NODOMAINDATA).
* @param pgdx gdx object handle
*/
int GDX_CALLCONV d_gdxAllowBogusDomains (gdxHandle_t pgdx)
Expand All @@ -1481,7 +1481,7 @@ int GDX_CALLCONV d_gdxAllowBogusDomains (gdxHandle_t pgdx)
printAndReturn(gdxAllowBogusDomains,0,int )
}

/** Flag to ignore using 1-dim sets as domain when their elements are not tracked.
/** Set flag to ignore using 1-dim sets as domain when their elements are not tracked (see gdxStoreDomainSets). Toggle allowing potentially unsafe writing of records to symbols with one dimensional sets as domain, when GDX has no lookup table for the elements of this set. This can happen when `gdxStoreDomainSets` was disabled by the user to save memory. For backwards compatability, this is enabled by default. When the user explicitly disables it, e.g. via `gdxAllowBogusDomainsSet(false)`, then using a one dimensional set as domain will cause a GDX error (ERR_NODOMAINDATA). Param flag 1 (true) iff. using a 1-dim set as domain (when store domain sets option is disabled) should be ignored. Otherwise an error is raised (ERR_NODOMAINDATA).
* @param pgdx gdx object handle
*/
void GDX_CALLCONV d_gdxAllowBogusDomainsSet (gdxHandle_t pgdx,const int x)
Expand Down Expand Up @@ -1772,7 +1772,7 @@ XLibraryLoad (const char *dllName, char *errBuf, int errBufSize)
LOADIT(XCheck, "C__XCheck");
LOADIT(XAPIVersion, "C__XAPIVersion");

if (!XAPIVersion(9,errBuf,&cl))
if (!XAPIVersion(10,errBuf,&cl))
return 1;

LOADIT_ERR_OK(gdxSetLoadPath, "C__gdxSetLoadPath");
Expand Down
8 changes: 4 additions & 4 deletions generated/gdxcc.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* gdxcc.h
* Header file for C-style interface to the GDX library
* generated by API Generator ac63ded for gdx version 9
* generated by API Generator ac63ded for gdx version 10
*
* GAMS - Loading mechanism for GAMS Expert-Level APIs
*
Expand Down Expand Up @@ -30,7 +30,7 @@
#if ! defined(_GDXCC_H_)
# define _GDXCC_H_

#define GDXAPIVERSION 9
#define GDXAPIVERSION 10
#if defined(_WIN32) && defined(__GNUC__)
# include <stdio.h>
#endif
Expand Down Expand Up @@ -1138,7 +1138,7 @@ typedef int (GDX_CALLCONV *gdxRenameUEL_t) (gdxHandle_t pgdx, const char *OldNa
GDX_FUNCPTR(gdxRenameUEL);

typedef int (GDX_CALLCONV *gdxStoreDomainSets_t) (gdxHandle_t pgdx);
/** Flag to store one dimensional sets as potential domains, false saves lots of space for large 1-dim sets that are no domains but can create inconsistent GDX files if used incorrectly.
/** Get flag to store one dimensional sets as potential domains, false (0) saves lots of space for large 1-dim sets that are no domains but can create inconsistent GDX files if used incorrectly. Returns 1 (true) iff. elements of 1-dim sets should be tracked for domain checking, 0 (false) otherwise.
*
* @param pgdx gdx object handle
*/
Expand All @@ -1148,7 +1148,7 @@ typedef void (GDX_CALLCONV *gdxStoreDomainSetsSet_t) (gdxHandle_t pgdx, const in
GDX_FUNCPTR(gdxStoreDomainSetsSet);

typedef int (GDX_CALLCONV *gdxAllowBogusDomains_t) (gdxHandle_t pgdx);
/** Flag to ignore using 1-dim sets as domain when their elements are not tracked.
/** Get flag to ignore using 1-dim sets as domain when their elements are not tracked (see gdxStoreDomainSets). In case the flag is enabled this is allowing potentially unsafe writing of records to symbols with one dimensional sets as domain, when GDX has no lookup table for the elements of this set. This can happen when `gdxStoreDomainSets` was disabled by the user to save memory. For backwards compatability, this is enabled by default. Return 1 (true) iff. using a 1-dim set as domain (when store domain sets option is disabled) should be ignored. Otherwise an error is raised (ERR_NODOMAINDATA).
*
* @param pgdx gdx object handle
*/
Expand Down
10 changes: 5 additions & 5 deletions generated/gdxcclib.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* C library code generated by API Generator ac63ded for gdx version 9
/* C library code generated by API Generator ac63ded for gdx version 10
*
* GAMS - Loading mechanism for GAMS Expert-Level APIs
*
Expand Down Expand Up @@ -345,8 +345,8 @@ GDX_API int GDX_CALLCONV C__XAPIVersion(int api, char *Msg, int *comp);
GDX_API int GDX_CALLCONV C__XAPIVersion(int api, char *Msg, int *comp)
{
*comp = 0;
if (api >= 9) {
if (api == 9) {
if (api >= 10) {
if (api == 10) {
*comp = 1;
strcpy(Msg,"gdxcclib: Client version and DLL version are the same.");
}
Expand All @@ -356,12 +356,12 @@ GDX_API int GDX_CALLCONV C__XAPIVersion(int api, char *Msg, int *comp)
}
return 1;
}
if ((api == 9) || (api == 8) || (api == 7)) {
if ((api == 10) || (api == 9) || (api == 8) || (api == 7)) {
*comp = 2;
strcpy(Msg,"gdxcclib: Client version is compatible to this version of the DLL.");
return 1;
}
sprintf(Msg,"gdxcclib: The API is too old for the used library, API version: %d, library version: 9",api);
sprintf(Msg,"gdxcclib: The API is too old for the used library, API version: %d, library version: 10",api);
return 0;
} /* C__XAPIVersion */

Expand Down

0 comments on commit 0a1f151

Please sign in to comment.