diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-10-12 09:22:00 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-10-12 09:22:00 +0200 |
| commit | 74fd5448d80a5ccfe69ee6f16097f4ca07822c19 (patch) | |
| tree | 75ff5ffd944ba56fc1a6fcfb5df23d2922a2f868 | |
| parent | 6588eb66c14775e5b991d87bedd6ec0d5c9175c5 (diff) | |
IMP: Run format command.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
| -rw-r--r-- | dev/ndk/Defines.hxx | 4 | ||||
| -rw-r--r-- | dev/ndk/NFC/AE.hxx | 8 | ||||
| -rw-r--r-- | dev/ndk/NFC/String.hxx | 6 | ||||
| -rw-r--r-- | dev/ndk/UUID.hxx | 2 | ||||
| -rw-r--r-- | dev/ndk/Version.hxx | 2 | ||||
| -rw-r--r-- | dev/ndk/src/AssemblerPower.cxx | 4 | ||||
| -rw-r--r-- | dev/ndk/src/Detail/AsmUtils.hxx | 4 | ||||
| -rw-r--r-- | sdk/w32.h | 2 | ||||
| -rw-r--r-- | sdk/xpcom.h | 4 | ||||
| -rw-r--r-- | tests/xpcom-msgbox.cxx | 6 |
10 files changed, 21 insertions, 21 deletions
diff --git a/dev/ndk/Defines.hxx b/dev/ndk/Defines.hxx index 8b36e0f..c51ec20 100644 --- a/dev/ndk/Defines.hxx +++ b/dev/ndk/Defines.hxx @@ -102,7 +102,7 @@ namespace NDK auto time_struct = gmtime(&time_data); String fmt = std::to_string(cBaseYear + time_struct->tm_year); - + fmt += "-"; fmt += std::to_string(time_struct->tm_mon + 1); fmt += "-"; @@ -154,7 +154,7 @@ typedef char char_type; #define NDK_MODULE(name) extern "C" int name(int argc, char** argv) #ifdef MSVC -#pragma scalar_storage_order big-endian +#pragma scalar_storage_order big - endian #endif // ifdef MSVC #endif /* ifndef __NDK_DEFINES_HXX__ */ diff --git a/dev/ndk/NFC/AE.hxx b/dev/ndk/NFC/AE.hxx index a1bc889..0fcc51b 100644 --- a/dev/ndk/NFC/AE.hxx +++ b/dev/ndk/NFC/AE.hxx @@ -14,10 +14,10 @@ #define kAEMag0 'A' #define kAEMag1 'E' -#define kAESymbolLen (255) -#define kAEPad (8) -#define kAEMagLen (2) -#define kAENullType (0x00) +#define kAESymbolLen (255) +#define kAEPad (8) +#define kAEMagLen (2) +#define kAENullType (0x00) // Advanced Executable File Format for MetroLink. // Reloctable by offset is the default strategy. diff --git a/dev/ndk/NFC/String.hxx b/dev/ndk/NFC/String.hxx index c21b88a..bd0e0e0 100644 --- a/dev/ndk/NFC/String.hxx +++ b/dev/ndk/NFC/String.hxx @@ -68,9 +68,9 @@ namespace NDK } private: - CharType* m_Data{nullptr}; - SizeType m_Sz{0}; - SizeType m_Cur{0}; + CharType* m_Data{nullptr}; + SizeType m_Sz{0}; + SizeType m_Cur{0}; friend class StringBuilder; }; diff --git a/dev/ndk/UUID.hxx b/dev/ndk/UUID.hxx index d785fc7..00b153b 100644 --- a/dev/ndk/UUID.hxx +++ b/dev/ndk/UUID.hxx @@ -199,7 +199,7 @@ namespace uuids process_byte(static_cast<unsigned char>((bitCount >> 24) & 0xFF)); process_byte(static_cast<unsigned char>((bitCount >> 16) & 0xFF)); process_byte(static_cast<unsigned char>((bitCount >> 8) & 0xFF)); - process_byte(static_cast<unsigned char>((bitCount) & 0xFF)); + process_byte(static_cast<unsigned char>((bitCount)&0xFF)); memcpy(digest, m_digest, 5 * sizeof(uint32_t)); return digest; diff --git a/dev/ndk/Version.hxx b/dev/ndk/Version.hxx index fdf6e27..cd54b9c 100644 --- a/dev/ndk/Version.hxx +++ b/dev/ndk/Version.hxx @@ -9,6 +9,6 @@ #define kDistVersion "v1.1.0" #define ToPPString(X) __Str(X) -#define __Str(X) #X +#define __Str(X) #X #define kDistRelease ToPPString(kDistReleaseBranch) diff --git a/dev/ndk/src/AssemblerPower.cxx b/dev/ndk/src/AssemblerPower.cxx index 8f6f791..5839c65 100644 --- a/dev/ndk/src/AssemblerPower.cxx +++ b/dev/ndk/src/AssemblerPower.cxx @@ -90,8 +90,8 @@ NDK_MODULE(ZKAAssemblerMainPowerPC) if (strcmp(argv[i], "/ver") == 0 || strcmp(argv[i], "/v") == 0) { kStdOut << "AssemblerPower: POWER64 Assembler Driver.\nAssemblerPower: " << kDistVersion << "\nAssemblerPower: " - "Copyright (c) " - "ZKA Technologies.\n"; + "Copyright (c) " + "ZKA Technologies.\n"; return 0; } else if (strcmp(argv[i], "/h") == 0) diff --git a/dev/ndk/src/Detail/AsmUtils.hxx b/dev/ndk/src/Detail/AsmUtils.hxx index 121e2d1..b6e61c7 100644 --- a/dev/ndk/src/Detail/AsmUtils.hxx +++ b/dev/ndk/src/Detail/AsmUtils.hxx @@ -27,12 +27,12 @@ static NumberCast32 GetNumber32(std::string lineBuffer, std::string numberKey) if (lineBuffer.find(",") != std::string::npos) { - lineBuffer.erase(lineBuffer.find(","), 1); + lineBuffer.erase(lineBuffer.find(","), 1); } while (lineBuffer[pos] == ' ') { - ++pos; + ++pos; } switch (lineBuffer[pos + 1]) @@ -11,7 +11,7 @@ #include <sdk/xpcom.h> -typedef XHANDLE HWND; // Window handle, simply a pointer to an XHANDLE. +typedef XHANDLE HWND; // Window handle, simply a pointer to an XHANDLE. typedef XHANDLE HANDLE; // WinAPI handle, simply a pointer to an XHANDLE. /// @brief Shows a message box within an handle. diff --git a/sdk/xpcom.h b/sdk/xpcom.h index e6b1656..4926a22 100644 --- a/sdk/xpcom.h +++ b/sdk/xpcom.h @@ -67,8 +67,8 @@ struct __gHANDLE // So actualy we need to define handles. -typedef struct __gHANDLE XSHANDLE; // XPCOM handle struct type. -typedef XSHANDLE* XHANDLE; // XPCOM handle type. +typedef struct __gHANDLE XSHANDLE; // XPCOM handle struct type. +typedef XSHANDLE* XHANDLE; // XPCOM handle type. typedef INT32 XRESULT; diff --git a/tests/xpcom-msgbox.cxx b/tests/xpcom-msgbox.cxx index 330d493..a944992 100644 --- a/tests/xpcom-msgbox.cxx +++ b/tests/xpcom-msgbox.cxx @@ -1,9 +1,9 @@ -#define sum_of(a,b) a+b +#define sum_of(a, b) a + b int main() { - int sum_of_23_and_100 = sum_of(23, 100); - sum_of_23_and_100 -= 100; + int sum_of_23_and_100 = sum_of(23, 100); + sum_of_23_and_100 -= 100; return sum_of_23_and_100; } |
