#include <string.h>
#include <QtCore/QDir>
#include <unistd.h>
-#include <stdlib.h>
class IncFile
{
int currentline = 1;
int i, j, line, tline;
-
+
inc.clear();
poms.sprintf("%s", argv[1]);
i = poms.findRev('/', poms.length() - 1, FALSE);
}
if (!srcfile.open(IO_ReadOnly)) {
- fprintf(stdout, "Cannot open file\n");
+ fprintf(stdout, "Cannot open file: %s\n", srcfile.fileName().toStdString().c_str());
exit(1);
}
unlink(poms1.toStdString().c_str());
}
} else {
- fprintf(stdout, "Errors\n");
+ QString errors;
+ errors.sprintf("Errors: %s does not exists, current path: %s\n",
+ poms.toStdString().c_str(),
+ QDir::currentPath().toStdString().c_str()
+ );
+ fprintf(stdout, errors.toStdString().c_str());
poms.sprintf("%s/.cmp00", mydir);
QFile err(poms.toStdString().c_str());