1994-09-22 07:46:09 +00:00
|
|
|
#include <xvt.h>
|
|
|
|
#include <checks.h>
|
|
|
|
#include "cg0.h"
|
|
|
|
|
|
|
|
#define usage "Error - usage : %s -{0|1|2|3|4|5}"
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
const int op = argc < 2 ? 0 : atoi(argv[1]+1)+1;
|
|
|
|
int res = 1;
|
|
|
|
switch (op)
|
|
|
|
{
|
1996-03-01 08:11:08 +00:00
|
|
|
case 1: res = cg0100(argc,argv); break;
|
|
|
|
case 2: res = cg0200(argc,argv); break;
|
|
|
|
case 3: res = cg0300(argc,argv); break;
|
|
|
|
case 4: res = cg0400(argc,argv); break;
|
|
|
|
case 5: res = cg0500(argc,argv); break;
|
|
|
|
case 6: res = cg0600(argc,argv); break;
|
1996-01-03 12:10:02 +00:00
|
|
|
default: error_box(usage, argv[0]); break;
|
|
|
|
}
|
1997-05-21 14:32:28 +00:00
|
|
|
exit(res);
|
1994-09-22 07:46:09 +00:00
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|