]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: libproc_macro: Add literal ffi implementations
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 6 Apr 2023 12:29:53 +0000 (14:29 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:10 +0000 (18:34 +0100)
commit86c070baa8612e5ac2c8a7ccfb03d50e940a4858
tree8c68233637efff833b9e216433565d810374a3c4
parent49eb3f5fc662aa44d1560e9061b33a8c86da958f
gccrs: libproc_macro: Add literal ffi implementations

Add literal type related ffi functions implementation.

libgrust/ChangeLog:

* libproc_macro/literal.h (Literal__drop): Implement
drop.
(Literal__string): Constructor from a string function prototype.
(Literal__byte_string): Constructor from a byte string function
prototype.
(Literal__from_string): Add function body, no implementation
yet.
* libproc_macro/literal.cc: New file.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
libgrust/libproc_macro/literal.cc [new file with mode: 0644]
libgrust/libproc_macro/literal.h