diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-07-23 13:21:31 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:53 +0100 |
commit | 9afadf56ca5ea97e73135891ef7a772a866ac630 (patch) | |
tree | b09bb058c098ed676bad47f7c0d335267e0ace02 /gcc | |
parent | 29873023eddd5b1a71fec048431cb90186e23704 (diff) | |
download | gcc-9afadf56ca5ea97e73135891ef7a772a866ac630.zip gcc-9afadf56ca5ea97e73135891ef7a772a866ac630.tar.gz gcc-9afadf56ca5ea97e73135891ef7a772a866ac630.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-fmt.h | 6 |
1 files changed, 3 insertions, 3 deletions
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" { |