msgstr ""
"Project-Id-Version: PSPP 0.4.2\n"
"Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
-"POT-Creation-Date: 2006-10-19 16:31+0800\n"
+"POT-Creation-Date: 2006-10-20 10:21+0800\n"
"PO-Revision-Date: 2006-05-26 17:49+0800\n"
"Last-Translator: John Darrington <john@darrington.wattle.id.au>\n"
"Language-Team: German <pspp-dev@gnu.org>\n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: pspp-dev@gnu.org\n"
-"POT-Creation-Date: 2006-10-19 16:31+0800\n"
+"POT-Creation-Date: 2006-10-20 10:21+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
}
{
- static bool (*const handlers[FMT_NUMBER_OF_FORMATS])(struct data_in *) =
+ typedef bool (*handler_t) (struct data_in *);
+ static const handler_t handlers[FMT_NUMBER_OF_FORMATS] =
{
parse_numeric, parse_N, parse_numeric, parse_numeric,
parse_numeric, parse_numeric, parse_numeric,
parse_WKDAY, parse_MONTH,
};
- bool (*handler)(struct data_in *);
+ handler_t handler;
bool success;
handler = handlers[i->format.type];
static int
convert_Z (char *dst, const struct fmt_spec *fp, double number)
{
- static int warned = 0;
+ static bool warned = false;
if (!warned)
{
#define DEFFMT(LABEL, NAME, N_ARGS, IMIN_W, IMAX_W, OMIN_W, OMAX_W, CAT, \
OUTPUT, SPSS_FMT) \
{NAME, N_ARGS, IMIN_W, IMAX_W, OMIN_W, OMAX_W, CAT, OUTPUT, SPSS_FMT},
-struct fmt_desc formats[FMT_NUMBER_OF_FORMATS + 1] =
+const struct fmt_desc formats[FMT_NUMBER_OF_FORMATS + 1] =
{
#include "format.def"
{"", -1, -1, -1, -1, -1, 0000, -1, -1},
static bool
check_common_specifier (const struct fmt_spec *spec, bool emit_error)
{
- struct fmt_desc *f ;
+ const struct fmt_desc *f ;
char *str;
assert (spec->type < FMT_NUMBER_OF_FORMATS);
int
check_input_specifier (const struct fmt_spec *spec, int emit_error)
{
- struct fmt_desc *f;
+ const struct fmt_desc *f;
char *str ;
if (!check_common_specifier (spec, emit_error))
int
check_output_specifier (const struct fmt_spec *spec, int emit_error)
{
- struct fmt_desc *f;
+ const struct fmt_desc *f;
char *str ;
if (!check_common_specifier (spec, emit_error))
/* Descriptions of all the display formats above. */
-extern struct fmt_desc formats[];
+extern const struct fmt_desc formats[];
union value;
bool lex_id_match (const char *keyword_string, const char *token_string);
int lex_id_to_token (const char *id, size_t len);
+extern const char *keywords[T_N_KEYWORDS + 1] ;
+
#endif /* !lex_def_h */
void *private; /* Private data. */
};
-struct ctl_struct *ctl_stack;
+static struct ctl_struct *ctl_stack;
void
ctl_stack_clear (void)
{
struct dfm_writer *writer; /* Output data file. */
struct expression *expr; /* Number of lines; NULL means 1. */
- }
-print_space_trns;
+ };
static trns_proc_func print_space_trns_proc;
static trns_free_func print_space_trns_free;
{
int nonconst_cnt = 0; /* Number of nonconstant children. */
int sysmis_cnt = 0; /* Number of system-missing children. */
- struct operation *op;
+ const struct operation *op;
struct composite_node *c;
int i;
static void
flatten_composite (union any_node *n, struct expression *e)
{
- struct operation *op = &operations[n->type];
+ const struct operation *op = &operations[n->type];
size_t i;
for (i = 0; i < n->composite.arg_cnt; i++)
\f
/* Individual function parsing. */
-struct operation operations[OP_first + OP_cnt] = {
+const struct operation operations[OP_first + OP_cnt] = {
#include "parse.inc"
};
const struct operation **first,
const struct operation **last)
{
- struct operation *f;
+ const struct operation *f;
for (f = operations + OP_function_first;
f <= operations + OP_function_last; f++)
static bool
is_valid_node (union any_node *n)
{
- struct operation *op;
+ const struct operation *op;
size_t i;
assert (n != NULL);
int array_granularity;
};
-extern struct operation operations[];
+extern const struct operation operations[];
/* Tree structured expressions. */
*/
\f
-/* Global variables. */
-
-extern const char *keywords[T_N_KEYWORDS + 1];
-
-
/* Current token. */
int token;
return t;
}
- return _("<ERROR>");
+ NOT_REACHED ();
}
/* Returns an ASCII representation of the current token as a
const char *s;
};
- struct init *p;
+ const struct init *p;
- static struct init vec[] =
+ static const struct init vec[] =
{
{4, 0, N_("Valid")},
{5, 0, N_("Cum")},
/* (functions) */
/* TABLES: Variable lists for each dimension. */
-int n_dim; /* Number of dimensions. */
-size_t *nv_dim; /* Number of variables in each dimension. */
-struct variable ***v_dim; /* Variables in each dimension. */
+static int n_dim; /* Number of dimensions. */
+static size_t *nv_dim; /* Number of variables in each dimension. */
+static struct variable ***v_dim; /* Variables in each dimension. */
/* VARIABLES: List of variables. */
-int n_var;
-struct variable **v_var;
+static struct variable **v_var;
/* Parses and executes the T-TEST procedure. */
int
static struct cmd_regression cmd;
/* Linear regression models. */
-pspp_linreg_cache **models = NULL;
+static pspp_linreg_cache **models = NULL;
/*
Transformations for saving predicted values
File where the model will be saved if the EXPORT subcommand
is given.
*/
-struct file_handle *model_file;
+static struct file_handle *model_file;
/*
Return value for the procedure.
*/
-int pspp_reg_rc = CMD_SUCCESS;
+static int pspp_reg_rc = CMD_SUCCESS;
static bool run_regression (const struct ccase *,
const struct casefile *, void *);
struct font *fonts[OUTP_FONT_CNT];
int last_font; /* Index of last font set with setfont. */
- }
-ps_driver_ext;
+ };
/* Transform logical y-ordinate Y into a page ordinate. */
#define YT(Y) (this->length - (Y))
\f
static struct tab_table *t;
static struct outp_driver *d;
-int tab_hit;
+static int tab_hit;
/* Set the current table to TABLE. */
static void