gecko-dev/xpcom/rust
Lina Cambridge 6bef7b8477 Bug 1542528 - Add an `xpcom::c_str` macro for creating static C strings. r=froydnj
This is based on the `c_str` macro in `js/rust/src/heap.rs`, but
returns a `NulTerminatedCStr` type that can be cast to a pointer.

This commit also changes `ThreadPtrHolder::new` to take a
`NulTerminatedCStr`, and removes an unnecessary `RefPtr` reference in
`is_current_thread`.

Differential Revision: https://phabricator.services.mozilla.com/D26429

--HG--
extra : moz-landing-system : lando
2019-04-08 14:43:35 +00:00
..
gkrust_utils Bug 1346759 - Use URI comparison for null principals instead of pointer comparison. r=ckerschb,bholley 2019-02-11 18:03:12 +00:00
gtest Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
moz_task Bug 1542528 - Add an `xpcom::c_str` macro for creating static C strings. r=froydnj 2019-04-08 14:43:35 +00:00
nserror Bug 1513350 - Add a Display impl to nsresult, r=froydnj 2019-03-25 19:48:22 +00:00
nsstring Bug 1536045 - Turn a comment into a non-doc comment. r=nika 2019-03-26 20:17:51 +00:00
xpcom Bug 1542528 - Add an `xpcom::c_str` macro for creating static C strings. r=froydnj 2019-04-08 14:43:35 +00:00