chiark / gitweb /
Use symbolic enum values in the Loopy presets array.
authorSimon Tatham <anakin@pobox.com>
Mon, 24 Apr 2017 16:09:30 +0000 (17:09 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 24 Apr 2017 16:09:39 +0000 (17:09 +0100)
commitce6e3df99bc7825d1c1638d378320375eb05fd0b
tree69229ef0749ec9c662cf2eb1942d1bd08185014f
parente37d915f447e02b52236cee454dfe68749c6d876
Use symbolic enum values in the Loopy presets array.

The use of plain numbers was needlessly confusing, and in particular
made it too easy to make unintended changes to the existing Loopy
presets when inserting a new grid enum value anywhere other than at
the end of the list.

But in the course of doing this I realised that, against all
sensibleness, the numeric indices for grid types in grid.h and in
Loopy itself don't match up! Right now I don't want to get sidetracked
into fixing the structural confusion that made that happen in the
first place, but I've at least materialised Loopy's version of the
enum with clearly identifiable LOOPY_GRID_* names.
loopy.c