about summary refs log tree commit diff
path: root/Src/modentry.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-28 22:57:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-28 22:57:39 +0000
commitb0c5f09169ac31855ebf0e93772bb57b9635b380 (patch)
tree410c43a9843b2c88166c2cb9acd531eaa36d036d /Src/modentry.c
parentbd7632079045b1b6d0dee498c40833b409cf757e (diff)
downloadzsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.gz
zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.xz
zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.zip
see 23479: add initial features support for modules
Diffstat (limited to 'Src/modentry.c')
-rw-r--r--Src/modentry.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/Src/modentry.c b/Src/modentry.c
index 87c89e0d7..ea2ca6656 100644
--- a/Src/modentry.c
+++ b/Src/modentry.c
@@ -8,7 +8,7 @@ int modentry _((int boot, Module m));
 
 /**/
 int
-modentry(int boot, Module m)
+modentry(int boot, Module m, void *ptr)
 {
     switch (boot) {
     case 0:
@@ -27,6 +27,14 @@ modentry(int boot, Module m)
 	return finish_(m);
 	break;
 
+    case 4:
+	return features_(m, (char ***)ptr);
+	break;
+
+    case 5:
+	return enables_(m, (int **)ptr);
+	break;
+
     default:
 	zerr("bad call to modentry");
 	return 1;