some fixes to accented characters
[tangerine.git] / rom / hyperlayers / newlayerinfo.c
bloba4cc7bc2e8ee9a3694bc23cb8d11d076c625e41c
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/libcall.h>
9 #include <exec/memory.h>
10 #include <proto/exec.h>
12 #define DEBUG 0
13 #include <aros/debug.h>
14 #undef kprintf
16 /*****************************************************************************
18 NAME */
19 #include <proto/layers.h>
20 #include "layers_intern.h"
21 #include "basicfuncs.h"
23 AROS_LH0(struct Layer_Info *, NewLayerInfo,
25 /* SYNOPSIS */
26 /* void */
28 /* LOCATION */
29 struct LayersBase *, LayersBase, 24, Layers)
31 /* FUNCTION
33 INPUTS
35 RESULT
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
48 27-11-96 digulla automatically created from
49 layers_lib.fd and clib/layers_protos.h
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 struct Layer_Info *li;
57 D(bug("NewLayerInfo(void)\n"));
59 if(!(li = (struct Layer_Info *)AllocMem(sizeof(struct Layer_Info), MEMF_PUBLIC)))
60 return NULL;
62 InitLayers(li);
64 /* get memory for LayerInfo_extra structure */
65 if(!_AllocExtLayerInfo(li, LayersBase))
67 FreeMem(li, sizeof(struct Layer_Info));
68 return NULL;
71 li->Flags |= NEWLAYERINFO_CALLED;
73 return li;
75 AROS_LIBFUNC_EXIT
76 } /* NewLayerInfo */