Marios S. Kyriakou
080b529c19
replace 2.2 with 2.3 in the files.
2025-05-10 14:21:32 +03:00
Sam Hatchett
5f7fd55a36
Return error if node/link name is too long ( #535 )
...
* co-authored with @ehsan-shafiee
* removes errant slashes
* Throws correct error for ID name too long
* Revert "Throws correct error for ID name too long"
This reverts commit 57b4873f5882cb9fd983f7e1e5a703b9e442cd74.
* fixes #534 by bubbling error codes up from add node/link internal functions
* fixes tests on Mac at least
* fixes improper success code
* Error 252 (not 250) returned for ID name too long.
From errors.dat: DAT(252,"invalid ID name")
2019-10-09 10:47:45 -04:00
Lew Rossman
365ab00dcb
Refactors the API's demand editing functions
2019-05-09 10:26:40 -04:00
Michael Tryby
d927851d20
Adding remove node method to generic list
2019-04-24 16:29:57 -04:00
Michael Tryby
9b3173f9be
Adding key and search to list
2019-04-24 13:15:43 -04:00
Michael Tryby
109276e379
Work in progress
...
Implementing generic demand pattern lists. Compiles but does not run.
2019-04-17 17:24:34 -04:00
Michael Tryby
22a7993c8c
Adding element id validity checks
2019-04-16 16:57:38 -04:00
Michael Tryby
ea8e0439e3
Update test_cstrhelper.cpp
...
Fixed mem leak
2019-04-16 16:06:44 -04:00
Michael Tryby
02ec735c58
Work in progress
...
Refactoring cstr_copy and adding test
2019-04-16 15:51:19 -04:00
Michael Tryby
ac56971ef2
Work in progress
...
Creating function for validateing element ID strings
2019-04-16 14:44:06 -04:00
Michael Tryby
7e83d2c4e1
Fixing bug on gcc
2019-04-11 14:37:13 -04:00
Michael Tryby
a81a8f4b96
Fixing bug
2019-04-11 14:31:21 -04:00
Michael Tryby
57a5f6f1b0
Update test_list.cpp
...
Fixing bug on gcc
2019-04-11 14:28:43 -04:00
Michael Tryby
d79c766b71
Update test_list.cpp
2019-04-11 14:10:57 -04:00
Michael Tryby
3f37fdbff4
Refactoring head_list and tail_list
...
Simplifying head and tail list. Adding delete_node() to list API.
2019-04-11 10:45:22 -04:00
Michael Tryby
a7f8fc868e
Reorganized to contain list abstraction
2019-04-11 09:44:08 -04:00
Michael Tryby
f10e36336f
Work in progress
2019-04-10 17:59:55 -04:00
Michael Tryby
6187bc112e
Fixing indent
2019-04-10 16:17:36 -04:00
Michael Tryby
669bdde122
Expanding test
...
Added test where data is a struct
2019-04-10 16:12:13 -04:00
Michael Tryby
06a90fd063
Update test_list.cpp
...
Updating file header to reflect proper attribution
2019-04-10 11:34:37 -04:00
Michael Tryby
fbecf1b915
Fixing indent
...
Spaces not tabs
2019-04-10 11:25:01 -04:00
Michael Tryby
dba0d1cf52
Update test_list.cpp
2019-04-10 11:15:35 -04:00
Michael Tryby
f9dd9bc766
Clean up and inline comments
2019-04-10 10:57:55 -04:00
Michael Tryby
ea02e1736e
Fixed memory leak
...
Fixed memory leak in test_head_list
2019-04-10 10:44:34 -04:00
Michael Tryby
07995beda1
Fixing bug in head_list
2019-04-09 18:09:41 -04:00
Michael Tryby
6f236f00ef
Update test_list.cpp
...
Tests are passing
2019-04-09 15:16:54 -04:00
Michael Tryby
30f0def02a
Initial commit list
...
generic linked list
2019-04-09 14:26:33 -04:00
Michael Tryby
207cc53b04
Cleaning up build on gcc
2019-04-03 09:27:51 -04:00
Michael Tryby
a89f3c9005
Making sure filename is null terminated string
...
Added file_handle validation
2019-04-02 12:31:05 -04:00
Michael Tryby
c98d13de80
Updated filemanager to use dynamically allocated strings
...
converted filename to dynamically allocated string
created cstr_helper
2019-04-02 11:05:56 -04:00
Michael Tryby
2c6d4ca74d
Work in progress
...
Added test for temp files, getter for filename, and wrappers for fwrite, fprintf, and fgets
2019-04-01 18:05:02 -04:00
Michael Tryby
a0b08921fc
Tweaking header doc
2019-04-01 15:24:52 -04:00
Michael Tryby
b9f00421dd
Adding header info
2019-04-01 15:16:58 -04:00
Michael Tryby
23ac179ec1
Implementing filemanager
...
Implementing and testing filemanager and upgrading epanet_output library to use it.
2019-04-01 15:03:02 -04:00
Michael Tryby
69da9a4997
Work in progress
2019-03-29 17:04:55 -04:00
Michael Tryby
2bf3be4c64
Adding tests at test root
...
Couldn't get tests in subdirectores to work so adding them at test root instead.
2019-03-22 11:51:08 -04:00
Michael Tryby
ec72db5d82
pulling up call to find_packages
...
eliminates multiple calls to find_packages
2019-03-22 11:08:54 -04:00
Michael Tryby
c9903620cb
Fine tuning linking strategy
...
static linking on Windows (MSVC and mingw) dyn linking everywhere else.
2019-03-22 09:55:34 -04:00
Michael Tryby
48facd89d0
Fixing test build on gcc
2019-03-21 18:08:05 -04:00
Michael Tryby
7eadbc25ce
Adding unit test and refactoring
...
Added unit test for errormanager and refactored to simplify use of error_check() method.
2019-03-20 15:43:27 -04:00