From c291f18e19e55fc0ea66575ea41242ca0e62a526 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 7 Feb 2024 04:31:33 +0100 Subject: [PATCH] Annotation fixes --- CONFIG/AboutDlg.h | 3 +++ CONFIG/ConfigCommandLineInfo.h | 5 ++++- CONFIG/MainDlg.h | 3 +++ CONFIG/config.h | 4 ++++ tools/decomplint/decomplint.py | 5 +++-- tools/vtable/vtable.py | 2 ++ 6 files changed, 19 insertions(+), 3 deletions(-) mode change 100644 => 100755 tools/vtable/vtable.py diff --git a/CONFIG/AboutDlg.h b/CONFIG/AboutDlg.h index 16e07b2b..4c5c9e59 100644 --- a/CONFIG/AboutDlg.h +++ b/CONFIG/AboutDlg.h @@ -35,6 +35,9 @@ class CAboutDialog : public CDialog { DECLARE_MESSAGE_MAP() }; +// SYNTHETIC: CONFIG 0x00403cb0 +// CAboutDialog::`scalar deleting destructor' + // FUNCTION: CONFIG 0x00403d40 // CAboutDialog::GetMessageMap diff --git a/CONFIG/ConfigCommandLineInfo.h b/CONFIG/ConfigCommandLineInfo.h index 7fd24f22..d7b88ac9 100644 --- a/CONFIG/ConfigCommandLineInfo.h +++ b/CONFIG/ConfigCommandLineInfo.h @@ -7,7 +7,7 @@ #include -// VTABLE CONFIG 0x004060e8 +// VTABLE: CONFIG 0x004060e8 // SIZE 0x24 class CConfigCommandLineInfo : public CCommandLineInfo { public: @@ -16,4 +16,7 @@ class CConfigCommandLineInfo : public CCommandLineInfo { void ParseParam(LPCSTR pszParam, BOOL bFlag, BOOL bLast) override; }; +// SYNTHETIC: CONFIG 0x00403b80 +// CConfigCommandLineInfo::`scalar deleting destructor' + #endif // !defined(AFX_CONFIGCOMMANDLINEINFO_H) diff --git a/CONFIG/MainDlg.h b/CONFIG/MainDlg.h index e2d0e99f..5abfaf5a 100644 --- a/CONFIG/MainDlg.h +++ b/CONFIG/MainDlg.h @@ -62,6 +62,9 @@ class CMainDialog : public CDialog { DECLARE_MESSAGE_MAP() }; +// SYNTHETIC: CONFIG 0x00403de0 +// CMainDialog::`scalar deleting destructor' + // FUNCTION: CONFIG 0x00403e70 // CMainDialog::GetMessageMap diff --git a/CONFIG/config.h b/CONFIG/config.h index 19b2b793..def95ec2 100644 --- a/CONFIG/config.h +++ b/CONFIG/config.h @@ -13,6 +13,7 @@ struct MxDriver; #define currentConfigApp ((CConfigApp*) afxCurrentWinApp) +// VTABLE: CONFIG 0x00406040 // SIZE 0x108 class CConfigApp : public CWinApp { public: @@ -75,6 +76,9 @@ class CConfigApp : public CWinApp { BOOL m_music; // 0x104 }; +// SYNTHETIC: CONFIG 0x00402cd0 +// CConfigApp::`scalar deleting destructor' + // FUNCTION: CONFIG 0x402c30 // CConfigApp::GetMessageMap diff --git a/tools/decomplint/decomplint.py b/tools/decomplint/decomplint.py index 6aa28012..cfe9155b 100755 --- a/tools/decomplint/decomplint.py +++ b/tools/decomplint/decomplint.py @@ -94,8 +94,9 @@ def main(): would_fail = error_count > 0 or (warning_count > 0 and args.warnfail) if would_fail: - sys.exit(1) + return 1 + return 0 if __name__ == "__main__": - main() + raise SystemExit(main()) diff --git a/tools/vtable/vtable.py b/tools/vtable/vtable.py old mode 100644 new mode 100755 index bdee080b..2c47d1d5 --- a/tools/vtable/vtable.py +++ b/tools/vtable/vtable.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import os import argparse import logging