Put using blocks into main().
This commit is contained in:
parent
8d8795c003
commit
8a0b8055c6
|
@ -15,6 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "html.hpp"
|
#include "html.hpp"
|
||||||
|
|
||||||
#include "cgi.hpp"
|
#include "cgi.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include "files.hpp"
|
#include "files.hpp"
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
#include "git.hpp"
|
#include "git.hpp"
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
|
|
||||||
|
#include <cstdlib>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -167,11 +169,11 @@ void copy_screenshots(const fs::path &directory)
|
||||||
|
|
||||||
} // namespace FediBlock::html
|
} // namespace FediBlock::html
|
||||||
|
|
||||||
using namespace FediBlock;
|
|
||||||
using namespace FediBlock::html;
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
using namespace FediBlock;
|
||||||
|
using namespace FediBlock::html;
|
||||||
|
|
||||||
const vector<string_view> args(argv, argv + argc);
|
const vector<string_view> args(argv, argv + argc);
|
||||||
if (argc <= 1)
|
if (argc <= 1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -183,16 +183,16 @@ void write_rss(ostream &out, const vector<entry_type> &entries,
|
||||||
|
|
||||||
} // namespace FediBlock::rss
|
} // namespace FediBlock::rss
|
||||||
|
|
||||||
using std::cerr;
|
|
||||||
using std::cout;
|
|
||||||
using std::exception;
|
|
||||||
using std::runtime_error;
|
|
||||||
|
|
||||||
using namespace FediBlock;
|
|
||||||
using namespace FediBlock::rss;
|
|
||||||
|
|
||||||
int main(int /*argc*/, char * /*argv*/[])
|
int main(int /*argc*/, char * /*argv*/[])
|
||||||
{
|
{
|
||||||
|
using namespace FediBlock;
|
||||||
|
using namespace FediBlock::rss;
|
||||||
|
|
||||||
|
using std::cerr;
|
||||||
|
using std::cout;
|
||||||
|
using std::exception;
|
||||||
|
using std::runtime_error;
|
||||||
|
|
||||||
|
|
||||||
git::init(true);
|
git::init(true);
|
||||||
|
|
||||||
|
|
Reference in New Issue