[BACK]Return to datafile.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Diff for /OpenXM_contrib/gnuplot/Attic/datafile.c between version 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2000/01/09 17:00:50 version 1.1.1.2, 2000/01/22 14:15:57
Line 348  char *s;
Line 348  char *s;
 #endif /* NO_FORTRAN_NUMS */  #endif /* NO_FORTRAN_NUMS */
             } else {              } else {
                 /* skip any space at start of column */                  /* skip any space at start of column */
                 while (isspace((int)*s))                  /* HBB tells me that the cast must be to
                    * unsigned char instead of int. */
                   while (isspace((unsigned char) *s))
                     ++s;                      ++s;
                 count = *s ? 1 : 0;                  count = *s ? 1 : 0;
                 /* skip chars to end of column */                  /* skip chars to end of column */
                 for (used = 0; !isspace((int)*s) && (*s != NUL); ++used, ++s)                  used = 0;
                     ;                  while (!isspace((unsigned char) *s) && (*s != NUL))
                       ++s;
             }              }
   
             /* it might be a fortran double or quad precision.              /* it might be a fortran double or quad precision.
Line 467  int max_using;
Line 470  int max_using;
  */   */
   
 {  {
     static char filename[MAX_LINE_LEN + 1] = "";      /* now allocated dynamically */
       static char *filename = NULL;
     int i;      int i;
     int name_token;      int name_token;
   
Line 516  int max_using;
Line 520  int max_using;
     assert(max_using <= NCOL);      assert(max_using <= NCOL);
   
     /* empty name means re-use last one */      /* empty name means re-use last one */
       if (isstring(c_token) && token_len(c_token) == 2) {
     {          if (!filename || !*filename)
         char name[MAX_LINE_LEN + 1];              int_error("No previous filename",c_token);
         quote_str(name, c_token, MAX_LINE_LEN);      } else {
         if (name[0])          filename = gp_realloc(filename, token_len(c_token), "datafile name");
             strcpy(filename, name);          quote_str(filename, c_token, token_len(c_token));
         else if (!filename[0])  
             int_error("No previous filename", c_token);  
     }      }
     name_token = c_token++;      name_token = c_token++;
   

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>