1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 17:24:50 +01:00
zsh/Src/modentry.c

44 lines
570 B
C
Raw Normal View History

1999-04-15 20:05:38 +02:00
#include "zsh.mdh"
int setup_ (Module);
int boot_ (Module);
int cleanup_ (Module);
int finish_ (Module);
int modentry (int boot, Module m, void *ptr);
1999-04-15 20:05:38 +02:00
/**/
int
modentry(int boot, Module m, void *ptr)
1999-04-15 20:05:38 +02:00
{
switch (boot) {
case 0:
return setup_(m);
break;
case 1:
1999-04-15 20:05:38 +02:00
return boot_(m);
break;
case 2:
1999-04-15 20:05:38 +02:00
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;
}
1999-04-15 20:05:38 +02:00
}