summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-09-09 16:06:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-09-09 16:06:47 +0000
commit7746eea52b8b5b3d6cc7cf89adc3d4f684461977 (patch)
tree5e442ce91bd1958e2db57adb49c563cd8472a261
parent5831792752f6f58ae6be8187832d4748287f6f11 (diff)
downloadzsh-7746eea52b8b5b3d6cc7cf89adc3d4f684461977.tar.gz
zsh-7746eea52b8b5b3d6cc7cf89adc3d4f684461977.tar.xz
zsh-7746eea52b8b5b3d6cc7cf89adc3d4f684461977.zip
adapted from 21719: add some mod_exports
-rw-r--r--ChangeLog3
-rw-r--r--Src/builtin.c2
-rw-r--r--Src/init.c2
-rw-r--r--Src/params.c5
4 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6df6afe04..5f7468c72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-09-09  Peter Stephenson  <pws@csr.com>
 
+	* d'après 21719: Src/builtin.c, Src/init.c, Src/params.c: Add some
+	mod_exports.
+
 	* 21717: Src/Zle/zle_misc.c: where-is and execute-named-command
 	didn't work with multibyte support because the remainder of
 	the character wasn't read properly.
diff --git a/Src/builtin.c b/Src/builtin.c
index f9ba4af3e..4bb62aa9c 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4066,7 +4066,7 @@ bin_getopts(UNUSED(char *name), char **argv, UNUSED(Options ops), UNUSED(int fun
 
 /* Flag that we should exit the shell as soon as all functions return. */
 /**/
-int
+mod_export int
 exit_pending;
 
 /* break, bye, continue, exit, logout, return -- most of these take   *
diff --git a/Src/init.c b/Src/init.c
index 6d78e5a1a..de6d4efcb 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1020,7 +1020,7 @@ init_misc(void)
 /* source a file */
 
 /**/
-int
+mod_export int
 source(char *s)
 {
     Eprog prog;
diff --git a/Src/params.c b/Src/params.c
index 1cff358df..89d25afee 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -54,6 +54,7 @@ char **path,		/* $path        */
      **fignore;		/* $fignore     */
  
 /**/
+mod_export
 char *argzero,		/* $0           */
      *home,		/* $HOME        */
      *nullcmd,		/* $NULLCMD     */
@@ -2621,14 +2622,14 @@ arrhashsetfn(Param pm, char **val, int augment)
  */
 
 /**/
-void
+mod_export void
 nullstrsetfn(UNUSED(Param pm), char *x)
 {
     zsfree(x);
 }
 
 /**/
-void
+mod_export void
 nullintsetfn(UNUSED(Param pm), UNUSED(zlong x))
 {}