Browse Source

Reordered things to make it more pleasant to the brain.

tags/0.4.0
tastytea 6 months ago
parent
commit
e662b73918
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/main.cpp

+ 4
- 4
src/main.cpp View File

@@ -22,10 +22,10 @@
22 22
 #include <iostream>
23 23
 #include <string>
24 24
 #include <fstream>
25
-#include <libconfig.h++>
26
-#include <basedir.h>
27 25
 #include <cstdlib>
28 26
 #include <unistd.h>
27
+#include <libconfig.h++>
28
+#include <basedir.h>
29 29
 #include "xdgcfg.hpp"
30 30
 #include "version.hpp"
31 31
 
@@ -34,7 +34,6 @@
34 34
 #else
35 35
     namespace fs = std::experimental::filesystem;
36 36
 #endif
37
-using std::cout;
38 37
 using std::cerr;
39 38
 using std::endl;
40 39
 
@@ -102,7 +101,7 @@ int main(int argc, char *argv[])
102 101
             if (out.is_open())
103 102
             {
104 103
                 string buf;
105
-                std::getline(in, buf);
104
+                std::getline(in, buf);  // Shebang
106 105
                 std::getline(in, buf);
107 106
                 if (buf.substr(0, 16).compare("//compilescript:") == 0)
108 107
                 {
@@ -141,5 +140,6 @@ int main(int argc, char *argv[])
141 140
         cerr << "usage: " << argv[0] << " file [arguments]\n";
142 141
         std::exit(1);
143 142
     }
143
+
144 144
     return 0;
145 145
 }

Loading…
Cancel
Save