Being a couple hundred lines in...I made a mistake. I haven't written a makefile yet, so I was just manually compiling the code. Unfortunately, I have been sick lately, and when combined with not sleeping a heck of a lot... Well, I'm sure you've all been there.
So, long story short, I entered a wrong command to GCC somewhere along the line, and managed to have the compiled output OVERWRITE my source file. When I hadn't yet made a backup. Yes I know, rookie mistake.
Luckily a goodly amount of the code is in separate source files, with the idea of modularizing it for future use. So only the main code was destroyed.
This has prompted me to start work on a small script (Perl) to make backing up much easier for me. It is very close to done.
I am taking a slight break from coding for a couple days though since I am aggravated at having destroyed that code.
I'll probably be yo-yoing more.