MWCC/command_line/CmdLine/Src/OSLib/Generic.c

94 lines
1.8 KiB
C

#include "oslib.h"
static char wildname[63];
static char wilddir[255];
static OSOpenedDir wilddirref;
static OSSpec wildmatch;
char STSbuf[256];
int WildCardMatch(const char *wild, const char *name) {
char next;
const char *prev;
}
OSSpec *OS_MatchPath(const char *path) {
char filename[64];
Boolean isfile;
OSSpec spec;
const char *nptr;
}
char *OS_GetFileNamePtr(char *path) {
char *ptr;
}
char *OS_GetDirName(const OSPathSpec *spec, char *buf, int size) {
char *path;
char *pptr;
}
int OS_MakeSpec2(const char *path, const char *filename, OSSpec *spec) {
char bpath[256];
char *eptr;
int pthlen;
int fnlen;
}
int OS_MakeSpecWithPath(OSPathSpec *path, const char *filename, Boolean noRelative, OSSpec *spec) {
Boolean relpath;
char buf[256];
char *mptr;
char *eptr;
}
int OS_NameSpecChangeExtension(OSNameSpec *spec, const char *ext, Boolean append) {
char tmp[64];
char *per;
}
int OS_NameSpecSetExtension(OSNameSpec *spec, const char *ext) {
char tmp[64];
char *per;
}
char *OS_CompactPaths(char *buf, const char *p, const char *n, int size) {
int plen;
int nlen;
char *ptr;
int bidx;
}
char *OS_SpecToStringRelative(const OSSpec *spec, const OSPathSpec *cwdspec, char *path, int size) {
char fullbuf[256];
char *full;
char cwfbuf[256];
char *cwd;
OSPathSpec mycwdspec;
char *pptr;
}
int OS_FindFileInPath(const char *filename, const char *plist, OSSpec *spec) {
char *next;
char path[256];
int err;
}
int OS_FindProgram(const char *filename, OSSpec *spec) {
char *plist;
int err;
char temp[256];
}
int OS_CopyHandle(OSHandle *hand, OSHandle *copy) {
int err;
UInt32 sz;
void *f;
void *t;
}
int OS_AppendHandle(OSHandle *hand, const void *data, UInt32 len) {
int err;
UInt32 sz;
void *buffer;
}