Remove now-unnecessary struct keyword (#1320)

C++ acts like structs are `typedef`ed by default

We do have to keep `struct stat`, since there's ambiguity
with the function also called `stat`.
This commit is contained in:
Sylvie
2024-02-29 14:41:58 -05:00
committed by GitHub
parent 1210a7441f
commit eff8c324c8
40 changed files with 537 additions and 553 deletions

View File

@@ -31,7 +31,7 @@ struct OptStackEntry {
enum WarningState warningStates[numWarningStates];
};
static std::stack<struct OptStackEntry> stack;
static std::stack<OptStackEntry> stack;
void opt_B(char const chars[2])
{
@@ -241,7 +241,7 @@ void opt_Parse(char *s)
void opt_Push(void)
{
struct OptStackEntry entry;
OptStackEntry entry;
// Both of these are pulled from lexer.hpp
entry.binary[0] = binDigits[0];
@@ -280,7 +280,7 @@ void opt_Pop(void)
return;
}
struct OptStackEntry entry = stack.top();
OptStackEntry entry = stack.top();
stack.pop();
opt_B(entry.binary);