Add a Literal namespace to gather all every literal related code.
libgrust/ChangeLog:
* libproc_macro/literal.cc (Literal__from_string):
Add abort because unimplemented.
* libproc_macro/literal.h (Literal__from_string): Add
namespace.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
#include "literal.h"
#include <cstring>
+#include <cstdlib>
+
+namespace Literal {
extern "C" {
Literal__from_string (const unsigned char *str, std::uint64_t len, Literal *lit)
{
// FIXME: implement this function with parser
+ std::abort ();
return false;
}
}
+} // namespace Literal
#include <cstdint>
+namespace Literal {
enum UnsignedTag
{
UNSIGNED_8,
Literal__from_string (const unsigned char *str, std::uint64_t len,
Literal *lit);
}
+} // namespace Literal
#endif /* ! LITERAL_H */