token_t -> Token

Use C++'s implicit typedef
This commit is contained in:
2024-06-01 01:47:53 +01:00
parent f3f7578811
commit f5d8777b7a
5 changed files with 86 additions and 88 deletions

View File

@@ -30,33 +30,33 @@ enum pp_err_type_t
struct pp_err_t
{
const token_t *reference;
const Token *reference;
pp_err_type_t type;
lerr_t lerr;
pp_err_t();
pp_err_t(pp_err_type_t);
pp_err_t(pp_err_type_t, const token_t *);
pp_err_t(pp_err_type_t, const token_t *, lerr_t);
pp_err_t(pp_err_type_t, const Token *);
pp_err_t(pp_err_type_t, const Token *, lerr_t);
};
std::ostream &operator<<(std::ostream &, pp_err_t &);
struct pp_unit_t
{
const token_t *const token;
const Token *const token;
struct
{
std::string_view name;
std::vector<pp_unit_t> elements;
} container;
pp_unit_t(const token_t *const);
pp_unit_t(const Token *const);
pp_unit_t(std::string_view, std::vector<pp_unit_t>);
};
std::vector<pp_unit_t> tokens_to_units(const std::vector<token_t *> &);
std::vector<pp_unit_t> tokens_to_units(const std::vector<Token *> &);
pp_err_t preprocess_use(std::vector<pp_unit_t> &);
pp_err_t preprocesser(const std::vector<token_t *> &, std::vector<token_t *> &);
pp_err_t preprocesser(const std::vector<Token *> &, std::vector<Token *> &);
#endif