lib-lmgr
Routines for handling "lists", e.g. the properties like those generated by lsedit
A list consists of a propdir (named listname#) which has the value representing the number of list items, and then numbered properties in the propdir representing the list elements.
| LMGR-ClearElem | elem# list-name dbref -- | Clears an element in the list -- does NOT delete |
| LMGR-GetElem | elem# list-name dbref -- string | Get an element of a list |
| LMGR-PutElem | elem elem# list-name dbref -- | Put an element into a list |
| LMGR-GetRange | count first-elem list-name dbref -- strrange |
Get a range of elements from a list: returns the element values [strings] on the stack, with on top |
| LMGR-FullRange | list-name dbref -- num-elements 1 list-name dbref |
Define entire list for getrange purposes: returns the parms on the stack, ready for LMGR-GetRange |
| LMGR-GetBRange | count first-elem list-name dbref -- bstrrange |
Get a range of elements from a list, Different from 'GetRange' in that the top element on the stack is the first element from the range.
returns the element values [strings] on the stack, with on top
|
| LMGR-PutRange | values count first-elem list-name dbref -- | Put a range of elements into a list |
| LMGR-ClearRange | count first-elem list-name dbref -- | Clears a range of elements in the list -- does NOT delete |
| LMGR-DeleteRange | count first-elem list-name dbref -- |
Delete a range of elements from the list, shifting the later elements back to fill the gap. |
| LMGR-InsertRange | values count first-elem list-name dbref -- | Insert a range of elemnts into a list |
| LMGR-MoveRange | dest count source list-name dbref -- | Move [copy] a range of elements inside a list |
| LMGR-CopyRange | dst cnt src src-lst src-ref dst-lst dst-ref -- |
Copy a range of elements from one list into another, inserting into the new list |
| LMGR-DeleteList | list-name dbref -- | Delete an entire list. |
| LMGR-Getlist | list-name dbref -- | Get an entire list. |
feaelin@kemenel.org
lib-lmgr / Revised 2004 March 31 22:06 (Wednesday)
© 2004 Iain E. Davis
|