@@ -1734,7 +1734,7 @@ int DLLEXPORT EN_addnode(EN_Project p, char *id, int nodeType)
1734
1734
if (hyd -> OpenHflag || qual -> OpenQflag ) return 262 ;
1735
1735
1736
1736
// Check if id contains invalid characters
1737
- if (!cstr_isvalid (id )) return 250 ;
1737
+ if (!cstr_isvalid (id )) return 252 ;
1738
1738
1739
1739
// Check if a node with same id already exists
1740
1740
if (EN_getnodeindex (p , id , & i ) == 0 ) return 215 ;
@@ -2021,7 +2021,7 @@ int DLLEXPORT EN_setnodeid(EN_Project p, int index, char *newid)
2021
2021
if (index <= 0 || index > net -> Nnodes ) return 203 ;
2022
2022
n = strlen (newid );
2023
2023
if (n < 1 || n > MAXID ) return 209 ;
2024
- if (!cstr_isvalid (newid )) return 250 ;
2024
+ if (!cstr_isvalid (newid )) return 252 ;
2025
2025
2026
2026
// Check if another node with same name exists
2027
2027
if (hashtable_find (net -> NodeHashTable , newid ) > 0 ) return 215 ;
@@ -2945,7 +2945,7 @@ int DLLEXPORT EN_addlink(EN_Project p, char *id, int linkType,
2945
2945
if (p -> hydraul .OpenHflag || p -> quality .OpenQflag ) return 262 ;
2946
2946
2947
2947
// Check if id contains invalid characters
2948
- if (!cstr_isvalid (id )) return 250 ;
2948
+ if (!cstr_isvalid (id )) return 252 ;
2949
2949
2950
2950
// Check if a link with same id already exists
2951
2951
if (EN_getlinkindex (p , id , & i ) == 0 ) return 215 ;
@@ -3208,7 +3208,7 @@ int DLLEXPORT EN_setlinkid(EN_Project p, int index, char *newid)
3208
3208
if (index <= 0 || index > net -> Nlinks ) return 204 ;
3209
3209
n = strlen (newid );
3210
3210
if (n < 1 || n > MAXID ) return 211 ;
3211
- if (!cstr_isvalid (newid )) return 250 ;
3211
+ if (!cstr_isvalid (newid )) return 252 ;
3212
3212
3213
3213
// Check if another link with same name exists
3214
3214
if (hashtable_find (net -> LinkHashTable , newid ) > 0 ) return 215 ;
@@ -3960,7 +3960,7 @@ int DLLEXPORT EN_addpattern(EN_Project p, char *id)
3960
3960
if (EN_getpatternindex (p , id , & i ) == 0 ) return 215 ;
3961
3961
3962
3962
// Check is id name contains invalid characters
3963
- if (!cstr_isvalid (id )) return 250 ;
3963
+ if (!cstr_isvalid (id )) return 252 ;
3964
3964
3965
3965
// Check that id name is not too long
3966
3966
if (strlen (id ) > MAXID ) return 250 ;
@@ -4087,7 +4087,7 @@ int DLLEXPORT EN_setpatternid(EN_Project p, int index, char *id)
4087
4087
if (index < 1 || index > p -> network .Npats ) return 205 ;
4088
4088
4089
4089
// Check is id name contains invalid characters
4090
- if (!cstr_isvalid (id )) return 250 ;
4090
+ if (!cstr_isvalid (id )) return 252 ;
4091
4091
4092
4092
if (strlen (id ) > MAXID ) return 250 ;
4093
4093
@@ -4236,7 +4236,7 @@ int DLLEXPORT EN_addcurve(EN_Project p, char *id)
4236
4236
if (EN_getcurveindex (p , id , & i ) == 0 ) return 215 ;
4237
4237
4238
4238
// Check is id name contains invalid characters
4239
- if (!cstr_isvalid (id )) return 250 ;
4239
+ if (!cstr_isvalid (id )) return 252 ;
4240
4240
4241
4241
// Check that id name is not too long
4242
4242
if (strlen (id ) > MAXID ) return 250 ;
@@ -4359,8 +4359,8 @@ int DLLEXPORT EN_setcurveid(EN_Project p, int index, char *id)
4359
4359
if (index < 1 || index > p -> network .Ncurves ) return 205 ;
4360
4360
4361
4361
// Check is id name contains invalid characters
4362
- if (!cstr_isvalid (id )) return 250 ;
4363
-
4362
+ if (!cstr_isvalid (id )) return 252 ;
4363
+
4364
4364
if (strlen (id ) > MAXID ) return 250 ;
4365
4365
for (i = 1 ; i <= p -> network .Ncurves ; i ++ )
4366
4366
{
0 commit comments