aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-21 10:48:54 +0100
committerPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-30 13:52:32 +0200
commit0f1723455cea2d51630be79aceddcfc3ed8a4771 (patch)
treefad56de75936bb6c4605bf8100023093c8e340f1 /gcc/rust
parent3954270ee7fa782b64bc2f020056b7f6b58195b0 (diff)
downloadgcc-0f1723455cea2d51630be79aceddcfc3ed8a4771.zip
gcc-0f1723455cea2d51630be79aceddcfc3ed8a4771.tar.gz
gcc-0f1723455cea2d51630be79aceddcfc3ed8a4771.tar.bz2
libproc_macro: Add string length to ffi
Rust string are not null terminated and the C++ part will require a bound to know where a string type end. This means the length should be given as an argument in all ffi functions. ChangeLog: * librust/proc_macro/rust/bridge/ident.rs: Add length to extern C functions. * librust/proc_macro/rust/bridge/literal.rs: Add length to extern C functions. * librust/proc_macro/rust/bridge/token_stream.rs: Add length to extern C functions. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions