jcs
/amend
/amendments
/58
util: Make getpath input const
jcs made amendment 58 over 2 years ago
--- util.c Thu Feb 3 16:35:25 2022
+++ util.c Thu Feb 3 17:20:28 2022
@@ -559,7 +559,8 @@ xSetHandleSize(Handle h, Size s)
*/
short
-getpath(short vRefNum, Str255 fileName, Str255 *ret, bool include_file)
+getpath(const short vRefNum, const Str255 fileName, Str255 *ret,
+ bool include_file)
{
WDPBRec wdir;
HVolumeParam wvol;
--- util.h Thu Feb 3 16:41:00 2022
+++ util.h Thu Feb 3 17:20:40 2022
@@ -96,7 +96,7 @@ char *xGetStringAsChar(short id);
long xGetStringAsLong(short id);
void xSetHandleSize(Handle h, Size s);
-short getpath(short vRefNum, Str255 fileName, Str255 *ret,
+short getpath(const short vRefNum, const Str255 fileName, Str255 *ret,
bool include_file);
bool FIsDir(Str255 path);
short stat(char *path, struct stat *sb);