diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-05-02 10:43:46 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-05-02 10:43:46 +0000 |
| commit | ee171498221e701d446fd1bf18c5e1c5771ef128 (patch) | |
| tree | c82ab56dfb47a40cf3f5f7cf6ebdb87257ab9d76 /puzzles.h | |
| parent | 44ff00665b271ffc789d750d8ad2e5cf25e5327d (diff) | |
| download | puzzles-ee171498221e701d446fd1bf18c5e1c5771ef128.zip puzzles-ee171498221e701d446fd1bf18c5e1c5771ef128.tar.gz puzzles-ee171498221e701d446fd1bf18c5e1c5771ef128.tar.bz2 puzzles-ee171498221e701d446fd1bf18c5e1c5771ef128.tar.xz | |
`BOOLEAN' is a term already used by Win32. Bah. Change terminology.
[originally from svn r4183]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -52,7 +52,7 @@ typedef struct game_drawstate game_drawstate; * Structure used to pass configuration data between frontend and * game */ -enum { STRING, CHOICES, BOOLEAN, ENDCFG }; +enum { C_STRING, C_CHOICES, C_BOOLEAN, C_END }; struct config_item { /* * `name' is never dynamically allocated. @@ -63,17 +63,17 @@ struct config_item { */ int type; /* - * For STRING, `sval' is always dynamically allocated and - * non-NULL. For BOOLEAN and ENDCFG, `sval' is always NULL. For - * CHOICES, `sval' is non-NULL, _not_ dynamically allocated, - * and contains a set of option strings separated by a - * delimiter. The delimeter is also the first character in the - * string, so for example ":Foo:Bar:Baz" gives three options - * `Foo', `Bar' and `Baz'. + * For C_STRING, `sval' is always dynamically allocated and + * non-NULL. For C_BOOLEAN and C_END, `sval' is always NULL. + * For C_CHOICES, `sval' is non-NULL, _not_ dynamically + * allocated, and contains a set of option strings separated by + * a delimiter. The delimeter is also the first character in + * the string, so for example ":Foo:Bar:Baz" gives three + * options `Foo', `Bar' and `Baz'. */ char *sval; /* - * For BOOLEAN, this is TRUE or FALSE. For CHOICES, it + * For C_BOOLEAN, this is TRUE or FALSE. For C_CHOICES, it * indicates the chosen index from the `sval' list. In the * above example, 0==Foo, 1==Bar and 2==Baz. */ |