Added some SD files which are needed by "contrib".
[AROS.git] / tools / flexcat / src / sd / gcccatcomp.sd
blob638c5dd3c32687bfe37246b7d4849c228966ad0d
1 ##rem $Id: gcccatcomp.sd 30792 2009-03-07 22:40:04Z neil $
2 ##stringtype C
3 ##shortstrings
5 /****************************************************************
6    This file was created automatically by `%fv'
7    from "%f0".
9    Do NOT edit by hand!
10 ****************************************************************/
11 #include <proto/locale.h>
12 #include <aros/symbolsets.h>
14 static struct Catalog *catalog; 
16 const char *%i_STR;
18 static const struct
20     ULONG msg_ID;
21     const char  *msg_DEFSTR;
22     const char **msg_STR;
23 } msg_ARRAY[] = 
25     { %e, %s, &%i_STR },
28 static int OpenCatalog_%b(void)        
30     ULONG count;
32     if (LocaleBase != NULL)
33     {
34         catalog = OpenCatalog
35         (
36             NULL, "%b.catalog",
37             OC_Version, %v,
38             TAG_DONE
39         );
40     }
42     for (count = 0; count < sizeof(msg_ARRAY)/sizeof(msg_ARRAY[0]); count++)
43     {
44         *msg_ARRAY[count].msg_STR = LocaleBase != NULL
45             ? GetCatalogStr
46               (
47                   catalog, msg_ARRAY[count].msg_ID, msg_ARRAY[count].msg_DEFSTR
48               )
49             : (CONST_STRPTR)msg_ARRAY[count].msg_DEFSTR;
50     }
52     return 1;
55 static void CloseCatalog_%b(void)
57     if (LocaleBase != NULL)
58         CloseCatalog(catalog);
61 ADD2INIT(OpenCatalog_%b, 0);
62 ADD2EXIT(CloseCatalog_%b, 0);