You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zsh/Src/modentry.c

44 lines
570 B
C

25 years ago
#include "zsh.mdh"
int setup_ (Module);
int boot_ (Module);
int cleanup_ (Module);
int finish_ (Module);
int modentry (int boot, Module m, void *ptr);
25 years ago
/**/
int
modentry(int boot, Module m, void *ptr)
25 years ago
{
switch (boot) {
case 0:
return setup_(m);
break;
case 1:
25 years ago
return boot_(m);
break;
case 2:
25 years ago
return cleanup_(m);
break;
case 3:
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;
break;
}
25 years ago
}