gccrs: proc_macro: Remove useless typedef

Initially a typedef was used to easily get the callback function pointer
type. Since this type has changed to a simpler well defined type, this
using declaration has no more purpose.

libgrust/ChangeLog:

	* libproc_macro/proc_macro.cc: Remove type alias.
	* libproc_macro/registration.h: Likewise.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
Pierre-Emmanuel Patry 2023-07-27 11:58:56 +02:00 committed by Arthur Cohen
parent ea0bd46eb8
commit 6e5d6c3f0e
2 changed files with 2 additions and 3 deletions

View File

@ -60,5 +60,5 @@ bridge_is_available ()
} // namespace ProcMacro
ProcMacro::from_str_function_t __gccrs_proc_macro_from_str_fn = nullptr;
ProcMacro::is_available_t __gccrs_proc_macro_is_available_fn
ProcMacro::BridgeState __gccrs_proc_macro_is_available_fn
= ProcMacro::BridgeState::Unavailable;

View File

@ -30,11 +30,10 @@
namespace ProcMacro {
using from_str_function_t = ProcMacro::TokenStream (*) (std::string &, bool &);
using is_available_t = ProcMacro::BridgeState;
} // namespace ProcMacro
extern "C" ProcMacro::from_str_function_t __gccrs_proc_macro_from_str_fn;
extern "C" ProcMacro::is_available_t __gccrs_proc_macro_is_available_fn;
extern "C" ProcMacro::BridgeState __gccrs_proc_macro_is_available_fn;
#endif /* !REGISTRATION_H */