identify.library SDK v13 has library v37. Makes it compatible with native m68k programs.
[AROS.git] / rom / utility / getnamespace.c
blobf9dc19d15f846a1ae16357ff0ca9abea9c8d393a
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: GetNameSpace - Internal utility.library function.
6 Lang: english
7 */
8 #include "intern.h"
10 /* GetNameSpace: Internal function that gets the NameSpace to use.
11 Will look at either the supplied NameSpace, or use the Global
12 NameSpace.
14 History
15 11-08-96 iaint Internal NameSpace function.
16 19-10-96 iaint Changed to more logical NamedObject format.
17 06-04-97 iaint Changed to prevent AllocMem() in libinit.
20 struct NameSpace *
21 GetNameSpace(struct NamedObject *nameSpace, struct UtilityBase *UtilityBase)
23 if(nameSpace)
24 return (GetIntNamedObject(nameSpace))->no_NameSpace;
25 else
26 return &GetIntUtilityBase(UtilityBase)->ub_NameSpace;