mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
tiles: unclear why TileStoreFreeList is an exported global
Looks private internal implementation detail that may benefit from compiler single compile unit optimisations.
This commit is contained in:
committed by
R. Timothy Edwards
parent
0f19a20c8c
commit
686adc13b3
+2
-2
@@ -61,8 +61,8 @@ global const Rect TiPlaneRect = { {MINFINITY+2, MINFINITY+2}, {INFINITY-2, INFIN
|
||||
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
|
||||
global Tile *TileStoreFreeList = NULL;
|
||||
global Tile *TileStoreFreeList_end = NULL;
|
||||
static Tile *TileStoreFreeList = NULL;
|
||||
static Tile *TileStoreFreeList_end = NULL;
|
||||
|
||||
/* The new Tile Allocation scheme (Magic 8.0) */
|
||||
|
||||
|
||||
@@ -85,9 +85,6 @@ typedef Tile *TileStore;
|
||||
/* Page size is 4KB so we mmap a segment equal to 64 pages */
|
||||
#define TILE_STORE_BLOCK_SIZE (4 * 1024 * 64)
|
||||
|
||||
extern Tile *TileStoreFreeList;
|
||||
extern Tile *TileStoreFreeList_end;
|
||||
|
||||
#endif /* HAVE_SYS_MMAN_H */
|
||||
|
||||
#define BOTTOM(tp) ((tp)->ti_ll.p_y)
|
||||
|
||||
Reference in New Issue
Block a user