Skip to content

Commit

Permalink
[FORMATTING] Remove trailing whitespace. Addendum to 34593d9.
Browse files Browse the repository at this point in the history
Excluded: 3rd-party code (incl. wine) and most of the win32ss.
  • Loading branch information
HBelusca committed Sep 13, 2021
1 parent bbabe24 commit 9393fc3
Show file tree
Hide file tree
Showing 701 changed files with 14,680 additions and 14,688 deletions.
10 changes: 5 additions & 5 deletions .gitmessage
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# [MODULE] A short but descriptive summary (#pr-num)
#
# A comprehensible description of WHY you did this work. Do not limit
# yourself here.
# The width of the description is arbitary, but it is a good idea to
# wrap the text by 72 chars.
# yourself here.
# The width of the description is arbitary, but it is a good idea to
# wrap the text by 72 chars.
#
# CORE-XXXX CIDXXXXX
# ----------------------
Expand All @@ -17,6 +17,6 @@
# * Description of a commit should explain WHY a change was made.
# * JIRA, Coverity ID references should be placed at the bottom row.
# * There must be a newline between summary, description and bug IDs.
# * GitHub Pull Request ID should be referenced in the summary in
# parens. If the resulting summary is longer than 70 chars it may
# * GitHub Pull Request ID should be referenced in the summary in
# parens. If the resulting summary is longer than 70 chars it may
# be placed last in the ID row to prevent hard wrapping on GitHub.
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM gitpod/workspace-full-vnc

USER gitpod

# Install custom tools, runtime, etc. using apt-get
Expand Down
10 changes: 5 additions & 5 deletions COPYING.ARM
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Copyright 2008 ReactOS Portable Systems Group. All rights reserved.
Copyright 2008 ReactOS Portable Systems Group. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the
distribution.
and the following disclaimer in the documentation and/or other materials provided with the
distribution.

THIS SOFTWARE IS PROVIDED BY THE REACTOS PORTABLE SYSTEMS GROUP ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
Expand Down
2 changes: 1 addition & 1 deletion base/applications/calc/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ static const conv_t conv_VOLUME[] = {
1 chang = 20 tamlung
1 tamlung = 4 baht
1 baht = 4 saloung
1 saloung =
1 saloung =
1 chang = 6/5 kg = 1200 g
1 tamlung = 1/20 chang = 60 g
Expand Down
6 changes: 3 additions & 3 deletions base/applications/calc/fun_ieee.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ double acosh(double x)
{
// must be x>=1, if not return Nan (Not a Number)
if(!(x>=1.0)) return sqrt(-1.0);

// return only the positive result (as sqrt does).
return log(x+sqrt(x*x-1.0));
}
Expand All @@ -64,7 +64,7 @@ double atanh(double x)
{
// must be x>-1, x<1, if not return Nan (Not a Number)
if(!(x>-1.0 && x<1.0)) return sqrt(-1.0);

return log((1.0+x)/(1.0-x))/2.0;
}

Expand Down Expand Up @@ -372,7 +372,7 @@ static __int64 cbrti(__int64 x) {

s = 60;
y = 0;
while(s >= 0) {
while(s >= 0) {
y = 2*y;
b = (3*y*(y + 1) + 1) << s;
s = s - 3;
Expand Down
2 changes: 1 addition & 1 deletion base/applications/calc/whatsnew.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
* "DOT" function can be used for starting a number (integer part will be zero).
* Added repeat function.
* If the number is greater than maximum resolution, it will be displayed with exponential notation.
* Removed mouse and keyboard focuses from displayed buttons.
* Removed mouse and keyboard focuses from displayed buttons.
* Added normal and small icons.

1.00 (20070323)
Expand Down
4 changes: 2 additions & 2 deletions base/applications/calc/winmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ static void update_memory_flag(HWND hWnd, BOOL mem_flag)

static void update_n_stats_items(HWND hWnd, TCHAR *buffer)
{
unsigned int n = SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_GETCOUNT, 0, 0);
unsigned int n = SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_GETCOUNT, 0, 0);

_stprintf(buffer, _T("n=%u"), n);
SetDlgItemText(hWnd, IDC_TEXT_NITEMS, buffer);
Expand Down Expand Up @@ -1211,7 +1211,7 @@ static void handle_context_menu(HWND hWnd, WPARAM wp, LPARAM lp)
#else
(void)idm;
#endif
}
}

static void run_canc(calc_number_t *c)
{
Expand Down
4 changes: 2 additions & 2 deletions base/applications/charmap/charmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FillCharacterSetComboList(HWND hwndCombo)
if (GetCPInfoExW(codePages[i], 0, &cpInfo))
{
trimmedName = wcschr(cpInfo.CodePageName, L'(');
if (!trimmedName)
if (!trimmedName)
trimmedName = cpInfo.CodePageName;

SendMessageW(hwndCombo,
Expand Down Expand Up @@ -678,7 +678,7 @@ wWinMain(HINSTANCE hInst,
MSG Msg;

hInstance = hInst;

/* Mirroring code for the titlebar */
switch (GetUserDefaultUILanguage())
{
Expand Down
14 changes: 7 additions & 7 deletions base/applications/charmap/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ SetFont(PMAP infoPtr,
NULL,
TRUE);

if (infoPtr->pActiveCell)
if (infoPtr->pActiveCell)
infoPtr->pActiveCell->bActive = FALSE;
infoPtr->pActiveCell = &infoPtr->Cells[0][0];
infoPtr->pActiveCell->bActive = TRUE;
Expand Down Expand Up @@ -357,7 +357,7 @@ OnClick(PMAP infoPtr,
* Find the cell the mouse pointer is over.
* Since each cell is the same size, this can be done quickly using CellSize.
* Clamp to XCELLS - 1 and YCELLS - 1 because the map can sometimes be slightly
* larger than infoPtr.CellSize * XCELLS , due to the map size being a non integer
* larger than infoPtr.CellSize * XCELLS , due to the map size being a non integer
* multiple of infoPtr.CellSize .
*/
x = min(XCELLS - 1, ptx / max(1, infoPtr->CellSize.cx));
Expand All @@ -367,7 +367,7 @@ OnClick(PMAP infoPtr,
i = XCELLS * infoPtr->iYStart + y * XCELLS + x;
if (i >= infoPtr->NumValidGlyphs)
{
if (infoPtr->pActiveCell)
if (infoPtr->pActiveCell)
infoPtr->pActiveCell->bActive = FALSE;
infoPtr->pActiveCell = NULL;
return;
Expand Down Expand Up @@ -507,11 +507,11 @@ OnVScroll(PMAP infoPtr,
/* Invalidate the rect around the active cell since a new cell will become active */
if (infoPtr->pActiveCell && infoPtr->pActiveCell->bActive)
{
InvalidateRect(infoPtr->hMapWnd,
&infoPtr->pActiveCell->CellExt,
InvalidateRect(infoPtr->hMapWnd,
&infoPtr->pActiveCell->CellExt,
TRUE);
}

GetClientRect(infoPtr->hMapWnd, &rect);
rect.top += 2;
rect.bottom -= 2;
Expand Down Expand Up @@ -630,7 +630,7 @@ MapWndProc(HWND hwnd,

case WM_LBUTTONDBLCLK:
{
if (!infoPtr->pActiveCell)
if (!infoPtr->pActiveCell)
break;

NotifyParentOfSelection(infoPtr,
Expand Down
2 changes: 1 addition & 1 deletion base/applications/charmap/precomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define FM_SETCHARMAP (WM_USER + 5)

// the code pages to display in the advanced 'character set' combobox
static const UINT codePages[] = {
static const UINT codePages[] = {
864, 775, 863, 855, 737, 856, 862, 861, 852, 869, 850, 858, 865, 860, 866, 857, 437, // OEM code pages
1256, 1257, 1250, 1251, 1253, 1255, 932, 949, 1252, 936, 874, 950, 1254, 1258 // ANSI code pages
};
Expand Down
3 changes: 1 addition & 2 deletions base/applications/charmap_new/GridView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ CGridView::UpdateCellCoordinates(
)
{
// Go through all the cells and calculate
// their coordinates within the grid
// their coordinates within the grid
for (int y = 0; y < m_yNumCells; y++)
for (int x = 0; x < m_xNumCells; x++)
{
Expand Down Expand Up @@ -262,7 +262,6 @@ VOID
CGridView::OnVScroll(_In_ INT Value,
_In_ INT Pos)
{

INT PrevScrollPosition = m_ScrollPosition;

switch (Value)
Expand Down
4 changes: 2 additions & 2 deletions base/applications/charmap_new/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CCharMapWindow::Run(void)
{
MSG Msg;

// Pump the message queue
// Pump the message queue
while (GetMessageW(&Msg, NULL, 0, 0) != 0)
{
TranslateMessage(&Msg);
Expand Down Expand Up @@ -195,7 +195,7 @@ CCharMapWindow::OnCreate(_In_ HWND hDlg)
}
}

// Add all the fonts to the
// Add all the fonts to the list
if (!CreateFontComboBox())
return FALSE;

Expand Down
4 changes: 2 additions & 2 deletions base/applications/cmdutils/at/at.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ GetTimeAsJobTime(VOID)

GetLocalTime(&Time);

JobTime = (DWORD_PTR)Time.wHour * 3600000 +
JobTime = (DWORD_PTR)Time.wHour * 3600000 +
(DWORD_PTR)Time.wMinute * 60000;

return JobTime;
Expand Down Expand Up @@ -698,7 +698,7 @@ AddJob(
ULONG ulJobId = 0;
NET_API_STATUS Status;

InfoBuffer.JobTime = (DWORD_PTR)ulJobHour * 3600000 +
InfoBuffer.JobTime = (DWORD_PTR)ulJobHour * 3600000 +
(DWORD_PTR)ulJobMinute * 60000;
InfoBuffer.DaysOfMonth = ulDaysOfMonth;
InfoBuffer.DaysOfWeek = ucDaysOfWeek;
Expand Down
3 changes: 2 additions & 1 deletion base/applications/cmdutils/fc/text.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* PURPOSE: Comparing text files
* COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ ([email protected])
*/

#include "fc.h"

#define IS_SPACE(ch) ((ch) == TEXT(' ') || (ch) == TEXT('\t'))
Expand Down Expand Up @@ -510,7 +511,7 @@ Resync(FILECOMPARE *pFC, struct list **pptr0, struct list **pptr1)
return FCRET_DIFFERENT;
}

static FCRET
static FCRET
Finalize(FILECOMPARE* pFC, struct list *ptr0, struct list* ptr1, BOOL fDifferent)
{
if (!ptr0 && !ptr1)
Expand Down
4 changes: 2 additions & 2 deletions base/applications/cmdutils/more/more.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ IsDataUnicode(
IS_TEXT_UNICODE_REVERSE_MASK | IS_TEXT_UNICODE_UNICODE_MASK)
& ~IS_TEXT_UNKNOWN_FLAGS_MASK;
INT Results;

IsTextUnicode(Buffer, BufferSize, &Tests);
Results = Tests;

Expand Down Expand Up @@ -1083,7 +1083,7 @@ int wmain(int argc, WCHAR* argv[])
continue;

GetFullPathNameW(argv[i], ARRAYSIZE(szFullPath), szFullPath, NULL);
hFile = CreateFileW(szFullPath,
hFile = CreateFileW(szFullPath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
Expand Down
4 changes: 2 additions & 2 deletions base/applications/cmdutils/tasklist/tasklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ VOID PrintResString(HINSTANCE hInstance, UINT uID, UINT MaxWidth, BOOL bAlignLef
{
if (!hInstance)
return;

WCHAR StringBuffer[RES_STR_MAXLEN];
LoadStringW(hInstance, uID, StringBuffer, _countof(StringBuffer));
PrintString(StringBuffer, MaxWidth, bAlignLeft);
Expand Down Expand Up @@ -96,7 +96,7 @@ BOOL PrintMemory(SIZE_T MemorySizeByte, UINT MaxWidth, HINSTANCE hInstance)
*pNumberStr = L'0' + (MemorySize / Mod);
MemorySize %= Mod;
pNumberStr++;

if (i != 1 && i % 3 == 1)
{
*pNumberStr = L',';
Expand Down
6 changes: 3 additions & 3 deletions base/applications/cmdutils/tree/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BOOL bUseAscii = FALSE;
/**
* @name: HasSubFolder
*
* @param strPath
* @param strPath
* Must specify folder name
*
* @return
Expand Down Expand Up @@ -207,7 +207,7 @@ static VOID DrawTree(PCWSTR strPath,

/**
* @name: GetDirectoryStructure
*
*
* @param strPath
* Must specify folder name
*
Expand Down Expand Up @@ -240,7 +240,7 @@ GetDirectoryStructure(PWSTR strPath, UINT width, PCWSTR prevLine)
wcscat(tmp, strPath);
wcscat(tmp, L"\\*.*");
hFind = FindFirstFileW(tmp, &FindFileData);
//err = GetLastError();
//err = GetLastError();
}

if (hFind == INVALID_HANDLE_VALUE)
Expand Down
2 changes: 1 addition & 1 deletion base/applications/cmdutils/whoami/whoami.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void WhoamiPrintTable(WhoamiTable *pTable)
WhoamiFree(pTable->Content[i * pTable->Cols + j]);

WhoamiFree(pTable);

if (PrintFormat != csv)
HeapFree(GetProcessHeap(), 0, ColLength);
}
Expand Down
4 changes: 2 additions & 2 deletions base/applications/dxdiag/ddtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BOOL DDOffscreenBufferTest(HWND hWnd, BOOL Fullscreen);
VOID DDRedrawFrame(LPDIRECTDRAWSURFACE lpDDSurface);
VOID DDUpdateFrame(LPDIRECTDRAWSURFACE lpDDPrimarySurface ,LPDIRECTDRAWSURFACE lpDDBackBuffer, BOOL Fullscreen, INT *posX, INT *posY, INT *gainX, INT *gainY, RECT *rectDD);

#define TEST_DURATION 10000
#define TEST_DURATION 10000
#define DD_TEST_WIDTH 640
#define DD_TEST_HEIGHT 480
#define DD_TEST_STEP 5
Expand Down Expand Up @@ -295,7 +295,7 @@ BOOL DDOffscreenBufferTest(HWND hWnd, BOOL Fullscreen){
{
if (msg.message == WM_TIMER)
{
if(msg.wParam == TimerID)
if(msg.wParam == TimerID)
{
break;
}
Expand Down
4 changes: 2 additions & 2 deletions base/applications/dxdiag/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ DisplayPageSetDeviceDetails(HWND * hDlgCtrls, LPCGUID classGUID, LPGUID * device
SendMessageW(hDlgCtrls[1], WM_SETTEXT, 0, (LPARAM)szText);

/* FIXME
* we currently enumerate only the first adapter
* we currently enumerate only the first adapter
*/
EnumerateDrivers(&hDlgCtrls[2], hInfo, &InfoData);
break;
Expand Down Expand Up @@ -367,7 +367,7 @@ DisplayPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
RECT rect;
PDXDIAG_CONTEXT pContext = (PDXDIAG_CONTEXT)GetWindowLongPtr(hDlg, DWLP_USER);
switch (message)
switch (message)
{
case WM_INITDIALOG:
{
Expand Down
Loading

0 comments on commit 9393fc3

Please sign in to comment.