Skip to content

Commit

Permalink
Remove unnecessary variable in init_tape_full
Browse files Browse the repository at this point in the history
  • Loading branch information
QuickWrite committed Nov 19, 2024
1 parent 3aa1486 commit 3c74508
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ static void set_default(Symbol* const start, const size_t length, const Symbol d
}
}

struct Tape init_tape_full(const Symbol def, Symbol* content, const size_t size) {
struct Tape const tape = {
inline struct Tape init_tape_full(const Symbol def, Symbol* content, const size_t size) {
return (struct Tape){
.content = content,
.size = size,
.def = def,
.cursor = 0
};

return tape;
}

struct Tape init_tape(const Symbol def) {
Expand Down

0 comments on commit 3c74508

Please sign in to comment.