| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/numpy/distutils/__pycache__/ |
Upload File : |
�
���c� � �� � d Z ddgZddlZddlZddlZ ej dej � � Z ej dej � � Z ej dej � � Z d� Z
ej d � � Z ej d
� � Z ej d� � Z
d� Zd
� Z ej d� � Zd� Zd� Z ej d� � Zd� Zd� Z ej dej � � Zd� Zd� Z ed� � Zd� Zedk r e� � dS dS )a�
process_file(filename)
takes templated file .xxx.src and produces .xxx file where .xxx
is .pyf .f90 or .f using the following template rules:
'<..>' denotes a template.
All function and subroutine blocks in a source file with names that
contain '<..>' will be replicated according to the rules in '<..>'.
The number of comma-separated words in '<..>' will determine the number of
replicates.
'<..>' may have two different forms, named and short. For example,
named:
<p=d,s,z,c> where anywhere inside a block '<p>' will be replaced with
'd', 's', 'z', and 'c' for each replicate of the block.
<_c> is already defined: <_c=s,d,c,z>
<_t> is already defined: <_t=real,double precision,complex,double complex>
short:
<s,d,c,z>, a short form of the named, useful when no <p> appears inside
a block.
In general, '<..>' contains a comma separated list of arbitrary
expressions. If these expression must contain a comma|leftarrow|rightarrow,
then prepend the comma|leftarrow|rightarrow with a backslash.
If an expression matches '\<index>' then it will be replaced
by <index>-th expression.
Note that all '<..>' forms in a block must have the same number of
comma-separated entries.
Predefined named template rules:
<prefix=s,d,c,z>
<ftype=real,double precision,complex,double complex>
<ftypereal=real,double precision,\0,\1>
<ctype=float,double,complex_float,complex_double>
<ctypereal=float,double,\0,\1>
�process_str�process_file� Nz2(\n|\A)(( (\$|\*))|)\s*(subroutine|function)\bz+\n\s*end\s*(subroutine|function)\b.*(\n|\Z)z\n (\$|\*)\s*function\bc �" � g }d} t � | |� � }|�n�|� � � }t � | ||� � � � � r4 | � d||� � }|dk rn|}| ||dz � dk rn�3|dz
}t � | |� � � � � }|r|� � � dz
pt | � � x}}|� ||f� � �� |S ) z� Return a list of tuples for each function or subroutine each
tuple is the start and end of a subroutine or function to be
expanded.
r TN�
���� z
$� )
�routine_start_re�search�start�function_start_re�match�end�rfind�routine_end_re�len�append)�astr�spanlist�ind�mr �ir s �?/usr/lib/python3/dist-packages/numpy/distutils/from_template.py�parse_structurer : s � � �H�
�C�&��#�#�D�#�.�.���9����� � ���"�"�4�������8�8� �
��J�J�t�S�%�0�0���b�5�5������!�A�#��;�
�*�*��
� ��
���!�!�$������0�0���O�!�%�%�'�'�!�)�0�s�4�y�y�0��c�������%�%�%�!&�"