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/error.h

    r1233 r2298  
    9898#endif
    9999
    100 void exraise(struct shinstance *, int) __attribute__((__noreturn__));
     100SH_NORETURN_1 void exraise(struct shinstance *, int) SH_NORETURN_2;
    101101void onint(struct shinstance *);
    102 void error(struct shinstance *, const char *, ...) __attribute__((__noreturn__));
    103 void exerror(struct shinstance *, int, const char *, ...) __attribute__((__noreturn__));
     102SH_NORETURN_1 void error(struct shinstance *, const char *, ...) SH_NORETURN_2;
     103SH_NORETURN_1 void exerror(struct shinstance *, int, const char *, ...) SH_NORETURN_2;
    104104const char *errmsg(struct shinstance *, int, int);
    105105
    106 void sh_err(struct shinstance *, int, const char *, ...) __attribute__((__noreturn__));
    107 void sh_verr(struct shinstance *, int, const char *, va_list) __attribute__((__noreturn__));
    108 void sh_errx(struct shinstance *, int, const char *, ...) __attribute__((__noreturn__));
    109 void sh_verrx(struct shinstance *, int, const char *, va_list) __attribute__((__noreturn__));
     106SH_NORETURN_1 void sh_err(struct shinstance *, int, const char *, ...) SH_NORETURN_2;
     107SH_NORETURN_1 void sh_verr(struct shinstance *, int, const char *, va_list) SH_NORETURN_2;
     108SH_NORETURN_1 void sh_errx(struct shinstance *, int, const char *, ...) SH_NORETURN_2;
     109SH_NORETURN_1 void sh_verrx(struct shinstance *, int, const char *, va_list) SH_NORETURN_2;
    110110void sh_warn(struct shinstance *, const char *, ...);
    111111void sh_vwarn(struct shinstance *, const char *, va_list);
     
    113113void sh_vwarnx(struct shinstance *, const char *, va_list);
    114114
    115 void sh_exit(struct shinstance *, int) __attribute__((__noreturn__));
     115SH_NORETURN_1 void sh_exit(struct shinstance *, int) SH_NORETURN_2;
    116116
    117117
Note: See TracChangeset for help on using the changeset viewer.