[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.

Excluded: 3rd-party code (incl. wine) and most of the win32ss.
This commit is contained in:
Hermès Bélusca-Maïto 2021-09-13 03:33:14 +02:00
parent bbabe2489e
commit 9393fc320e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
701 changed files with 14685 additions and 14693 deletions

View file

@ -562,7 +562,7 @@ superblock = struct.Struct('<32x16s2Q8s9Q5L4QH2B611x2048s')
# log_root_transid
# total_bytes
# bytes_used
# root_dir_objectid (usually 6)
# root_dir_objectid (usually 6)
# num_devices
# sectorsize
# nodesize
@ -1089,7 +1089,7 @@ def key_bin_search(fd, base_offset, item_size, cmp_item, min, max):
low = mid + 1
else:
return True, mid
return False, low
@ -1152,7 +1152,7 @@ class FileSystem(object):
@property
def fs_root(self):
return self._fs_root_level, self._fs_root
@property
def extent_root(self):
return self._extent_root_level, self._extent_root
@ -1173,7 +1173,7 @@ class FileSystem(object):
k = LeafKey(self.fd.read(LeafKey.sstruct.size))
self.fd.seek(offset + k.data_offset)
if k.type == CHUNK_ITEM_KEY:
item = _key_type_class_map[k.type](k, self.fd.read(k.data_size))
item = _key_type_class_map[k.type](k, self.fd.read(k.data_size))
for st in item.stripes:
self._insert_chunk(chunk_map_item(item.vaddr, st.offset, item.length, st.devid))
@ -1215,10 +1215,10 @@ class FileSystem(object):
# TODO: better understand this
if not found and itemnr > 0:
itemnr -= 1
self.fd.seek(root_offset + _node_header_struct.size + itemnr * InnerKey.sstruct.size)
k = InnerKey(self.fd.read(InnerKey.sstruct.size))
root_offset = k.block_num
root_offset = k.block_num
else:
# we are in leaf node
root_offset = self.logical_to_physical(root_offset)
@ -1260,7 +1260,7 @@ class FileSystem(object):
print(k)
self.fd.seek(root_paddr + _node_header_struct.size + k.data_offset)
if k.type in _key_type_class_map and header.level == 0:
item = _key_type_class_map[k.type](k, self.fd.read(k.data_size))
item = _key_type_class_map[k.type](k, self.fd.read(k.data_size))
print(item)
if k.type == DIR_ITEM_KEY:
for it in item:

View file

@ -7,19 +7,20 @@ We only deal with 8x8 fonts with 256 characters, so different formats aren't des
----------------------------
A binary font file is always 2048 bytes in size.
These bytes are divided into 256 characters, so every character is 8 bytes large.
Each byte represents a character row. Consequently, each column is represented by one bit. The most-significant bit contains the pixel of the first column from the left.
Each byte represents a character row. Consequently, each column is represented by one bit.
The most-significant bit contains the pixel of the first column from the left.
Example:
We want to get the pixel in the third column of the second row of the seventh character.
We assume you loaded the binary font file completely into a byte array called FontBits.
// All indexes need to be zero-based
UINT uCharacter = 6;
UINT uRow = 1;
UINT uColumn = 2;
UCHAR uBit;
// uBit will either contain 0 (0-bit is set) or 128 dec, 0x80 hex (1-bit is set) now
uBit = FontBits[uCharacter * 8 + uRow] << uColumn & 0x80;
@ -34,7 +35,7 @@ struct PSF1_FILE
UCHAR uMagic[2];
UCHAR uMode;
UCHAR uCharSize;
UCHAR FontBits[2048];
};
@ -52,4 +53,4 @@ struct PSF1_FILE
This way, it is very easy to convert a PSFv1 file to a binary *.bin file.
- Colin Finck, 2008/02/01
- Colin Finck, 2008/02/01

View file

@ -597,7 +597,7 @@ bool DriveVolume::GetClusterInfo (FileInfo &Info, HANDLE &HandleResult)
Extents = Retrieval->ExtentCount;
// Ok, we have the info. Now translate it. hrmrmr
Info.Fragments.clear ();
for (uint64 i = 0; i < Extents; i++)
{

View file

@ -63,9 +63,9 @@ public:
}
bool IsLocked (void)
{
return (Locked);
bool IsLocked (void)
{
return (Locked);
}
protected:

View file

@ -9,7 +9,7 @@ displays the NT programmers' names if one writes
To add a new name, add a new string in the
resource script notevil.rc (string index numbers must be
unique) and edit resource.h to update minimum and
unique) and edit resource.h to update minimum and
maximum indices.
Eventually run make.

View file

@ -231,7 +231,7 @@ void Display()
}
INT_PTR CALLBACK AboutProc(HWND hdlg, UINT msg, WPARAM wpm, LPARAM lpm){
switch(msg){
case WM_CTLCOLORSTATIC:
if(((HWND)lpm == GetDlgItem(hdlg, WEBPAGE1)) || ((HWND)lpm == GetDlgItem(hdlg, WEBPAGE2)))

View file

@ -64,10 +64,10 @@ LRESULT WINAPI ScreenSaverProc (HWND hwnd, UINT iMsg, WPARAM wparam, LPARAM lpar
/* Draw circle on screen */
Ellipse (
hdc,
x,
y,
x + width,
hdc,
x,
y,
x + width,
y + width);
//Track the number of painted circles on scren

View file

@ -586,7 +586,7 @@ static BOOL OnCreate(HWND hWnd, LPCREATESTRUCT lpCreateStruct)
}
grid_width = grid_height = size;
bw = (size > 6 ? 3 : (size - 1) / 2);
#if 0
/* FIXME Pattern brushes not yet implemented in ReactOS */
{
@ -652,7 +652,7 @@ static void ReadSettings(HWND hWnd)
pre_solve_delay = SendDlgItemMessage(hWnd, IDC_SLIDER_PRESD, TBM_GETPOS, 0, 0);
SetDlgItemInt(hWnd, IDC_TEXT_PRESD, pre_solve_delay, FALSE);
post_solve_delay = SendDlgItemMessage(hWnd, IDC_SLIDER_POSTSD, TBM_GETPOS, 0, 0);
SetDlgItemInt(hWnd, IDC_TEXT_POSTSD, post_solve_delay, FALSE);

View file

@ -302,15 +302,15 @@ BOOL CALLBACK ScreenSaverConfigureDialog(HWND hDlg, UINT uMsg, WPARAM wParam, LP
return TRUE;
case WM_COMMAND:
switch (LOWORD( wParam )) {
switch (LOWORD( wParam )) {
case IDOK:
// Write configuration
SaveSettings();
// Fall down...
case IDCANCEL:
EndDialog( hDlg, LOWORD( wParam ));
case IDCANCEL:
EndDialog( hDlg, LOWORD( wParam ));
return TRUE;
case IDC_BUTTON_ABOUT:

View file

@ -198,7 +198,7 @@ static void InitGL(HBITMAP hStarTex)
glEnable( GL_LIGHTING );
// enable lighting for front
glLightModeli( GL_FRONT, GL_TRUE );
// material have diffuse and ambient lighting
// material have diffuse and ambient lighting
glColorMaterial( GL_FRONT, GL_AMBIENT_AND_DIFFUSE );
// enable color
glEnable( GL_COLOR_MATERIAL );

View file

@ -1,9 +1,9 @@
// FontSub by Katayama Hirofumi MZ
//
//
// To the extent possible under law, the person who associated CC0 with
// FontSub has waived all copyright and related or neighboring rights
// to FontSub.
//
//
// You should have received a copy of the CC0 legalcode along with this
// work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
@ -1479,7 +1479,7 @@ void MainWnd_OnClose(HWND hwnd)
{
WCHAR szUpdateNow[MAX_STRING];
LoadStringW(g_hInstance, IDS_QUERYUPDATE, szUpdateNow, _countof(szUpdateNow));
INT id = MessageBoxW(hwnd, szUpdateNow, g_szTitle,
INT id = MessageBoxW(hwnd, szUpdateNow, g_szTitle,
MB_ICONINFORMATION | MB_YESNOCANCEL);
switch (id)
{

View file

@ -1,9 +1,9 @@
/* FontSub by Katayama Hirofumi MZ
*
*
* To the extent possible under law, the person who associated CC0 with
* FontSub has waived all copyright and related or neighboring rights
* to FontSub.
*
*
* You should have received a copy of the CC0 legalcode along with this
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
*/

View file

@ -3,10 +3,10 @@ rem []------[ReactOS MAN Project ]--------[]
rem Project: ReactOS manual browser
rem File: man.cmd
rem Purpose: Clone of UNIX man
rem Programmers: Semyon Novikov
rem Programmers: Semyon Novikov
rem Version: 0.1.2
rem OS: WinNT/ReactOS/os2 eCs(testing)
rem License: GPL
rem License: GPL
rem []------------------------------------[]
@ -23,22 +23,22 @@ goto chk_param
if "%4"=="/create" attrib -r %MAN%\%SECTION%\%1.man
if "%4"=="/create" %ED% %MAN%\%SECTION%\%1.man
if "%4"=="/create" goto end
if "%2"=="/e" set ED=%MANED%
if "%2"=="/e" goto locate
if "%3"=="/e" set ED=%MANED%
if "%3"=="/e" goto chk_section
if "%2"=="" set ED=%MANMORE%
if "%2"=="" goto locate
:chk_section
set SECTION=%2
set ED=%MANMORE%
if "%3"=="/e" set ED=%MANED%
goto open_page
:locate
if exist %MAN%\1\%1.man set SECTION=1
if exist %MAN%\2\%1.man set SECTION=2

View file

@ -3,7 +3,7 @@
Purpose: Disk checking tool
Port on ROS: Emanuele Aliberti
License: GPL
Usage: %s [drive:] [-F] [-V] [-R] [-C]\n\n\
[drive:] Specifies the drive to check.\n\
-F Fixes errors on the disk.\n\

View file

@ -3,6 +3,6 @@
Purpose: Check a Dynamic Link Library (DLL) for loading
Author: Emanuele Aliberti
License: GPL
Usage: chklib.exe module [symbol [, ...]]

View file

@ -11,11 +11,11 @@ Usage: format.com drive: [-FS:file-system] [-V:label] [-Q] [-A:size] [-C]
-FS:file-system Specifies the type of file system (e.g. FAT).
-V:label Specifies volume label.
-Q Performs a quick format.
-A:size Overrides the default allocation unit size.
-A:size Overrides the default allocation unit size.
Default settings are strongly recommended for general
use NTFS supports 512, 1024, 2048, 4096, 8192, 16K,
use NTFS supports 512, 1024, 2048, 4096, 8192, 16K,
32K, 64K. FAT supports 8192, 16K, 32K, 64K, 128K, 256K.
NTFS compression is not supported for allocation
NTFS compression is not supported for allocation
unit sizes above 4096.
-C Files created on the new volume will be compressed by
default.

View file

@ -3,7 +3,7 @@
Author: Semyon Novikov <tappak>
Purpose: ReactOS manual browser and manual pages
License: GPL
1. Built in cmd.exe commands
2. Console utils
3. GUI utils
@ -16,6 +16,6 @@
Usage: man [command] [section] [/e] [/create]
Example: o man man
o man man /e
o man man 2
o man quake3 5 /e /create
o man man 2
o man quake3 5 /e /create

View file

@ -1,9 +1,9 @@
[]==============================[ping.exe]=======================================[]
[]==============================[ping.exe]=======================================[]
Ptoject: ReactOS ping utility
Purpose: Network test utility
Programmers: Casper S. Hornstrup (chorns@users.sourceforge.net)
Usage: ping [-t] [-n count] [-l size] [-w timeout] destination-host\n\n
-t Ping the specified host until stopped.
To stop - type Control-C.

View file

@ -2,7 +2,7 @@
Author: Brian Palmer
Purpose: ROS task manager
License: GPL

View file

@ -12,10 +12,10 @@ This project is UNIX(tm) man compatible tool for ReactOS.
.NL
Manual browser support next tags:
.NL
.I ./"
.I ./"
as comment tag
.NL
.I .NL
.I .NL
as "new line" tag (ReactOS only)
.NL
.I .B
@ -33,13 +33,13 @@ as "new line" tag (ReactOS only)
.SH OPTIONS
At this moment man support only
.B "/?, /h, -h, --help"
arguments :)
arguments :)
.SH FILES
Now all of manual pages must be in
.B c:\man\
.B c:\man\
directory. This is hack or
bug, i don't know... We planed use ENVIRONMENT
varrible to set manual path.
varrible to set manual path.
.NL
Manual files should have extension which marks section of his content.
.NL
@ -84,7 +84,7 @@ man can't correctly scroll screen
tag who absent in original man
.NL
.I ./" hack
at the end of man file must be ./" tag
at the end of man file must be ./" tag
.NL
.I putchar() method
all text displays with putchar() function.
@ -92,7 +92,7 @@ all text displays with putchar() function.
And we have non correct word carry.
.SH AUTHOR
Semyon <tappak> Novikov
Semyon <tappak> Novikov
.NL
.I <tappak@freemail.ru>
.NL

View file

@ -77,7 +77,7 @@ RegGetSZ(HKEY hKey, LPCWSTR lpSubKey, LPCWSTR lpValueName, LPWSTR lpBuf, DWORD c
/* NULL-terminate string */
lpBuf[min(cchBuf-1, cChars)] = L'\0';
/* Don't count NULL characters */
while(cChars && !lpBuf[cChars-1])
--cChars;
@ -423,12 +423,12 @@ AllSysInfo(VOID)
{
swprintf(Tmp, L"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\%u", i);
j = swprintf(Buf, L"[%02u]: ", i + 1);
j += RegGetSZ(HKEY_LOCAL_MACHINE, Tmp, L"Identifier", Buf + j, BUFFER_SIZE - j);
if(j + 1 < BUFFER_SIZE)
Buf[j++] = L' ';
RegGetSZ(HKEY_LOCAL_MACHINE, Tmp, L"VendorIdentifier", Buf + j, BUFFER_SIZE - j);
PrintRow(0, FALSE, L"%s", Buf);
}
@ -628,7 +628,7 @@ AllSysInfo(VOID)
++cAdapters;
pCurrentAdapter = pCurrentAdapter->Next;
}
/* Print adapters count */
if (!LoadStringW(GetModuleHandle(NULL), IDS_NETWORK_CARDS_FORMAT, Tmp, BUFFER_SIZE))

View file

@ -1332,7 +1332,7 @@ static ChildWnd* alloc_child_window(LPCWSTR path, LPITEMIDLIST pidl, HWND hwnd)
pathlen--;
}
lstrcpynW(child->path, npath, pathlen + 1);
_wsplitpath(child->path, drv, dir, name, ext);
}

View file

@ -559,7 +559,7 @@ VcdRead(PDEVICE_OBJECT DeviceObject, PIRP Irp)
* FSD performing initial reads for mouting FS)
*/
Stack = IoGetCurrentIrpStackLocation(Irp);
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
!BooleanFlagOn(Stack->Flags, SL_OVERRIDE_VERIFY_VOLUME))
{
Status = ViVerifyVolume(DeviceObject, Irp);
@ -687,7 +687,7 @@ ViGetDriveGeometry(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/* No geometry if volume is to be verified */
Stack = IoGetCurrentIrpStackLocation(Irp);
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
!BooleanFlagOn(Stack->Flags, SL_OVERRIDE_VERIFY_VOLUME))
{
return ViVerifyVolume(DeviceObject, Irp);
@ -727,7 +727,7 @@ ViCheckVerify(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/* Do we have to verify? */
Stack = IoGetCurrentIrpStackLocation(Irp);
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
!BooleanFlagOn(Stack->Flags, SL_OVERRIDE_VERIFY_VOLUME))
{
return ViSetIoStatus(STATUS_VERIFY_REQUIRED, 0, Irp);
@ -809,7 +809,7 @@ ViReadToc(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/* No TOC if we have to verify */
Stack = IoGetCurrentIrpStackLocation(Irp);
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
!BooleanFlagOn(Stack->Flags, SL_OVERRIDE_VERIFY_VOLUME))
{
return ViVerifyVolume(DeviceObject, Irp);
@ -852,7 +852,7 @@ ViReadTocEx(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/* No TOC if we have to verify */
Stack = IoGetCurrentIrpStackLocation(Irp);
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
!BooleanFlagOn(Stack->Flags, SL_OVERRIDE_VERIFY_VOLUME))
{
return ViVerifyVolume(DeviceObject, Irp);
@ -873,7 +873,7 @@ ViReadTocEx(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/* Validate the input buffer - see cdrom_new */
TocEx = Irp->AssociatedIrp.SystemBuffer;
if ((TocEx->Reserved1 != 0) || (TocEx->Reserved2 != 0) ||
(TocEx->Reserved3 != 0))
(TocEx->Reserved3 != 0))
{
return ViSetIoStatus(STATUS_INVALID_PARAMETER, 0, Irp);
}
@ -927,7 +927,7 @@ ViGetLastSession(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/* No last session if we have to verify */
Stack = IoGetCurrentIrpStackLocation(Irp);
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
if (BooleanFlagOn(DeviceObject->Flags, DO_VERIFY_VOLUME) &&
!BooleanFlagOn(Stack->Flags, SL_OVERRIDE_VERIFY_VOLUME))
{
return ViVerifyVolume(DeviceObject, Irp);

View file

@ -8,7 +8,7 @@ source before you attempt to build anything in this module.
It is to be placed under "modules" subdirectory of a trunk checkout.
The module requires to be enabled during the "configure" process.
To include the module in your build folder, run the configure script with the flags -DENABLE_ROSAPPS=1
To include the module in your build folder, run the configure script with the flags -DENABLE_ROSAPPS=1
# For Windows users
@ -16,4 +16,4 @@ To include the module in your build folder, run the configure script with the fl
# For UNIX users
./configure.sh -DENABLE_ROSAPPS=1
./configure.sh -DENABLE_ROSAPPS=1

View file

@ -137,7 +137,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
}
//goto def;
break;
case WM_LBUTTONDOWN: {
RECT rt;
int x = LOWORD(lParam);

View file

@ -1,7 +1,7 @@
/*
* PROJECT: ReactOS services
* LICENSE: GPL - See COPYING in the top level directory
* FILE:
* FILE:
* PURPOSE: skeleton service
* COPYRIGHT: Copyright 2008 Ged Murphy <gedmurphy@reactos.org>
*

View file

@ -1,7 +1,7 @@
/*
* PROJECT: ReactOS services
* LICENSE: GPL - See COPYING in the top level directory
* FILE:
* FILE:
* PURPOSE: skeleton service
* COPYRIGHT: Copyright 2008 Ged Murphy <gedmurphy@reactos.org>
*
@ -49,7 +49,7 @@ OpenLogFile()
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);
if (hLogFile == INVALID_HANDLE_VALUE)
if (hLogFile == INVALID_HANDLE_VALUE)
return FALSE;
return TRUE;