]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: proc_macro: Remove useless typedef
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 27 Jul 2023 09:58:56 +0000 (11:58 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:56:01 +0000 (18:56 +0100)
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>
libgrust/libproc_macro/proc_macro.cc
libgrust/libproc_macro/registration.h

index b1e108e74eb17d75d97d18c22a42888082381139..293fc957038268808833b66b187e2673b94a3d7d 100644 (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;
index 0074e993488eebff6abb5b4ddf1fd081a4024fcf..aba7edd81fbab7f4979dec7c89fd4c8e5ed56c5d 100644 (file)
 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 */