Build everything as C++ (#1176)

This commit is contained in:
Rangi
2023-11-07 15:45:56 -05:00
committed by GitHub
parent 78d83be2b2
commit 1e70e703a7
84 changed files with 667 additions and 663 deletions

View File

@@ -8,8 +8,8 @@
#include <stdbool.h>
#include <stdio.h>
#include "helpers.h"
#include "linkdefs.h"
#include "helpers.hpp"
#include "linkdefs.hpp"
// Variables related to CLI options
extern bool isDmgMode;
@@ -61,7 +61,7 @@ void warning(struct FileStackNode const *where, uint32_t lineNo,
void error(struct FileStackNode const *where, uint32_t lineNo,
char const *fmt, ...) format_(printf, 3, 4);
_Noreturn void fatal(struct FileStackNode const *where, uint32_t lineNo,
[[noreturn]] void fatal(struct FileStackNode const *where, uint32_t lineNo,
char const *fmt, ...) format_(printf, 3, 4);
/*

View File

@@ -6,7 +6,7 @@
#include <stdint.h>
#include "link/section.h"
#include "link/section.hpp"
/*
* Registers a section for output.

View File

@@ -7,9 +7,9 @@
#include <stdbool.h>
#include <stdint.h>
#include "link/section.h"
#include "link/section.hpp"
#include "linkdefs.h"
#include "linkdefs.hpp"
struct Assertion {
struct Patch patch;

View File

@@ -6,7 +6,7 @@
#include <stdint.h>
#include "linkdefs.h"
#include "linkdefs.hpp"
extern FILE * linkerScript;

View File

@@ -9,9 +9,9 @@
#include <stdint.h>
#include <stdbool.h>
#include "link/main.h"
#include "link/main.hpp"
#include "linkdefs.h"
#include "linkdefs.hpp"
struct FileStackNode;
struct Section;

View File

@@ -8,7 +8,7 @@
#include <stdint.h>
#include "linkdefs.h"
#include "linkdefs.hpp"
struct FileStackNode;