home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / editors / epm / e_macros / extra.e < prev    next >
Encoding:
Text File  |  1993-08-25  |  7.4 KB  |  266 lines

  1. const SMALL = 0            -- SMALL says to assume no host support.
  2. include    'stdconst.e'
  3.  
  4. include    'colors.e'      -- Mnemonic color names & default colors defined here.
  5.  
  6. define INCLUDING_FILE = 'EXTRA.E'
  7. const                      -- (added because many users omit from MYCNF.)
  8. tryinclude 'mycnf.e'       -- User configuration goes here.
  9.  compile if not defined(SITE_CONFIG)
  10.     const SITE_CONFIG = 'SITECNF.E'
  11.  compile endif
  12.  compile if SITE_CONFIG
  13.     tryinclude SITE_CONFIG
  14.  compile endif
  15.  
  16. const
  17. compile if not defined(EPATH)
  18.   compile if EPM    -- EPM uses a different name, for easier coexistance
  19.    EPATH= 'epmpath'
  20.   compile else
  21.    EPATH= 'epath'
  22.   compile endif
  23. compile endif
  24. compile if EPM
  25.  compile if not defined(WANT_DYNAMIC_PROMPTS)
  26.    WANT_DYNAMIC_PROMPTS = 1
  27.  compile endif
  28. compile else
  29.    WANT_DYNAMIC_PROMPTS = 0  -- Must be 0 for earlier EPM
  30. compile endif
  31. compile if EPM
  32.  compile if not defined(WANT_BOOKMARKS)
  33.    WANT_BOOKMARKS = 'LINK'
  34.  compile endif
  35. compile if EPM
  36.  compile if not defined(CHECK_FOR_LEXAM)
  37.    CHECK_FOR_LEXAM = 0
  38.  compile endif
  39. compile else
  40.    CHECK_FOR_LEXAM = 0
  41. compile endif
  42.  compile if not defined(MOUSE_SUPPORT)
  43.    MOUSE_SUPPORT = 1
  44.  compile endif
  45. compile else
  46.    WANT_BOOKMARKS = 0
  47.    MOUSE_SUPPORT = 0
  48. compile endif
  49. compile if not defined(VANILLA)
  50.    VANILLA = 0
  51. compile endif
  52. compile if not defined(ALTERNATE_KEYSETS)
  53.    ALTERNATE_KEYSETS = 1
  54. compile endif
  55. compile if not defined(C_SYNTAX_ASSIST)
  56.    C_SYNTAX_ASSIST = 1
  57. compile endif
  58. compile if not defined(E_SYNTAX_ASSIST)
  59.    E_SYNTAX_ASSIST = 1
  60. compile endif
  61. compile if not defined(REXX_SYNTAX_ASSIST)
  62.    REXX_SYNTAX_ASSIST = 0
  63. compile endif
  64. compile if not defined(P_SYNTAX_ASSIST)
  65.    P_SYNTAX_ASSIST = 1
  66. compile endif
  67. compile if not defined(SYNTAX_INDENT)
  68.    SYNTAX_INDENT = 3
  69. compile endif
  70.  
  71. compile if not defined(DECIMAL)
  72.    DECIMAL = '.'
  73. compile endif
  74. compile if not defined(SORT_TYPE)
  75.  compile if EVERSION >= '5.60'       -- At long last - an internal sort.
  76.   SORT_TYPE = 'EPM'
  77.  compile else
  78.   SORT_TYPE = 'DLL'
  79.  compile endif
  80. compile endif
  81. compile if not defined(WANT_CHAR_OPS)
  82.    WANT_CHAR_OPS = 1
  83. compile endif
  84. compile if not defined(USE_APPEND)
  85.    USE_APPEND = 0
  86. compile endif
  87. compile if not defined(WANT_SEARCH_PATH)
  88.    WANT_SEARCH_PATH = 1                  -- Different from STDCNF; assuming more room free.
  89. compile endif
  90. compile if not defined(WANT_GET_ENV)
  91.    WANT_GET_ENV = 1
  92. compile endif
  93. compile if not defined(INCLUDE_MATHLIB)
  94.    INCLUDE_MATHLIB = 0                   -- Included anyway when EXTRA_EX is true.
  95. compile endif
  96. compile if not defined(RESTORE_MARK_AFTER_SORT)
  97.    RESTORE_MARK_AFTER_SORT = 1
  98. compile endif
  99. compile if not defined(WANT_DM_BUFFER)
  100.    WANT_DM_BUFFER = 0
  101. compile endif
  102. compile if not defined(WANT_STREAM_MODE)
  103.    WANT_STREAM_MODE = 0
  104. compile endif
  105. compile if not defined(ENHANCED_ENTER_KEYS)
  106.    ENHANCED_ENTER_KEYS = 0
  107. compile endif
  108. compile if not defined(WANT_STACK_CMDS)
  109.    WANT_STACK_CMDS = 0
  110. compile endif
  111. compile if not defined(WANT_CUA_MARKING)
  112.    WANT_CUA_MARKING = 0
  113. compile endif
  114. compile if not defined(WANT_DBCS_SUPPORT)
  115.    WANT_DBCS_SUPPORT = 0
  116. compile endif
  117. compile if not defined(RING_OPTIONAL)
  118.    RING_OPTIONAL = 0
  119. compile endif
  120. compile if not defined(BLOCK_ACTIONBAR_ACCELERATORS)
  121.    BLOCK_ACTIONBAR_ACCELERATORS = 1
  122. compile endif
  123. compile if not defined(SUPPORT_BOOK_ICON)
  124. ;compile if EVERSION < '5.50'
  125.    SUPPORT_BOOK_ICON = 1
  126. ;compile else
  127. ;  SUPPORT_BOOK_ICON = 0  -- EPM/G has no book (yet)
  128. ;compile endif
  129. compile endif
  130. compile if not defined(WANT_ALL)
  131.    WANT_ALL = 0
  132. compile endif
  133. compile if not defined(EXTRA_EX)
  134.    EXTRA_EX = 1                    -- Different than STDCNF.E; but since this *is* EXTRA.E, ...
  135. compile endif
  136. compile if not defined(WANT_KEYWORD_HELP)
  137.    WANT_KEYWORD_HELP = 0
  138. compile endif
  139. compile if not defined(MENU_LIMIT)
  140.    MENU_LIMIT = 0
  141. compile endif
  142. compile if not defined(SPELL_SUPPORT)
  143.  compile if EPM
  144.    SPELL_SUPPORT = 'DYNALINK'          -- New default
  145.  compile else
  146.    SPELL_SUPPORT = 0
  147.  compile endif
  148. compile endif
  149. compile if not defined(ENHANCED_PRINT_SUPPORT)
  150.    ENHANCED_PRINT_SUPPORT = 0
  151. compile endif
  152. compile if not defined(WANT_EPM_SHELL) or EVERSION < '5.20'
  153.    WANT_EPM_SHELL = 0
  154. compile endif
  155. compile if not defined(EPM_SHELL_PROMPT)
  156.    EPM_SHELL_PROMPT = '@prompt epm: $p $g'
  157. compile endif
  158. compile if not defined(WANT_BRACKET_MATCHING)
  159.    WANT_BRACKET_MATCHING = 0
  160. compile endif
  161. compile if not defined(DEFAULT_PASTE) & EPM
  162.    DEFAULT_PASTE = 'C'
  163. compile endif
  164. compile if not defined(INCLUDE_MENU_SUPPORT)
  165.    INCLUDE_MENU_SUPPORT = 1
  166. compile endif
  167. compile if not defined(INCLUDE_STD_MENUS)
  168.    INCLUDE_STD_MENUS = 1
  169. compile endif
  170. compile if not defined(INCLUDE_WORKFRAME_SUPPORT)
  171.    INCLUDE_WORKFRAME_SUPPORT = 1
  172. compile endif
  173. compile if not defined(WANT_EBOOKIE)
  174.    WANT_EBOOKIE = 'DYNALINK'
  175. compile endif
  176. compile if not defined(WANT_APPLICATION_INI_FILE)
  177.    WANT_APPLICATION_INI_FILE = 1
  178. compile endif
  179. compile if EVERSION < '5.60' | not defined(WANT_TAGS)
  180.    WANT_TAGS = 0
  181. compile endif
  182. compile if not defined(WANT_NODISMISS_MENUS)
  183.    WANT_NODISMISS_MENUS = 1
  184. compile endif
  185. compile if not defined(SUPPORT_USERS_GUIDE)
  186.    SUPPORT_USERS_GUIDE = 0
  187. compile endif
  188. compile if not defined(SUPPORT_TECHREF)
  189.    SUPPORT_TECHREF = 0
  190. compile endif
  191. compile if EVERSION >= 6 and not defined(WANT_TOOLBAR)
  192.    WANT_TOOLBAR = 1
  193. compile elseif EVERSION < 6
  194.    WANT_TOOLBAR = 0  -- Toolbar only supported for EPM 6.00 & above.
  195. compile endif
  196. compile if not defined(NLS_LANGUAGE)
  197.   const NLS_LANGUAGE = 'ENGLISH'
  198. compile endif
  199.    include NLS_LANGUAGE'.e'
  200.  
  201. compile if EVERSION > 5
  202.  compile if INCLUDE_MENU_SUPPORT & INCLUDE_STD_MENUS
  203.    include    'stdmenu.e'     -- Action bar menus for EPM.
  204.  compile endif
  205.  compile if WANT_BOOKMARKS
  206.    include 'bookmark.e'
  207.  compile endif
  208.  compile if WANT_TAGS = 1
  209.    include 'tags.e'
  210.  compile endif
  211.  compile if MOUSE_SUPPORT
  212.    include 'mouse.e'
  213.  compile endif
  214.    include 'clipbrd.e'     -- Clipboard interface and mark <--> buffer routines
  215.    include 'EPM_EA.E'
  216. compile endif
  217.    include  'markfilt.e'
  218.    include  'charops.e'     -- Mark operations for character marks.
  219.    include  'dosutil.e'
  220.    include  'math.e'
  221. compile if SORT_TYPE
  222.    include 'sort'SORT_TYPE'.e' -- SORTE, SORTG, SORTF, SORTGW, SORTDLL, SORTDOS.E.
  223. compile endif
  224. compile if WANT_ALL
  225.    include 'ALL.E'         -- Shows all occurrences of a string.
  226. compile endif
  227. compile if WANT_KEYWORD_HELP
  228.   include 'KWhelp.e'
  229. compile endif
  230. compile if WANT_EPM_SHELL
  231.   include 'epmshell.e'
  232. compile endif
  233. compile if EVERSION >= '5.50'
  234.   include 'callrexx.e'
  235. compile endif
  236. compile if WANT_BRACKET_MATCHING
  237.   include 'assist.e'
  238. compile endif
  239. compile if WANT_EBOOKIE = 1
  240.   include 'bkeys.e'
  241. compile endif
  242. compile if ALTERNATE_KEYSETS
  243.  compile if C_SYNTAX_ASSIST
  244.    tryinclude 'ckeys.e' -- Syntax-assist for C programmers.
  245.  compile endif
  246.  compile if E_SYNTAX_ASSIST
  247.    tryinclude 'ekeys.e' -- Syntax-assist for E programmers.
  248.  compile endif
  249.  compile if REXX_SYNTAX_ASSIST
  250.    tryinclude 'rexxkeys.e' -- Syntax-assist for Rexx programmers.
  251.  compile endif
  252.  compile if P_SYNTAX_ASSIST
  253.    tryinclude 'pkeys.e' -- Syntax-assist for Pascal programmers.
  254.  compile endif
  255. compile endif
  256.  
  257. compile if not VANILLA
  258.  compile if defined(SITE_EXTRA)
  259.     compile if SITE_EXTRA
  260.        include SITE_EXTRA
  261.     compile endif
  262.  compile endif
  263. tryinclude 'myextra.e'
  264. compile endif
  265.  
  266.