Commit 35ebc5cf authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rootrelativepath) [MSDOS]: Define, expanding to dynamic

location of data directory.
parent 54133323
......@@ -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[];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment