Generated from the greek.def file:
/*
* EDIT THIS FILE WITH CAUTION (greek-hdlr.c)
*
* It has been AutoGen-ed Sunday October 1, 2006 at 12:59:13 PM PDT
* From the definitions /home/bkorb/ag/addon/dispatch/greek.def
* and the template file dispatch.tpl
*/
#include <stdio.h>
#include "greek.h"
static int fumble;
int
greek_alpha(char const * cmd, void * cookie)
{
#ifdef DEBUG
printf("handling alpha (1) cmd - args: '%s'\n", cmd);
#else
fputs("alpha\n", stdout);
#endif
return (int)0;
}
int
greek_beta(char const * cmd, void * cookie)
{
#ifdef DEBUG
printf("handling beta (2) cmd - args: '%s'\n", cmd);
#else
fputs("beta\n", stdout);
#endif
return (int)0;
}
int
greek_gamma(char const * cmd, void * cookie)
{
#ifdef DEBUG
printf("handling gamma (3) cmd - args: '%s'\n", cmd);
#else
fputs("gamma\n", stdout);
#endif
return (int)0;
}
int
greek_delta(char const * cmd, void * cookie)
{
#ifdef DEBUG
printf("handling delta (4) cmd - args: '%s'\n", cmd);
#else
fputs("delta\n", stdout);
#endif
return (int)0;
}
int
greek_omega(char const * cmd, void * cookie)
{
#ifdef DEBUG
printf("handling omega (5) cmd - args: '%s'\n", cmd);
#else
fputs("omega\n", stdout);
#endif
return (int)0;
}
int
greek_help(char const * cmd, void * cookie)
{
static char const h_txt[ 164 ] =
"alpha this is the first greek letter\n"
"beta beta customers are helpful\n"
"omega this is the end.\n"
"help The help text skips secret commands 'gamma' and 'delta'.\n";
if (*cmd != '\0')
printf("help args: %s\n", cmd);
fwrite(h_txt, 164, 1, stdout);
return (int)0;
}
int
greek_inval_greek(char const * cmd, void * cookie)
{
printf("handling invalid (%d) command: '%s'\n",
GREEK_INVALID, cmd);
return (int)0;
}
int
main( int argc, char** argv )
{
while (--argc > 0)
dispatch_greek( *++argv, 0 );
return 0;
}