public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-7651] gccrs: libproc_macro: Add procmacro array definition
@ 2024-01-16 17:50 Arthur Cohen
  0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 17:50 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4ca2f2030048e0a0121a32ad218c0e3f7a327191

commit r14-7651-g4ca2f2030048e0a0121a32ad218c0e3f7a327191
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Mon May 15 15:13:38 2023 +0200

    gccrs: libproc_macro: Add procmacro array definition
    
    Standard types do not guarantee anything about their ABI and are
    therefore unconvenient to use as a primarily exposed container.
    With such asumption this commit introduces a container.
    
    libgrust/ChangeLog:
    
            * libproc_macro/proc_macro.h (struct ProcmacroArray):
            Add ProcmacroArray definition.
    
    Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 libgrust/libproc_macro/proc_macro.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libgrust/libproc_macro/proc_macro.h b/libgrust/libproc_macro/proc_macro.h
index 3022203a5dd..dcd2e6926c6 100644
--- a/libgrust/libproc_macro/proc_macro.h
+++ b/libgrust/libproc_macro/proc_macro.h
@@ -89,6 +89,12 @@ public:
   Procmacro make_bang (const char *name, BangMacro macro);
 };
 
+struct ProcmacroArray
+{
+  std::uint64_t length;
+  Procmacro *macros;
+};
+
 } // namespace ProcMacro
 
 #endif /* ! PROC_MACRO_H */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-16 17:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 17:50 [gcc r14-7651] gccrs: libproc_macro: Add procmacro array definition Arthur Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).