1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-26 22:10:45 +02:00
zsh/Src/modentry.c

36 lines
450 B
C

#include "zsh.mdh"
int setup_ _((Module));
int boot_ _((Module));
int cleanup_ _((Module));
int finish_ _((Module));
int modentry _((int boot, Module m));
/**/
int
modentry(int boot, Module m)
{
switch (boot) {
case 0:
return setup_(m);
break;
case 1:
return boot_(m);
break;
case 2:
return cleanup_(m);
break;
case 3:
return finish_(m);
break;
default:
zerr("bad call to modentry");
return 1;
break;
}
}