Fixes #172 (adjust controls when node/link is deleted) & EN_addrule added
- Deleting controls with node/link deletion made conditional. - New EN_addrule function added along with a test file. - Rule structures re-named & rules.c heavily modified. - Issue with exceeding limit on number of temporary file names fixed. - VB declaration and DEF files updated.
This commit is contained in:
@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(test_setlinktype)
|
||||
BOOST_REQUIRE(error == 0);
|
||||
error = EN_setlinknodes(ph, p113, n113_2, n113_1);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
error = EN_setlinktype(ph, &p113, EN_CVPIPE);
|
||||
error = EN_setlinktype(ph, &p113, EN_CVPIPE, 0);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
|
||||
// Get index & diameter of pipe 121 connected to node 31
|
||||
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(test_setlinktype)
|
||||
BOOST_REQUIRE(error == 0);
|
||||
|
||||
// Replace it with a PRV
|
||||
error = EN_setlinktype(ph, &p121, EN_PRV);
|
||||
error = EN_setlinktype(ph, &p121, EN_PRV, 0);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
|
||||
// Set diameter & setting of new PRV
|
||||
|
||||
Reference in New Issue
Block a user