Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 36337
Collapse All | Expand All

(-)seq.c.orig (-1 / +11 lines)
Lines 55-61 Link Here
55
static double first;
55
static double first;
56
56
57
/* The increment.  */
57
/* The increment.  */
58
static double step = 1.0;
58
static double step;
59
59
60
/* The last number.  */
60
/* The last number.  */
61
static double last;
61
static double last;
Lines 298-303 Link Here
298
{
298
{
299
  int errs;
299
  int errs;
300
  int optc;
300
  int optc;
301
  int step_is_set;
301
302
302
  /* The printf(3) format used for output.  */
303
  /* The printf(3) format used for output.  */
303
  char *format_str = NULL;
304
  char *format_str = NULL;
Lines 313-318 Link Here
313
  equal_width = 0;
314
  equal_width = 0;
314
  separator = "\n";
315
  separator = "\n";
315
  first = 1.0;
316
  first = 1.0;
317
  step_is_set = 0;
316
318
317
  /* Figure out the locale's idea of a decimal point.  */
319
  /* Figure out the locale's idea of a decimal point.  */
318
#if HAVE_LOCALECONV
320
#if HAVE_LOCALECONV
Lines 397-402 Link Here
397
      if (optind < argc)
399
      if (optind < argc)
398
	{
400
	{
399
	  step = last;
401
	  step = last;
402
	  step_is_set = 1;
400
	  last = scan_double_arg (argv[optind++]);
403
	  last = scan_double_arg (argv[optind++]);
401
	}
404
	}
402
    }
405
    }
Lines 408-413 Link Here
408
      usage (EXIT_FAILURE);
411
      usage (EXIT_FAILURE);
409
    }
412
    }
410
413
414
  if (!step_is_set)
415
    {
416
      step = (first <= last) ? 1.0 : -1.0;
417
      if (step < 0)
418
	error (0, 0, _("Please specify step of -1 since this behavior is obsolete and will be removed in the future"));
419
    }
420
411
  if (format_str == NULL)
421
  if (format_str == NULL)
412
    {
422
    {
413
      if (equal_width)
423
      if (equal_width)

Return to bug 36337