diff --git a/src/ptlang_ast/ptlang_ast_nodes.h b/src/ptlang_ast/ptlang_ast_nodes.h index 6f51dde..bff8911 100644 --- a/src/ptlang_ast/ptlang_ast_nodes.h +++ b/src/ptlang_ast/ptlang_ast_nodes.h @@ -1,9 +1,8 @@ #ifndef PTLANG_AST_NODES_H #define PTLANG_AST_NODES_H -#include #include - +#include typedef struct ptlang_ast_type_s *ptlang_ast_type; typedef struct ptlang_ast_stmt_s *ptlang_ast_stmt; @@ -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; @@ -71,7 +69,6 @@ struct ptlang_ast_decl_s ptlang_ast_code_position pos; }; - struct ptlang_ast_struct_member_s { ptlang_ast_ident str; diff --git a/src/ptlang_main/main.c b/src/ptlang_main/main.c index e3aadfd..c5341b8 100644 --- a/src/ptlang_main/main.c +++ b/src/ptlang_main/main.c @@ -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 @@ -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();