WONKY



LOG | FILES | OVERVIEW


F diff --git a/src/semantics/program/translation_unit.c b/src/semantics/program/translation_unit.c --- a/src/semantics/program/translation_unit.c +++ b/src/semantics/program/translation_unit.c
}
void token_ptr_execute_functionlike_macro(struct Token_Pointer *ptr,struct functionlike_define_directive *macro)
{
+ token_ptr_load_functionlike_macro_arguments_with_tokens(ptr,macro);
/*hack*/
if(macro->replacement_tokens && macro->replacement_tokens->size)
{
- token_ptr_load_functionlike_macro_arguments_with_tokens(ptr,macro);
token_ptr_jump_to_first(ptr,macro->replacement_tokens,0);
ptr->context->executed_macro_id=macro->id;
}else
F diff --git a/src/syntax/source_file.c b/src/syntax/source_file.c --- a/src/syntax/source_file.c +++ b/src/syntax/source_file.c
"#define va_end(v) \n"
"#define va_arg(v,l) \n"
"#define va_copy(d,s) \n"
+ "#define __builtin_va_list void *\n"
+ "typedef __builtin_va_list __gnuc_va_list;\n"
"\n"
"#endif\n";
const char stddef_builtin[] =
"typedef int wchar_t; \n"
"#define NULL ((void*)0) \n"
"#define offsetof(type,member_designator) ((size_t)0) \n"
+ "#define __attribute__(x) \n"
"\n"
"#endif\n";
struct Source_File* get_source_file_from_string(char *filename,size_t filename_size,struct Program *program)