Replace non-leading tabs with spaces, using:

find -type f |  # list all regular files
  grep -E '\.(h|cpp|mm)$' |  # filter for source files
  grep -v '/mt_' |  # filter out generated files
  grep -v '/vendor/' | # and vendored GL
  xargs -n 1 -P $(nproc) ./replace_non_leading_tabs.lua  # reformat everything
This commit is contained in:
Desour
2024-03-21 17:30:28 +01:00
parent 58783e4ca3
commit e7bbbf9e30
42 changed files with 537 additions and 537 deletions

View File

@ -73,13 +73,13 @@ struct SZIPFileCentralDirFileHeader
struct SZIPFileCentralDirEnd
{
u32 Sig; // 'PK0506' end_of central dir signature // (0x06054b50)
u16 NumberDisk; // number of this disk
u32 Sig; // 'PK0506' end_of central dir signature // (0x06054b50)
u16 NumberDisk; // number of this disk
u16 NumberStart; // number of the disk with the start of the central directory
u16 TotalDisk; // total number of entries in the central dir on this disk
u16 TotalDisk; // total number of entries in the central dir on this disk
u16 TotalEntries; // total number of entries in the central dir
u32 Size; // size of the central directory
u32 Offset; // offset of start of centraldirectory with respect to the starting disk number
u32 Size; // size of the central directory
u32 Offset; // offset of start of centraldirectory with respect to the starting disk number
u16 CommentLength; // zipfile comment length
// zipfile comment (variable size)
} PACK_STRUCT;
@ -109,7 +109,7 @@ enum E_GZIP_FLAGS
struct SGZIPMemberHeader
{
u16 sig; // 0x8b1f
u16 sig; // 0x8b1f
u8 compressionMethod; // 8 = deflate
u8 flags;
u32 time;