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:
Lew Rossman
2018-11-07 23:09:47 -05:00
parent ee335ab077
commit 7443cea9d4
25 changed files with 2197 additions and 1800 deletions

View File

@@ -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