(C) 1998 AROS - The Amiga Research OS


NAME

struct MemList * AllocEntry (entry)

LOCATION
In SysBase at offset 37

SYNOPSIS
struct MemList * entry

FUNCTION
Allocate a number of memory blocks through a MemList structure.

INPUTS
entry
The MemList with one MemEntry for each block you want to get

RESULT
The allocation was successful if the most significant bit of the result is 0. The result then contains a pointer to a copy of the MemList structure with the me_Addr fields filled. If the most significant bit is set the result contains the type of memory that couldn't be allocated.

EXAMPLE

SEE ALSO
FreeEntry()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
16.01.1998 hkiel
Always #undef DEBUG to assure proper behaviour with cpak
04.11.1997 turrican
Use macros to check the result of AllocEntry()
02.10.1997 turrican
Modified the testing of AROS_FLAVOUR_NATIVE; Added check for AROS_FLAVOUR_BINCOMPAT where apropriate
12.05.1997 aros
Fixed all headers
29.03.1997 ldp
Added a comment about the so-called kludge
06.03.1997 ldp
Removed log.

Add debugging.

AROSfA: Add compatibility kludge to stop AllocEntry() from failing if one of the length fields is 0. For instance: CrossDos' PCx uses a MemList of 7 fields, but the last two are empty.

01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.09.1996 digulla
Use IPTR
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS