diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-07-23 13:21:31 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-07-24 08:19:01 +0000 |
commit | 0d0530b65fc1468e5d5ac64c60c502a84f28780b (patch) | |
tree | 017fe52757bc0a0dfb48bbc0d197d8c82ffeb9a5 /gcc | |
parent | a79d297dccf7c36759551ce224a9d80f0505ecaf (diff) | |
download | gcc-0d0530b65fc1468e5d5ac64c60c502a84f28780b.zip gcc-0d0530b65fc1468e5d5ac64c60c502a84f28780b.tar.gz gcc-0d0530b65fc1468e5d5ac64c60c502a84f28780b.tar.bz2 |
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 ea9a7c1..fa0f5ec 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" { |