You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
505 B

25 years ago
25 years ago
25 years ago
25 years ago
  1. // cl_RA (const char *) constructor.
  2. // General includes.
  3. #include "cl_sysdep.h"
  4. // Specification.
  5. #include "cln/rational_class.h"
  6. // Implementation.
  7. #include "cln/input.h"
  8. #include "cln/rational_io.h"
  9. namespace cln {
  10. cl_read_flags cl_RA_read_flags = {
  11. syntax_rational,
  12. lsyntax_all,
  13. 10,
  14. { float_format_ffloat, float_format_lfloat_min, cl_true }
  15. };
  16. cl_RA::cl_RA (const char * string)
  17. {
  18. pointer = as_cl_private_thing(
  19. read_rational(cl_RA_read_flags,string,NULL,NULL));
  20. }
  21. } // namespace cln