gestaltmodule.c: interface to Gestalt Manager.

macosmodule.c: interface to random collection of Managers.
macsetfiletype.c: set file type, for import.c.
This commit is contained in:
Guido van Rossum 1994-09-16 10:54:21 +00:00
parent bf677edc45
commit 2d16703d65
3 changed files with 475 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/*
* macsetfiletype - Set the mac's idea of file type
*
*/
#include <Files.h>
#include <pascal.h>
int
setfiletype(name, creator, type)
char *name;
long creator, type;
{
FInfo info;
unsigned char *pname;
pname = c2pstr(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
info.fdType = type;
info.fdCreator = creator;
return SetFInfo(pname, 0, &info);
}