mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
(rootrelativepath) [MSDOS]: Define, expanding to dynamic
location of data directory.
This commit is contained in:
parent
54133323d2
commit
35ebc5cf90
@ -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[];
|
||||
|
Loading…
Reference in New Issue
Block a user