forked from Macroassembler-AS/asl-releases
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunks.h
47 lines (32 loc) · 1.45 KB
/
chunks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#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 Boolean AddressInChunk(ChunkList *NChunk, LargeWord Address);
extern void SortChunks(ChunkList *NChunk);
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 */