squashed commit of private hostlib-resource branch
[tangerine.git] / compiler / alib / opencatalog.c
blob177e95d20580125d549619c66d5c4b0b696b2f98
1 /*
2 Copyright © 1995-2007, 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 struct Locale * locale,
25 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 users
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/OpenCatalogA(), locale/CloseCatalog(),
57 locale/GetCatalogStr()
59 INTERNALS
61 HISTORY
62 15-02-1997 iaint Wrote.
64 *****************************************************************************/
66 AROS_SLOWSTACKTAGS_PRE(tag1)
68 retval = OpenCatalogA(locale, name, AROS_SLOWSTACKTAGS_ARG(tag1));
70 AROS_SLOWSTACKTAGS_POST
71 } /* OpenCatalog */