[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/data-list.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/data-list.c |
Date: |
Wed, 13 Apr 2005 06:10:03 -0400 |
Index: pspp/src/data-list.c
diff -u pspp/src/data-list.c:1.29 pspp/src/data-list.c:1.30
--- pspp/src/data-list.c:1.29 Mon Mar 14 06:54:40 2005
+++ pspp/src/data-list.c Wed Apr 13 10:09:59 2005
@@ -65,7 +65,7 @@
int fc, lc; /* Column numbers in record. */
/* Free format only. */
- char name[9]; /* Name of variable. */
+ char name[SHORT_NAME_LEN + 1]; /* Name of variable. */
};
/* Constants for DATA LIST type. */
@@ -841,6 +841,7 @@
if (!parse_DATA_LIST_vars (&name, &name_cnt, PV_NONE))
return 0;
+
if (lex_match ('('))
{
if (!parse_format_specifier (&input, 0)
@@ -873,6 +874,7 @@
struct variable *v;
v = dict_create_var (default_dict, name[i], width);
+
if (!v)
{
msg (SE, _("%s is a duplicate variable name."), name[i]);
@@ -887,7 +889,7 @@
spec->input = input;
spec->v = v;
spec->fv = v->fv;
- strcpy (spec->name, name[i]);
+ strcpy (spec->name, v->name);
append_var_spec (first, last, spec);
}
for (i = 0; i < name_cnt; i++)
- [Pspp-cvs] Changes to pspp/src/data-list.c,
John Darrington <=