diff options
Diffstat (limited to 'gcc/rust/ast/rust-fmt.h')
-rw-r--r-- | gcc/rust/ast/rust-fmt.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/rust/ast/rust-fmt.h b/gcc/rust/ast/rust-fmt.h index 6a0c116..fa0f5ec 100644 --- a/gcc/rust/ast/rust-fmt.h +++ b/gcc/rust/ast/rust-fmt.h @@ -20,7 +20,6 @@ #define RUST_FMT_H #include "rust-system.h" -#include <cstddef> // FIXME: How to encode Option? @@ -259,10 +258,16 @@ struct FormatArgsHandle RustString rust_string; }; +enum ParseMode +{ + Format = 0, + InlineAsm, +}; + extern "C" { FormatArgsHandle -collect_pieces (const char *input, bool append_newline); +collect_pieces (const char *input, bool append_newline, ParseMode parse_mode); FormatArgsHandle clone_pieces (const FormatArgsHandle &); @@ -275,7 +280,8 @@ void destroy_pieces (FormatArgsHandle); struct Pieces { - static Pieces collect (const std::string &to_parse, bool append_newline); + static Pieces collect (const std::string &to_parse, bool append_newline, + ffi::ParseMode parse_mode); ~Pieces (); Pieces (const Pieces &other); |