More reorganizing

This commit is contained in:
aristocratos 2021-06-20 00:49:13 +02:00
parent 470bca62ec
commit 61694f72a5
6 changed files with 10 additions and 13 deletions

View File

@ -33,6 +33,7 @@ tab-size = 4
#include <cmath>
#include <iostream>
#include <btop_shared.hpp>
#include <btop_tools.hpp>
#include <btop_config.hpp>
#include <btop_input.hpp>
@ -42,18 +43,15 @@ tab-size = 4
#if defined(__linux__)
#define LINUX
#include <btop_linux.hpp>
#elif defined(__unix__) || !defined(__APPLE__) && defined(__MACH__)
#include <sys/param.h>
#if defined(BSD)
// #include <btop_bsd.h>
#error BSD support not yet implemented!
#endif
#elif defined(__APPLE__) && defined(__MACH__)
#include <TargetConditionals.h>
#if TARGET_OS_MAC == 1
#define OSX
// #include <btop_osx.h>
#error OSX support not yet implemented!
#endif
#else

View File

@ -23,6 +23,7 @@ tab-size = 4
#include <fstream>
#include <btop_config.hpp>
#include <btop_shared.hpp>
#include <btop_tools.hpp>
using robin_hood::unordered_flat_map, std::map, std::array, std::atomic;

View File

@ -32,7 +32,7 @@ tab-size = 4
#include <unistd.h>
#include <btop_linux.hpp>
#include <btop_shared.hpp>
#include <btop_config.hpp>
#include <btop_tools.hpp>

View File

@ -20,25 +20,26 @@ tab-size = 4
#include <string>
#include <vector>
#include <atomic>
#include <filesystem>
#include <atomic>
using std::string, std::vector, std::atomic;
using std::string, std::vector;
namespace Global {
extern string Version;
extern int coreCount;
}
namespace Tools {
//* Platform specific function for system_uptime
double system_uptime();
}
namespace Proc {
extern std::filesystem::path proc_path;
extern size_t numpids;
extern atomic<bool> stop;
extern atomic<bool> collecting;
extern std::atomic<bool> stop;
extern std::atomic<bool> collecting;
extern vector<string> sort_vector;
//* Container for process information

View File

@ -31,6 +31,7 @@ tab-size = 4
#include <termios.h>
#include <sys/ioctl.h>
#include <btop_shared.hpp>
#include <btop_tools.hpp>
using std::string_view, std::array, std::regex, std::max, std::to_string, std::cin,

View File

@ -31,10 +31,6 @@ using std::string, std::vector;
//? ------------------------------------------------- NAMESPACES ------------------------------------------------------
namespace Global {
extern string Version;
}
//* Collection of escape codes for text style and formatting
namespace Fx {
extern const string e; //* Escape sequence start