home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / ccmd / cmpara.cnf < prev    next >
Encoding:
Text File  |  1988-08-19  |  1.2 KB  |  58 lines

  1. _ Author: Howie Kaye
  2. _
  3. _ Columbia University Center for Computing Activities, July 1986.
  4. _ Copyright (C) 1986, 1987, Trustees of Columbia University in the
  5. _ City of New York.  Permission is granted to any individual or
  6. _ institution to use, copy, or redistribute this software so long as
  7. _ it is not sold for profit, provided this copyright notice is
  8. _ retained.
  9. _
  10.  
  11. /*
  12.  * para_actions:
  13.  * a structure to hold an action character, and an associated function
  14.  * to call for that action
  15.  */
  16.  
  17. typedef struct {
  18.   char actionchar;
  19.   char * (* actionfunc)();
  20. } para_actions;
  21.  
  22. /*
  23.  * para_data:
  24.  * input data to paragraph parser.
  25.  * holds text to install at the beginning of the buffer, and
  26.  * a NULL terminated vector of para_actions.
  27.  */
  28.  
  29. typedef struct {
  30.   char *buf;
  31.   para_actions *actions;
  32. } para_data;
  33.  
  34. fnerror(NM,`Out of memory')
  35.  
  36. /*
  37.  * the PARA_DEF flag is used to specify that the default actions should be
  38.  * set, and then the user specified actions should be installed.
  39.  * Used to make additions to the default actions
  40.  */
  41. fnflag(DEF)
  42.  
  43. #ifndef DEF_EDITOR
  44. #if unix
  45. #define DEF_EDITOR "emacs"
  46. #endif
  47.  
  48. #ifdef MSDOS
  49. #ifdef RAINBOW
  50. #define DEF_EDITOR "mince"
  51. #else
  52. #define DEF_EDITOR "epsilon"
  53. #endif /*  RAINBOW */
  54. #endif /*  MSDOS */
  55. #endif
  56. pvtype(char *);
  57.  
  58.