Merge pull request #293 from Mariosmsk/EN_HEADLOSSFORM

add option EN_HEADLOSSFORM in function ENgetoption

Thank you @Mariosmsk
This commit is contained in:
Elad Salomons
2018-09-29 10:09:51 +03:00
committed by GitHub
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,7 +1536,10 @@ 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);
} }