Skip to content

Commit

Permalink
feat: cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
skifli authored Aug 5, 2024
1 parent 9e13f89 commit b98d768
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .clangd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CompileFlags:
Add: [-std=c17, -Weverything]
Add: [-std=c99, -Weverything]
Diagnostics:
Suppress:
[
Expand Down
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
cmake_minimum_required(VERSION 3.5.0)
set (C_STANDARD 17)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}/build/bin>)

project(exeme)

add_executable(exeme src/main.c)
set_property(TARGET exeme PROPERTY C_STANDARD 99)
5 changes: 0 additions & 5 deletions src/args/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ struct Args {

#define ARGS_STRUCT_SIZE sizeof(struct Args)

/* Forward declarations to silence warnings */
void args_parse(struct Args *self);

/**
* Creates a new Args struct.
*
Expand All @@ -39,8 +36,6 @@ struct Args *args_new(int argc, char **argv) {
self->argv = argv;
self->argc = argc;

args_parse(self);

return self;
}

Expand Down
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ int main(int argc, char **argv) {
setlocale(LC_ALL, "");

args = args_new(argc, argv);
args_parse(args);

compiler = compiler_new("../../programs/test.exl");

Expand Down
4 changes: 2 additions & 2 deletions src/parser/tokens.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct AST {
const struct AST *VALUE;
} *AST_DIVISION_ASSIGNMENT;

/* Represents a floor divison assignment in the AST */
/* Represents a floor division assignment in the AST */
struct AST_FLOOR_DIVISION_ASSIGNMENT {
const struct LexerToken *_token;
const struct AST_VARIABLE *IDENTIFIER;
Expand Down Expand Up @@ -283,7 +283,7 @@ const char *astTokens_getName(const enum ASTTokenIdentifiers IDENTIFIER) {
return ASTTOKEN_NAMES._values[IDENTIFIER];
}

/* Forward declarations */
/* Forward declarations to silence warnings */
void ast_free(struct AST **self);

/**
Expand Down

0 comments on commit b98d768

Please sign in to comment.