|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1207 (0x4b7)
Types: TextFile
Notes: UNIX file
Names: »alloc.h«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦2d53db1df⟧ UNIX Filesystem
└─⟦this⟧ »sys/h/alloc.h«
/* (-lgl
* The information contained herein is a trade secret of Mark Williams
* Company, and is confidential information. It is provided under a
* license agreement, and may be copied or disclosed only under the
* terms of that agreement. Any reproduction or disclosure of this
* material without the express written authorization of Mark Williams
* Company or persuant to the license agreement is unlawful.
*
* COHERENT Version 0.7.3
* Copyright (c) 1982, 1983, 1984.
* An unpublished work by Mark Williams Company, Chicago.
* All rights reserved.
-lgl) */
/*
* Allocator.
*/
#ifndef ALLOC_H
#define ALLOC_H
/*
* Structure for allocator.
*/
typedef struct all {
union {
char *a_link;
char a_free[2];
} a_union;
char a_data[];
} ALL;
#if 0
/*
* Portable defines for the allocator.
*/
#define align(p) ((ALL *)NULL + ((p) - (ALL *)NULL))
#define link(p) (align((p)->a_link))
#define tstfree(p) ((p)->a_link == (char *) link(p))
#define setfree(p) ((p)->a_link = (char *) link(p))
#define setused(p) ((p)->a_link = (char *) link(p) + 1)
#endif
#ifdef KERNEL
/*
* Functions and externals.
*/
extern char *alloc();
extern ALL *setarena();
#endif
#endif