[v0.20] Always use C++ includes when possible for consistency

This commit is contained in:
Dr-Noob
2021-12-19 11:30:10 +01:00
parent d9a0a428e4
commit e7477610e1
17 changed files with 32 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
#include <getopt.h> #include <getopt.h>
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include <stdlib.h> #include <cstdlib>
#include <climits> #include <climits>
#include "args.hpp" #include "args.hpp"

View File

@@ -1,8 +1,6 @@
#ifndef __ARGS__ #ifndef __ARGS__
#define __ARGS__ #define __ARGS__
#include <stdbool.h>
struct color { struct color {
int32_t R; int32_t R;
int32_t G; int32_t G;

View File

@@ -1,8 +1,8 @@
#include <stdarg.h> #include <cstdarg>
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <string.h> #include <cstring>
#include <errno.h> #include <cerrno>
#include "global.hpp" #include "global.hpp"

View File

@@ -1,7 +1,6 @@
#ifndef __GLOBAL__ #ifndef __GLOBAL__
#define __GLOBAL__ #define __GLOBAL__
#include <stdbool.h>
#include <cstddef> #include <cstddef>
#define STRING_UNKNOWN "Unknown" #define STRING_UNKNOWN "Unknown"

View File

@@ -1,8 +1,7 @@
#ifndef __GPU__ #ifndef __GPU__
#define __GPU__ #define __GPU__
#include <stdint.h> #include <cstdint>
#include <stdbool.h>
#include "../cuda/pci.hpp" #include "../cuda/pci.hpp"

View File

@@ -1,6 +1,6 @@
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <string.h> #include <cstring>
#include "args.hpp" #include "args.hpp"
#include "global.hpp" #include "global.hpp"

View File

@@ -1,6 +1,5 @@
#include <stdbool.h> #include <cstdlib>
#include <stdlib.h> #include <cstdio>
#include <stdio.h>
#include "master.hpp" #include "master.hpp"
#include "../cuda/cuda.hpp" #include "../cuda/cuda.hpp"

View File

@@ -1,8 +1,7 @@
#include <stdlib.h> #include <cstdlib>
#include <string.h> #include <cstring>
#include <stdio.h> #include <cstdio>
#include <stdbool.h> #include <cerrno>
#include <errno.h>
#include "printer.hpp" #include "printer.hpp"
#include "ascii.hpp" #include "ascii.hpp"

View File

@@ -1,6 +1,6 @@
#include <stdint.h> #include <cstdint>
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include "global.hpp" #include "global.hpp"
#include "uarch.hpp" #include "uarch.hpp"

View File

@@ -1,4 +1,4 @@
#include <stdio.h> #include <cstdio>
#include "pci.hpp" #include "pci.hpp"
#include "chips.hpp" #include "chips.hpp"

View File

@@ -1,7 +1,7 @@
#ifndef __PCI_CUDA__ #ifndef __PCI_CUDA__
#define __PCI_CUDA__ #define __PCI_CUDA__
#include <stdint.h> #include <cstdint>
#include "../common/pci.hpp" #include "../common/pci.hpp"
#include "chips.hpp" #include "chips.hpp"

View File

@@ -1,6 +1,6 @@
#include <cuda_runtime.h> #include <cuda_runtime.h>
#include <helper_cuda.h> #include <helper_cuda.h>
#include <stdint.h> #include <cstdint>
#include <cstddef> #include <cstddef>
#include "../common/uarch.hpp" #include "../common/uarch.hpp"

View File

@@ -1,7 +1,7 @@
#ifndef __INTEL_GPUCHIPS__ #ifndef __INTEL_GPUCHIPS__
#define __INTEL_GPUCHIPS__ #define __INTEL_GPUCHIPS__
#include <stdint.h> #include <cstdint>
typedef uint32_t GPUCHIP; typedef uint32_t GPUCHIP;

View File

@@ -1,5 +1,5 @@
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include "intel.hpp" #include "intel.hpp"
#include "uarch.hpp" #include "uarch.hpp"

View File

@@ -1,4 +1,4 @@
#include <stdio.h> #include <cstdio>
#include "pci.hpp" #include "pci.hpp"
#include "chips.hpp" #include "chips.hpp"

View File

@@ -1,7 +1,7 @@
#ifndef __PCI_INTEL__ #ifndef __PCI_INTEL__
#define __PCI_INTEL__ #define __PCI_INTEL__
#include <stdint.h> #include <cstdint>
#include "../common/pci.hpp" #include "../common/pci.hpp"
#include "chips.hpp" #include "chips.hpp"

View File

@@ -1,7 +1,7 @@
#include <stdint.h> #include <cstdint>
#include <cstddef> #include <cstddef>
#include <string.h> #include <cstring>
#include <stdio.h> #include <cstdio>
#include "../common/uarch.hpp" #include "../common/uarch.hpp"
#include "../common/global.hpp" #include "../common/global.hpp"