diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
commit | c7d035ae1a729232579a0fe41ed5affa131d3623 (patch) | |
tree | fb387f7c2a8e01cf603d4c75fbbaa68f711df986 /script.c | |
parent | deda2c0fd8689349fea2a900199a76ff7ecb319e (diff) | |
download | scm-c7d035ae1a729232579a0fe41ed5affa131d3623.tar.gz scm-c7d035ae1a729232579a0fe41ed5affa131d3623.zip |
Import Upstream version 5d9upstream/5d9
Diffstat (limited to 'script.c')
-rw-r--r-- | script.c | 41 |
1 files changed, 13 insertions, 28 deletions
@@ -155,34 +155,6 @@ char *script_find_executable(name) } #endif /* unix */ -#ifdef MSDOS -# define DEFAULT_PATH "C:\\DOS" -# define PATH_DELIMITER ';' -# define ABSOLUTE_FILENAME_P(fname) ((fname[0] == '\\') \ - || (fname[0] && (fname[1] == ':'))) - -char *dld_find_executable(file) - const char *file; -{ - /* fprintf(stderr, "dld_find_executable %s -> %s\n", file, scm_cat_path(0L, file, 0L)); fflush(stderr); */ - return scm_cat_path(0L, file, 0L); -} -#endif /* def MSDOS */ - -#ifdef __IBMC__ -# define PATH_DELIMITER ';' -# define ABSOLUTE_FILENAME_P(fname) ((fname[0] == '/') \ - || (fname[0] == '\\') \ - || (fname[0] && (fname[1] == ':'))) - -char *dld_find_executable(file) - const char *file; -{ - /* fprintf(stderr, "dld_find_executable %s -> %s\n", file, scm_cat_path(0L, file, 0L)); fflush(stderr); */ - return scm_cat_path(0L, file, 0L); -} -#endif /* def __IBMC__ */ - /* Given dld_find_executable()'s best guess for the pathname of this executable, find (and verify the existence of) initname in the implementation-vicinity of this program. Returns a newly allocated @@ -420,3 +392,16 @@ int script_count_argv(argv) while (argv[argc]) argc++; return argc; } + +#ifdef __IBMC__ +# define MSDOS +#endif + +#ifdef MSDOS +char *dld_find_executable(file) + const char *file; +{ + /* fprintf(stderr, "dld_find_executable %s -> %s\n", file, scm_cat_path(0L, file, 0L)); fflush(stderr); */ + return scm_cat_path(0L, file, 0L); +} +#endif /* def MSDOS */ |