Changeset 3480 for trunk/src/kash/exec.c


Ignore:
Timestamp:
Sep 21, 2020, 1:20:56 PM (5 years ago)
Author:
bird
Message:

kash: build fixes (darwin).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/exec.c

    r3477 r3480  
    168168 * Check if 'path' is an absolute (starts with root) path or not.
    169169 */
    170 K_INLINE isabspath(const char *path)
     170K_INLINE int isabspath(const char *path)
    171171{
    172172#if K_OS == K_OS_WINDOWS || K_OS == K_OS_OS2
     
    187187 * Checks if the filename include a path or not.
    188188 */
    189 K_INLINE haspath(const char *name)
     189K_INLINE int haspath(const char *name)
    190190{
    191191#if K_OS == K_OS_WINDOWS || K_OS == K_OS_OS2
     
    659659        int idx;
    660660        int prev;
    661         int norehashoncd = 1;
    662661        char *fullname;
    663662        int e;
     
    847846                cmdp->cmdtype = CMDNORMAL;
    848847                cmdp->param.n.index = idx;
     848#ifdef PC_EXE_EXTS
    849849                cmdp->param.n.suffix = suffix;
     850#else
     851                cmdp->param.n.suffix = 0;
     852#endif
    850853                INTON;
    851854                goto success;
Note: See TracChangeset for help on using the changeset viewer.