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:
Darryl L. Miles 2025-01-31 16:09:00 +00:00 committed by R. Timothy Edwards
parent 0f19a20c8c
commit 686adc13b3
2 changed files with 2 additions and 5 deletions

View File

@ -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) */

View File

@ -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)