Browse Source

Highlight C99/C+11 final typing in guide

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
d734ab189c
  1. 28
      website/guide/ctypes.html
  2. 4
      website/style-guide.css

28
website/guide/ctypes.html

@ -117,7 +117,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
<table>
<tr>
<th>Duktape type</th>
<th>C99/C++11 32-bit int</th>
<th class="highlight">C99/C++11 32-bit int</th>
<th>Legacy 32-bit int</th>
<th>Legacy 16-bit int</th>
<th><code>printf</code></th>
@ -126,7 +126,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_int_t</td>
<td>int</td>
<td class="highlight">int</td>
<td>int</td>
<td>long</td>
<td>%ld<br />long</td>
@ -135,7 +135,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_uint_t</td>
<td>unsigned int</td>
<td class="highlight">unsigned int</td>
<td>unsigned int</td>
<td>unsigned long</td>
<td>%lu<br />unsigned long</td>
@ -144,7 +144,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_int32_t</td>
<td>int32_t</td>
<td class="highlight">int32_t</td>
<td>int</td>
<td>long</td>
<td>%ld<br />long</td>
@ -153,7 +153,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_uint32_t</td>
<td>uint32_t</td>
<td class="highlight">uint32_t</td>
<td>unsigned int</td>
<td>unsigned long</td>
<td>%lu<br />unsigned long</td>
@ -162,7 +162,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_uint16_t</td>
<td>uint16_t</td>
<td class="highlight">uint16_t</td>
<td>unsigned short</td>
<td>unsigned short</td>
<td>%u<br />unsigned int</td>
@ -171,7 +171,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_idx_t</td>
<td>int</td>
<td class="highlight">int</td>
<td>int</td>
<td>long</td>
<td>%ld<br />long</td>
@ -180,7 +180,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_uarridx_t</td>
<td>unsigned int</td>
<td class="highlight">unsigned int</td>
<td>unsigned int</td>
<td>unsigned long</td>
<td>%lu<br />unsigned long</td>
@ -189,7 +189,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_codepoint_t</td>
<td>int</td>
<td class="highlight">int</td>
<td>int</td>
<td>long</td>
<td>%ld<br />long</td>
@ -198,7 +198,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_errcode_t</td>
<td>int</td>
<td class="highlight">int</td>
<td>int</td>
<td>long</td>
<td>%ld<br />long</td>
@ -207,7 +207,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_bool_t</td>
<td>int</td>
<td class="highlight">int</td>
<td>int</td>
<td>int</td>
<td>%d<br />int</td>
@ -216,7 +216,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_ret_t</td>
<td>int</td>
<td class="highlight">int</td>
<td>int</td>
<td>int</td>
<td>%d<br />int</td>
@ -225,7 +225,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_size_t</td>
<td>size_t</td>
<td class="highlight">size_t</td>
<td>size_t</td>
<td>size_t</td>
<td>%lu<br />unsigned long</td>
@ -235,7 +235,7 @@ and <code>scanf()</code> casts for portable formatting/scanning.</p>
</tr>
<tr>
<td>duk_double_t</td>
<td>double</td>
<td class="highlight">double</td>
<td>double</td>
<td>double</td>
<td>%f or %lf<br />double</td>

4
website/style-guide.css

@ -17,3 +17,7 @@
.definename {
font-family: monospace;
}
.highlight {
background: #eeeeee;
}

Loading…
Cancel
Save