Skip to content

Commit

Permalink
Also rename incorrectly capitalized .h extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Oct 27, 2024
1 parent 650dac4 commit f3d7cef
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Pythonwin/win32win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generates Windows .hlp files.
#include "win32cmdui.h"
#include "win32rgn.h"
#include "reswin32ui.h"
#include "AFXSTAT_.H"
#include "afxstat_.h"

static char *szErrMsgBadHandle = "The window handle does not specify a valid window";
#define CHECK_HWND_VALID(pWnd) \
Expand Down
4 changes: 2 additions & 2 deletions com/win32com/makegw/makegw.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
any result values.
This module automates the generation of such code. It has the ability to
parse a .H file generated by the MIDL tool (ie, almost all COM .h files)
parse a .h file generated by the MIDL tool (ie, almost all COM .h files)
and build almost totally complete C++ code.
The module understands some of the well known data types, and how to
Expand Down Expand Up @@ -61,7 +61,7 @@ def make_framework_support(
):
"""Generate C++ code for a Python Interface and Gateway
header_file_name -- The full path to the .H file which defines the interface.
header_file_name -- The full path to the .h file which defines the interface.
interface_name -- The name of the interface to search for, and to generate.
bMakeInterface = 1 -- Should interface (ie, client) support be generated.
bMakeGatewayInterface = 1 -- Should gateway (ie, server) support be generated.
Expand Down
2 changes: 1 addition & 1 deletion com/win32com/olectl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Constants used by COM Controls
Hand created version of OLECTL.H constants.
Hand created version of olectl.h constants.
"""

import winerror
Expand Down
2 changes: 1 addition & 1 deletion com/win32com/src/ErrorUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ LPCTSTR GetFacilityString(HRESULT hr)
_T("FACILITY_0x06"),
_T("FACILITY_WIN32"),
_T("FACILITY_WINDOWS"),
_T("FACILITY_SSPI/FACILITY_MQ"), // SSPI from ADSERR.H, MQ from mq.h
_T("FACILITY_SSPI/FACILITY_MQ"), // SSPI from AdsErr.h, MQ from mq.h
_T("FACILITY_CONTROL"),
_T("FACILITY_EDK"),
_T("FACILITY_INTERNET"),
Expand Down
4 changes: 2 additions & 2 deletions com/win32comext/adsi/src/PyADSIUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,11 @@ BOOL PyADSIObject_AsADS_SEARCHPREF_INFOs(PyObject *ob, ADS_SEARCHPREF_INFO **ppr
//
// Error string utility.
//
// ADSERR.h is built from a message file.
// AdsErr.h is built from a message file.
// Therefore, there _must_ be a DLL around we can call
// FormatMessage with.
// However, it's not obvious, and this code was cut directly from MSDN.
#include "adserr.h"
#include "AdsErr.h"
typedef struct tagADSERRMSG {
HRESULT hr;
LPCWSTR pszError;
Expand Down
2 changes: 1 addition & 1 deletion com/win32comext/axscript/src/GUIDS.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/*
* FILENAME:
* guids.h
* GUIDs.h
*
* DESCRIPTION:
* GUID definitions for the project.
Expand Down
8 changes: 4 additions & 4 deletions com/win32comext/axscript/src/GUIDS.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* FILENAME:
* guids.cpp
* GUIDs.cpp
*
* DESCRIPTION:
* Define the guids used by the project. Both internally defined
* guids as well as guids from external sources.
* Define the GUIDs used by the project. Both internally defined
* GUIDs as well as GUIDs from external sources.
*/
#include <objbase.h>
#pragma data_seg(".text")
Expand All @@ -17,7 +17,7 @@
#endif

// === Project Guids ===
#include "GUIDS.H"
#include "GUIDs.h"
// NOTE - The standard "activscp.h" header is not good enough -
// need to use IE4 SDK or MSVC6 etc
#include "activscp.h"
Expand Down
2 changes: 1 addition & 1 deletion com/win32comext/mapi/mapitags.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def PROP_TAG(ulPropType, ulPropID):
PROP_ID_SECURE_MIN = 26608
PROP_ID_SECURE_MAX = 26623

# From EDKMDB.H
# From EdkMdb.h
pidExchangeXmitReservedMin = 16352
pidExchangeNonXmitReservedMin = 26080
pidProfileMin = 26112
Expand Down
2 changes: 1 addition & 1 deletion com/win32comext/mapi/src/PyIExchangeManageStore.i
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%include "mapilib.i"

%{
#include <edkmdb.h>
#include <EdkMdb.h>
#define INITGUID
#include <initguid.h>
#define USES_IID_IExchangeManageStore
Expand Down
10 changes: 5 additions & 5 deletions com/win32comext/mapi/src/exchange.i
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include "PythonCOMServer.h"
#include "PythonCOMRegister.h"

#include "MAPIUTIL.H"
#include "EDKMDB.H"
#include "MAPIUtil.h"
#include "EdkMdb.h"

#define USES_IID_IExchangeManageStore
#include <edkguid.h>
Expand Down Expand Up @@ -75,9 +75,9 @@ static int AddIID(PyObject *dict, const char *key, REFGUID guid)
*/
#ifdef SWIG_PY32BIT
%{
#include "EDKMAPI.H"
#include "EDKCFG.H"
#include "EDKUTILS.H"
#include "EdkMAPI.h"
#include "EdkCfg.h"
#include "EdkUtils.h"
%}

// @pyswig int, int|HrGetExchangeStatus|Obtains the current state of the server on a computer.
Expand Down
5 changes: 2 additions & 3 deletions com/win32comext/mapi/src/mapi.i
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@
#include "IConverterSession.h"
#include "PyIConverterSession.h"

#include "MAPISPI.H"
#include "MAPISPI.H"
#include "IMESSAGE.H"
#include "MAPISPI.h"
#include "IMessage.h"
#include "MSPST.h"

#include "extraMAPIGuids.h"
Expand Down
2 changes: 1 addition & 1 deletion isapi/src/pyISAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef __PYISAPI_H__
#define __PYISAPI_H__

// PYISAPI.H - Header file for your Internet Server
// pyISAPI.h - Header file for your Internet Server
// Python ISAPI Extension

#include "PythonEng.h"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ def finalize_options(self):
depends=(
"""
{axscript}/AXScript.h
{axscript}/guids.h {axscript}/PyGActiveScriptError.h
{axscript}/GUIDs.h {axscript}/PyGActiveScriptError.h
{axscript}/PyIActiveScriptError.h {axscript}/PyIObjectSafety.h
{axscript}/PyIProvideMultipleClassInfo.h
{axscript}/stdafx.h
Expand Down
2 changes: 1 addition & 1 deletion win32/Lib/commctrl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by h2py from COMMCTRL.H
# Generated by h2py from CommCtrl.h
WM_USER = 1024
ICC_LISTVIEW_CLASSES = 1 # listview, header
ICC_TREEVIEW_CLASSES = 2 # treeview, tooltips
Expand Down
2 changes: 1 addition & 1 deletion win32/src/_winxptheme.i
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "pywinobjects.h"
#include "windows.h"
#include "Uxtheme.h"
#include "commctrl.h"
#include "CommCtrl.h"


%}
Expand Down
2 changes: 1 addition & 1 deletion win32/src/stddde.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

//
// String names for some standard DDE strings not
// defined in DDEML.H
// defined in ddeml.h
//

#define SZ_READY "Ready"
Expand Down
2 changes: 1 addition & 1 deletion win32/src/win32dynamicdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "python.h"
#undef PyHANDLE
#include <windows.h>
#include "commctrl.h"
#include "CommCtrl.h"
#include "windowsx.h" // For edit control hacks.

#include "pywintypes.h"
Expand Down
2 changes: 1 addition & 1 deletion win32/src/win32gui.i
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#undef PyHANDLE
#include "pywinobjects.h"
#include "winuser.h"
#include "commctrl.h"
#include "CommCtrl.h"
#include "windowsx.h" // For edit control hacks.
#include "Dbt.h" // device notification
#include "malloc.h"
Expand Down
4 changes: 2 additions & 2 deletions win32/src/win32security.i
Original file line number Diff line number Diff line change
Expand Up @@ -1246,9 +1246,9 @@ done:
if it fails. If the SID can be constructed successfully,
a valid binary SID is returned.
This function requires TCHAR.H and the C runtime library.
This function requires tchar.h and the C runtime library.
The following are macros defined in TCHAR.H that allow this
The following are macros defined in tchar.h that allow this
function to be compiled with or without UNICODE defined. To
replace these macros with direct calls to their corresponding
ANSI functions first make sure this module is not compiled
Expand Down

0 comments on commit f3d7cef

Please sign in to comment.