]> www.ginac.de Git - cln.git/blob - src/float/sfloat/input/cl_SF_from_string.cc
6c9767e3d56ee3fa17da80ac3b55bf046d08f8cc
[cln.git] / src / float / sfloat / input / cl_SF_from_string.cc
1 // cl_SF (const char *) constructor.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_sfloat_class.h"
8
9
10 // Implementation.
11
12 #include "cl_sfloat.h"
13 #include "cl_input.h"
14 #include "cl_float_io.h"
15
16 cl_read_flags cl_SF_read_flags = {
17         syntax_sfloat,
18         lsyntax_all,
19         10,
20         { cl_float_format_sfloat, cl_float_format_lfloat_min, cl_false }
21 };
22
23 cl_SF::cl_SF (const char * string)
24 {
25         pointer = as_cl_private_thing(
26                 As(cl_SF)(read_float(cl_SF_read_flags,string,NULL,NULL)));
27 }