summaryrefslogtreecommitdiff
path: root/command_line/CmdLine/Src/OSLib/Generic.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2022-10-12 03:03:57 +0100
committerAsh Wolf <ninji@wuffs.org>2022-10-12 03:03:57 +0100
commit45e57168fa0d33206731e391fb24759ddf179861 (patch)
treed09621ca6e201865ce9975fa72426f63ac054fd3 /command_line/CmdLine/Src/OSLib/Generic.c
parent4c9d73d7243c82ca3f55d2d8a388328968303b3f (diff)
downloadMWCC-45e57168fa0d33206731e391fb24759ddf179861.tar.gz
MWCC-45e57168fa0d33206731e391fb24759ddf179861.zip
lots more reorganisation, done part of OSLib
Diffstat (limited to '')
-rw-r--r--command_line/CmdLine/Src/OSLib/Generic.c93
1 files changed, 93 insertions, 0 deletions
diff --git a/command_line/CmdLine/Src/OSLib/Generic.c b/command_line/CmdLine/Src/OSLib/Generic.c
index e69de29..4430790 100644
--- a/command_line/CmdLine/Src/OSLib/Generic.c
+++ b/command_line/CmdLine/Src/OSLib/Generic.c
@@ -0,0 +1,93 @@
+#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;
+}