From 9afadf56ca5ea97e73135891ef7a772a866ac630 Mon Sep 17 00:00:00 2001 From: badumbatish Date: Tue, 23 Jul 2024 13:21:31 -0700 Subject: gccrs: Fix ffi and enum conventions gcc/rust/ChangeLog: * ast/rust-fmt.h (enum ParseMode): Drop typedef in Cpp libgrust/ChangeLog: * libformat_parser/generic_format_parser/src/lib.rs: Remove repr(C) * libformat_parser/src/bin.rs: Use ffi * libformat_parser/src/lib.rs: pub ffi, create ParseMode and match rustc's parse mode --- gcc/rust/ast/rust-fmt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/rust') diff --git a/gcc/rust/ast/rust-fmt.h b/gcc/rust/ast/rust-fmt.h index 1db391b..a54faec 100644 --- a/gcc/rust/ast/rust-fmt.h +++ b/gcc/rust/ast/rust-fmt.h @@ -258,11 +258,11 @@ struct FormatArgsHandle RustString rust_string; }; -typedef enum +enum ParseMode { - Format, + Format = 0, InlineAsm, -} ParseMode; +}; extern "C" { -- cgit v1.1