home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
m
/
msh21.zip
/
TOOLKIT.ZIP
/
PRIMITIV.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-29
|
2KB
|
102 lines
#include <stddef.h> /* for NULL */
#include "msh.h"
#include "primitiv.h"
struct{char *name;void (*def)(void);}primitives[]={
{"!",Define},
{"#",Interpret},
{"@",Getval},
{"&",Cat},
{"=",Equal},
{"+",Sum},
{"-",Minus},
{"*",Times},
{"/",Divide},
{"<",Lt},
{">",Gt},
{"le",Le},
{"ge",Ge},
{"alert_att", Alert_att},
{"beep",beep},
{"capture_screen",capture_screen},
{"cmd",Cmdline},
{"cmd.imode",Cmdline_imode},
{"cmd.clear",CmdClear},
{"cmd.del",field_delete},
{"cmd.pos",CmdPos},
{"cmd.wordleft",field_wordleft},
{"cmd.wordright",field_wordright},
{"copy",Copy},
{"current.name",Current},
{"current.isdir",Current_isdir},
{"current.pos",Current_pos},
{"current.selected",Current_selected},
{"current.size",Current_size},
{"current.time",Current_time},
{"cutfirst",CutFirst},
{"cutlast",CutLast},
{"cwd",Cwd},
{"debug",Debug},
{"disk_stats",Diskstats},
{"drop",Drop},
{"dup",Dup},
{"execute",Execute},
{"flash",Flash},
{"get_key",GetChar},
{"if",If},
{"ifelse",Ifelse},
{"ifnot",Ifnot},
{"input",input},
{"isdefined",IsDefined},
{"length",Length},
{"linescols",linescols},
{"magic",Magic},
{"match",Match},
{"menu.install",install_menu},
{"message",Message},
{"not",Not},
{"ok",Ok},
#ifndef NO_BROWSER
{"page",Page},
#endif
{"pick",Pick},
{"panel.attrs", Pn_attrs},
{"panel.att", Pn_att},
{"panel.date", Pn_date},
{"panel.install",install_panel},
{"panel.nbfiles", Pn_nbfiles},
{"panel.on", Pn_on},
{"panel.pattern", Pn_pattern},
{"panel.rc",Pn_rc},
{"panel.sec", Pn_sec},
{"panel.size", Pn_size},
{"panel.sort",Pn_sort},
{"panel.startrc",Pn_startrc},
{"panel.time", Pn_time},
{"panel.type", Pn_type},
{"prog_pathname",Progname},
{"rename",Rename},
{"quit",Quit},
{"read",Read},
{"reinit_mouse",(void(*)(void))mouse_init},
{"mouse.click",mouse_click},
{"roll",Roll},
{"stack_size",Stacksize},
{"swap",Swap},
{"substring",Substring},
{"tempname",Tempname},
{"testfile",TestFile},
{"time",Time},
{"timer",Timer},
{"unlink",Unlink},
{"window.uninstall",uninstall_window},
{"window.activate",Window_activate},
{"while",While},
{"write",Write},
{NULL,NULL} /* to mark the end of the list */
};
struct {char *type;void (*lister)(char *pattern);}panel_listers[]=
{ {".zip",zip_ls},
{".arj",arj_ls},
{NULL,NULL}};