Révision 286
pobysoPythonSage/src/sollya_lib.sage (revision 286) | ||
---|---|---|
132 | 132 |
# type different from c_int or void). We consider the all the functions |
133 | 133 |
# returning a sollya_obj_t as returning an int. |
134 | 134 |
try: |
135 |
sollya_lib_get_free_variable_name.restype = c_char_p |
|
135 |
sollya_lib_chebyshevform.restype = c_ulong |
|
136 |
sollya_lib_constant.restype = c_ulong |
|
137 |
sollya_lib_guessdegree.restype = c_ulong |
|
138 |
sollya_lib_get_free_variable_name.restype = c_char_p |
|
139 |
sollya_lib_infnorm.restypes = c_ulong |
|
140 |
sollya_lib_parse_string.restype = c_long |
|
141 |
sollya_lib_range.restype = c_ulong |
|
142 |
sollya_lib_range_from_bounds.restype = c_ulong |
|
143 |
sollya_lib_range_from_interval.restype = c_ulong |
|
136 | 144 |
except : |
137 | 145 |
sys.stderr.write("\nOne of the Python-Sollya return type setting command \n") |
138 | 146 |
sys.stderr.write("has failed.\n\n") |
... | ... | |
146 | 154 |
#sollya_lib_autoprint.argtypes = [c_ulong] |
147 | 155 |
sollya_lib_build_function_add.argtypes = [c_int, c_int] |
148 | 156 |
sollya_lib_chebyshevform.argtypes = [c_ulong, c_ulong] |
149 |
sollya_lib_chebyshevform.restype = c_ulong |
|
150 | 157 |
sollya_lib_constant.argtypes = [c_ulong] |
151 | 158 |
sollya_lib_constant_from_int64.argtypes = [c_long] |
152 | 159 |
sollya_lib_constant_from_mpq.argtypes = [c_ulong] |
153 |
sollya_lib_constant.restype = c_ulong |
|
154 | 160 |
sollya_lib_dirtyinfnorm.argstypes = [c_ulong, c_ulong] |
155 | 161 |
sollya_lib_end_elliptic_list.argtypes = [c_ulong, c_int] |
156 | 162 |
sollya_lib_get_constant.argtypes = [c_ulong, c_ulong] |
... | ... | |
170 | 176 |
POINTER(c_int), POINTER(c_int)] |
171 | 177 |
sollya_lib_guessdegree.argtypes = [c_ulong, c_ulong, c_ulong, \ |
172 | 178 |
c_ulong, c_ulong] |
173 |
sollya_lib_guessdegree.restype = c_ulong |
|
174 |
sollya_lib_infnorm.restypes = c_ulong |
|
175 | 179 |
sollya_lib_name_free_variable.argtypes = [POINTER(c_char)] |
176 |
sollya_lib_parse_string.restype = c_long |
|
177 | 180 |
sollya_lib_prepend.argstypes = [c_ulong, c_ulong] |
178 | 181 |
sollya_lib_range.argtypes = [c_ulong, c_ulong] |
179 |
sollya_lib_range.restype = c_ulong |
|
180 | 182 |
sollya_lib_range_from_bounds.argtypes = [c_ulong, c_ulong] |
181 |
sollya_lib_range_from_bounds.restype = c_ulong |
|
182 | 183 |
sollya_lib_range_from_interval.argtypes = [c_ulong] |
183 |
sollya_lib_range_from_interval.restype = c_ulong |
|
184 | 184 |
sollya_lib_supnorm.argtypes = \ |
185 | 185 |
[c_ulong, c_ulong, c_ulong, c_ulong, c_ulong] |
186 | 186 |
sollya_lib_supnorm.restype = c_ulong |
187 | 187 |
except : |
188 |
sys.stderr.write("\nOne of the Python-Sollya return type setting command \n")
|
|
188 |
sys.stderr.write("\nOne of the Python-Sollya arguments type setting command \n")
|
|
189 | 189 |
sys.stderr.write("has failed.\n\n") |
190 | 190 |
sys.exit(1) |
191 | 191 |
# |
Formats disponibles : Unified diff