Browse Source

Janitorial clean-up.

Remove some unused variables and convert files with CRNL line endings
to files with NL line endings.
master
Richard Kreckel 10 years ago
parent
commit
8d1111ad1f
  1. 2
      src/complex/input/cl_N_read.cc
  2. 2
      src/float/input/cl_F_read.cc
  3. 2
      src/real/input/cl_R_read.cc

2
src/complex/input/cl_N_read.cc

@ -164,13 +164,11 @@ not_rational_syntax:
}
var const char * ptr_after_sign = ptr;
var const char * ptr_after_intpart = skip_digits(ptr_after_sign,string_limit,float_base);
var bool have_dot = false;
var const char * ptr_before_fracpart = ptr_after_intpart;
var const char * ptr_after_fracpart = ptr_after_intpart;
ptr = ptr_after_intpart;
if (ptr != string_limit)
if (*ptr == '.') {
have_dot = true;
ptr_before_fracpart = ptr+1;
ptr_after_fracpart = skip_digits(ptr_before_fracpart,string_limit,float_base);
}

2
src/float/input/cl_F_read.cc

@ -75,13 +75,11 @@ const cl_F read_float (const cl_read_flags& flags, const char * string, const ch
}
var const char * ptr_after_sign = ptr;
var const char * ptr_after_intpart = skip_digits(ptr_after_sign,string_limit,float_base);
var bool have_dot = false;
var const char * ptr_before_fracpart = ptr_after_intpart;
var const char * ptr_after_fracpart = ptr_after_intpart;
ptr = ptr_after_intpart;
if (ptr != string_limit)
if (*ptr == '.') {
have_dot = true;
ptr_before_fracpart = ptr+1;
ptr_after_fracpart = skip_digits(ptr_before_fracpart,string_limit,float_base);
}

2
src/real/input/cl_R_read.cc

@ -165,13 +165,11 @@ not_rational_syntax:
}
var const char * ptr_after_sign = ptr;
var const char * ptr_after_intpart = skip_digits(ptr_after_sign,string_limit,float_base);
var bool have_dot = false;
var const char * ptr_before_fracpart = ptr_after_intpart;
var const char * ptr_after_fracpart = ptr_after_intpart;
ptr = ptr_after_intpart;
if (ptr != string_limit)
if (*ptr == '.') {
have_dot = true;
ptr_before_fracpart = ptr+1;
ptr_after_fracpart = skip_digits(ptr_before_fracpart,string_limit,float_base);
}

Loading…
Cancel
Save