Skip to content
This repository was archived by the owner on Aug 22, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/verilog_ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -2840,7 +2840,7 @@ ast_number * ast_new_number(

tr -> base = base;
tr -> representation = representation;
tr -> as_bits = digits;
tr -> as_bits = ast_strdup(digits);

return tr;
}
Expand Down
1 change: 0 additions & 1 deletion src/verilog_ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,6 @@ typedef enum ast_event_expression_type_e{

//! Describes a single event expression
typedef struct ast_event_expression_t ast_event_expression;
ast_metadata meta; //!< Node metadata.
struct ast_event_expression_t {
ast_event_expression_type type;
union{
Expand Down
6 changes: 3 additions & 3 deletions src/verilog_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1137,19 +1137,19 @@ port_declaration_l:
ast_list * names = ast_list_new();
ast_list_append(names, $4);
$$ = ast_new_port_declaration(PORT_NONE, $1, $2,
AST_FALSE,AST_FALSE,NULL,names);
AST_FALSE,AST_FALSE,$3,names);
}
| signed_o range_o port_identifier{
ast_list * names = ast_list_new();
ast_list_append(names, $3);
$$ = ast_new_port_declaration(PORT_NONE, NET_TYPE_NONE, $1,
AST_FALSE,AST_FALSE,NULL,names);
AST_FALSE,AST_FALSE,$2,names);
}
| KW_REG signed_o range_o port_identifier eq_const_exp_o{
ast_list * names = ast_list_new();
ast_list_append(names, $4);
$$ = ast_new_port_declaration(PORT_NONE, NET_TYPE_NONE, AST_FALSE,
AST_TRUE,AST_FALSE,NULL,names);
AST_TRUE,AST_FALSE,$3,names);
}
| output_variable_type_o port_identifier{
ast_list * names = ast_list_new();
Expand Down