home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / epmgcc10.zip / GCCKEYS.E < prev    next >
Text File  |  1994-01-02  |  3KB  |  61 lines

  1. /*
  2. ╔══════════════════════════════════════════════════════════════════════════════╗
  3. ║ What's it called: EPMGCC  V1.00                                              ║
  4. ║                                                                              ║
  5. ║ What does it do:  The E source code for the GCC-Interface                    ║
  6. ║                   for EPM. This file defines some shortcut keys for the      ║
  7. ║                   GCC-menu. Just change the definitions to some other        ║
  8. ║                   keys if this seems suitable for your needs.                ║
  9. ║                                                                              ║
  10. ║                   The keys will always be defined, since the definitions     ║
  11. ║                   are included in the basic keyset. Defining an alternate    ║
  12. ║                   keyset is not a good alternative, since EPMGCC is ty-      ║
  13. ║                   pically used with c-syntax-assist, which defines it's      ║
  14. ║                   own alternate keyset.                                      ║
  15. ║                                                                              ║
  16. ║ Who and When:     B. Bablok 12/93 - 01/94                                    ║
  17. ║                                                                              ║
  18. ╚══════════════════════════════════════════════════════════════════════════════╝
  19. */
  20. DEF a_Q = gcc_next_error()    -- defined in gccproc.e (no menu equivalent!)
  21. /*
  22. ╔══════════════════════════════════════════════════════════════════════════════╗
  23. ║ How does it work: After compiling/building a project, pressing a-Q takes     ║
  24. ║                   you to the error-file. In the error-file, position the     ║
  25. ║                   cursor on an error-message and press a-Q again. If ne-     ║
  26. ║                   cessary, the source file is loaded into the edit-ring      ║
  27. ║                   and the cursor is positioned on the erroneous line. If     ║
  28. ║                   the cursor isn't positioned on an error-message (e.g.      ║
  29. ║                   message of the linker) than the message is skipped.        ║
  30. ║                   Pressing a-Q in a source file will take you to the next    ║
  31. ║                   error, until all errors are processed.                     ║
  32. ╚══════════════════════════════════════════════════════════════════════════════╝
  33. */
  34. DEF c_F11 =                      -- menu equivalent: Set compile options
  35.   IF gcc_is_cc_file() THEN
  36.     'set_comp_options'
  37.   ELSE
  38.     SAYERROR 'No c/cc-file'
  39.   ENDIF
  40.  
  41. DEF c_F12 =                      -- menu equivalent: Compile current file
  42.   IF gcc_is_cc_file() THEN
  43.     'compile_file'
  44.   ELSE
  45.     SAYERROR 'cannot compile' .filename
  46.   ENDIF
  47.  
  48. DEF s_F11 =                      -- menu equivalent: Set build options
  49.   IF gcc_project_open() THEN
  50.     'set_make_options'
  51.   ELSE
  52.     SAYERROR 'no project open'
  53.   ENDIF
  54.  
  55. DEF s_F12 =                      -- menu equivalent: Build current project
  56.   IF gcc_project_file_exists() THEN
  57.     'build_project'
  58.   ELSE
  59.     SAYERROR 'project file does not exist'
  60.   ENDIF
  61.