diff --git a/generated/gdxcc.c b/generated/gdxcc.c index 7173552..4ba325f 100644 --- a/generated/gdxcc.c +++ b/generated/gdxcc.c @@ -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 * @@ -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) @@ -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) @@ -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) @@ -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) @@ -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"); diff --git a/generated/gdxcc.h b/generated/gdxcc.h index 0784059..09d11e4 100644 --- a/generated/gdxcc.h +++ b/generated/gdxcc.h @@ -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 * @@ -30,7 +30,7 @@ #if ! defined(_GDXCC_H_) # define _GDXCC_H_ -#define GDXAPIVERSION 9 +#define GDXAPIVERSION 10 #if defined(_WIN32) && defined(__GNUC__) # include #endif @@ -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 */ @@ -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 */ diff --git a/generated/gdxcclib.cpp b/generated/gdxcclib.cpp index b8fec03..5ba07ab 100644 --- a/generated/gdxcclib.cpp +++ b/generated/gdxcclib.cpp @@ -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 * @@ -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."); } @@ -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 */