Adding support for VB

Also supporting C89 compiler.
This commit is contained in:
Elad Salomons
2023-01-19 20:45:30 +02:00
parent 2705f8adc1
commit e2df3e87ac
4 changed files with 14 additions and 5 deletions

View File

@@ -1629,13 +1629,14 @@ int DLLEXPORT EN_timetonextevent(EN_Project p, int *eventType, long *duration,
{
Times *time = &p->times;
long hydStep, tankStep, controlStep;
int iTank, iControl;
hydStep = time->Hstep;
tankStep = hydStep;
controlStep = hydStep;
int iTank = tanktimestep(p, &tankStep);
int iControl = controltimestep(p, &controlStep);
iTank = tanktimestep(p, &tankStep);
iControl = controltimestep(p, &controlStep);
// return the lesser of the three step lengths
if (controlStep < tankStep) {

View File

@@ -885,14 +885,14 @@ void writeline(Project *pr, char *s)
**--------------------------------------------------------------
*/
{
Report *rpt = &pr->report;
if (pr->report.reportCallback != NULL)
{
pr->report.reportCallback(pr->report.reportCallbackUserData, pr, s);
return;
}
Report *rpt = &pr->report;
if (rpt->RptFile == NULL) return;
if (rpt->Rptflag)
{