home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
back2roots/padua
/
padua.7z
/
padua
/
ftp.vapor.com
/
microdot-1
/
md1_src_02.lzx
/
md_rexx_rxcl.c
< prev
next >
Wrap
C/C++ Source or Header
|
2014-05-19
|
6KB
|
105 lines
/*
* Source generated with ARexxBox 1.13 (Dec 4 1993)
* which is Copyright (c) 1992,1993 Michael Balzer
*/
#include <exec/types.h>
#include <dos/dos.h>
#include <rexx/storage.h>
#define NO_GLOBALS
#include "md_rexx.h"
#define RESINDEX(stype) (((long) &((struct stype *)0)->res) / sizeof(long))
char RexxPortBaseName[80] = "MICRODOT";
char *rexx_extension = "MICRODOT";
struct rxs_command rxs_commandlist[] =
{
{ "CHOOSE", "OFF/S,TOGGLE/S,ALLON/S,ALLOFF/S,TEST/S,ENTER/S", "RC/N", RESINDEX(rxd_choose), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_choose, 1 },
{ "CRUNCH", NULL, NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_crunch, 1 },
{ "EDITOR", "FILE/A", "RC/N", RESINDEX(rxd_editor), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_editor, 1 },
{ "EXTRACTCURRENTMAIL", "FILE/A,HEADER/S,COMMENT/S", "RC/N", RESINDEX(rxd_extractcurrentmail), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_extractcurrentmail, 1 },
{ "GETCURRENTBOARD", NULL, "NAME,MAILS/N,NEWMAILS/N,UNREADMAILS/N,HOLDDAYS/N,NODELETE/N,SUBPM/N,SELECTED/N,UPDATETIME/N", RESINDEX(rxd_getcurrentboard), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getcurrentboard, 1 },
{ "GETCURRENTMAIL", NULL, "FROM,FROMREAL,SUBJECT,MIDHASH/N,REFHASH/N,LENGTH/N,NEW/N,READ/N,HOLD/N,DEL/N,BIN/N,SHOW/N,SELECTED/N,SENDTIME/N,INCOMETIME/N,RX1/N,RX2/N", RESINDEX(rxd_getcurrentmail), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getcurrentmail, 1 },
{ "GETCURRENTMAILHEADER", "HEADER/A,INDEX/N", "DATA", RESINDEX(rxd_getcurrentmailheader), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getcurrentmailheader, 1 },
{ "GETMDPUBSCREENNAME", NULL, "PUBSCREENNAME", RESINDEX(rxd_getmdpubscreenname), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getmdpubscreenname, 1 },
{ "GETMODE", NULL, "MODE/N", RESINDEX(rxd_getmode), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getmode, 1 },
{ "GETPOS", NULL, "RC/N", RESINDEX(rxd_getpos), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getpos, 1 },
{ "GETPREFS", NULL, "USERNAME,USERREALNAME,POINTNAME,SERVERNAME,SERVERDOMAIN", RESINDEX(rxd_getprefs), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_getprefs, 1 },
{ "GOTOBOARD", "NAME/A", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_gotoboard, 1 },
{ "HELP", "COMMAND,PROMPT/S", "COMMANDDESC,COMMANDLIST/M", RESINDEX(rxd_help), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_help, 1 },
{ "MDVERSION", NULL, "VERSION", RESINDEX(rxd_mdversion), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_mdversion, 1 },
{ "NETCALL", NULL, "RC/N", RESINDEX(rxd_netcall), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_netcall, 1 },
{ "NOREQUEST", "OFF/S", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_norequest, 1 },
{ "QUIT", NULL, NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_quit, 1 },
{ "REORG", "MERGE/S", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_reorg, 1 },
{ "REQUEST", "TEXT/A,GADGETS/A", "RC/N", RESINDEX(rxd_request), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_request, 1 },
{ "RX", "CONSOLE/S,ASYNC/S,COMMAND/F", "RC/N,RESULT", RESINDEX(rxd_rx), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_rx, 1 },
{ "SENDMAIL", "TO/A/M,BODYFILE/A,COMMENTFILE,BIN/S,SUBJECT,SHORTCOMMENT,REFERENCEID,FOLLOWUP_TO,WAIT/S", "RC/N", RESINDEX(rxd_sendmail), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_sendmail, 1 },
{ "SENDSHORTMAIL", "TO/A,TEXT/A,REFERENCEID/K,SUBJECT/K", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_sendshortmail, 1 },
{ "SETCURRENTMAILFLAGS", "NEW/N,READ/N,HOLD/N,DEL/N,SHOW/N,SELECTED/N,RX1/N,RX2/N", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_setcurrentmailflags, 1 },
{ "SETPOS", "GOTOPOS/N,UP/S,DOWN/S", "RC/N", RESINDEX(rxd_setpos), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_setpos, 1 },
{ NULL, NULL, NULL, NULL, NULL }
};
int command_cnt = 24;
static struct arb_p_link link0[] = {
{"SE", 1}, {"R", 8}, {"QUIT", 13}, {"N", 14}, {"MDVERSION", 17}, {"HELP", 18},
{"G", 19}, {"E", 32}, {"C", 35}, {NULL, 0} };
static struct arb_p_link link1[] = {
{"T", 2}, {"ND", 5}, {NULL, 0} };
static struct arb_p_link link2[] = {
{"POS", 3}, {"CURRENTMAILFLAGS", 4}, {NULL, 0} };
static struct arb_p_link link5[] = {
{"SHORTMAIL", 6}, {"MAIL", 7}, {NULL, 0} };
static struct arb_p_link link8[] = {
{"X", 9}, {"E", 10}, {NULL, 0} };
static struct arb_p_link link10[] = {
{"QUEST", 11}, {"ORG", 12}, {NULL, 0} };
static struct arb_p_link link14[] = {
{"OREQUEST", 15}, {"ETCALL", 16}, {NULL, 0} };
static struct arb_p_link link19[] = {
{"OTOBOARD", 20}, {"ET", 21}, {NULL, 0} };
static struct arb_p_link link21[] = {
{"P", 22}, {"M", 25}, {"CURRENT", 28}, {NULL, 0} };
static struct arb_p_link link22[] = {
{"REFS", 23}, {"OS", 24}, {NULL, 0} };
static struct arb_p_link link25[] = {
{"ODE", 26}, {"DPUBSCREENNAME", 27}, {NULL, 0} };
static struct arb_p_link link28[] = {
{"MAIL", 29}, {"BOARD", 31}, {NULL, 0} };
static struct arb_p_link link29[] = {
{"HEADER", 30}, {NULL, 0} };
static struct arb_p_link link32[] = {
{"XTRACTCURRENTMAIL", 33}, {"DITOR", 34}, {NULL, 0} };
static struct arb_p_link link35[] = {
{"RUNCH", 36}, {"HOOSE", 37}, {NULL, 0} };
struct arb_p_state arb_p_state[] = {
{-1, link0}, {20, link1}, {22, link2}, {23, NULL}, {22, NULL},
{20, link5}, {21, NULL}, {20, NULL}, {17, link8}, {19, NULL},
{17, link10}, {18, NULL}, {17, NULL}, {16, NULL}, {14, link14},
{15, NULL}, {14, NULL}, {13, NULL}, {12, NULL}, {4, link19},
{11, NULL}, {4, link21}, {9, link22}, {10, NULL}, {9, NULL},
{7, link25}, {8, NULL}, {7, NULL}, {4, link28}, {5, link29},
{6, NULL}, {4, NULL}, {2, link32}, {3, NULL}, {2, NULL},
{0, link35}, {1, NULL}, {0, NULL} };