#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
#include <sys/wait.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
#include <unistd.h>
#ifdef USE_READLINE
#else
#include <conio.h> //allows unbuffered screen capture from stdin
#include <direct.h> //get cwd
+ #include <windows.h>
+ #include <psapi.h>
+
#endif
using namespace std;
else {
//check for blank file
gobble(fileHandle);
- if (fileHandle.eof()) { cout << completeFileName << " is blank. Please correct." << endl; return 1; }
+ if (fileHandle.eof()) { cout << completeFileName << " is blank. Please correct." << endl; }
return 0;
}
//unique is the smallest line
if (label == "unique") { return false; }
- else { convert(label, labelFloat); }
+ else {
+ if (convertTestFloat(label, labelFloat)) {
+ convert(label, labelFloat);
+ }else { //cant convert
+ return false;
+ }
+ }
//go through users set and make them floats
for(it = userLabels.begin(); it != userLabels.end(); ++it) {