pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/repeat.c


From: John Darrington
Subject: [Pspp-cvs] Changes to pspp/src/repeat.c
Date: Wed, 13 Apr 2005 06:10:08 -0400

Index: pspp/src/repeat.c
diff -u pspp/src/repeat.c:1.12 pspp/src/repeat.c:1.13
--- pspp/src/repeat.c:1.12      Mon Mar  7 03:04:50 2005
+++ pspp/src/repeat.c   Wed Apr 13 10:09:59 2005
@@ -40,7 +40,7 @@
 struct repeat_entry
   {
     int type;                  /* 1=variable names, 0=any other. */
-    char id[9];                        /* Macro identifier. */
+    char id[SHORT_NAME_LEN + 1];       /* Macro identifier. */
     char **replacement;                /* Macro replacement. */
     struct repeat_entry *next;
   };
@@ -125,7 +125,7 @@
 internal_cmd_do_repeat (void)
 {
   /* Name of first DO REPEAT macro. */
-  char first_name[9];
+  char first_name[SHORT_NAME_LEN + 1];
 
   /* Current filename. */
   const char *current_filename = NULL;
@@ -553,12 +553,12 @@
 
       /* Collect an identifier. */
       {
-       char name[9];
+       char name[SHORT_NAME_LEN + 1];
        char *start = cp;
        char *np = name;
        char *substitution;
 
-       while (CHAR_IS_IDN (*cp) && np < &name[8])
+       while (CHAR_IS_IDN (*cp) && np < &name[SHORT_NAME_LEN])
          *np++ = *cp++;
        while (CHAR_IS_IDN (*cp))
          cp++;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]