Skip to content

Commit

Permalink
proc_macro: Remove useless typedef
Browse files Browse the repository at this point in the history
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.

ChangeLog:

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

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Jul 27, 2023
1 parent 851d83e commit 27f5146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libgrust/libproc_macro/proc_macro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
3 changes: 1 addition & 2 deletions libgrust/libproc_macro/registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 27f5146

Please sign in to comment.