mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-12 00:07:24 -06:00
Replace old C headers (xxx.h) with modern ones (cxxx) (#5080)
This commit is contained in:
parent
b24579d2b0
commit
02d5f90837
@ -202,6 +202,7 @@ capslock
|
|||||||
CARETBLINKINGENABLED
|
CARETBLINKINGENABLED
|
||||||
CARRIAGERETURN
|
CARRIAGERETURN
|
||||||
cascadia
|
cascadia
|
||||||
|
cassert
|
||||||
catid
|
catid
|
||||||
cazamor
|
cazamor
|
||||||
CBash
|
CBash
|
||||||
@ -268,12 +269,14 @@ clipbrd
|
|||||||
CLIPCHILDREN
|
CLIPCHILDREN
|
||||||
CLIPSIBLINGS
|
CLIPSIBLINGS
|
||||||
cliutils
|
cliutils
|
||||||
|
clocale
|
||||||
closetest
|
closetest
|
||||||
cloudconsole
|
cloudconsole
|
||||||
cls
|
cls
|
||||||
CLSCTX
|
CLSCTX
|
||||||
clsid
|
clsid
|
||||||
CLUSTERMAP
|
CLUSTERMAP
|
||||||
|
cmath
|
||||||
cmatrix
|
cmatrix
|
||||||
cmder
|
cmder
|
||||||
CMDEXT
|
CMDEXT
|
||||||
@ -416,12 +419,16 @@ Csr
|
|||||||
csrmsg
|
csrmsg
|
||||||
CSRSS
|
CSRSS
|
||||||
csrutil
|
csrutil
|
||||||
|
cstdarg
|
||||||
|
cstddef
|
||||||
cstdio
|
cstdio
|
||||||
|
cstdlib
|
||||||
cstr
|
cstr
|
||||||
cstring
|
cstring
|
||||||
cstyle
|
cstyle
|
||||||
CSwitch
|
CSwitch
|
||||||
CText
|
CText
|
||||||
|
ctime
|
||||||
ctl
|
ctl
|
||||||
ctlseqs
|
ctlseqs
|
||||||
Ctlv
|
Ctlv
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include "targetver.h"
|
#include "targetver.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
// TODO: reference additional headers your program requires here
|
// TODO: reference additional headers your program requires here
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
#include "AzureConnection.h"
|
#include "AzureConnection.h"
|
||||||
#include "AzureClientID.h"
|
#include "AzureClientID.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <LibraryResources.h>
|
#include <LibraryResources.h>
|
||||||
#include <unicode.hpp>
|
#include <unicode.hpp>
|
||||||
|
|
||||||
|
|||||||
@ -25,8 +25,8 @@ Abstract:
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <UIAutomation.h>
|
#include <UIAutomation.h>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <shellscalingapi.h>
|
#include <shellscalingapi.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ Author(s):
|
|||||||
|
|
||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
#include "..\inc\conattrs.hpp"
|
#include "..\inc\conattrs.hpp"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
struct _HSL
|
struct _HSL
|
||||||
{
|
{
|
||||||
|
|||||||
@ -56,7 +56,7 @@ Abstract:
|
|||||||
#include <intsafe.h>
|
#include <intsafe.h>
|
||||||
#pragma prefast(pop)
|
#pragma prefast(pop)
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
#include "utils.hpp"
|
#include "utils.hpp"
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
#include "handle.h"
|
#include "handle.h"
|
||||||
#include "../buffer/out/CharRow.hpp"
|
#include "../buffer/out/CharRow.hpp"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "../interactivity/inc/ServiceLocator.hpp"
|
#include "../interactivity/inc/ServiceLocator.hpp"
|
||||||
#include "../types/inc/Viewport.hpp"
|
#include "../types/inc/Viewport.hpp"
|
||||||
#include "../types/inc/GlyphWidth.hpp"
|
#include "../types/inc/GlyphWidth.hpp"
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include <Intsafe.h>
|
#include <Intsafe.h>
|
||||||
#include "Shlwapi.h"
|
#include "Shlwapi.h"
|
||||||
#include "telemetry.hpp"
|
#include "telemetry.hpp"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
#include "history.h"
|
#include "history.h"
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
#include "utils.hpp"
|
#include "utils.hpp"
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
|||||||
@ -27,9 +27,9 @@
|
|||||||
#include "LibraryIncludes.h"
|
#include "LibraryIncludes.h"
|
||||||
|
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#include <winconp.h>
|
#include <winconp.h>
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
#include <intsafe.h>
|
#include <intsafe.h>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
|
||||||
#include "strid.h"
|
#include "strid.h"
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
#include "..\host\conddkrefs.h"
|
#include "..\host\conddkrefs.h"
|
||||||
#include <condrv.h>
|
#include <condrv.h>
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|||||||
@ -10,7 +10,7 @@ Abstract:
|
|||||||
- Avoid including internal project headers. Instead include them only in the classes that need them (helps with test project building).
|
- Avoid including internal project headers. Instead include them only in the classes that need them (helps with test project building).
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <sal.h>
|
#include <sal.h>
|
||||||
|
|
||||||
// This includes support libraries from the CRT, STL, WIL, and GSL
|
// This includes support libraries from the CRT, STL, WIL, and GSL
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include "wincon.h"
|
#include "wincon.h"
|
||||||
|
|
||||||
int CALLBACK EnumFontFamiliesExProc(ENUMLOGFONTEX* lpelfe, NEWTEXTMETRICEX* lpntme, int FontType, LPARAM lParam)
|
int CALLBACK EnumFontFamiliesExProc(ENUMLOGFONTEX* lpelfe, NEWTEXTMETRICEX* lpntme, int FontType, LPARAM lParam)
|
||||||
|
|||||||
@ -10,7 +10,7 @@ Abstract:
|
|||||||
- Avoid including internal project headers. Instead include them only in the classes that need them (helps with test project building).
|
- Avoid including internal project headers. Instead include them only in the classes that need them (helps with test project building).
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <sal.h>
|
#include <sal.h>
|
||||||
|
|
||||||
// This includes support libraries from the CRT, STL, WIL, and GSL
|
// This includes support libraries from the CRT, STL, WIL, and GSL
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
// For _vcprintf
|
// For _vcprintf
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
|
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <condrv.h>
|
#include <condrv.h>
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
|
|||||||
@ -13,7 +13,7 @@ Abstract:
|
|||||||
// This includes support libraries from the CRT, STL, WIL, and GSL
|
// This includes support libraries from the CRT, STL, WIL, and GSL
|
||||||
#include "LibraryIncludes.h"
|
#include "LibraryIncludes.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#define ENABLE_INTSAFE_SIGNED_FUNCTIONS
|
#define ENABLE_INTSAFE_SIGNED_FUNCTIONS
|
||||||
#include <intsafe.h>
|
#include <intsafe.h>
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
|
|
||||||
#pragma warning(disable : 4505)
|
#pragma warning(disable : 4505)
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
// This includes support libraries from the CRT, STL, WIL, and GSL
|
// This includes support libraries from the CRT, STL, WIL, and GSL
|
||||||
#include "LibraryIncludes.h"
|
#include "LibraryIncludes.h"
|
||||||
|
|||||||
@ -18,8 +18,8 @@ Abstract:
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
// This includes support libraries from the CRT, STL, WIL, and GSL
|
// This includes support libraries from the CRT, STL, WIL, and GSL
|
||||||
#include "LibraryIncludes.h"
|
#include "LibraryIncludes.h"
|
||||||
|
|||||||
@ -14,7 +14,7 @@ Abstract:
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winmeta.h>
|
#include <winmeta.h>
|
||||||
#include <TraceLoggingProvider.h>
|
#include <TraceLoggingProvider.h>
|
||||||
#include "limits.h"
|
#include "climits"
|
||||||
|
|
||||||
TRACELOGGING_DECLARE_PROVIDER(g_hConsoleVirtTermParserEventTraceProvider);
|
TRACELOGGING_DECLARE_PROVIDER(g_hConsoleVirtTermParserEventTraceProvider);
|
||||||
|
|
||||||
|
|||||||
@ -7,15 +7,15 @@
|
|||||||
#include <wil\resource.h>
|
#include <wil\resource.h>
|
||||||
#include <wil\wistd_functional.h>
|
#include <wil\wistd_functional.h>
|
||||||
#include <wil\wistd_memory.h>
|
#include <wil\wistd_memory.h>
|
||||||
#include <stdlib.h> /* srand, rand */
|
#include <cstdlib> /* srand, rand */
|
||||||
#include <time.h> /* time */
|
#include <ctime> /* time */
|
||||||
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@ -193,12 +193,12 @@ EXAMPLE 3: race condition between process cleanup and close signaling
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <locale.h>
|
#include <clocale>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|||||||
@ -6,10 +6,10 @@
|
|||||||
// System headers
|
// System headers
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
// Standard library C-style
|
// Standard C++ library
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <Stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <appmodel.h>
|
#include <appmodel.h>
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
|
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
#include <ntrtl.h>
|
#include <ntrtl.h>
|
||||||
#include <nturtl.h>
|
#include <nturtl.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <propvarutil.h>
|
#include <propvarutil.h>
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#include <nturtl.h>
|
#include <nturtl.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <propvarutil.h>
|
#include <propvarutil.h>
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
@ -22,9 +22,9 @@
|
|||||||
#include <sal.h>
|
#include <sal.h>
|
||||||
|
|
||||||
// Standard library C-style
|
// Standard library C-style
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
// This includes support libraries from the CRT, STL, WIL, and GSL
|
// This includes support libraries from the CRT, STL, WIL, and GSL
|
||||||
#include "LibraryIncludes.h"
|
#include "LibraryIncludes.h"
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
#include <ntrtl.h>
|
#include <ntrtl.h>
|
||||||
#include <nturtl.h>
|
#include <nturtl.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#include <propvarutil.h>
|
#include <propvarutil.h>
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
|
|||||||
@ -4,15 +4,15 @@
|
|||||||
#include "..\..\inc\conpty.h"
|
#include "..\..\inc\conpty.h"
|
||||||
#include "VtConsole.hpp"
|
#include "VtConsole.hpp"
|
||||||
|
|
||||||
#include <stdlib.h> /* srand, rand */
|
#include <cstdlib> /* srand, rand */
|
||||||
#include <time.h> /* time */
|
#include <ctime> /* time */
|
||||||
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
#include <wincon.h>
|
#include <wincon.h>
|
||||||
|
|
||||||
VtConsole::VtConsole(PipeReadCallback const pfnReadCallback,
|
VtConsole::VtConsole(PipeReadCallback const pfnReadCallback,
|
||||||
|
|||||||
@ -7,15 +7,15 @@
|
|||||||
#include <wil\resource.h>
|
#include <wil\resource.h>
|
||||||
#include <wil\wistd_functional.h>
|
#include <wil\wistd_functional.h>
|
||||||
#include <wil\wistd_memory.h>
|
#include <wil\wistd_memory.h>
|
||||||
#include <stdlib.h> /* srand, rand */
|
#include <cstdlib> /* srand, rand */
|
||||||
#include <time.h> /* time */
|
#include <ctime> /* time */
|
||||||
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <assert.h>
|
#include <cassert>
|
||||||
|
|
||||||
#include "VtConsole.hpp"
|
#include "VtConsole.hpp"
|
||||||
|
|
||||||
|
|||||||
@ -22,22 +22,22 @@ Notes:
|
|||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
|
|
||||||
#define _OLEAUT32_
|
#define _OLEAUT32_
|
||||||
#include <windows.h>
|
|
||||||
#include <ole2.h>
|
#include <ole2.h>
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <winuser.h>
|
#include <winuser.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
#include <ime.h>
|
#include <ime.h>
|
||||||
#include <strsafe.h>
|
|
||||||
#include <intsafe.h>
|
#include <intsafe.h>
|
||||||
|
#include <strsafe.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <climits>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include <msctf.h> // Cicero header
|
#include <msctf.h> // Cicero header
|
||||||
#include <tsattrs.h> // ITextStore standard attributes
|
#include <tsattrs.h> // ITextStore standard attributes
|
||||||
|
|
||||||
@ -48,5 +48,5 @@ extern "C" {
|
|||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#include "TfCtxtComp.h"
|
|
||||||
#include "ConsoleTSF.h"
|
#include "ConsoleTSF.h"
|
||||||
|
#include "TfCtxtComp.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user