aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-07 15:19:33 +0000
committerRichard M. Stallman1994-06-07 15:19:33 +0000
commit35ebc5cf90670c92f1676a0d4f1ae3419e90cbed (patch)
tree5f680e569a364b33abdf84e6a7a57cf3ece38986 /lib-src
parent54133323d22258c5ac36b020dbf45600b0cc313f (diff)
downloademacs-35ebc5cf90670c92f1676a0d4f1ae3419e90cbed.tar.gz
emacs-35ebc5cf90670c92f1676a0d4f1ae3419e90cbed.zip
(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 @@
18#define YOW_FILE "yow.lines" 18#define YOW_FILE "yow.lines"
19#endif 19#endif
20 20
21#ifdef MSDOS
22#define rootrelativepath(rel) \
23({\
24 static char res[BUFSIZE], *p;\
25 strcpy (res, argv[0]);\
26 p = res + strlen (res);\
27 while (p != res && *p != '/' && *p != '\\' && *p != ':') p--;\
28 strcpy (p + 1, "../");\
29 strcpy (p + 4, rel);\
30 &res;})
31#endif
32
21main (argc, argv) 33main (argc, argv)
22 int argc; 34 int argc;
23 char *argv[]; 35 char *argv[];