Reordered things to make it more pleasant to the brain.
the build was successful Details

This commit is contained in:
tastytea 2018-12-29 06:19:53 +01:00
parent 93e079cc89
commit e662b73918
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 4 deletions

View File

@ -22,10 +22,10 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <libconfig.h++>
#include <basedir.h>
#include <cstdlib> #include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <libconfig.h++>
#include <basedir.h>
#include "xdgcfg.hpp" #include "xdgcfg.hpp"
#include "version.hpp" #include "version.hpp"
@ -34,7 +34,6 @@
#else #else
namespace fs = std::experimental::filesystem; namespace fs = std::experimental::filesystem;
#endif #endif
using std::cout;
using std::cerr; using std::cerr;
using std::endl; using std::endl;
@ -102,7 +101,7 @@ int main(int argc, char *argv[])
if (out.is_open()) if (out.is_open())
{ {
string buf; string buf;
std::getline(in, buf); std::getline(in, buf); // Shebang
std::getline(in, buf); std::getline(in, buf);
if (buf.substr(0, 16).compare("//compilescript:") == 0) if (buf.substr(0, 16).compare("//compilescript:") == 0)
{ {
@ -141,5 +140,6 @@ int main(int argc, char *argv[])
cerr << "usage: " << argv[0] << " file [arguments]\n"; cerr << "usage: " << argv[0] << " file [arguments]\n";
std::exit(1); std::exit(1);
} }
return 0; return 0;
} }