Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 26, 2024
1 parent 2a86732 commit 29a4c8a
Show file tree
Hide file tree
Showing 16 changed files with 202 additions and 189 deletions.
4 changes: 2 additions & 2 deletions config/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def prettify_layout_attribute_style_value_extern(
if key == "unknown_key":
print("Warning: Missing 'id' in item:", item)

result = "extern const ast_layout_attribute_style_pair_t " + key + ";\n"
result = "extern const ast_layout_attribute_style_pair_t " + key + "[];\n"

return result

Expand Down Expand Up @@ -281,7 +281,7 @@ def prettify_layout_attribute_value_extern(item: Dict[str, Any], group: Dict[str
if key == "unknown_key":
print("Warning: Missing 'id' in item:", item)

result = "extern const ast_layout_attribute_pair_t " + key + ";\n"
result = "extern const ast_layout_attribute_pair_t " + key + "[];\n"

return result

Expand Down
1 change: 1 addition & 0 deletions src/generated-config/ast_block_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ ADD_BLOCK_TYPE(AST_BLOCK_TYPE_ERROR, "ERROR", "error")






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_GLOBAL_VALUE(unset, "حذف شده")






Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE(AST_LAYOUT_ATTRIBUTE_STYLE_STATE_TYPE_EMPT






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -579,3 +579,4 @@ ADD_LAYOUT_ATTRIBUTE_STYLE_TYPE_HIDE(AST_LAYOUT_ATTRIBUTE_STYLE_TYPE_ERROR, "ERR




1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_style_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -1494,5 +1494,6 @@ const ast_layout_attribute_style_pair_t ast_layout_allowed_style_list_zoom[] = {






361 changes: 181 additions & 180 deletions src/generated-config/ast_layout_attribute_style_value_extern.h

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ ADD_LAYOUT_ATTRIBUTE_TYPE(AST_LAYOUT_ATTRIBUTE_TYPE_RESPONSIVE_MIN_HEIGHT, "RESP




1 change: 1 addition & 0 deletions src/generated-config/ast_layout_attribute_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ const ast_layout_attribute_pair_t ast_layout_allowed_lang[] = {




11 changes: 6 additions & 5 deletions src/generated-config/ast_layout_attribute_value_extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
#define _AST_LAYOUT_ATTRIBUTE_VALUE_EXTERN_

// ----------- BEGIN AUTO GENERATED ----------- //
extern const ast_layout_attribute_pair_t ast_layout_allowed_dir;
extern const ast_layout_attribute_pair_t ast_layout_allowed_dir[];

extern const ast_layout_attribute_pair_t ast_layout_allowed_form_type;
extern const ast_layout_attribute_pair_t ast_layout_allowed_form_type[];

extern const ast_layout_attribute_pair_t ast_layout_allowed_form_kind;
extern const ast_layout_attribute_pair_t ast_layout_allowed_form_kind[];

extern const ast_layout_attribute_pair_t ast_layout_allowed_charset;
extern const ast_layout_attribute_pair_t ast_layout_allowed_charset[];

extern const ast_layout_attribute_pair_t ast_layout_allowed_lang;
extern const ast_layout_attribute_pair_t ast_layout_allowed_lang[];

// ----------- END AUTO GENERATED ----------- //

Expand All @@ -24,3 +24,4 @@ extern const ast_layout_attribute_pair_t ast_layout_allowed_lang;




1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@ ADD_LAYOUT_TYPE_REPEAT(AST_LAYOUT_TYPE_MEDIA, "MEDIA", "media", "@media", "وا






1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,4 @@ else if (attribute->parent_node_type == AST_LAYOUT_TYPE_MEDIA) {




1 change: 1 addition & 0 deletions src/generated-config/ast_layout_type_attributes_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ const size_t valid_attributes_input_length = sizeof(valid_attributes_input) / si




1 change: 1 addition & 0 deletions src/generated-config/ast_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ ADD_TYPE(AST_TYPE_ERROR, "ERROR", "error")






2 changes: 1 addition & 1 deletion src/validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

#include "validator.h"

#include "generated-config/ast_layout_attribute_style_value.h"
#include "generated-config/ast_layout_attribute_value.h"
#include "generated-config/ast_layout_type_attributes_values.h"
#include "generated-config/ast_layout_attribute_style_value_extern.h"

/**
*
Expand Down
2 changes: 1 addition & 1 deletion src/validator_style.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "validator_style.h"

#include "generated-config/ast_layout_attribute_value_extern.h"
#include "generated-config/ast_layout_attribute_style_value_extern.h"
#include "generated-config/ast_layout_attribute_style_value.h"

/**
*
Expand Down

0 comments on commit 29a4c8a

Please sign in to comment.