about summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-03-05 12:54:26 -0500
committerJune McEnroe <programble@gmail.com>2018-03-05 12:54:26 -0500
commit737c28c63c525fcc033bd9f0adb36e2c65d9f6a8 (patch)
tree13fd6a4318eb9fa8a6d77955e29ad6d5178aa1a6 /torus.h
parentPack message type enums (diff)
downloadtorus-737c28c63c525fcc033bd9f0adb36e2c65d9f6a8.tar.gz
torus-737c28c63c525fcc033bd9f0adb36e2c65d9f6a8.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 6d819a3..f2588a4 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)