Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkak committed Jan 27, 2024
1 parent 435d682 commit 48edd76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
5 changes: 1 addition & 4 deletions src/ptlang_ast/ptlang_ast_nodes.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef PTLANG_AST_NODES_H
#define PTLANG_AST_NODES_H

#include <stdint.h>
#include <stdbool.h>

#include <stdint.h>

typedef struct ptlang_ast_type_s *ptlang_ast_type;
typedef struct ptlang_ast_stmt_s *ptlang_ast_stmt;
Expand All @@ -14,7 +13,6 @@ typedef struct ptlang_ast_decl_s *ptlang_ast_decl;
typedef struct ptlang_ast_struct_def_s *ptlang_ast_struct_def;
typedef struct ptlang_ast_struct_member_s *ptlang_ast_struct_member_list;


typedef struct ptlang_ast_code_position_s
{
uint64_t from_line;
Expand Down Expand Up @@ -71,7 +69,6 @@ struct ptlang_ast_decl_s
ptlang_ast_code_position pos;
};


struct ptlang_ast_struct_member_s
{
ptlang_ast_ident str;
Expand Down
18 changes: 9 additions & 9 deletions src/ptlang_main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ int main(void)

// if (err != LLVMErrorSuccess)
// {
// fprintf(stderr, "ERROR lll.c Just search this string asdfghjkl\n");
// fprintf(stderr, "%s\n", LLVMGetErrorMessage(err));
// fprintf(stderr, "ERROR lll.c Just search this string asdfghjkl\n");
// fprintf(stderr, "%s\n", LLVMGetErrorMessage(err));
// }

// // #endif
Expand All @@ -102,13 +102,13 @@ int main(void)

// printf("\n ============== end ==============\n\n");

// #ifdef WIN32
// # define ASM_FILE "t.asm"
// # define OBJ_FILE "t.obj"
// #else
// # define ASM_FILE "t.S"
// # define OBJ_FILE "t.o"
// #endif
// #ifdef WIN32
// # define ASM_FILE "t.asm"
// # define OBJ_FILE "t.obj"
// #else
// # define ASM_FILE "t.S"
// # define OBJ_FILE "t.o"
// #endif

// LLVMInitializeNativeAsmPrinter();

Expand Down

0 comments on commit 48edd76

Please sign in to comment.