Skip to content

Commit 9393fc3

Browse files
committed
[FORMATTING] Remove trailing whitespace. Addendum to 34593d9.
Excluded: 3rd-party code (incl. wine) and most of the win32ss.
1 parent bbabe24 commit 9393fc3

File tree

701 files changed

+14680
-14688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

701 files changed

+14680
-14688
lines changed

.gitmessage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# [MODULE] A short but descriptive summary (#pr-num)
55
#
66
# A comprehensible description of WHY you did this work. Do not limit
7-
# yourself here.
8-
# The width of the description is arbitary, but it is a good idea to
9-
# wrap the text by 72 chars.
7+
# yourself here.
8+
# The width of the description is arbitary, but it is a good idea to
9+
# wrap the text by 72 chars.
1010
#
1111
# CORE-XXXX CIDXXXXX
1212
# ----------------------
@@ -17,6 +17,6 @@
1717
# * Description of a commit should explain WHY a change was made.
1818
# * JIRA, Coverity ID references should be placed at the bottom row.
1919
# * There must be a newline between summary, description and bug IDs.
20-
# * GitHub Pull Request ID should be referenced in the summary in
21-
# parens. If the resulting summary is longer than 70 chars it may
20+
# * GitHub Pull Request ID should be referenced in the summary in
21+
# parens. If the resulting summary is longer than 70 chars it may
2222
# be placed last in the ID row to prevent hard wrapping on GitHub.

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM gitpod/workspace-full-vnc
2-
2+
33
USER gitpod
44

55
# Install custom tools, runtime, etc. using apt-get

COPYING.ARM

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Copyright 2008 ReactOS Portable Systems Group. All rights reserved.
1+
Copyright 2008 ReactOS Portable Systems Group. All rights reserved.
22

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

1111
THIS SOFTWARE IS PROVIDED BY THE REACTOS PORTABLE SYSTEMS GROUP ``AS IS'' AND ANY EXPRESS OR IMPLIED
1212
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND

base/applications/calc/convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ static const conv_t conv_VOLUME[] = {
512512
1 chang = 20 tamlung
513513
1 tamlung = 4 baht
514514
1 baht = 4 saloung
515-
1 saloung =
515+
1 saloung =
516516
517517
1 chang = 6/5 kg = 1200 g
518518
1 tamlung = 1/20 chang = 60 g

base/applications/calc/fun_ieee.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ double acosh(double x)
5555
{
5656
// must be x>=1, if not return Nan (Not a Number)
5757
if(!(x>=1.0)) return sqrt(-1.0);
58-
58+
5959
// return only the positive result (as sqrt does).
6060
return log(x+sqrt(x*x-1.0));
6161
}
@@ -64,7 +64,7 @@ double atanh(double x)
6464
{
6565
// must be x>-1, x<1, if not return Nan (Not a Number)
6666
if(!(x>-1.0 && x<1.0)) return sqrt(-1.0);
67-
67+
6868
return log((1.0+x)/(1.0-x))/2.0;
6969
}
7070

@@ -372,7 +372,7 @@ static __int64 cbrti(__int64 x) {
372372

373373
s = 60;
374374
y = 0;
375-
while(s >= 0) {
375+
while(s >= 0) {
376376
y = 2*y;
377377
b = (3*y*(y + 1) + 1) << s;
378378
s = s - 3;

base/applications/calc/whatsnew.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
* "DOT" function can be used for starting a number (integer part will be zero).
134134
* Added repeat function.
135135
* If the number is greater than maximum resolution, it will be displayed with exponential notation.
136-
* Removed mouse and keyboard focuses from displayed buttons.
136+
* Removed mouse and keyboard focuses from displayed buttons.
137137
* Added normal and small icons.
138138

139139
1.00 (20070323)

base/applications/calc/winmain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ static void update_memory_flag(HWND hWnd, BOOL mem_flag)
852852

853853
static void update_n_stats_items(HWND hWnd, TCHAR *buffer)
854854
{
855-
unsigned int n = SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_GETCOUNT, 0, 0);
855+
unsigned int n = SendDlgItemMessage(hWnd, IDC_LIST_STAT, LB_GETCOUNT, 0, 0);
856856

857857
_stprintf(buffer, _T("n=%u"), n);
858858
SetDlgItemText(hWnd, IDC_TEXT_NITEMS, buffer);
@@ -1211,7 +1211,7 @@ static void handle_context_menu(HWND hWnd, WPARAM wp, LPARAM lp)
12111211
#else
12121212
(void)idm;
12131213
#endif
1214-
}
1214+
}
12151215

12161216
static void run_canc(calc_number_t *c)
12171217
{

base/applications/charmap/charmap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ FillCharacterSetComboList(HWND hwndCombo)
4747
if (GetCPInfoExW(codePages[i], 0, &cpInfo))
4848
{
4949
trimmedName = wcschr(cpInfo.CodePageName, L'(');
50-
if (!trimmedName)
50+
if (!trimmedName)
5151
trimmedName = cpInfo.CodePageName;
5252

5353
SendMessageW(hwndCombo,
@@ -678,7 +678,7 @@ wWinMain(HINSTANCE hInst,
678678
MSG Msg;
679679

680680
hInstance = hInst;
681-
681+
682682
/* Mirroring code for the titlebar */
683683
switch (GetUserDefaultUILanguage())
684684
{

base/applications/charmap/map.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ SetFont(PMAP infoPtr,
276276
NULL,
277277
TRUE);
278278

279-
if (infoPtr->pActiveCell)
279+
if (infoPtr->pActiveCell)
280280
infoPtr->pActiveCell->bActive = FALSE;
281281
infoPtr->pActiveCell = &infoPtr->Cells[0][0];
282282
infoPtr->pActiveCell->bActive = TRUE;
@@ -357,7 +357,7 @@ OnClick(PMAP infoPtr,
357357
* Find the cell the mouse pointer is over.
358358
* Since each cell is the same size, this can be done quickly using CellSize.
359359
* Clamp to XCELLS - 1 and YCELLS - 1 because the map can sometimes be slightly
360-
* larger than infoPtr.CellSize * XCELLS , due to the map size being a non integer
360+
* larger than infoPtr.CellSize * XCELLS , due to the map size being a non integer
361361
* multiple of infoPtr.CellSize .
362362
*/
363363
x = min(XCELLS - 1, ptx / max(1, infoPtr->CellSize.cx));
@@ -367,7 +367,7 @@ OnClick(PMAP infoPtr,
367367
i = XCELLS * infoPtr->iYStart + y * XCELLS + x;
368368
if (i >= infoPtr->NumValidGlyphs)
369369
{
370-
if (infoPtr->pActiveCell)
370+
if (infoPtr->pActiveCell)
371371
infoPtr->pActiveCell->bActive = FALSE;
372372
infoPtr->pActiveCell = NULL;
373373
return;
@@ -507,11 +507,11 @@ OnVScroll(PMAP infoPtr,
507507
/* Invalidate the rect around the active cell since a new cell will become active */
508508
if (infoPtr->pActiveCell && infoPtr->pActiveCell->bActive)
509509
{
510-
InvalidateRect(infoPtr->hMapWnd,
511-
&infoPtr->pActiveCell->CellExt,
510+
InvalidateRect(infoPtr->hMapWnd,
511+
&infoPtr->pActiveCell->CellExt,
512512
TRUE);
513513
}
514-
514+
515515
GetClientRect(infoPtr->hMapWnd, &rect);
516516
rect.top += 2;
517517
rect.bottom -= 2;
@@ -630,7 +630,7 @@ MapWndProc(HWND hwnd,
630630

631631
case WM_LBUTTONDBLCLK:
632632
{
633-
if (!infoPtr->pActiveCell)
633+
if (!infoPtr->pActiveCell)
634634
break;
635635

636636
NotifyParentOfSelection(infoPtr,

base/applications/charmap/precomp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define FM_SETCHARMAP (WM_USER + 5)
2727

2828
// the code pages to display in the advanced 'character set' combobox
29-
static const UINT codePages[] = {
29+
static const UINT codePages[] = {
3030
864, 775, 863, 855, 737, 856, 862, 861, 852, 869, 850, 858, 865, 860, 866, 857, 437, // OEM code pages
3131
1256, 1257, 1250, 1251, 1253, 1255, 932, 949, 1252, 936, 874, 950, 1254, 1258 // ANSI code pages
3232
};

base/applications/charmap_new/GridView.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ CGridView::UpdateCellCoordinates(
155155
)
156156
{
157157
// Go through all the cells and calculate
158-
// their coordinates within the grid
158+
// their coordinates within the grid
159159
for (int y = 0; y < m_yNumCells; y++)
160160
for (int x = 0; x < m_xNumCells; x++)
161161
{
@@ -262,7 +262,6 @@ VOID
262262
CGridView::OnVScroll(_In_ INT Value,
263263
_In_ INT Pos)
264264
{
265-
266265
INT PrevScrollPosition = m_ScrollPosition;
267266

268267
switch (Value)

base/applications/charmap_new/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ CCharMapWindow::Run(void)
9999
{
100100
MSG Msg;
101101

102-
// Pump the message queue
102+
// Pump the message queue
103103
while (GetMessageW(&Msg, NULL, 0, 0) != 0)
104104
{
105105
TranslateMessage(&Msg);
@@ -195,7 +195,7 @@ CCharMapWindow::OnCreate(_In_ HWND hDlg)
195195
}
196196
}
197197

198-
// Add all the fonts to the
198+
// Add all the fonts to the list
199199
if (!CreateFontComboBox())
200200
return FALSE;
201201

base/applications/cmdutils/at/at.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ GetTimeAsJobTime(VOID)
398398

399399
GetLocalTime(&Time);
400400

401-
JobTime = (DWORD_PTR)Time.wHour * 3600000 +
401+
JobTime = (DWORD_PTR)Time.wHour * 3600000 +
402402
(DWORD_PTR)Time.wMinute * 60000;
403403

404404
return JobTime;
@@ -698,7 +698,7 @@ AddJob(
698698
ULONG ulJobId = 0;
699699
NET_API_STATUS Status;
700700

701-
InfoBuffer.JobTime = (DWORD_PTR)ulJobHour * 3600000 +
701+
InfoBuffer.JobTime = (DWORD_PTR)ulJobHour * 3600000 +
702702
(DWORD_PTR)ulJobMinute * 60000;
703703
InfoBuffer.DaysOfMonth = ulDaysOfMonth;
704704
InfoBuffer.DaysOfWeek = ucDaysOfWeek;

base/applications/cmdutils/fc/text.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* PURPOSE: Comparing text files
55
* COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ ([email protected])
66
*/
7+
78
#include "fc.h"
89

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

513-
static FCRET
514+
static FCRET
514515
Finalize(FILECOMPARE* pFC, struct list *ptr0, struct list* ptr1, BOOL fDifferent)
515516
{
516517
if (!ptr0 && !ptr1)

base/applications/cmdutils/more/more.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ IsDataUnicode(
552552
IS_TEXT_UNICODE_REVERSE_MASK | IS_TEXT_UNICODE_UNICODE_MASK)
553553
& ~IS_TEXT_UNKNOWN_FLAGS_MASK;
554554
INT Results;
555-
555+
556556
IsTextUnicode(Buffer, BufferSize, &Tests);
557557
Results = Tests;
558558

@@ -1083,7 +1083,7 @@ int wmain(int argc, WCHAR* argv[])
10831083
continue;
10841084

10851085
GetFullPathNameW(argv[i], ARRAYSIZE(szFullPath), szFullPath, NULL);
1086-
hFile = CreateFileW(szFullPath,
1086+
hFile = CreateFileW(szFullPath,
10871087
GENERIC_READ,
10881088
FILE_SHARE_READ,
10891089
NULL,

base/applications/cmdutils/tasklist/tasklist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ VOID PrintResString(HINSTANCE hInstance, UINT uID, UINT MaxWidth, BOOL bAlignLef
4949
{
5050
if (!hInstance)
5151
return;
52-
52+
5353
WCHAR StringBuffer[RES_STR_MAXLEN];
5454
LoadStringW(hInstance, uID, StringBuffer, _countof(StringBuffer));
5555
PrintString(StringBuffer, MaxWidth, bAlignLeft);
@@ -96,7 +96,7 @@ BOOL PrintMemory(SIZE_T MemorySizeByte, UINT MaxWidth, HINSTANCE hInstance)
9696
*pNumberStr = L'0' + (MemorySize / Mod);
9797
MemorySize %= Mod;
9898
pNumberStr++;
99-
99+
100100
if (i != 1 && i % 3 == 1)
101101
{
102102
*pNumberStr = L',';

base/applications/cmdutils/tree/tree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ BOOL bUseAscii = FALSE;
2828
/**
2929
* @name: HasSubFolder
3030
*
31-
* @param strPath
31+
* @param strPath
3232
* Must specify folder name
3333
*
3434
* @return
@@ -207,7 +207,7 @@ static VOID DrawTree(PCWSTR strPath,
207207

208208
/**
209209
* @name: GetDirectoryStructure
210-
*
210+
*
211211
* @param strPath
212212
* Must specify folder name
213213
*
@@ -240,7 +240,7 @@ GetDirectoryStructure(PWSTR strPath, UINT width, PCWSTR prevLine)
240240
wcscat(tmp, strPath);
241241
wcscat(tmp, L"\\*.*");
242242
hFind = FindFirstFileW(tmp, &FindFileData);
243-
//err = GetLastError();
243+
//err = GetLastError();
244244
}
245245

246246
if (hFind == INVALID_HANDLE_VALUE)

base/applications/cmdutils/whoami/whoami.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void WhoamiPrintTable(WhoamiTable *pTable)
367367
WhoamiFree(pTable->Content[i * pTable->Cols + j]);
368368

369369
WhoamiFree(pTable);
370-
370+
371371
if (PrintFormat != csv)
372372
HeapFree(GetProcessHeap(), 0, ColLength);
373373
}

base/applications/dxdiag/ddtest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BOOL DDOffscreenBufferTest(HWND hWnd, BOOL Fullscreen);
1414
VOID DDRedrawFrame(LPDIRECTDRAWSURFACE lpDDSurface);
1515
VOID DDUpdateFrame(LPDIRECTDRAWSURFACE lpDDPrimarySurface ,LPDIRECTDRAWSURFACE lpDDBackBuffer, BOOL Fullscreen, INT *posX, INT *posY, INT *gainX, INT *gainY, RECT *rectDD);
1616

17-
#define TEST_DURATION 10000
17+
#define TEST_DURATION 10000
1818
#define DD_TEST_WIDTH 640
1919
#define DD_TEST_HEIGHT 480
2020
#define DD_TEST_STEP 5
@@ -295,7 +295,7 @@ BOOL DDOffscreenBufferTest(HWND hWnd, BOOL Fullscreen){
295295
{
296296
if (msg.message == WM_TIMER)
297297
{
298-
if(msg.wParam == TimerID)
298+
if(msg.wParam == TimerID)
299299
{
300300
break;
301301
}

base/applications/dxdiag/display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ DisplayPageSetDeviceDetails(HWND * hDlgCtrls, LPCGUID classGUID, LPGUID * device
188188
SendMessageW(hDlgCtrls[1], WM_SETTEXT, 0, (LPARAM)szText);
189189

190190
/* FIXME
191-
* we currently enumerate only the first adapter
191+
* we currently enumerate only the first adapter
192192
*/
193193
EnumerateDrivers(&hDlgCtrls[2], hInfo, &InfoData);
194194
break;
@@ -367,7 +367,7 @@ DisplayPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
367367
{
368368
RECT rect;
369369
PDXDIAG_CONTEXT pContext = (PDXDIAG_CONTEXT)GetWindowLongPtr(hDlg, DWLP_USER);
370-
switch (message)
370+
switch (message)
371371
{
372372
case WM_INITDIALOG:
373373
{

0 commit comments

Comments
 (0)