More style cleanup
FossilOrigin-Name: 753ff34122c906fdba43b8c382ac52cc9f0ac3ce585ec9f4db6b1dc1f21ef86a
This commit is contained in:
parent
dd08a1069e
commit
a28209edcf
27 changed files with 525 additions and 539 deletions
21
src/Cube.mm
21
src/Cube.mm
|
@ -29,15 +29,18 @@ VARP(minmillis, 0, 5, 1000);
|
|||
#define log(s) conoutf(@"init: %@", s)
|
||||
log(@"sdl");
|
||||
|
||||
const OFOptionsParserOption options[] = {
|
||||
{'d', @"dedicated", 0, &dedicated, NULL},
|
||||
{'t', @"window", 0, &windowed, NULL},
|
||||
{'w', @"width", 1, NULL, NULL}, {'h', @"height", 1, NULL, NULL},
|
||||
{'u', @"upload-rate", 1, NULL, NULL},
|
||||
{'n', @"server-desc", 1, NULL, &sdesc}, {'i', @"ip", 1, NULL, &ip},
|
||||
{'m', @"master", 1, NULL, &master},
|
||||
{'p', @"password", 1, NULL, &passwd},
|
||||
{'c', @"max-clients", 1, NULL, NULL}, {'\0', nil, 0, NULL, NULL}};
|
||||
const OFOptionsParserOption options[] = { { 'd', @"dedicated", 0,
|
||||
&dedicated, NULL },
|
||||
{ 't', @"window", 0, &windowed, NULL },
|
||||
{ 'w', @"width", 1, NULL, NULL },
|
||||
{ 'h', @"height", 1, NULL, NULL },
|
||||
{ 'u', @"upload-rate", 1, NULL, NULL },
|
||||
{ 'n', @"server-desc", 1, NULL, &sdesc },
|
||||
{ 'i', @"ip", 1, NULL, &ip },
|
||||
{ 'm', @"master", 1, NULL, &master },
|
||||
{ 'p', @"password", 1, NULL, &passwd },
|
||||
{ 'c', @"max-clients", 1, NULL, NULL },
|
||||
{ '\0', nil, 0, NULL, NULL } };
|
||||
OFOptionsParser *optionsParser =
|
||||
[OFOptionsParser parserWithOptions:options];
|
||||
OFUnichar option;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue