Adding support for VB
Also supporting C89 compiler.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user