about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-17 04:43:48 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-17 05:12:36 +0000
commit8bc4400762289e5cdbcfa50aab5982f8e7e28dfc (patch)
tree7fc5f89ac89b1ec686da40e409723436d3a167f7 /Src/init.c
parent2cb15a23f8a61adf11634d1ee6a9eeca57e68b30 (diff)
downloadzsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.gz
zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.tar.xz
zsh-8bc4400762289e5cdbcfa50aab5982f8e7e28dfc.zip
45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/init.c b/Src/init.c
index 2306d7bdf..2e2ef881c 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -161,7 +161,7 @@ loop(int toplevel, int justonce)
 		 * Handle that now.
 		 */
 		stopmsg = 1;
-		zexit(exit_val, 0);
+		zexit(exit_val, ZEXIT_NORMAL);
 	    }
 	    if (tok == LEXERR && !lastval)
 		lastval = 1;
@@ -1371,7 +1371,7 @@ init_misc(char *cmd, char *zsh_name)
 	bshin = fdopen(SHIN, "r");
 	execstring(cmd, 0, 1, "cmdarg");
 	stopmsg = 1;
-	zexit((exit_pending || shell_exiting) ? exit_val : lastval, 0);
+	zexit((exit_pending || shell_exiting) ? exit_val : lastval, ZEXIT_NORMAL);
     }
 
     if (interact && isset(RCS))
@@ -1778,20 +1778,20 @@ zsh_main(UNUSED(int argc), char **argv)
 	    if (!lastval)
 		lastval = 1;
 	    stopmsg = 1;
-	    zexit(lastval, 0);
+	    zexit(lastval, ZEXIT_NORMAL);
 	}
 	if (!(isset(IGNOREEOF) && interact)) {
 #if 0
 	    if (interact)
 		fputs(islogin ? "logout\n" : "exit\n", shout);
 #endif
-	    zexit(lastval, 0);
+	    zexit(lastval, ZEXIT_NORMAL);
 	    continue;
 	}
 	noexitct++;
 	if (noexitct >= 10) {
 	    stopmsg = 1;
-	    zexit(lastval, 0);
+	    zexit(lastval, ZEXIT_NORMAL);
 	}
 	/*
 	 * Don't print the message if it was already handled by