Skip to content

Commit

Permalink
mention struct to compile without -fpermissive
Browse files Browse the repository at this point in the history
  • Loading branch information
DadSchoorse committed Dec 12, 2019
1 parent 9e9deda commit 0ec94ce
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion source/effect_codegen_spirv.cpp
Expand Up @@ -123,7 +123,7 @@ class codegen_spirv final : public codegen
private:
struct type_lookup
{
type type;
struct type type;
spv::StorageClass storage;
bool is_ptr;
spv::Id id;
Expand Down
6 changes: 3 additions & 3 deletions source/effect_expression.hpp
Expand Up @@ -129,12 +129,12 @@ namespace reshadefx
signed char swizzle[4];
};

type type = {};
struct type type = {};
uint32_t base = 0;
constant constant = {};
struct constant constant = {};
bool is_lvalue = false;
bool is_constant = false;
location location;
struct location location;
std::vector<operation> chain;

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions source/effect_module.hpp
Expand Up @@ -72,10 +72,10 @@ namespace reshadefx
/// </summary>
struct struct_member_info
{
type type;
struct type type;
std::string name;
std::string semantic;
location location;
struct location location;
uint32_t definition = 0;
};

Expand All @@ -84,7 +84,7 @@ namespace reshadefx
/// </summary>
struct annotation
{
type type;
struct type type;
std::string name;
constant value;
};
Expand Down Expand Up @@ -132,7 +132,7 @@ namespace reshadefx
struct uniform_info
{
std::string name;
type type;
struct type type;
uint32_t size = 0;
uint32_t offset = 0;
std::vector<annotation> annotations;
Expand Down
4 changes: 2 additions & 2 deletions source/effect_preprocessor.hpp
Expand Up @@ -92,14 +92,14 @@ namespace reshadefx
private:
struct if_level
{
token token;
struct token token;
bool value, skipping;
if_level *parent;
};
struct input_level
{
std::string name;
std::unique_ptr<lexer> lexer;
std::unique_ptr<class lexer> lexer;
token next_token;
std::stack<if_level> if_stack;
std::unordered_set<std::string> hidden_macros;
Expand Down
6 changes: 3 additions & 3 deletions source/effect_symbol_table.hpp
Expand Up @@ -39,8 +39,8 @@ namespace reshadefx
{
symbol_type op = symbol_type::invalid;
uint32_t id = 0;
type type = {};
constant constant = {};
struct type type = {};
struct constant constant = {};
const function_info *function = nullptr;
};

Expand Down Expand Up @@ -93,7 +93,7 @@ namespace reshadefx

private:
struct scoped_symbol : symbol {
scope scope; // Store scope with symbol data
struct scope scope; // Store scope with symbol data
};

scope _current_scope;
Expand Down
2 changes: 1 addition & 1 deletion source/effect_token.hpp
Expand Up @@ -190,7 +190,7 @@ namespace reshadefx
struct token
{
tokenid id;
location location;
struct location location;
size_t offset, length;
union
{
Expand Down

0 comments on commit 0ec94ce

Please sign in to comment.