home *** CD-ROM | disk | FTP | other *** search
- #ifndef CATALOG_H
- #define CATALOG_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 MSG_CX_DESCRIPTION 0
- #define MSG_HAILSTRING 1
- #define MSG_BYEBYE 2
- #define MSG_ERROR_MEMORY 3
- #define MSG_ERROR_LIBRARY 4
-
- #endif /* CATCOMP_NUMBERS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_STRINGS
-
- #define MSG_CX_DESCRIPTION_STR "Neue Funktionen in Stringgadgets"
- #define MSG_HAILSTRING_STR "NewEdit installiert...\n"
- #define MSG_BYEBYE_STR "NewEdit beendet.\n"
- #define MSG_ERROR_MEMORY_STR "Zuwenig freier Speicherplatz!\n"
- #define MSG_ERROR_LIBRARY_STR "Kann '%s' Version %ld nicht öffnen.\n"
-
- #endif /* CATCOMP_STRINGS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_ARRAY
-
- struct CatCompArrayType
- {
- LONG cca_ID;
- STRPTR cca_Str;
- };
-
- static const struct CatCompArrayType CatCompArray[] =
- {
- {MSG_CX_DESCRIPTION,(STRPTR)MSG_CX_DESCRIPTION_STR},
- {MSG_HAILSTRING,(STRPTR)MSG_HAILSTRING_STR},
- {MSG_BYEBYE,(STRPTR)MSG_BYEBYE_STR},
- {MSG_ERROR_MEMORY,(STRPTR)MSG_ERROR_MEMORY_STR},
- {MSG_ERROR_LIBRARY,(STRPTR)MSG_ERROR_LIBRARY_STR},
- };
-
- #endif /* CATCOMP_ARRAY */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_BLOCK
-
- static const char CatCompBlock[] =
- {
- "\x00\x00\x00\x00\x00\x22"
- MSG_CX_DESCRIPTION_STR "\x00\x00"
- "\x00\x00\x00\x01\x00\x18"
- MSG_HAILSTRING_STR "\x00"
- "\x00\x00\x00\x02\x00\x12"
- MSG_BYEBYE_STR "\x00"
- "\x00\x00\x00\x03\x00\x20"
- MSG_ERROR_MEMORY_STR "\x00\x00"
- "\x00\x00\x00\x04\x00\x26"
- MSG_ERROR_LIBRARY_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);
-
- #define XLocaleBase LocaleBase
- #define LocaleBase li->li_LocaleBase
-
- if (LocaleBase)
- return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
- #define LocaleBase XLocaleBase
- #undef XLocaleBase
-
- return(builtIn);
- }
-
-
- #endif /* CATCOMP_CODE */
-
-
- /****************************************************************************/
-
-
- #endif /* CATALOG_H */
-