diff options
author | fishsoupisgood <github@madingley.org> | 2019-05-27 02:41:51 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2019-05-27 02:41:51 +0100 |
commit | 333b605b2afd472b823aeda0adf0e8b1ea9843c0 (patch) | |
tree | bc8f581317897e2e53f278f1716b4471fcdccd4f /chunks.h | |
download | asl-333b605b2afd472b823aeda0adf0e8b1ea9843c0.tar.gz asl-333b605b2afd472b823aeda0adf0e8b1ea9843c0.tar.bz2 asl-333b605b2afd472b823aeda0adf0e8b1ea9843c0.zip |
Diffstat (limited to 'chunks.h')
-rw-r--r-- | chunks.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/chunks.h b/chunks.h new file mode 100644 index 0000000..6027ad7 --- /dev/null +++ b/chunks.h @@ -0,0 +1,44 @@ +#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 */ |