Skip to content

Commit a3e5c0b

Browse files
author
Colin Robertson
committed
Fix more tables, some intrinsics
1 parent 35f0693 commit a3e5c0b

12 files changed

Lines changed: 105 additions & 137 deletions

docs/atl-mfc-shared/unicode-and-multibyte-character-set-mbcs-support.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ The entire MFC class library is conditionally enabled for Unicode characters and
1919

2020
These library, debugger, and DLL files are used to support Unicode in MFC:
2121

22-
|||||
23-
|-|-|-|-|
24-
|UAFXCW.LIB|UAFXCW.PDB|UAFXCWD.LIB|UAFXCWD.PDB|
25-
|MFC*version*U.LIB|MFC*version*U.PDB|MFC*version*U.DLL|MFC*version*UD.LIB|
26-
|MFC*version*UD.PDB|MFC*version*UD.DLL|MFCS*version*U.LIB|MFCS*version*U.PDB|
27-
|MFCS*version*UD.LIB|MFCS*version*UD.PDB|MFCM*version*U.LIB|MFCM*version*U.PDB|
28-
|MFCM*version*U.DLL|MFCM*version*UD.LIB|MFCM*version*UD.PDB|MFCM*version*UD.DLL|
22+
:::row:::
23+
:::column span="":::
24+
MFC*version*U.LIB<br/>MFC*version*UD.LIB<br/>MFCM*version*U.LIB<br/>MFCM*version*UD.LIB<br/>MFCS*version*U.LIB<br/>MFCS*version*UD.LIB<br/>UAFXCW.LIB<br/>UAFXCWD.LIB
25+
:::column-end:::
26+
:::column span="":::
27+
MFC*version*U.PDB<br/>MFC*version*UD.PDB<br/>MFCM*version*U.PDB<br/>MFCM*version*UD.PDB<br/>MFCS*version*U.PDB<br/>MFCS*version*UD.PDB<br/>UAFXCW.PDB<br/>UAFXCWD.PDB
28+
:::column-end:::
29+
:::column span="":::
30+
MFC*version*U.DLL<br/>MFC*version*UD.DLL<br/>MFCM*version*U.DLL<br/>MFCM*version*UD.DLL
31+
:::column-end:::
32+
:::row-end:::
2933

3034
(*version* represents the version number of the file; for example, '140' means version 14.0.)
3135

@@ -45,7 +49,7 @@ To complete Unicode programming of your application, you must also:
4549

4650
- Use LPTSTR where you would use **`char`**<strong>\*</strong>.
4751

48-
- Use LPCTSTR where you would use **const char**<strong>\*</strong>. `CString` provides the operator LPCTSTR to convert between `CString` and LPCTSTR.
52+
- Use LPCTSTR where you would use **`const char`**<strong>\*</strong>. `CString` provides the operator LPCTSTR to convert between `CString` and LPCTSTR.
4953

5054
`CString` also supplies Unicode-aware constructors, assignment operators, and comparison operators.
5155

@@ -66,7 +70,7 @@ Under DBCS, a given string can contain all single-byte ANSI characters, all doub
6670
6771
`CString` member functions use special "generic text" versions of the C run-time functions they call, or they use Unicode-aware functions. Therefore, for example, if a `CString` function would typically call `strcmp`, it calls the corresponding generic-text function `_tcscmp` instead. Depending on how the symbols _MBCS and _UNICODE are defined, `_tcscmp` maps as follows:
6872

69-
|||
73+
|Symbols|Function|
7074
|-|-|
7175
|_MBCS defined|`_mbscmp`|
7276
|_UNICODE defined|`wcscmp`|

docs/build/reference/clrsupportlasterror-preserve-last-error-code-for-pinvoke-calls.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,7 @@ ms.assetid: b7057990-4154-4b1d-9fc9-6236f7be7575
1919

2020
Preserving the last error code implies a decrease in performance. If you do not want to incur the performance impact of preserving the last error code, link with **/CLRSUPPORTLASTERROR:NO**.
2121

22-
You can minimize the performance impact by linking with **/CLRSUPPORTLASTERROR:SYSTEMDLL**, which only preserves the last error code for functions in system DLLs. A system DLL is defined as one of the following:
23-
24-
|||||
25-
|-|-|-|-|
26-
|ACLUI.DLL|ACTIVEDS.DLL|ADPTIF.DLL|ADVAPI32.DLL|
27-
|ASYCFILT.DLL|AUTHZ.DLL|AVICAP32.DLL|AVIFIL32.DLL|
28-
|CABINET.DLL|CLUSAPI.DLL|COMCTL32.DLL|COMDLG32.DLL|
29-
|COMSVCS.DLL|CREDUI.DLL|CRYPT32.DLL|CRYPTNET.DLL|
30-
|CRYPTUI.DLL|D3D8THK.DLL|DBGENG.DLL|DBGHELP.DLL|
31-
|DCIMAN32.DLL|DNSAPI.DLL|DSPROP.DLL|DSUIEXT.DLL|
32-
|GDI32.DLL|GLU32.DLL|HLINK.DLL|ICM32.DLL|
33-
|IMAGEHLP.DLL|IMM32.DLL|IPHLPAPI.DLL|IPROP.DLL|
34-
|KERNEL32.DLL|KSUSER.DLL|LOADPERF.DLL|LZ32.DLL|
35-
|MAPI32.DLL|MGMTAPI.DLL|MOBSYNC.DLL|MPR.DLL|
36-
|MPRAPI.DLL|MQRT.DLL|MSACM32.DLL|MSCMS.DLL|
37-
|MSI.DLL|MSIMG32.DLL|MSRATING.DLL|MSTASK.DLL|
38-
|MSVFW32.DLL|MSWSOCK.DLL|MTXEX.DLL|NDDEAPI.DLL|
39-
|NETAPI32.DLL|NPPTOOLS.DLL|NTDSAPI.DLL|NTDSBCLI.DLL|
40-
|NTMSAPI.DLL|ODBC32.DLL|ODBCBCP.DLL|OLE32.DLL|
41-
|OLEACC.DLL|OLEAUT32.DLL|OLEDLG.DLL|OPENGL32.DLL|
42-
|PDH.DLL|POWRPROF.DLL|QOSNAME.DLL|QUERY.DLL|
43-
|RASAPI32.DLL|RASDLG.DLL|RASSAPI.DLL|RESUTILS.DLL|
44-
|RICHED20.DLL|RPCNS4.DLL|RPCRT4.DLL|RTM.DLL|
45-
|RTUTILS.DLL|SCARDDLG.DLL|SECUR32.DLL|SENSAPI.DLL|
46-
|SETUPAPI.DLL|SFC.DLL|SHELL32.DLL|SHFOLDER.DLL|
47-
|SHLWAPI.DLL|SISBKUP.DLL|SNMPAPI.DLL|SRCLIENT.DLL|
48-
|STI.DLL|TAPI32.DLL|TRAFFIC.DLL|URL.DLL|
49-
|URLMON.DLL|USER32.DLL|USERENV.DLL|USP10.DLL|
50-
|UXTHEME.DLL|VDMDBG.DLL|VERSION.DLL|WINFAX.DLL|
51-
|WINHTTP.DLL|WININET.DLL|WINMM.DLL|WINSCARD.DLL|
52-
|WINTRUST.DLL|WLDAP32.DLL|WOW32.DLL|WS2_32.DLL|
53-
|WSNMP32.DLL|WSOCK32.DLL|WTSAPI32.DLL|XOLEHLP.DLL|
22+
You can minimize the performance impact by linking with **/CLRSUPPORTLASTERROR:SYSTEMDLL**, which only preserves the last error code for functions in system DLLs.
5423

5524
> [!NOTE]
5625
> Preserving the last error is not supported for unmanaged functions that are consumed by CLR code, in the same module.

docs/build/x64-software-conventions.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,21 @@ Although it's possible to access data with any alignment, it's recommended to al
3636

3737
- Octaword - 128 bits
3838

39-
|||||
40-
|-|-|-|-|
4139
|Scalar Type|C Data Type|Storage Size (in bytes)|Recommended Alignment|
42-
|**INT8**|**`char`**|1|Byte|
43-
|**UINT8**|**`unsigned char`**|1|Byte|
44-
|**INT16**|**`short`**|2|Word|
45-
|**UINT16**|**`unsigned short`**|2|Word|
46-
|**INT32**|**`int`**, **`long`**|4|Doubleword|
47-
|**UINT32**|**unsigned int, unsigned long**|4|Doubleword|
48-
|**INT64**|**`__int64`**|8|Quadword|
49-
|**UINT64**|**unsigned __int64**|8|Quadword|
50-
|**FP32 (single precision)**|**`float`**|4|Doubleword|
51-
|**FP64 (double precision)**|**`double`**|8|Quadword|
52-
|**POINTER**|__\*__|8|Quadword|
53-
|**`__m64`**|**struct __m64**|8|Quadword|
54-
|**`__m128`**|**struct __m128**|16|Octaword|
40+
|-|-|-|-|
41+
|**`INT8`**|**`char`**|1|Byte|
42+
|**`UINT8`**|**`unsigned char`**|1|Byte|
43+
|**`INT16`**|**`short`**|2|Word|
44+
|**`UINT16`**|**`unsigned short`**|2|Word|
45+
|**`INT32`**|**`int`**, **`long`**|4|Doubleword|
46+
|**`UINT32`**|**`unsigned int`**, **`unsigned long`**|4|Doubleword|
47+
|**`INT64`**|**`__int64`**|8|Quadword|
48+
|**`UINT64`**|**`unsigned __int64`**|8|Quadword|
49+
|**`FP32`** (single precision)|**`float`**|4|Doubleword|
50+
|**`FP64`** (double precision)|**`double`**|8|Quadword|
51+
|**`POINTER`**|__\*__|8|Quadword|
52+
|**`__m64`**|**`struct __m64`**|8|Quadword|
53+
|**`__m128`**|**`struct __m128`**|16|Octaword|
5554

5655
### Aggregates and unions
5756

@@ -71,22 +70,21 @@ Other types, such as arrays, structs, and unions, have stricter alignment requir
7170

7271
The following table shows the strongly suggested alignment for the scalar members of unions and structures.
7372

74-
||||
75-
|-|-|-|
7673
|Scalar Type|C Data Type|Required Alignment|
77-
|**INT8**|**`char`**|Byte|
78-
|**UINT8**|**`unsigned char`**|Byte|
79-
|**INT16**|**`short`**|Word|
80-
|**UINT16**|**`unsigned short`**|Word|
81-
|**INT32**|**`int`**, **`long`**|Doubleword|
82-
|**UINT32**|**unsigned int, unsigned long**|Doubleword|
83-
|**INT64**|**`__int64`**|Quadword|
84-
|**UINT64**|**unsigned __int64**|Quadword|
85-
|**FP32 (single precision)**|**`float`**|Doubleword|
86-
|**FP64 (double precision)**|**`double`**|Quadword|
87-
|**POINTER**|<strong>\*</strong>|Quadword|
88-
|**`__m64`**|**struct __m64**|Quadword|
89-
|**`__m128`**|**struct __m128**|Octaword|
74+
|-|-|-|
75+
|**`INT8`**|**`char`**|Byte|
76+
|**`UINT8`**|**`unsigned char`**|Byte|
77+
|**`INT16`**|**`short`**|Word|
78+
|**`UINT16`**|**`unsigned short`**|Word|
79+
|**`INT32`**|**`int`**, **`long`**|Doubleword|
80+
|**`UINT32`**|**`unsigned int`**, **`unsigned long`**|Doubleword|
81+
|**`INT64`**|**`__int64`**|Quadword|
82+
|**`UINT64`**|**`unsigned __int64`**|Quadword|
83+
|**`FP32`** (single precision)|**`float`**|Doubleword|
84+
|**`FP64`** (double precision)|**`double`**|Quadword|
85+
|**`POINTER`**|<strong>\*</strong>|Quadword|
86+
|**`__m64`**|**`struct __m64`**|Quadword|
87+
|**`__m128`**|**`struct __m128`**|Octaword|
9088

9189
The following aggregate alignment rules apply:
9290

docs/c-language/pragmas.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@ ms.assetid: 3ce8aced-53ee-4524-87d0-f998d6977ff5
1010

1111
The following [C Pragmas](../c-language/c-pragmas.md) are defined for the Microsoft C compiler:
1212

13-
|||||
14-
|-|-|-|-|
15-
|[alloc_text](../preprocessor/alloc-text.md)|[data_seg](../preprocessor/data-seg.md)|[include_alias](../preprocessor/include-alias.md)|[setlocale](../preprocessor/setlocale.md)|
16-
|[auto_inline](../preprocessor/auto-inline.md)|[function](../preprocessor/function-c-cpp.md)|[intrinsic](../preprocessor/intrinsic.md)|[warning](../preprocessor/warning.md)|
17-
|[check_stack](../preprocessor/check-stack.md)|[hdrstop](../preprocessor/hdrstop.md)|[message](../preprocessor/message.md)||
18-
|[code_seg](../preprocessor/code-seg.md)|[inline_depth](../preprocessor/inline-depth.md)|[optimize](../preprocessor/optimize.md)||
19-
|[comment](../preprocessor/comment-c-cpp.md)|[inline_recursion](../preprocessor/inline-recursion.md)|[pack](../preprocessor/pack.md)||
13+
:::row:::
14+
:::column span="":::
15+
[alloc_text](../preprocessor/alloc-text.md)<br/>[auto_inline](../preprocessor/auto-inline.md)<br/>[check_stack](../preprocessor/check-stack.md)<br/>[code_seg](../preprocessor/code-seg.md)<br/>[comment](../preprocessor/comment-c-cpp.md)
16+
:::column-end:::
17+
:::column span="":::
18+
[data_seg](../preprocessor/data-seg.md)<br/>[function](../preprocessor/function-c-cpp.md)<br/>[hdrstop](../preprocessor/hdrstop.md)<br/>[include_alias](../preprocessor/include-alias.md)
19+
:::column-end:::
20+
:::column span="":::
21+
[inline_depth](../preprocessor/inline-depth.md)<br/>[inline_recursion](../preprocessor/inline-recursion.md)<br/>[intrinsic](../preprocessor/intrinsic.md)<br/>[message](../preprocessor/message.md)
22+
:::column-end:::
23+
:::column span="":::
24+
[optimize](../preprocessor/optimize.md)<br/>[pack](../preprocessor/pack.md)<br/>[setlocale](../preprocessor/setlocale.md)<br/>[warning](../preprocessor/warning.md)
25+
:::column-end:::
26+
:::row-end:::
2027

2128
## See also
2229

docs/c-runtime-library/reference/bsearch-s.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ If invalid parameters are passed to the function, it invokes the invalid paramet
5454

5555
### Error conditions
5656

57-
|||||||
57+
|*key*|*base*|*compare*|*number*|*width*|**`errno`**|
5858
|-|-|-|-|-|-|
59-
|*key*|*base*|*compare*|*number*|*width*|**errno**|
6059
|**NULL**|any|any|any|any|**EINVAL**|
6160
|any|**NULL**|any|!= 0|any|**EINVAL**|
6261
|any|any|any|any|= 0|**EINVAL**|

docs/c-runtime-library/reference/malloc.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,20 @@ The **malloc** function allocates a memory block of at least *size* bytes. The b
3838

3939
The startup code uses **malloc** to allocate storage for the **_environ**, *envp*, and *argv* variables. The following functions and their wide-character counterparts also call **malloc**.
4040

41-
|||||
42-
|-|-|-|-|
43-
|[calloc](calloc.md)|[fscanf](fscanf-fscanf-l-fwscanf-fwscanf-l.md)|[_getw](getw.md)|[setvbuf](setvbuf.md)|
44-
|[_exec functions](../../c-runtime-library/exec-wexec-functions.md)|[fseek](fseek-fseeki64.md)|[_popen](popen-wpopen.md)|[_spawn functions](../../c-runtime-library/spawn-wspawn-functions.md)|
45-
|[fgetc](fgetc-fgetwc.md)|[fsetpos](fsetpos.md)|[printf](printf-printf-l-wprintf-wprintf-l.md)|[_strdup](strdup-wcsdup-mbsdup.md)|
46-
|[_fgetchar](fgetc-fgetwc.md)|[_fullpath](fullpath-wfullpath.md)|[putc](putc-putwc.md)|[system](system-wsystem.md)|
47-
|[fgets](fgets-fgetws.md)|[fwrite](fwrite.md)|[putchar](putc-putwc.md)|[_tempnam](tempnam-wtempnam-tmpnam-wtmpnam.md)|
48-
|[fprintf](fprintf-fprintf-l-fwprintf-fwprintf-l.md)|[getc](getc-getwc.md)|[_putenv](putenv-wputenv.md)|[ungetc](ungetc-ungetwc.md)|
49-
|[fputc](fputc-fputwc.md)|[getchar](getc-getwc.md)|[puts](puts-putws.md)|[vfprintf](vfprintf-vfprintf-l-vfwprintf-vfwprintf-l.md)|
50-
|[_fputchar](fputc-fputwc.md)|[_getcwd](getcwd-wgetcwd.md)|[_putw](putw.md)|[vprintf](vprintf-vprintf-l-vwprintf-vwprintf-l.md)|
51-
|[fputs](fputs-fputws.md)|[_getdcwd](getcwd-wgetcwd.md)|[scanf](scanf-scanf-l-wscanf-wscanf-l.md)||
52-
|[fread](fread.md)|[gets](../../c-runtime-library/gets-getws.md)|[_searchenv](searchenv-wsearchenv.md)||
41+
:::row:::
42+
:::column span="":::
43+
[calloc](calloc.md)<br/>[_exec functions](../../c-runtime-library/exec-wexec-functions.md)<br/>[fgetc](fgetc-fgetwc.md)<br/>[_fgetchar](fgetc-fgetwc.md)<br/>[fgets](fgets-fgetws.md)<br/>[fprintf](fprintf-fprintf-l-fwprintf-fwprintf-l.md)<br/>[fputc](fputc-fputwc.md)<br/>[_fputchar](fputc-fputwc.md)<br/>[fputs](fputs-fputws.md)<br/>[fread](fread.md)
44+
:::column-end:::
45+
:::column span="":::
46+
[fscanf](fscanf-fscanf-l-fwscanf-fwscanf-l.md)<br/>[fseek](fseek-fseeki64.md)<br/>[fsetpos](fsetpos.md)<br/>[_fullpath](fullpath-wfullpath.md)<br/>[fwrite](fwrite.md)<br/>[getc](getc-getwc.md)<br/>[getchar](getc-getwc.md)<br/>[_getcwd](getcwd-wgetcwd.md)<br/>[_getdcwd](getcwd-wgetcwd.md)<br/>[gets](../../c-runtime-library/gets-getws.md)
47+
:::column-end:::
48+
:::column span="":::
49+
[_getw](getw.md)<br/>[_popen](popen-wpopen.md)<br/>[printf](printf-printf-l-wprintf-wprintf-l.md)<br/>[putc](putc-putwc.md)<br/>[putchar](putc-putwc.md)<br/>[_putenv](putenv-wputenv.md)<br/>[puts](puts-putws.md)<br/>[_putw](putw.md)<br/>[scanf](scanf-scanf-l-wscanf-wscanf-l.md)
50+
:::column-end:::
51+
:::column span="":::
52+
[_searchenv](searchenv-wsearchenv.md)<br/>[setvbuf](setvbuf.md)<br/>[_spawn functions](../../c-runtime-library/spawn-wspawn-functions.md)<br/>[_strdup](strdup-wcsdup-mbsdup.md)<br/>[system](system-wsystem.md)<br/>[_tempnam](tempnam-wtempnam-tmpnam-wtmpnam.md)<br/>[ungetc](ungetc-ungetwc.md)<br/>[vfprintf](vfprintf-vfprintf-l-vfwprintf-vfwprintf-l.md)<br/>[vprintf](vprintf-vprintf-l-vwprintf-vwprintf-l.md)
53+
:::column-end:::
54+
:::row-end:::
5355

5456
The C++ [_set_new_mode](set-new-mode.md) function sets the new handler mode for **malloc**. The new handler mode indicates whether, on failure, **malloc** is to call the new handler routine as set by [_set_new_handler](set-new-handler.md). By default, **malloc** does not call the new handler routine on failure to allocate memory. You can override this default behavior so that, when **malloc** fails to allocate memory, **malloc** calls the new handler routine in the same way that the **`new`** operator does when it fails for the same reason. To override the default, call `_set_new_mode(1)` early in your program, or link with NEWMODE.OBJ (see [Link Options](../../c-runtime-library/link-options.md)).
5557

docs/c-runtime-library/reference/tmpnam-s-wtmpnam-s.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ Both of these functions return 0 if successful or an error number on failure.
4848

4949
### Error Conditions
5050

51-
|||||
52-
|-|-|-|-|
5351
|*str*|*sizeInChars*|**Return Value**|**Contents of** *str*|
52+
|-|-|-|-|
5453
|**NULL**|any|**EINVAL**|not modified|
5554
|not **NULL** (points to valid memory)|too short|**ERANGE**|not modified|
5655

docs/intrinsics/x64-amd64-intrinsics-list.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/intrinsics/x86-intrinsics-list.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/mfc/reference/afx-messages.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ These messages are used in MFC.
1313

1414
The following table lists messages that are used in the MFC library:
1515

16-
||||||
17-
|-|-|-|-|-|
1816
|Message|Description|[in] *wParam*|*lParam* (All parameters are [in] unless otherwise stated.)|Return Value|
17+
|-|-|-|-|-|
1918
|AFX_WM_ACCGETOBJECT|Not used.|Not used.|Not applicable.|Not applicable.|
2019
|AFX_WM_ACCGETSTATE|Used for accessibility support. Send this message to `CMFCPopupMenu` or `CMFCRibbonPanelMenu` to retrieve the state of the current element.|Index of element, which could be a menu button or separator.|Not used.|The element state. It is -1 if the index is invalid, 0 if the menu button has no special attributes. Otherwise it is a combination of the following flags:<br /><br /> TBBS_DISABLED — item is disabled<br /><br /> TBBS_CHECKED — item is checked<br /><br /> TBBS_BUTTON — the item is a standard pushbutton<br /><br /> TBBS_PRESSED — button is pressed<br /><br /> TBBS_INDETERMINATE — undefined state<br /><br /> TBBS_SEPARATOR - rather than a menu button, this element forms a separation between other menu items|
2120
|AFX_WM_CHANGE_ACTIVE_TAB|The framework sends this message to the resizable control bar control. Process this message to receive notifications from `CMFCTabCtrl` objects when a user changes an active tab.|The index of a tab.|Not used.|Nonzero.|

0 commit comments

Comments
 (0)