home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / SYSTEM / MSH / PRIMITIV.C < prev    next >
C/C++ Source or Header  |  1993-12-01  |  2KB  |  106 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",field_clear},
  24. {"cmd.del",field_delete},
  25. {"cmd.end",field_end},
  26. {"cmd.home",field_home},
  27. {"cmd.left",field_left},
  28. {"cmd.right",field_right},
  29. {"cmd.wordleft",field_wordleft},
  30. {"cmd.wordright",field_wordright},
  31. {"current.name",Current},
  32. {"current.isdir",Current_isdir},
  33. {"current.pos",Current_pos},
  34. {"current.selected",Current_selected},
  35. {"current.size",Current_size},
  36. {"current.time",Current_time},
  37. {"cutfirst",CutFirst},
  38. {"cutlast",CutLast},
  39. {"cwd",Cwd},
  40. {"debug",Debug},
  41. {"drop",Drop},
  42. {"dup",Dup},
  43. {"execute",Execute},
  44. {"flash",Flash},
  45. {"get_key",GetChar},
  46. {"if",If},
  47. {"ifelse",Ifelse},
  48. {"ifnot",Ifnot},
  49. {"input",input},
  50. {"isdefined",IsDefined},
  51. {"length",Length},
  52. {"linescols",linescols},
  53. {"magic",Magic},
  54. {"match",Match},
  55. {"menu.install",install_menu},
  56. #ifdef DEBUGM
  57. {"mem",Mem},
  58. #endif
  59. {"message",Message},
  60. {"not",Not},
  61. {"ok",Ok},
  62. #ifndef NO_BROWSER
  63. {"page",Page},
  64. #endif
  65. {"pick",Pick},
  66. {"panel.attrs", Pn_attrs},
  67. {"panel.att", Pn_att},
  68. {"panel.date", Pn_date},
  69. {"panel.install",install_panel},
  70. {"panel.nbfiles", Pn_nbfiles},
  71. {"panel.on", Pn_on},
  72. {"panel.pattern", Pn_pattern},
  73. {"panel.rc",Pn_rc},
  74. {"panel.sec", Pn_sec},
  75. {"panel.size", Pn_size},
  76. {"panel.sort",Pn_sort},
  77. {"panel.startrc",Pn_startrc},
  78. {"panel.time", Pn_time},
  79. {"panel.type", Pn_type},
  80. {"prog_pathname",Progname},
  81. {"quit",Quit},
  82. {"read",Read},
  83. {"reinit_mouse",(void(*)(void))mouse_init},
  84. {"mouse.click",mouse_click},
  85. {"roll",Roll},
  86. {"stack_size",Stacksize},
  87. {"swap",Swap},
  88. {"substring",Substring},
  89. {"time",Time},
  90. {"timer",Timer},
  91. {"unlink",Unlink},
  92. {"window.uninstall",uninstall_window},
  93. {"window.activate",Window_activate},
  94. {"while",While},
  95. {"write",Write},
  96. {NULL,NULL} /* to mark the end of the list */
  97. };
  98.  
  99. struct {char *type;void (*lister)(char *pattern);}panel_listers[]=
  100. {
  101. #ifndef NO_ZIP
  102.  {".zip",zip_ls},
  103. #endif
  104.  {"",do_ls},   /* normal panel; this item MUST be last */
  105.  {NULL,NULL}};
  106.