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

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

version 1.1.1.1, 2000/01/09 17:00:49 version 1.1.1.2, 2000/01/22 14:15:56
Line 334  static int command()
Line 334  static int command()
                 gstrptime(string, format, &tm);                  gstrptime(string, format, &tm);
                 secs = gtimegm(&tm);                  secs = gtimegm(&tm);
                 fprintf(stderr, "internal = %f - %d/%d/%d::%d:%d:%d , wday=%d, yday=%d\n",                  fprintf(stderr, "internal = %f - %d/%d/%d::%d:%d:%d , wday=%d, yday=%d\n",
                         secs, tm.tm_mday, tm.tm_mon + 1, tm.tm_year, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_wday, tm.tm_yday);                          secs, tm.tm_mday, tm.tm_mon + 1, tm.tm_year % 100, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_wday, tm.tm_yday);
                 memset(&tm, 0, sizeof(tm));                  memset(&tm, 0, sizeof(tm));
                 ggmtime(&tm, secs);                  ggmtime(&tm, secs);
                 gstrftime(string, 159, format, secs);                  gstrftime(string, 159, format, secs);
                 fprintf(stderr, "convert back \"%s\" - %d/%d/%d::%d:%d:%d , wday=%d, yday=%d\n",                  fprintf(stderr, "convert back \"%s\" - %d/%d/%d::%d:%d:%d , wday=%d, yday=%d\n",
                         string, tm.tm_mday, tm.tm_mon + 1, tm.tm_year, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_wday, tm.tm_yday);                          string, tm.tm_mday, tm.tm_mon + 1, tm.tm_year % 100, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_wday, tm.tm_yday);
             }              }
         }          }
     } else if (almost_equals(c_token, "test")) {      } else if (almost_equals(c_token, "test")) {
Line 1114  char **parms;
Line 1114  char **parms;
 # endif /* AMIGA_AC_5 */  # endif /* AMIGA_AC_5 */
   
   
 # if defined(READLINE) || defined(GNU_READLINE)  # if defined(READLINE) || defined(HAVE_LIBREADLINE)
 /* keep some compilers happy */  /* keep some compilers happy */
 static char *rlgets __PROTO((char *s, int n, char *prompt));  static char *rlgets __PROTO((char *s, int n, char *prompt));
   
Line 1149  char *prompt;
Line 1149  char *prompt;
     }      }
     return NULL;      return NULL;
 }  }
 # endif /* READLINE || GNU_READLINE */  # endif /* READLINE || HAVE_LIBREADLINE */
   
   
 # if defined(MSDOS) || defined(_Windows) || defined(DOS386)  # if defined(MSDOS) || defined(_Windows) || defined(DOS386)
Line 1224  static void do_shell()
Line 1224  static void do_shell()
   
 /* read from stdin, everything except VMS */  /* read from stdin, everything except VMS */
   
 # if !defined(READLINE) && !defined(GNU_READLINE)  # if !defined(READLINE) && !defined(HAVE_LIBREADLINE)
 #  if (defined(MSDOS) || defined(DOS386)) && !defined(_Windows) && !defined(__EMX__) && !defined(DJGPP)  #  if (defined(MSDOS) || defined(DOS386)) && !defined(_Windows) && !defined(__EMX__) && !defined(DJGPP)
   
 /* if interactive use console IO so CED will work */  /* if interactive use console IO so CED will work */
Line 1310  int len;
Line 1310  int len;
 #   define GET_STRING(s,l) fgets(s, l, stdin)  #   define GET_STRING(s,l) fgets(s, l, stdin)
   
 #  endif /* !plain DOS */  #  endif /* !plain DOS */
 # endif /* !READLINE && !GNU_READLINE) */  # endif /* !READLINE && !HAVE_LIBREADLINE) */
   
 /* Non-VMS version */  /* Non-VMS version */
 static int read_line(prompt)  static int read_line(prompt)
Line 1320  char *prompt;
Line 1320  char *prompt;
     TBOOLEAN more = FALSE;      TBOOLEAN more = FALSE;
     int last = 0;      int last = 0;
   
 # if !defined(READLINE) && !defined(GNU_READLINE)  # if !defined(READLINE) && !defined(HAVE_LIBREADLINE)
     if (interactive)      if (interactive)
         PUT_STRING(prompt);          PUT_STRING(prompt);
 # endif /* READLINE */  # endif /* READLINE */
     do {      do {
         /* grab some input */          /* grab some input */
 # if defined(READLINE) || defined(GNU_READLINE)  # if defined(READLINE) || defined(HAVE_LIBREADLINE)
         if (((interactive)          if (((interactive)
              ? rlgets(&(input_line[start]), input_line_len - start,               ? rlgets(&(input_line[start]), input_line_len - start,
                       ((more) ? "> " : prompt))                        ((more) ? "> " : prompt))
              : fgets(&(input_line[start]), input_line_len - start, stdin))               : fgets(&(input_line[start]), input_line_len - start, stdin))
             == (char *) NULL) {              == (char *) NULL) {
 # else /* !(READLINE || GNU_READLINE) */  # else /* !(READLINE || HAVE_LIBREADLINE) */
         if (GET_STRING(&(input_line[start]), input_line_len - start)          if (GET_STRING(&(input_line[start]), input_line_len - start)
             == (char *) NULL) {              == (char *) NULL) {
 # endif /* !(READLINE || GNU_READLINE) */  # endif /* !(READLINE || HAVE_LIBREADLINE) */
             /* end-of-file */              /* end-of-file */
             if (interactive)              if (interactive)
                 (void) putc('\n', stderr);                  (void) putc('\n', stderr);
Line 1368  char *prompt;
Line 1368  char *prompt;
             } else              } else
                 more = FALSE;                  more = FALSE;
         }          }
 # if !defined(READLINE) && !defined(GNU_READLINE)  # if !defined(READLINE) && !defined(HAVE_LIBREADLINE)
         if (more && interactive)          if (more && interactive)
             PUT_STRING("> ");              PUT_STRING("> ");
 # endif  # endif

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

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