home *** CD-ROM | disk | FTP | other *** search
- #***********************************************************************
- # C-Sourcen:
- EXTENSION ".C", ".H" = {
-
- COMMENT {DarkCyan, Bold, Light} = "/*", "*/"; -- Kommentare beginnen mit
- -- '/*' und enden mit '*/'
- REGION {} = '(', ')';
- REGION {} = '{', '}';
- REGION {} = '[', ']';
-
- KEYS {DarkRed, Bold, IgnoreCase} =
- "return", "break", "continue";
-
- KEYS {DarkBlue, Light} =
- main, char, void, int, short, long, unsigned;
-
- KEYS {DarkBlue} =
- define, if, ifndef, ifdef, else, endif,
- BOOLEAN, FAR, WORD, UWORD, LONG, ULONG, BYTE, UBYTE,
- LOCAL, GLOBAL;
-
- # Shortcuts
- -- das erste Zeilenende des folgenden Verbatim-Shortcuts wird nicht
- -- übernommen, da am Zeilenende ein Backslash steht.
- SHORTCUT 'com' = {\
- /*-----------------------------------------------------------------------
- *
- * \c
- *
- *-----------------------------------------------------------------------*/
- };
-
-
- SHORTCUT "rcs" = {\
- /*********************************************************************
- *
- * $Source$
- *
- * $Revision$
- *
- * $Author$
- *
- * $Date$
- *
- * $State$
- *
- **********************************************************************
- * History:
- *
- * $Log$
- *
- *
- *********************************************************************/
- };
-
-
- SHORTCUT "include" = {\
- #include <portab.h>
- #include <import.h>
-
- #include <export.h>
- #include <sys/MODULENAME.h>
- };
-
- SHORTCUT "init" = {\
- static BOOLEAN is_init=FALSE;
- void CDECL MODULENAME_init(WORD do_init)
- {{{
- if (do_init)
- {
- if (!is_init)
- {
- is_init = TRUE;
- \}
- \}
- else
- {
- if (is_init)
- {
- is_init = FALSE;
- \}
- \}
- \}\}\}
- };
-
-
- SHORTCUT "mod" = {\
- rcs\e
-
- include\e
-
- init\e
- };
-
- }
-
-