dect
/
asl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asl/chunks.h

45 lines
1.4 KiB
C

#ifndef _CHUNKS_H
#define _CHUNKS_H
/* chunks.h */
/*****************************************************************************/
/* AS-Portierung */
/* */
/* Verwaltung von Adressbereichslisten */
/* */
/* Historie: 16. 5.1996 Grundsteinlegung */
/* 16. 8.1998 Min/Max-Ausgabe */
/* */
/*****************************************************************************/
typedef struct
{
LargeWord Start,Length;
} OneChunk;
typedef struct
{
Word RealLen,AllocLen;
OneChunk *Chunks;
} ChunkList;
extern Boolean AddChunk(ChunkList *NChunk, LargeWord NewStart, LargeWord NewLen, Boolean Warn);
extern void DeleteChunk(ChunkList *NChunk, LargeWord DelStart, LargeWord DelLen);
extern void InitChunk(ChunkList *NChunk);
extern void ClearChunk(ChunkList *NChunk);
extern LargeWord ChunkMin(ChunkList *NChunk);
extern LargeWord ChunkMax(ChunkList *NChunk);
extern LargeWord ChunkSum(ChunkList *NChunk);
extern void chunks_init(void);
#endif /* _CHUNKS_H */