Mercurial > emacs
changeset 7820:128950f29e66
(rootrelativepath) [MSDOS]: Define, expanding to dynamic
location of data directory.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 07 Jun 1994 15:19:33 +0000 |
parents | de6995fec29e |
children | f96225d8c3eb |
files | lib-src/yow.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/yow.c Tue Jun 07 15:16:39 1994 +0000 +++ b/lib-src/yow.c Tue Jun 07 15:19:33 1994 +0000 @@ -18,6 +18,18 @@ #define YOW_FILE "yow.lines" #endif +#ifdef MSDOS +#define rootrelativepath(rel) \ +({\ + static char res[BUFSIZE], *p;\ + strcpy (res, argv[0]);\ + p = res + strlen (res);\ + while (p != res && *p != '/' && *p != '\\' && *p != ':') p--;\ + strcpy (p + 1, "../");\ + strcpy (p + 4, rel);\ + &res;}) +#endif + main (argc, argv) int argc; char *argv[];