|
From: <cre...@us...> - 2006-10-04 00:48:37
|
Revision: 1540
http://svn.sourceforge.net/frontierkernel/?rev=1540&view=rev
Author: creecode
Date: 2006-10-03 11:08:45 -0700 (Tue, 03 Oct 2006)
Log Message:
-----------
minor formatting tweaks
Modified Paths:
--------------
Frontier/branches/FSRef_Migration/Common/source/fileops.c
Modified: Frontier/branches/FSRef_Migration/Common/source/fileops.c
===================================================================
--- Frontier/branches/FSRef_Migration/Common/source/fileops.c 2006-10-03 18:06:38 UTC (rev 1539)
+++ Frontier/branches/FSRef_Migration/Common/source/fileops.c 2006-10-03 18:08:45 UTC (rev 1540)
@@ -1250,11 +1250,28 @@
boolean fileisfolder (const ptrfilespec fs, boolean *flfolder) {
//
- // 2006-06-19 creedon: Mac OS X bundles/packages are not considered folders
+ // 2006-10-01 creedon: Mac OS X bundles/packages are not considered folders
//
tyfileinfo info;
+ #ifdef MACVERSION
+
+ // Mac OS X bundles/packages are not considered folders
+
+ boolean flisapplication, flisbundle;
+
+ LSIsApplication ( &( *fs ).fsref, &flisapplication, &flisbundle );
+
+ if ( flisapplication || flisbundle ) {
+
+ *flfolder = false;
+
+ return ( true );
+
+ }
+ #endif
+
#ifdef WIN95VERSION
// special case the root directory on Windows
@@ -1282,19 +1299,6 @@
*flfolder = info.flfolder;
- #ifdef MACVERSION
-
- // Mac OS X bundles/packages are not considered folders
-
- boolean flisapplication, flisbundle;
-
- LSIsApplication ( &( *fs ).fsref, &flisapplication, &flisbundle );
-
- if ( flisapplication || flisbundle )
- *flfolder = false;
-
- #endif
-
return ( true );
} // fileisfolder
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|