Skip to content

Add explicit void parameters #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 include/tvm/tvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct tvm_ctx {
struct tvm_mem *mem;
};

struct tvm_ctx *tvm_vm_create();
struct tvm_ctx *tvm_vm_create(void);
void tvm_vm_destroy(struct tvm_ctx *vm);

int tvm_vm_interpret(struct tvm_ctx *vm, char *filename);
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/tvm_htab.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct tvm_htab_ctx {
struct tvm_htab_node **nodes;
};

struct tvm_htab_ctx *tvm_htab_create();
struct tvm_htab_ctx *tvm_htab_create(void);
void tvm_htab_destroy(struct tvm_htab_ctx *htab);

int tvm_htab_add(struct tvm_htab_ctx *htab, const char *key, int value);
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/tvm_lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct tvm_lexer_ctx {
char ***tokens;
};

struct tvm_lexer_ctx *lexer_create();
struct tvm_lexer_ctx *lexer_create(void);
void tvm_lexer_destroy(struct tvm_lexer_ctx *l);

/* Tokenize the character array "source" into lines and tokens */
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/tvm_program.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct tvm_prog {
};

/* Create and initialize an empty program object */
struct tvm_prog *tvm_prog_create();
struct tvm_prog *tvm_prog_create(void);

void tvm_prog_destroy(struct tvm_prog *p);

Expand Down
2 changes: 1 addition & 1 deletion libtvm/tvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <tvm/tvm_lexer.h>
#include <tvm/tvm_parser.h>

struct tvm_ctx *tvm_vm_create()
struct tvm_ctx *tvm_vm_create(void)
{
struct tvm_ctx *vm =
(struct tvm_ctx *)calloc(1, sizeof(struct tvm_ctx));
Expand Down
2 changes: 1 addition & 1 deletion libtvm/tvm_htab.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define HTAB_LOAD_FACTOR 0.7

struct tvm_htab_ctx *tvm_htab_create()
struct tvm_htab_ctx *tvm_htab_create(void)
{
struct tvm_htab_ctx *htab =
(struct tvm_htab_ctx *)calloc(1, sizeof(struct tvm_htab_ctx));
Expand Down
2 changes: 1 addition & 1 deletion libtvm/tvm_lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdlib.h>
#include <string.h>

struct tvm_lexer_ctx *lexer_create()
struct tvm_lexer_ctx *lexer_create(void)
{
return (struct tvm_lexer_ctx *)calloc(1, sizeof(struct tvm_lexer_ctx));
}
Expand Down
2 changes: 1 addition & 1 deletion libtvm/tvm_program.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <tvm/tvm_parser.h>
#include <tvm/tvm.h>

struct tvm_prog *tvm_prog_create()
struct tvm_prog *tvm_prog_create(void)
{
struct tvm_prog *p = calloc(1, sizeof(struct tvm_prog));

Expand Down