Lint/format .inc files.

This commit is contained in:
gibbed 2021-06-28 19:36:43 -05:00 committed by Rick Gibbed
parent 8daef93207
commit 997d0555db
9 changed files with 14 additions and 17 deletions

View File

@ -2,13 +2,12 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
// Post-include file for an export table. // Post-include file for an export table.
#undef FLAG #undef FLAG
#undef XE_EXPORT #undef XE_EXPORT

View File

@ -2,7 +2,7 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
@ -22,8 +22,7 @@
* my_module_export_table, xe::countof(my_module_export_table)); * my_module_export_table, xe::countof(my_module_export_table));
*/ */
#define XE_EXPORT(module, ordinal, name, type) \ #define XE_EXPORT(module, ordinal, name, type) \
xe::cpu::Export(ordinal, xe::cpu::Export::Type::type, #name) xe::cpu::Export(ordinal, xe::cpu::Export::Type::type, #name)
#define FLAG(t) kXEKernelExportFlag##t #define FLAG(t) kXEKernelExportFlag##t

View File

@ -2,12 +2,11 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
// Post-include file for an ordinal table. // Post-include file for an ordinal table.
#undef XE_EXPORT #undef XE_EXPORT

View File

@ -2,7 +2,7 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
@ -21,7 +21,4 @@
* #include "xenia/kernel/util/ordinal_table_post.inc" * #include "xenia/kernel/util/ordinal_table_post.inc"
*/ */
#define XE_EXPORT(module, ordinal, name, type) name = ordinal
#define XE_EXPORT(module, ordinal, name, type) \
name = ordinal

View File

@ -2,7 +2,7 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2020 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */

View File

@ -2,7 +2,7 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
@ -10,6 +10,7 @@
// This is a partial file designed to be included by other files when // This is a partial file designed to be included by other files when
// constructing various tables. // constructing various tables.
// clang-format off
XE_EXPORT(xam, 0x00000001, NetDll_WSAStartup, kFunction), XE_EXPORT(xam, 0x00000001, NetDll_WSAStartup, kFunction),
XE_EXPORT(xam, 0x00000002, NetDll_WSACleanup, kFunction), XE_EXPORT(xam, 0x00000002, NetDll_WSACleanup, kFunction),

View File

@ -2,7 +2,7 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
@ -10,6 +10,7 @@
// This is a partial file designed to be included by other files when // This is a partial file designed to be included by other files when
// constructing various tables. // constructing various tables.
// clang-format off
XE_EXPORT(xbdm, 0x00000001, DmAllocatePool, kFunction), XE_EXPORT(xbdm, 0x00000001, DmAllocatePool, kFunction),
XE_EXPORT(xbdm, 0x00000002, DmAllocatePoolWithTag, kFunction), XE_EXPORT(xbdm, 0x00000002, DmAllocatePoolWithTag, kFunction),

View File

@ -2,7 +2,7 @@
****************************************************************************** ******************************************************************************
* Xenia : Xbox 360 Emulator Research Project * * Xenia : Xbox 360 Emulator Research Project *
****************************************************************************** ******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. * * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. * * Released under the BSD license - see LICENSE in the root for more details. *
****************************************************************************** ******************************************************************************
*/ */
@ -10,6 +10,7 @@
// This is a partial file designed to be included by other files when // This is a partial file designed to be included by other files when
// constructing various tables. // constructing various tables.
// clang-format off
XE_EXPORT(xboxkrnl, 0x00000001, DbgBreakPoint, kFunction), XE_EXPORT(xboxkrnl, 0x00000001, DbgBreakPoint, kFunction),
XE_EXPORT(xboxkrnl, 0x00000002, DbgBreakPointWithStatus, kFunction), XE_EXPORT(xboxkrnl, 0x00000002, DbgBreakPointWithStatus, kFunction),

View File

@ -1324,7 +1324,7 @@ def find_xenia_source_files():
return [os.path.join(root, name) return [os.path.join(root, name)
for root, dirs, files in os.walk('src') for root, dirs, files in os.walk('src')
for name in files for name in files
if name.endswith(('.cc', '.c', '.h', '.inl'))] if name.endswith(('.cc', '.c', '.h', '.inl', '.inc'))]
def find_all_source_files(): def find_all_source_files():