graphics.library: In INVERSVID mode, don't clobber the GC's pens
[AROS.git] / compiler / alib / opencatalog.c
blob1b271e047127f583fe11a42726d7fc66f5ce7960
1 /*
2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Varargs version of OpenCatalog()
6 Lang: english
7 */
9 #define AROS_TAGRETURNTYPE struct Catalog *
10 #include <utility/tagitem.h>
13 /*****************************************************************************
15 NAME */
16 #include <libraries/locale.h>
17 #include <proto/locale.h>
18 extern struct LocaleBase *LocaleBase;
19 #undef OpenCatalog /* Get rid of the macro from inline/ */
21 struct Catalog * OpenCatalog (
23 /* SYNOPSIS */
24 const struct Locale * locale,
25 CONST_STRPTR name,
26 Tag tag1,
27 ... )
29 /* FUNCTION
30 This is the varargs version of the locale.library OpenCatalogA().
31 For information see locale.library/OpenCatalog()
33 INPUTS
34 locale - The locale describing the language the user
35 wants.
36 name - Name of the catalog file.
37 tag1 - TagList of extra arguments.
39 RESULT
40 Either a pointer to a Catalog, or NULL.
42 Although the function may have returned NULL, that does not
43 necessarily meant there is an error. If dos/IoErr() returns
44 0, then there was no error, but the language of the built in
45 strings is the same as that of a catalog.
47 If IoErr() != 0, then there was an error however.
49 NOTES
51 EXAMPLE
53 BUGS
55 SEE ALSO
56 locale.library/OpenCatalogA(), locale.library/CloseCatalog(),
57 locale.library/GetCatalogStr()
59 INTERNALS
61 *****************************************************************************/
63 AROS_SLOWSTACKTAGS_PRE(tag1)
65 retval = OpenCatalogA(locale, name, AROS_SLOWSTACKTAGS_ARG(tag1));
67 AROS_SLOWSTACKTAGS_POST
68 } /* OpenCatalog */