From: John Darrington Date: Wed, 27 Apr 2005 04:45:26 +0000 (+0000) Subject: Changed a few instances of SHORT_NAME_LEN to LONG_NAME_LEN X-Git-Tag: v0.4.0~110 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad826ff86720f76220b05e00dc7dfa46e418859;p=pspp-builds.git Changed a few instances of SHORT_NAME_LEN to LONG_NAME_LEN --- diff --git a/src/ChangeLog b/src/ChangeLog index 4f65c2f9..1a9d2659 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 27 12:42:34 WST 2005 John Darrington + + * 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 * command.def echo.c: Added the ECHO command. diff --git a/src/loop.c b/src/loop.c index bfe04d11..7a2cc775 100644 --- a/src/loop.c +++ b/src/loop.c @@ -166,7 +166,7 @@ static int 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. */ diff --git a/src/recode.c b/src/recode.c index 36bb590e..f4f7bffa 100644 --- a/src/recode.c +++ b/src/recode.c @@ -66,7 +66,7 @@ struct rcd_var 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). */ diff --git a/src/repeat.c b/src/repeat.c index 42467096..b95dbc00 100644 --- a/src/repeat.c +++ b/src/repeat.c @@ -40,7 +40,7 @@ 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; }; @@ -125,7 +125,7 @@ static int 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; @@ -553,12 +553,12 @@ perform_DO_REPEAT_substitutions (void) /* 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++;