summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2025-10-24 22:27:50 +0200
committerOliver Kiddle <opk@zsh.org>2025-10-24 22:38:23 +0200
commitc9417b03745b81fc0a6add2e54af9e118e4a6ce1 (patch)
tree39fb5b2b941ae9c4d7d4c7b71f34ec6d6fd301d2
parent53988: fix zparseopts segfault (diff)
downloadzsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.tar
zsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.tar.gz
zsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.tar.bz2
zsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.tar.lz
zsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.tar.xz
zsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.tar.zst
zsh-c9417b03745b81fc0a6add2e54af9e118e4a6ce1.zip
54001: add missing uses of mod_export
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_keymap.c2
-rw-r--r--Src/exec.c3
-rw-r--r--Src/input.c2
-rw-r--r--Src/jobs.c2
-rw-r--r--Src/utils.c6
6 files changed, 13 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f939d4894..5e9d0dd3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-10-24 Oliver Kiddle <opk@zsh.org>
+
+ * 54001: Src/Zle/zle_keymap.c, Src/exec.c, Src/input.c, Src/jobs.c,
+ Src/utils.c: add missing uses of mod_export
+
2025-10-24 dana <dana@dana.is>
* Joshua Krusell: 53988: Src/Modules/zutil.c,
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index 7f31f837c..cda24847d 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -123,7 +123,7 @@ struct remprefstate {
/**/
Keymap curkeymap, localkeymap;
/**/
-char *curkeymapname;
+mod_export char *curkeymapname;
/* the hash table of keymap names */
diff --git a/Src/exec.c b/Src/exec.c
index c1181c5eb..d39b6f3ac 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -5323,7 +5323,8 @@ static const char *const ANONYMOUS_FUNCTION_NAME = "(anon)";
* (though I doubt anyone would ever do that).
*/
/**/
-int is_anonymous_function_name(const char *name)
+mod_export int
+is_anonymous_function_name(const char *name)
{
return !strcmp(name, ANONYMOUS_FUNCTION_NAME);
}
diff --git a/Src/input.c b/Src/input.c
index 320fd6500..b78c91680 100644
--- a/Src/input.c
+++ b/Src/input.c
@@ -610,7 +610,7 @@ inungetc(int c)
/* stuff a whole file into memory and return it */
/**/
-off_t
+mod_export off_t
zstuff(char **out, const char *fn)
{
FILE *in;
diff --git a/Src/jobs.c b/Src/jobs.c
index 2d0465a22..66a7ec123 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -1105,7 +1105,7 @@ should_report_time(Job j)
}
/**/
-char *
+mod_export char *
sigmsg(int sig)
{
static char *unknown = "unknown signal";
diff --git a/Src/utils.c b/Src/utils.c
index 5e41b712b..e7e3f4f8d 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1071,7 +1071,7 @@ uid_t cached_uid;
char *cached_username;
/**/
-char *
+mod_export char *
get_username(void)
{
#ifdef USE_GETPWUID
@@ -2748,7 +2748,7 @@ read_poll(int fd, int *readchar, int polltty, zlong microseconds)
*/
/**/
-long
+mod_export long
timespec_diff_us(const struct timespec *t1, const struct timespec *t2)
{
int reverse = (t1->tv_sec > t2->tv_sec);
@@ -2793,7 +2793,7 @@ zmonotime(time_t *tloc)
*/
/**/
-int
+mod_export int
zsleep(long us)
{
#ifdef HAVE_NANOSLEEP