Add a new Ident namespace to group Ident related enumeration and
structures.
libgrust/ChangeLog:
* libproc_macro/ident.cc (Ident::make_ident): Add Ident
namespace.
* libproc_macro/ident.h (Ident__clone): Likewise.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
#include <cstring>
+namespace Ident {
+
extern "C" {
+
Ident
Ident__new (unsigned char *str, std::uint64_t len)
{
std::memcpy (val, str, len);
return {raw, val, len};
}
+
+} // namespace Ident
#include <cstdint>
#include <string>
+namespace Ident {
+
struct Ident
{
bool is_raw;
Ident__clone (const Ident *ident);
}
+} // namespace Ident
+
#endif /* ! IDENT_H */