summaryrefslogtreecommitdiffstats
path: root/bin/sh/error.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-12-21 23:09:59 +0000
committerjilles <jilles@FreeBSD.org>2014-12-21 23:09:59 +0000
commit69642127b499da2a10ddacccdef93a5ec591f2da (patch)
treedab5b3d86b3e1183dd29aed48130efe830dbc6ec /bin/sh/error.h
parentffe29740d4971390457d911c48e446936d72eccb (diff)
downloadFreeBSD-src-69642127b499da2a10ddacccdef93a5ec591f2da.zip
FreeBSD-src-69642127b499da2a10ddacccdef93a5ec591f2da.tar.gz
sh: Move some code from onint() to onsig(), making onint() noreturn.
As a result, the INTON macro which is used many times generates fewer bytes of code.
Diffstat (limited to 'bin/sh/error.h')
-rw-r--r--bin/sh/error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/error.h b/bin/sh/error.h
index d0a4bca..a60b1fa 100644
--- a/bin/sh/error.h
+++ b/bin/sh/error.h
@@ -75,11 +75,12 @@ extern volatile sig_atomic_t intpending;
#define is_int_on() suppressint
#define SETINTON(s) suppressint = (s)
#define FORCEINTON {suppressint = 0; if (intpending) onint();}
+#define SET_PENDING_INT intpending = 1
#define CLEAR_PENDING_INT intpending = 0
#define int_pending() intpending
void exraise(int) __dead2;
-void onint(void);
+void onint(void) __dead2;
void warning(const char *, ...) __printflike(1, 2);
void error(const char *, ...) __printf0like(1, 2) __dead2;
void exerror(int, const char *, ...) __printf0like(2, 3) __dead2;
OpenPOWER on IntegriCloud