diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-27 11:58:56 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:56:01 +0100 |
commit | 6e5d6c3f0e83201b5d20a4823d12c0c448b9b876 (patch) | |
tree | 25cb9d8a1df7eba43d4807e17544272e0c79feb4 /libgrust | |
parent | ea0bd46eb863542f965b93a8bb02289ae9dd5ac8 (diff) | |
download | gcc-6e5d6c3f0e83201b5d20a4823d12c0c448b9b876.zip gcc-6e5d6c3f0e83201b5d20a4823d12c0c448b9b876.tar.gz gcc-6e5d6c3f0e83201b5d20a4823d12c0c448b9b876.tar.bz2 |
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>
Diffstat (limited to 'libgrust')
-rw-r--r-- | libgrust/libproc_macro/proc_macro.cc | 2 | ||||
-rw-r--r-- | libgrust/libproc_macro/registration.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/libgrust/libproc_macro/proc_macro.cc b/libgrust/libproc_macro/proc_macro.cc index b1e108e..293fc957 100644 --- a/libgrust/libproc_macro/proc_macro.cc +++ b/libgrust/libproc_macro/proc_macro.cc @@ -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; diff --git a/libgrust/libproc_macro/registration.h b/libgrust/libproc_macro/registration.h index 0074e99..aba7edd 100644 --- a/libgrust/libproc_macro/registration.h +++ b/libgrust/libproc_macro/registration.h @@ -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 */ |