]> www.ginac.de Git - cln.git/blobdiff - src/integer/input/cl_I_read_stream.cc
* */*: Remove cl_boolean, cl_true, and cl_false in favor of built-in
[cln.git] / src / integer / input / cl_I_read_stream.cc
index 6f6a5c076bd35115e45608f80b049a89511435ce..1ffd54b176f6e35e6789b7822b548e078b6ee853 100644 (file)
@@ -26,17 +26,17 @@ public:
        char* end_pointer (void) { return buffer+index; }
 };
 
-static cl_boolean number_char_p (char c)
+static bool number_char_p (char c)
 {
        if ((c >= '0') && (c <= '9'))
-               return cl_true;
+               return true;
        if (((c >= 'A') && (c <= 'Z')) || ((c >= 'a') && (c <= 'z')))
-               return cl_true;
+               return true;
        switch (c) {
                case '+': case '-': case '.': case '_': case '/':
-                       return cl_true;
+                       return true;
                default:
-                       return cl_false;
+                       return false;
        }
 }
 
@@ -98,10 +98,10 @@ const cl_I read_integer (std::istream& stream, const cl_read_flags& flags)
 
        // Handle syntax error.
 syntax1:       buffer.push(c);
-       read_number_bad_syntax(buffer.start_pointer(),buffer.end_pointer());
+       throw read_number_bad_syntax_exception(buffer.start_pointer(),buffer.end_pointer());
 
        // Handle premature EOF.
-eof:   read_number_eof();
+eof:   throw read_number_eof_exception();
 }
 
 }  // namespace cln