+Wed Apr 27 12:42:34 WST 2005 John Darrington <john@darrington.wattle.id.au>
+
+ * loop.c recode.c repeat.c: Fixed a couple of instances of SHORT_NAME_LEN
+ which should be LONG_NAME_LEN
+
Wed Apr 27 07:43:50 WST 2005 John Darrington <john@darrington.wattle.id.au>
* command.def echo.c: Added the ECHO command.
internal_cmd_loop (void)
{
/* Name of indexing variable if applicable. */
- char name[SHORT_NAME_LEN + 1];
+ char name[LONG_NAME_LEN + 1];
/* Create and initialize transformations to facilitate
error-handling. */
struct variable *src; /* Source variable. */
struct variable *dest; /* Destination variable. */
- char dest_name[SHORT_NAME_LEN + 1]; /* Name of dest variable if we're creating it. */
+ char dest_name[LONG_NAME_LEN + 1]; /* Name of dest variable if we're creating it. */
int has_sysmis; /* Do we recode for SYSMIS? */
union value sysmis; /* Coding for SYSMIS (if src is numeric). */
struct repeat_entry
{
int type; /* 1=variable names, 0=any other. */
- char id[SHORT_NAME_LEN + 1]; /* Macro identifier. */
+ char id[LONG_NAME_LEN + 1]; /* Macro identifier. */
char **replacement; /* Macro replacement. */
struct repeat_entry *next;
};
internal_cmd_do_repeat (void)
{
/* Name of first DO REPEAT macro. */
- char first_name[SHORT_NAME_LEN + 1];
+ char first_name[LONG_NAME_LEN + 1];
/* Current filename. */
const char *current_filename = NULL;
/* Collect an identifier. */
{
- char name[SHORT_NAME_LEN + 1];
+ char name[LONG_NAME_LEN + 1];
char *start = cp;
char *np = name;
char *substitution;
- while (CHAR_IS_IDN (*cp) && np < &name[SHORT_NAME_LEN])
+ while (CHAR_IS_IDN (*cp) && np < &name[LONG_NAME_LEN])
*np++ = *cp++;
while (CHAR_IS_IDN (*cp))
cp++;