about summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-03-05 12:54:26 -0500
committerJune McEnroe <june@causal.agency>2018-03-05 12:54:26 -0500
commit79ab120ad31ed74a2a3221d14b7472703296a921 (patch)
treeae575f7e84a2602b85719a35f016b087e9144a63 /torus.h
parentPack message type enums (diff)
downloadtorus-79ab120ad31ed74a2a3221d14b7472703296a921.tar.gz
torus-79ab120ad31ed74a2a3221d14b7472703296a921.zip
Rename Tile timestamps {create,modify,access}Time
Diffstat (limited to '')
-rw-r--r--torus.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/torus.h b/torus.h
index efe828d..26395a7 100644
--- a/torus.h
+++ b/torus.h
@@ -51,18 +51,18 @@ enum {
 #define CELL_INIT_X (CELL_COLS / 2)
 #define CELL_INIT_Y (CELL_ROWS / 2)
 
-struct Tile {
-    time_t create;
-    time_t modify;
-    char cells[CELL_ROWS][CELL_COLS] ALIGNED(16);
-    uint8_t colors[CELL_ROWS][CELL_COLS] ALIGNED(16);
+struct ALIGNED(4096) Tile {
+    time_t createTime;
+    time_t modifyTime;
+    char ALIGNED(16) cells[CELL_ROWS][CELL_COLS];
+    uint8_t ALIGNED(16) colors[CELL_ROWS][CELL_COLS];
     uint32_t modifyCount;
     uint32_t accessCount;
-    time_t access;
-} ALIGNED(4096);
-static_assert(sizeof(struct Tile) == 4096, "struct Tile is page-sized");
-static_assert(offsetof(struct Tile, cells) == 16, "stable cells offset");
-static_assert(offsetof(struct Tile, colors) == 2016, "stable colors offset");
+    time_t accessTime;
+};
+static_assert(4096 == sizeof(struct Tile), "struct File is page-sized");
+static_assert(16 == offsetof(struct Tile, cells), "stable cells offset");
+static_assert(2016 == offsetof(struct Tile, colors), "stable colors offset");
 
 #define TILE_ROWS (512)
 #define TILE_COLS (512)