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 >
C/C++ Source or Header  |  1992-07-29  |  2KB  |  102 lines

  1. #include <stddef.h> /* for NULL */
  2. #include "msh.h"
  3. #include "primitiv.h"
  4. struct{char *name;void (*def)(void);}primitives[]={
  5. {"!",Define},
  6. {"#",Interpret},
  7. {"@",Getval},
  8. {"&",Cat},
  9. {"=",Equal},
  10. {"+",Sum},
  11. {"-",Minus},
  12. {"*",Times},
  13. {"/",Divide},
  14. {"<",Lt},
  15. {">",Gt},
  16. {"le",Le},
  17. {"ge",Ge},
  18. {"alert_att", Alert_att},
  19. {"beep",beep},
  20. {"capture_screen",capture_screen},
  21. {"cmd",Cmdline},
  22. {"cmd.imode",Cmdline_imode},
  23. {"cmd.clear",CmdClear},
  24. {"cmd.del",field_delete},
  25. {"cmd.pos",CmdPos},
  26. {"cmd.wordleft",field_wordleft},
  27. {"cmd.wordright",field_wordright},
  28. {"copy",Copy},
  29. {"current.name",Current},
  30. {"current.isdir",Current_isdir},
  31. {"current.pos",Current_pos},
  32. {"current.selected",Current_selected},
  33. {"current.size",Current_size},
  34. {"current.time",Current_time},
  35. {"cutfirst",CutFirst},
  36. {"cutlast",CutLast},
  37. {"cwd",Cwd},
  38. {"debug",Debug},
  39. {"disk_stats",Diskstats},
  40. {"drop",Drop},
  41. {"dup",Dup},
  42. {"execute",Execute},
  43. {"flash",Flash},
  44. {"get_key",GetChar},
  45. {"if",If},
  46. {"ifelse",Ifelse},
  47. {"ifnot",Ifnot},
  48. {"input",input},
  49. {"isdefined",IsDefined},
  50. {"length",Length},
  51. {"linescols",linescols},
  52. {"magic",Magic},
  53. {"match",Match},
  54. {"menu.install",install_menu},
  55. {"message",Message},
  56. {"not",Not},
  57. {"ok",Ok},
  58. #ifndef NO_BROWSER
  59. {"page",Page},
  60. #endif
  61. {"pick",Pick},
  62. {"panel.attrs", Pn_attrs},
  63. {"panel.att", Pn_att},
  64. {"panel.date", Pn_date},
  65. {"panel.install",install_panel},
  66. {"panel.nbfiles", Pn_nbfiles},
  67. {"panel.on", Pn_on},
  68. {"panel.pattern", Pn_pattern},
  69. {"panel.rc",Pn_rc},
  70. {"panel.sec", Pn_sec},
  71. {"panel.size", Pn_size},
  72. {"panel.sort",Pn_sort},
  73. {"panel.startrc",Pn_startrc},
  74. {"panel.time", Pn_time},
  75. {"panel.type", Pn_type},
  76. {"prog_pathname",Progname},
  77. {"rename",Rename},
  78. {"quit",Quit},
  79. {"read",Read},
  80. {"reinit_mouse",(void(*)(void))mouse_init},
  81. {"mouse.click",mouse_click},
  82. {"roll",Roll},
  83. {"stack_size",Stacksize},
  84. {"swap",Swap},
  85. {"substring",Substring},
  86. {"tempname",Tempname},
  87. {"testfile",TestFile},
  88. {"time",Time},
  89. {"timer",Timer},
  90. {"unlink",Unlink},
  91. {"window.uninstall",uninstall_window},
  92. {"window.activate",Window_activate},
  93. {"while",While},
  94. {"write",Write},
  95. {NULL,NULL} /* to mark the end of the list */
  96. };
  97.  
  98. struct {char *type;void (*lister)(char *pattern);}panel_listers[]=
  99. { {".zip",zip_ls},
  100.   {".arj",arj_ls},
  101.   {NULL,NULL}};
  102.