[Simulavr-devel] main.cpp error handling

2009-05-08 Thread Joel Sherrill
Hi, I made a typo and uncovered a nasty set of unchecked possible error conditions in main.cpp. main.cpp has a number of arguments that take integers. If those conversions fail, you will get weird and maybe silent side-effects. I did -F FILE (-f FILE was right) and got a Floating Point Excepti

[Simulavr-devel] main.cpp

2008-04-26 Thread Michael Hennebry
Wraparound lines make my eyes water. They also defeat the purpose of indenting one's code. In the interest of being able to read it, I made a version of main.cpp without them. To ensure equivalence, I used tr to make copies without spaces, newlines, braces or slashes. The only difference was where