add option EN_HEADLOSSFORM in function ENgetoption

This commit is contained in:
Marios Kyriakou
2018-09-23 19:41:27 +03:00
parent 054c48c48a
commit 982ff903e3
4 changed files with 9 additions and 2 deletions

View File

@@ -139,6 +139,7 @@ Public Const EN_DEMANDMULT = 4
Public Const EN_HEADERROR = 5 Public Const EN_HEADERROR = 5
Public Const EN_FLOWCHANGE = 6 Public Const EN_FLOWCHANGE = 6
Public Const EN_DEMANDDEFPAT = 7 Public Const EN_DEMANDDEFPAT = 7
Public Const EN_HEADLOSSFORM = 8
Public Const EN_LOWLEVEL = 0 ' Control types Public Const EN_LOWLEVEL = 0 ' Control types
Public Const EN_HILEVEL = 1 Public Const EN_HILEVEL = 1

View File

@@ -226,7 +226,8 @@ typedef enum {
EN_DEMANDMULT = 4, EN_DEMANDMULT = 4,
EN_HEADERROR = 5, EN_HEADERROR = 5,
EN_FLOWCHANGE = 6, EN_FLOWCHANGE = 6,
EN_DEMANDDEFPAT = 7 EN_DEMANDDEFPAT = 7,
EN_HEADLOSSFORM = 8
} EN_Option; } EN_Option;
typedef enum { typedef enum {

View File

@@ -123,6 +123,8 @@ Public Const EN_EMITEXPON = 3
Public Const EN_DEMANDMULT = 4 Public Const EN_DEMANDMULT = 4
Public Const EN_HEADERROR = 5 Public Const EN_HEADERROR = 5
Public Const EN_FLOWCHANGE = 6 Public Const EN_FLOWCHANGE = 6
Public Const EN_DEMANDDEFPAT = 7
Public Const EN_HEADLOSSFORM = 8
Public Const EN_LOWLEVEL = 0 ' Control types Public Const EN_LOWLEVEL = 0 ' Control types
Public Const EN_HILEVEL = 1 Public Const EN_HILEVEL = 1

View File

@@ -1536,6 +1536,9 @@ int DLLEXPORT EN_getoption(EN_ProjectHandle ph, EN_Option code,
case EN_DEMANDDEFPAT: case EN_DEMANDDEFPAT:
v = hyd->DefPat; v = hyd->DefPat;
break; break;
case EN_HEADLOSSFORM:
v = hyd->Formflag;
break;
default: default:
return set_error(pr->error_handle, 251); return set_error(pr->error_handle, 251);