commit 77dcd903a05936925620f8d8005f16ed4e64a7ef (tree)
parent 82520a214ca7149a1acf658c3e4ddf257c450e79
Author: Evan Haas <evan@lagerdata.com>
Date: Wed, 28 Jun 2023 11:58:45 -0700
langref: Add c_char to the list of primitive types
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/doc/langref.html.in b/doc/langref.html.in
@@ -737,6 +737,11 @@ pub fn main() void {
</tr>
<tr>
+ <th scope="row">{#syntax#}c_char{#endsyntax#}</th>
+ <td><code class="c">char</code></td>
+ <td>for ABI compatibility with C</td>
+ </tr>
+ <tr>
<th scope="row">{#syntax#}c_short{#endsyntax#}</th>
<td><code class="c">short</code></td>
<td>for ABI compatibility with C</td>
@@ -10813,6 +10818,7 @@ lib.addCSourceFile("src/lib.c", &[_][]const u8{
These have guaranteed C ABI compatibility and can be used like any other type.
</p>
<ul>
+ <li>{#syntax#}c_char{#endsyntax#}</li>
<li>{#syntax#}c_short{#endsyntax#}</li>
<li>{#syntax#}c_ushort{#endsyntax#}</li>
<li>{#syntax#}c_int{#endsyntax#}</li>