WONKY



LOG | FILES | OVERVIEW


F diff --git a/lex/lexer.h b/lex/lexer.h --- a/lex/lexer.h +++ b/lex/lexer.h
#include <chonky_jr.h>
#include <queue.h>
#include <program.h>
+ #include <preprocessing.h>
struct token
{
enum KEYWORDS type;
size_t size;
};
- struct define_directive
- {
- struct token *macro_name;
- struct Queue replacement_list;
- /*the tokens of the macro (contains a special token)*/
- struct Queue id_list;
-
- struct Map arguments;
- size_t number_of_arguments;
- /*put arguments here*/
- struct token **argument_list;
- };
enum KEYWORDS kw_get(struct Queue *tokens);
- /*I know, i know*/
- void do_preproc_stuff(struct Source_File *src,struct Program *prog);
- void do_include_stuff(struct Source_File *src,struct Program *prog);
- void do_define_stuff(struct Source_File *src,struct Program *prog);
- void handle_splicing(struct token *word);
- struct define_directive* get_define_directive(struct token* macro_name);
#endif
F diff --git a/lex/preprocessing.c b/lex/preprocessing.c --- a/lex/preprocessing.c +++ b/lex/preprocessing.c
#define GCC_PREPROCESSING_C GCC_PREPROCESSING_C
#include "preprocessing.h"
+ struct define_directive
+ {
+ struct token *macro_name;
+ struct Queue replacement_list;
+ /*the tokens of the macro (contains a special token)*/
+ struct Queue id_list;
+
+ struct Map arguments;
+ size_t number_of_arguments;
+ /*put arguments here*/
+ struct token **argument_list;
+ };
#endif
F diff --git a/lex/preprocessing.h b/lex/preprocessing.h --- a/lex/preprocessing.h +++ b/lex/preprocessing.h
- #ifndef GCC_PREPROCESSING_C
- #define GCC_PREPROCESSING_C GCC_PREPROCESSING_C
+ #ifndef GCC_PREPROCESSING_H
+ #define GCC_PREPROCESSING_H GCC_PREPROCESSING_H
+ void do_preproc_stuff(struct Source_File *src,struct Program *prog);
+ void do_include_stuff(struct Source_File *src,struct Program *prog);
+ void do_define_stuff(struct Source_File *src,struct Program *prog);
+ void handle_splicing(struct token *word);
+ struct define_directive* get_define_directive(struct token* macro_name);
#endif
F diff --git a/parse/parse.h b/parse/parse.h --- a/parse/parse.h +++ b/parse/parse.h
#include <parse_translation_unit.h>
- #include <parse_expression.c>
- #include <parse_statement.c>
- #include <parse_declaration.c>
- #include <parse_translation_unit.c>
-