Uh oh!
There was an error while loading. Please reload this page.
Document std::os::raw. - #46962
Conversation
rust-highfive
commented
Dec 23, 2017
r? @Kimundi (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Broken link. Needs two ../ I guess.
[01:21:17] std/os/raw/index.html:66: broken link - std/os/primitive.pointer.html
[01:21:17] std/os/raw/enum.c_void.html:56: broken link - std/os/primitive.pointer.html
[01:21:26] thread 'main' panicked at 'found some broken links', /checkout/src/tools/linkchecker/main.rs:49:8
There was a problem hiding this comment.
I double-checked every link but this one. ><
There was a problem hiding this comment.
C strings mark the end of a string with a zero
This is slightly misleading as someone might think it means 0 the character, not the literal integer value 0.
There was a problem hiding this comment.
Would clarifying "the character '\0' " be sufficient?
There was a problem hiding this comment.
Also note that it is equivalent to i32 even on 64bit Windows.
There was a problem hiding this comment.
I was not aware of this; I'll remove the remarks about isize and usize in these docs.
clarfonthey
commented
Dec 23, 2017
Made revisions per comments |
alexcrichton
commented
Jan 4, 2018
There was a problem hiding this comment.
The use of "isn't very clear-cut" throughout the number docs feels awkward. Is there any guidance we can paraphrase here? If not, i'd rather we use a phrase like "which is left under-specified" to make it feel marginally less wishy-washy.
There was a problem hiding this comment.
Fair; I was trying to avoid duplicating the docs too much, although it's mostly wishy-washy because C's definitions are incredibly wishy-washy.
I'll probably replace it with "which does not have a strict definition like Rust does" or something a bit more eloquent.
There was a problem hiding this comment.
I don't see how C doesn't have a strict definition of size of signed char 😄. In C a char's size is defined to be 1 byte, always (although 1 byte is not defined to be 8 bits) (C11 §6.5.3.4/4).
Unless Rust is going to support non-8-bit-byte system, a signed char is always an i8.
kennytm
commented
Jan 17, 2018
Hi @clarcharr, just checking if this PR is still actively worked on. Could you rephrase the sentence in #46962 (review)? Thanks! |
clarfonthey
commented
Jan 18, 2018
@kennytm will do in a bit! |
shepmaster
commented
Jan 26, 2018
Ping from triage, @clarcharr ! We haven't heard from you in a week; will you still be able to make the most recent set of changes? |
clarfonthey
commented
Jan 29, 2018
@shepmaster + @kennytm + @QuietMisdreavus my laptop was out of commission for a bit and I'm working on rewording things right now. |
clarfonthey
commented
Jan 29, 2018
I've pushed the latest version; let me know if things are okay! |
| @@ -0,0 +1,7 @@ | |||
| Equivalent to C's `unsigned int` type. | |||
| This type will almost always be [`u16`], but may differ on some esoteric systems. The C standard technically only requires that this type be an unsigned integer with the same size as an [`int`]; some systems define it as a [`u16`], for example. | |||
There was a problem hiding this comment.
Is that first u16 supposed to be a u32?
emilyalbini
commented
Feb 5, 2018
Ping from triage @QuietMisdreavus! |
QuietMisdreavus
commented
Feb 6, 2018
I was still waiting on one last change, but it was small enough that i put it in myself. (Sorry @clarcharr! @bors r+ |
bors
commented
Feb 6, 2018
📌 Commit fefd5e9 has been approved by |
clarfonthey
commented
Feb 6, 2018
@QuietMisdreavus I actually think I have the commit on my machine but I forgot to push >< |
kennytm
commented
Feb 6, 2018
@bors rollup |
…eavus Document std::os::raw. This adds a brief explanation to each type and its definition according to C. This also helps clarify that the definitions of the types, as described by rustdoc, are not necessarily the same from platform to platform.
This adds a brief explanation to each type and its definition according to C. This also helps clarify that the definitions of the types, as described by rustdoc, are not necessarily the same from platform to platform.