home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser 2002 January / STC_CD_01_2002.iso / APP / CLIX372.TOS / Clix / Clix_c.ext < prev    next >
Encoding:
Text File  |  1998-10-30  |  1.8 KB  |  97 lines

  1. #***********************************************************************
  2. # C-Sourcen:
  3. EXTENSION ".C", ".H" = {
  4.  
  5.   COMMENT {DarkCyan, Bold, Light} = "/*", "*/"; -- Kommentare beginnen mit
  6. --                                                 '/*' und enden mit '*/'
  7.   REGION {} = '(', ')';
  8.   REGION {} = '{', '}';
  9.   REGION {} = '[', ']';
  10.  
  11.   KEYS {DarkRed, Bold, IgnoreCase} =
  12.       "return", "break", "continue";
  13.  
  14.   KEYS {DarkBlue, Light} =
  15.       main, char, void, int, short, long, unsigned;
  16.  
  17.   KEYS {DarkBlue} =
  18.       define, if, ifndef, ifdef, else, endif,
  19.       BOOLEAN, FAR, WORD, UWORD, LONG, ULONG, BYTE, UBYTE,
  20.       LOCAL, GLOBAL;
  21.  
  22. # Shortcuts
  23. -- das erste Zeilenende des folgenden Verbatim-Shortcuts wird nicht
  24. -- übernommen, da am Zeilenende ein Backslash steht.
  25. SHORTCUT 'com' = {\
  26. /*-----------------------------------------------------------------------
  27.  *
  28.  * \c
  29.  *
  30.  *-----------------------------------------------------------------------*/
  31. };
  32.  
  33.  
  34. SHORTCUT "rcs" = {\
  35. /*********************************************************************
  36.  *
  37.  * $Source$
  38.  *
  39.  * $Revision$
  40.  *
  41.  * $Author$
  42.  *
  43.  * $Date$
  44.  *
  45.  * $State$
  46.  *
  47.  **********************************************************************
  48.  * History:
  49.  *
  50.  * $Log$
  51.  *
  52.  *
  53.  *********************************************************************/
  54. };
  55.  
  56.  
  57. SHORTCUT "include" = {\
  58. #include <portab.h>
  59. #include <import.h>
  60.  
  61. #include <export.h>
  62. #include <sys/MODULENAME.h>
  63. };
  64.  
  65. SHORTCUT "init" = {\
  66. static BOOLEAN is_init=FALSE;
  67. void CDECL MODULENAME_init(WORD do_init)
  68. {{{
  69.   if (do_init)
  70.   {
  71.     if (!is_init)
  72.     {
  73.       is_init = TRUE;
  74.     \}
  75.   \}
  76.   else
  77.   {
  78.     if (is_init)
  79.     {
  80.       is_init = FALSE;
  81.     \}
  82.   \}
  83. \}\}\}
  84. };
  85.  
  86.  
  87. SHORTCUT "mod" = {\
  88. rcs\e
  89.  
  90. include\e
  91.  
  92. init\e
  93. };
  94.  
  95. }
  96.  
  97.