Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed table.

  • Loading branch information...
commit f4f5ff18876fd36429797de643f8aebee37d9536 1 parent 33a4fa3
@dblock dblock authored
Showing with 16 additions and 15 deletions.
  1. +2 −3 .gitignore
  2. +14 −12 www/Mappings.md
View
5 .gitignore
@@ -3,7 +3,6 @@ build.eclipse
build.number
.metadata
bin
-
-
-
+jnalib/contrib/ntservice/dist
+jnalib/contrib/platform/dist
View
26 www/Mappings.md
@@ -3,18 +3,20 @@ Default Type Mappings
Java primitive types (and their object equivalents) map directly to the native C type of the same size.
-Native Type|Size|Java Type|Common Windows Types
-char|8-bit integer|byte|BYTE, TCHAR
-short|16-bit integer|short|WORD
-wchar_t|16/32-bit character|char|TCHAR
-int|32-bit integer|int|DWORD
-int|boolean value|boolean|BOOL
-long|32/64-bit integer|NativeLong|LONG
-long long|64-bit integer|long|__int64
-float|32-bit FP|float|
-double|64-bit FP|double|
-char*|C string|String|LPTCSTR
-void*|pointer|Pointer|LPVOID, HANDLE, LPXXX
+<table>
+<thead><td>Native Type</td><td>Size</td><td>Java Type</td><td>Common Windows Types</td></thead>
+<tr><td>char</td><td>8-bit integer</td><td>byte</td><td>BYTE, TCHAR</td></tr>
+<tr><td>short</td><td>16-bit integer</td><td>short</td><td>WORD</td></tr>
+<tr><td>wchar_t</td><td>16/32-bit character</td><td>char</td><td>TCHAR</td></tr>
+<tr><td>int</td><td>32-bit integer</td><td>int</td><td>DWORD</td></tr>
+<tr><td>int</td><td>boolean value</td><td>boolean</td><td>BOOL</td></tr>
+<tr><td>long</td><td>32/64-bit integer</td><td>NativeLong</td><td>LONG</td></tr>
+<tr><td>long long</td><td>64-bit integer</td><td>long</td><td>__int64</td></tr>
+<tr><td>float</td><td>32-bit FP</td><td>float</td><td></td></tr>
+<tr><td>double</td><td>64-bit FP</td><td>double</td><td></td></tr>
+<tr><td>char*</td><td>C string</td><td>String</td><td>LPTCSTR</td></tr>
+<tr><td>void*</td><td>pointer</td><td>Pointer</td><td>LPVOID, HANDLE, LP<i>XXX</i></td></tr>
+</table>
Unsigned types use the same mappings as signed types. C enums are usually interchangeable with "int".
Please sign in to comment.
Something went wrong with that request. Please try again.