Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
81f51c74
Commit
81f51c74
authored
Feb 20, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added GetDirectory() method
parent
6fc5aecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
Mac/Modules/macfsmodule.c
Mac/Modules/macfsmodule.c
+16
-1
No files found.
Mac/Modules/macfsmodule.c
View file @
81f51c74
...
...
@@ -37,7 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define FileFilterUPP FileFilterProcPtr
#endif
static
object
*
ErrorObject
;
/* ----------------------------------------------------- */
...
...
@@ -550,12 +549,28 @@ mfs_RawAlias(self, args)
return
(
object
*
)
newmfsaobject
((
AliasHandle
)
h
);
}
static
object
*
mfs_GetDirectory
(
self
,
args
)
object
*
self
;
/* Not used */
object
*
args
;
{
FSSpec
fsdir
;
int
ok
;
if
(
!
newgetargs
(
args
,
""
)
)
return
NULL
;
ok
=
PyMac_GetDirectory
(
&
fsdir
);
return
mkvalue
(
"(Oi)"
,
newmfssobject
(
&
fsdir
),
ok
);
}
/* List of methods defined in the module */
static
struct
methodlist
mfs_methods
[]
=
{
{
"ResolveAliasFile"
,
mfs_ResolveAliasFile
,
1
},
{
"StandardGetFile"
,
mfs_StandardGetFile
,
1
},
{
"StandardPutFile"
,
mfs_StandardPutFile
,
1
},
{
"GetDirectory"
,
mfs_GetDirectory
,
1
},
{
"FSSpec"
,
mfs_FSSpec
,
1
},
{
"RawFSSpec"
,
mfs_RawFSSpec
,
1
},
{
"RawAlias"
,
mfs_RawAlias
,
1
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment