OwlCyberSecurity - MANAGER
Edit File: autodist.cpython-38.pyc
U �p�]� � @ sT d Z ddlmZmZmZ ddlZdd� Zdd� Zdd � Zd d� Z dd � Z dd� ZdS )zKThis module implements additional tests ala autoconf which can be useful. � )�division�absolute_import�print_functionNc C sB | � � t�d�}dD ]&}| �|d|i dd�}|r| S qdS )z,Return the inline identifier (may be empty).z� #ifndef __cplusplus static %(inline)s int static_func (void) { return 0; } %(inline)s int nostatic_func (void) { return 0; } #endif)�inlineZ __inline__Z__inliner N� �Z_check_compiler�textwrap�dedentZtry_compile��cmd�body�kw�st� r �B/usr/lib/python3/dist-packages/numpy/distutils/command/autodist.py�check_inline s r c C sB | � � t�d�}dD ]&}| �|d|i dd�}|r| S qdS )z.Return the restrict identifier (may be empty).zj static int static_func (char * %(restrict)s a) { return 0; } )�restrictZ__restrict__Z __restrictr Nr r r r r r �check_restrict! s r c C s | � � t�d�}| �|dd�S )z)Return True if the C compiler is GCC 4.x.z� int main() { #if (! defined __GNUC__) || (__GNUC__ < 4) #error gcc >= 4 required #endif return 0; } Nr )r r r r r �check_compiler_gcc43 s r c C s, | � � t�d�||f }| �|dd�dkS )z9Return True if the given function attribute is supported.z� #pragma GCC diagnostic error "-Wattributes" #pragma clang diagnostic error "-Wattributes" int %s %s(void*); int main() { return 0; } Nr r )r � attribute�namer r r r �check_gcc_function_attributeC s �r c C s0 | � � t�d�||||f }| �|dd�dkS )zMReturn True if the given function attribute is supported with intrinsics.z� #include<%s> int %s %s(void) { %s; return 0; } int main() { return 0; } Nr r )r r r �codeZincluder r r r �,check_gcc_function_attribute_with_intrinsicsU s �r c C s* | � � t�d�|f }| �|dd�dkS )z9Return True if the given variable attribute is supported.z� #pragma GCC diagnostic error "-Wattributes" #pragma clang diagnostic error "-Wattributes" int %s foo; int main() { return 0; } Nr r )r r r r r r �check_gcc_variable_attributek s �r )�__doc__Z __future__r r r r r r r r r r r r r r �<module> s