home *** CD-ROM | disk | FTP | other *** search
- #ifndef BUILDIN_H
- #define BUILDIN_H
-
-
- /****************************************************************************/
-
-
- /* This file was created automatically by CatComp.
- * Do NOT edit by hand!
- */
-
-
- #ifndef EXEC_TYPES_H
- #include <exec/types.h>
- #endif
-
- #ifdef CATCOMP_ARRAY
- #undef CATCOMP_NUMBERS
- #undef CATCOMP_STRINGS
- #define CATCOMP_NUMBERS
- #define CATCOMP_STRINGS
- #endif
-
- #ifdef CATCOMP_BLOCK
- #undef CATCOMP_STRINGS
- #define CATCOMP_STRINGS
- #endif
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_NUMBERS
-
- #define FUNC0_DESCRIPTION 0
- #define MSG_ACTIVATE 1
- #define MSG_APPEAR 2
- #define MSG_DISAPPEAR 3
- #define MSG_REMOVE 4
- #define MSG_SAVE_POS 5
- #define MSG_QUIT 6
- #define MSG_TEXT 7
- #define MSG_CX_DESCR 8
-
- #endif /* CATCOMP_NUMBERS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_STRINGS
-
- #define FUNC0_DESCRIPTION_STR "DOpus Exchange"
- #define MSG_ACTIVATE_STR "Activated"
- #define MSG_APPEAR_STR "Appear"
- #define MSG_DISAPPEAR_STR "Disappear"
- #define MSG_REMOVE_STR "Remove"
- #define MSG_SAVE_POS_STR "Save settings"
- #define MSG_QUIT_STR "Quit"
- #define MSG_TEXT_STR "Exchange"
- #define MSG_CX_DESCR_STR "Control commodity programs"
-
- #endif /* CATCOMP_STRINGS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_ARRAY
-
- struct CatCompArrayType
- {
- LONG cca_ID;
- STRPTR cca_Str;
- };
-
- static const struct CatCompArrayType CatCompArray[] =
- {
- {FUNC0_DESCRIPTION,(STRPTR)FUNC0_DESCRIPTION_STR},
- {MSG_ACTIVATE,(STRPTR)MSG_ACTIVATE_STR},
- {MSG_APPEAR,(STRPTR)MSG_APPEAR_STR},
- {MSG_DISAPPEAR,(STRPTR)MSG_DISAPPEAR_STR},
- {MSG_REMOVE,(STRPTR)MSG_REMOVE_STR},
- {MSG_SAVE_POS,(STRPTR)MSG_SAVE_POS_STR},
- {MSG_QUIT,(STRPTR)MSG_QUIT_STR},
- {MSG_TEXT,(STRPTR)MSG_TEXT_STR},
- {MSG_CX_DESCR,(STRPTR)MSG_CX_DESCR_STR},
- };
-
- #endif /* CATCOMP_ARRAY */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_BLOCK
-
- static const char CatCompBlock[] =
- {
- "\x00\x00\x00\x00\x00\x10"
- FUNC0_DESCRIPTION_STR "\x00\x00"
- "\x00\x00\x00\x01\x00\x0A"
- MSG_ACTIVATE_STR "\x00"
- "\x00\x00\x00\x02\x00\x08"
- MSG_APPEAR_STR "\x00\x00"
- "\x00\x00\x00\x03\x00\x0A"
- MSG_DISAPPEAR_STR "\x00"
- "\x00\x00\x00\x04\x00\x08"
- MSG_REMOVE_STR "\x00\x00"
- "\x00\x00\x00\x05\x00\x0E"
- MSG_SAVE_POS_STR "\x00"
- "\x00\x00\x00\x06\x00\x06"
- MSG_QUIT_STR "\x00\x00"
- "\x00\x00\x00\x07\x00\x0A"
- MSG_TEXT_STR "\x00\x00"
- "\x00\x00\x00\x08\x00\x1C"
- MSG_CX_DESCR_STR "\x00\x00"
- };
-
- #endif /* CATCOMP_BLOCK */
-
-
- /****************************************************************************/
-
-
- struct LocaleInfo
- {
- APTR li_LocaleBase;
- APTR li_Catalog;
- };
-
-
- #ifdef CATCOMP_CODE
-
- STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
- {
- LONG *l;
- UWORD *w;
- STRPTR builtIn;
-
- l = (LONG *)CatCompBlock;
-
- while (*l != stringNum)
- {
- w = (UWORD *)((ULONG)l + 4);
- l = (LONG *)((ULONG)l + (ULONG)*w + 6);
- }
- builtIn = (STRPTR)((ULONG)l + 6);
-
- #undef LocaleBase
- #define LocaleBase li->li_LocaleBase
-
- if (LocaleBase)
- return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
- #undef LocaleBase
-
- return(builtIn);
- }
-
-
- #endif /* CATCOMP_CODE */
-
-
- /****************************************************************************/
-
-
- #endif /* BUILDIN_H */
-