PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/cln-1.3.2/src/float/sfloat/input/cl_SF_from_string.cc

#
C++ | 31 lines | 18 code | 9 blank | 4 comment | 0 complexity | 5faabd7ac5c8534bdb0adf5f02a5b8bc MD5 | raw file
Possible License(s): GPL-2.0
  1. // cl_SF (const char *) constructor.
  2. // General includes.
  3. #include "base/cl_sysdep.h"
  4. // Specification.
  5. #include "cln/sfloat_class.h"
  6. // Implementation.
  7. #include "cln/sfloat.h"
  8. #include "cln/input.h"
  9. #include "cln/float_io.h"
  10. namespace cln {
  11. cl_read_flags cl_SF_read_flags = {
  12. syntax_sfloat,
  13. lsyntax_all,
  14. 10,
  15. { float_format_sfloat, float_format_lfloat_min, false }
  16. };
  17. cl_SF::cl_SF (const char * string)
  18. {
  19. pointer = as_cl_private_thing(
  20. As(cl_SF)(read_float(cl_SF_read_flags,string,NULL,NULL)));
  21. }
  22. } // namespace cln