summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-06-07 15:19:33 +0000
committerRichard M. Stallman <rms@gnu.org>1994-06-07 15:19:33 +0000
commit35ebc5cf90670c92f1676a0d4f1ae3419e90cbed (patch)
tree5f680e569a364b33abdf84e6a7a57cf3ece38986 /lib-src
parent54133323d22258c5ac36b020dbf45600b0cc313f (diff)
downloademacs-35ebc5cf90670c92f1676a0d4f1ae3419e90cbed.tar.gz
(rootrelativepath) [MSDOS]: Define, expanding to dynamic
location of data directory.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/yow.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib-src/yow.c b/lib-src/yow.c
index cbcf9f4c84c..0f289a19358 100644
--- a/lib-src/yow.c
+++ b/lib-src/yow.c
@@ -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[];