From 9aa53cad579ee4001635fc387f09610c90a3e08f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 14 Mar 2021 07:16:30 +0000 Subject: [PATCH] Reformat code. --- setter/src/macos/attr.c | 14 +++++++------- setter/src/macos/deleted.c | 12 ++++++------ setter/src/macos/dirdepth.c | 12 ++++++------ setter/src/macos/filename.c | 18 +++++++++--------- setter/src/macos/files.c | 18 +++++++++--------- setter/src/macos/links.c | 20 ++++++++++---------- setter/src/macos/retro68.h | 6 ------ setter/src/macos/rsrcfork.c | 14 +++++++------- setter/src/macos/time.c | 18 +++++++++--------- 9 files changed, 63 insertions(+), 69 deletions(-) diff --git a/setter/src/macos/attr.c b/setter/src/macos/attr.c index 797bbf3..cb2c6b1 100644 --- a/setter/src/macos/attr.c +++ b/setter/src/macos/attr.c @@ -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; diff --git a/setter/src/macos/deleted.c b/setter/src/macos/deleted.c index d921971..dd8b02a 100644 --- a/setter/src/macos/deleted.c +++ b/setter/src/macos/deleted.c @@ -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; diff --git a/setter/src/macos/dirdepth.c b/setter/src/macos/dirdepth.c index af8d33b..7b6b386 100644 --- a/setter/src/macos/dirdepth.c +++ b/setter/src/macos/dirdepth.c @@ -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; diff --git a/setter/src/macos/filename.c b/setter/src/macos/filename.c index 568f9f9..a51bf0e 100644 --- a/setter/src/macos/filename.c +++ b/setter/src/macos/filename.c @@ -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; diff --git a/setter/src/macos/files.c b/setter/src/macos/files.c index a951074..f6e2792 100644 --- a/setter/src/macos/files.c +++ b/setter/src/macos/files.c @@ -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; diff --git a/setter/src/macos/links.c b/setter/src/macos/links.c index ba1d340..f3e91fc 100644 --- a/setter/src/macos/links.c +++ b/setter/src/macos/links.c @@ -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; diff --git a/setter/src/macos/retro68.h b/setter/src/macos/retro68.h index 904f77e..9f87dda 100644 --- a/setter/src/macos/retro68.h +++ b/setter/src/macos/retro68.h @@ -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 **************/ diff --git a/setter/src/macos/rsrcfork.c b/setter/src/macos/rsrcfork.c index 1c0266c..fd4159d 100644 --- a/setter/src/macos/rsrcfork.c +++ b/setter/src/macos/rsrcfork.c @@ -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; diff --git a/setter/src/macos/time.c b/setter/src/macos/time.c index 717d9a6..818699a 100644 --- a/setter/src/macos/time.c +++ b/setter/src/macos/time.c @@ -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;