File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change
1
+ Equivalent to C's ` ptrdiff_t ` type, from ` stddef.h ` (or ` cstddef ` for C++).
2
+
3
+ This type is currently always [ ` isize ` ] , however in the future there may be
4
+ platforms where this is not the case.
Original file line number Diff line number Diff line change
1
+ Equivalent to C's ` size_t ` type, from ` stddef.h ` (or ` cstddef ` for C++).
2
+
3
+ This type is currently always [ ` usize ` ] , however in the future there may be
4
+ platforms where this is not the case.
Original file line number Diff line number Diff line change
1
+ Equivalent to C's ` ssize_t ` (on POSIX) or ` SSIZE_T ` (on Windows) type.
2
+
3
+ This type is currently always [ ` isize ` ] , however in the future there may be
4
+ platforms where this is not the case.
Original file line number Diff line number Diff line change @@ -149,23 +149,9 @@ mod c_long_definition {
149
149
}
150
150
}
151
151
152
- /// Equivalent to C's `size_t` type, from `stddef.h` (or `cstddef` for C++).
153
- ///
154
- /// This type is currently always [`usize`], however in the future there may be
155
- /// platforms where this is not the case.
156
- pub type c_size_t = usize ;
157
-
158
- /// Equivalent to C's `ptrdiff_t` type, from `stddef.h` (or `cstddef` for C++).
159
- ///
160
- /// This type is currently always [`isize`], however in the future there may be
161
- /// platforms where this is not the case.
162
- pub type c_ptrdiff_t = isize ;
163
-
164
- /// Equivalent to C's `ssize_t` (on POSIX) or `SSIZE_T` (on Windows) type.
165
- ///
166
- /// This type is currently always [`isize`], however in the future there may be
167
- /// platforms where this is not the case.
168
- pub type c_ssize_t = isize ;
152
+ type_alias ! { "c_size_t.md" , c_size_t = usize ; }
153
+ type_alias ! { "c_ptrdiff_t.md" , c_ptrdiff_t = isize ; }
154
+ type_alias ! { "c_ssize_t.md" , c_ssize_t = isize ; }
169
155
170
156
mod c_int_definition {
171
157
crate :: cfg_select! {
You can’t perform that action at this time.
0 commit comments