File: cmdline.h

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (33 lines) | stat: -rw-r--r-- 1,150 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Command-line parsing definitions for Xconq.
   Copyright (C) 1993, 1994, 1995 Stanley T. Shebs.

Xconq is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.  See the file COPYING.  */

enum parsestage {
    general_options,
    variant_options,
    player_options,
    interface_options,
    leftover_options
};

/* Global variables that command-line options tweak. */

extern int checkpointinterval;
extern int allbedesigners;
extern int option_popup_new_game_dialog;
extern int warnings_suppressed;
extern char *option_game_to_host;
extern char *option_game_to_join;
extern int option_num_to_wait_for;

extern void init_options PARAMS ((void));
extern void parse_command_line PARAMS ((int argc, char **argv, int spec));
extern void add_a_module PARAMS ((char *name, char *filename));
extern void load_all_modules PARAMS ((void));
extern void set_variants_from_options PARAMS ((void));
extern void set_players_from_options PARAMS ((void));
extern void print_instructions PARAMS ((void));