/* * LoaderUtils.h * Copyright Ó 1989 by Xerox Corporation. All rights reserved. * bj, August 4, 1989 10:31:46 pm PDT * eduardo, November 20, 1989 11:55:50 am PST */ /* handy character/string definitions */ #define CH_DOT '.' #define CH_TILDE '~' #define CH_SLASH '/' #define CH_CR '\n' #define CH_UNDERSCORE '_' #define STR_NULL "" #define STR_WHITESPACE " \t" #define STR_BLANK " " #define STR_SLASH "/" #define STR_DOT_TILDE ".~" #define STR_TILDE "~" #define STR_PUNCTUATION ",;()[]{}<> \t\n" #if 0 /* private (should never be compiled) */ static char *LowerCase(/*s*/); /* char *s */ static void StripCR(/*s*/); /* char *s */ static void StripSlash(/*s*/); /* char *s */ static int ParseBaseAndVersion(/*base*/); /* char *base */ static int ParseUName(/*name, pathPrefix, base*/); /* char *name, *pathPrefix, *base */ static void GetPattern(/*pattern, pathPrefix, base*/); /* char *pattern, *pathPrefix, *base */ static void ParseDirectoryAndFileName(/*directory, fileNamePrefix, pattern*/); /* char *directory, *fileNamePrefix, *pattern */ static int GetVersionFromName(/*name*/); /* char *name */ DIR *OpenDir(/*name*/); /* char *name */ int CloseDir(/*dirp*/); /* DIR *dirp */ struct dirent *ReadDir(/*dirp*/); /* DIR *dirp */ static int GetHighestVersion(/*pattern*/); /* char *pattern */ static void MakeUName(/*pattern, pathPrefix, base, version*/); /* char *pattern, *pathPrefix, *base; int version */ static void ExpandFileVersion(/*oldfile, newfile*/); /* char *oldfile, *newfile */ #endif /* CommandLoop Operations */ void getnewfile(/*oldfile, newfile*/); /* backward compat */ /* char *oldfile, *newfile */ void XR_Comment_Command(/*command*/); /* char *command */ void XR_RequireFrom_Command(/*command*/); /* char *command */ void XR_DRequireFrom_Command(/*command*/); /* char *command */ void XR_ORequireFrom_Command(/*command*/); /* char *command */ void XR_LoadFrom_Command(/*command*/); /* char *command */ void XR_RunFrom_Command(/*command*/); /* char *command */ void XR_ReleaseLocation_Command(/*command*/); /* char *command */ void XR_lrh_Command(/*command*/); /* char *command */ void XR_install_LoaderUtilsImpl(); /* PRE-start trap */ void XR_run_LoaderUtilsImpl(); /* start trap */ /*eof*/