mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
22474: use variable argument lists to improve error message handling
This commit is contained in:
parent
fd240e09b0
commit
dd5602f59b
52 changed files with 937 additions and 931 deletions
|
|
@ -1,15 +1,35 @@
|
|||
#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)
|
||||
{
|
||||
if (boot)
|
||||
switch (boot) {
|
||||
case 0:
|
||||
return setup_(m);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
return boot_(m);
|
||||
else
|
||||
break;
|
||||
|
||||
case 2:
|
||||
return cleanup_(m);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
return finish_(m);
|
||||
break;
|
||||
|
||||
default:
|
||||
zerr("bad call to modentry");
|
||||
return 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue