~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/cmdline.h

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
       `need_arg' is zero.  */
59
59
    void *resource_value;
60
60
 
 
61
#ifdef HAS_TRANSLATION
 
62
    /* ID of the string to display after the option name in the help screen. */
 
63
    int param_name;
 
64
 
 
65
    /* ID of the description string. */
 
66
    int description;
 
67
#else
61
68
    /* String to display after the option name in the help screen.  (Can be
62
69
       NULL).  */
63
70
    const char *param_name;
64
71
 
65
72
    /* Description string.  */
66
73
    const char *description;
 
74
#endif
67
75
} cmdline_option_t;
68
76
 
 
77
 
69
78
typedef struct cmdline_option_ram_s {
70
79
    /* Name of command-line option.  */
71
80
    char *name;
89
98
       `need_arg' is zero.  */
90
99
    void *resource_value;
91
100
 
 
101
#ifdef HAS_TRANSLATION
 
102
    /* ID of the string to display after the option name in the help screen. */
 
103
    int param_name;
 
104
 
 
105
    /* ID of the description string. */
 
106
    int description;
 
107
#else
92
108
    /* String to display after the option name in the help screen.  (Can be
93
109
       NULL).  */
94
110
    const char *param_name;
95
111
 
96
112
    /* Description string.  */
97
113
    const char *description;
 
114
#endif
98
115
} cmdline_option_ram_t;
99
116
 
100
117
extern int cmdline_init(void);
 
118
 
101
119
extern int cmdline_register_options(const cmdline_option_t *c);
102
120
extern void cmdline_shutdown(void);
103
121
extern int cmdline_parse(int *argc, char **argv);
105
123
extern char *cmdline_options_string(void);
106
124
 
107
125
#endif
108