[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 <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <climits>
#include "args.hpp"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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