Ignore:
Timestamp:
Mar 1, 2009, 6:18:30 AM (16 years ago)
Author:
bird
Message:

kash: no return indicators that works for both gcc and msc (not pretty, but wtf).

File:
1 edited

Legend:

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

    r2296 r2298  
    744744}
    745745
    746 void sh_abort(shinstance *psh)
     746SH_NORETURN_1 void sh_abort(shinstance *psh)
    747747{
    748748    shsigset_t set;
     
    910910    return 0;
    911911}
     912#include <setjmp.h>
    912913
    913914pid_t sh_fork(shinstance *psh)
     
    921922#elif K_OS == K_OS_WINDOWS //&& defined(SH_FORKED_MODE)
    922923    pid = shfork_do_it(psh);
    923 # ifdef DEBUG
    924     if (!pid)
    925         opentrace(psh);
    926 # endif
    927924
    928925#elif defined(SH_STUB_MODE) || defined(SH_FORKED_MODE)
     
    10691066}
    10701067
    1071 void sh__exit(shinstance *psh, int rc)
     1068SH_NORETURN_1 void sh__exit(shinstance *psh, int rc)
    10721069{
    10731070    TRACE2((psh, "sh__exit(%d)\n", rc));
Note: See TracChangeset for help on using the changeset viewer.