class documentation
class config(old_config): (source)
Undocumented
Method | check |
Return True if the C compiler is gcc |
Method | check |
Undocumented |
Method | check |
Undocumented |
Method | check |
Check a list of functions at once. |
Method | check |
Undocumented |
Method | check |
Undocumented |
Method | check |
Undocumented |
Method | check |
Return True if the GCC version is greater than or equal to the specified version. |
Method | check |
Undocumented |
Method | check |
Return the inline keyword recognized by the compiler, empty string otherwise. |
Method | check |
Undocumented |
Method | check |
Return the restrict keyword recognized by the compiler, empty string otherwise. |
Method | check |
Check type availability. Return True if the type can be compiled, False otherwise |
Method | check |
Check size of a given type. |
Method | get |
Try to compile, link to an executable, and run a program built from 'body' and 'headers'. Returns the exit status code of the program and its output. |
Method | initialize |
Undocumented |
Instance Variable | compiler |
Undocumented |
Instance Variable | fcompiler |
Undocumented |
Method | _check |
Undocumented |
Method | _compile |
Undocumented |
Method | _link |
Undocumented |
Method | _wrap |
Undocumented |
def check_func(self, func, headers=None, include_dirs=None, libraries=None, library_dirs=None, decl=False, call=False, call_args=None):
(source)
¶
Undocumented
def check_funcs_once(self, funcs, headers=None, include_dirs=None, libraries=None, library_dirs=None, decl=False, call=False, call_args=None):
(source)
¶
Check a list of functions at once.
This is useful to speed up things, since all the functions in the funcs list will be put in one compilation unit.
Parameters | |
funcs:seq | list of functions to test |
headers | Undocumented |
includeseq | list of header paths |
libraries:seq | list of libraries to link the code snippet to |
libraryseq | list of library paths |
decl:dict | for every (key, value), the declaration in the value will be used for function in key. If a function is not in the dictionary, no declaration will be used. |
call:dict | for every item (f, value), if the value is True, a call will be done to the function f. |
call | Undocumented |
def check_type_size(self, type_name, headers=None, include_dirs=None, library_dirs=None, expected=None):
(source)
¶
Check size of a given type.
def get_output(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang='c', use_tee=None):
(source)
¶
Try to compile, link to an executable, and run a program built from 'body' and 'headers'. Returns the exit status code of the program and its output.