Reformat code.

This commit is contained in:
2021-03-14 07:16:30 +00:00
parent 10efebaef6
commit 9aa53cad57
9 changed files with 63 additions and 69 deletions

View File

@@ -45,13 +45,13 @@ Copyright (C) 2011-2021 Natalia Portillo
void FileAttributes(const char* path)
{
OSErr rc, wRc, cRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
OSErr rc, wRc, cRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
int32_t count;
HParamBlockRec fpb;
HParamBlockRec dirPB;

View File

@@ -44,12 +44,12 @@ Copyright (C) 2011-2021 Natalia Portillo
void DeleteFiles(const char* path)
{
OSErr rc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int32_t dirId;
char filename[9];
OSErr rc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int32_t dirId;
char filename[9];
int pos;
HParamBlockRec dirPB;

View File

@@ -40,12 +40,12 @@ Copyright (C) 2011-2021 Natalia Portillo
void DirectoryDepth(const char* path)
{
OSErr rc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int32_t dirId;
char filename[9];
OSErr rc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int32_t dirId;
char filename[9];
int pos = 0;
HParamBlockRec dirPB;

View File

@@ -45,15 +45,15 @@ Copyright (C) 2011-2021 Natalia Portillo
void Filenames(const char* path)
{
OSErr rc, wRc, cRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
int32_t count;
char message[300];
OSErr rc, wRc, cRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
int32_t count;
char message[300];
int pos = 0;
HParamBlockRec dirPB;

View File

@@ -45,15 +45,15 @@ Copyright (C) 2011-2021 Natalia Portillo
void MillionFiles(const char* path)
{
OSErr rc, wRc, cRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
int32_t count;
char filename[9];
OSErr rc, wRc, cRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
int32_t count;
char filename[9];
int pos = 0;
HParamBlockRec dirPB;

View File

@@ -85,16 +85,16 @@ static pascal OSErr CreateAliasFile(FSSpec* targetFile, FSSpec* aliasFile, OSTyp
void Links(const char* path)
{
int32_t gestaltResponse;
OSErr rc, wRc, cRc, oRc, aRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
char filename[9];
int pos;
FSSpec targetSpec, aliasSpec;
int32_t gestaltResponse;
OSErr rc, wRc, cRc, oRc, aRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
char filename[9];
int pos;
FSSpec targetSpec, aliasSpec;
int32_t count;
HParamBlockRec dirPB;

View File

@@ -5,12 +5,6 @@
#ifndef SETTER_SRC_MACOS_RETRO68_H_
#define SETTER_SRC_MACOS_RETRO68_H_
enum
{
fsRtParID = 1,
fsRtDirID = 2
};
#define FOUR_CHAR_CODE(x) (x)
/************** PC-DOS applications and FileTypes **************/

View File

@@ -84,13 +84,13 @@ static OSErr SaveResourceToNewFile(int16_t vRefNum,
void ResourceFork(const char* path)
{
OSErr rc, wRc, cRc, rRc, rRc2, rRc3;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
OSErr rc, wRc, cRc, rRc, rRc2, rRc3;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
FInfo finderInfo;
int32_t count;
HParamBlockRec fpb;
HParamBlockRec dirPB;

View File

@@ -44,15 +44,15 @@ Copyright (C) 2011-2021 Natalia Portillo
void Timestamps(const char* path)
{
OSErr rc, wRc, cRc, tRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
int32_t count;
HFileInfo* fpb;
CInfoPBRec cipbr;
OSErr rc, wRc, cRc, tRc;
Str255 str255;
HVolumeParam hpb;
int16_t refNum;
int16_t refFile;
int32_t dirId;
int32_t count;
HFileInfo* fpb;
CInfoPBRec cipbr;
char message[300];
HParamBlockRec dirPB;
int i;