A buffer variable wasn't dereferenced in two similar comparisons in ResList
[AROS.git] / compiler / alib / allocnamedobject.c
blobb539c965aa270cf324f68d425d2b91ed46b9b51a
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Allocate a NamedObject with varargs.
6 Lang: english
7 */
8 #define AROS_TAGRETURNTYPE struct NamedObject *
10 #define NO_INLINE_STDARG /* turn off inline def */
11 #include <proto/utility.h>
12 #include "alib_intern.h"
14 /*****************************************************************************
16 NAME */
17 #include <utility/tagitem.h>
18 #include <utility/name.h>
19 #include <proto/utility.h>
21 struct NamedObject * AllocNamedObject (
23 /* SYNOPSIS */
24 STRPTR name,
25 Tag tag1,
26 ... )
28 /* FUNCTION
29 Allocate a NamedObject. This is the varargs version of the function.
30 For more information see AllocNamedObjectA() in utility.library.
32 INPUTS
33 name - The name of the object to allocate.
34 tag1 - The first Tag of the arguments. End the list with
35 TAG_DONE.
37 RESULT
38 The address of a NamedObject, or NULL if the allocation failed.
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 utility.library/AllocNamedObjectA()
49 INTERNALS
51 HISTORY
52 09-02-1997 iaint Adapted from another function.
54 *****************************************************************************/
56 AROS_SLOWSTACKTAGS_PRE(tag1)
58 retval = AllocNamedObjectA(name, AROS_SLOWSTACKTAGS_ARG(tag1));
60 AROS_SLOWSTACKTAGS_POST
61 } /* AllocNamedObject */