Your IP : 216.73.216.213
B
� f� � @ sr d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
G dd� d�ZG d d
� d
e�Z
dd� Zd
d� ZdS )a�
c_annotations.py
~~~~~~~~~~~~~~~~
Supports annotations for C API elements:
* reference count annotations for C API functions. Based on
refcount.py and anno-api.py in the old Python documentation tools.
* stable API annotations
Usage: Set the `refcount_file` config value to the path to the reference
count data file.
:copyright: Copyright 2007-2014 by Georg Brandl.
:license: Python license.
� )�path)�nodes)�
directives)�addnodes)�CObjectc @ s e Zd Zdd� ZdS )�RCEntryc C s || _ g | _d| _d | _d S )N� )�name�args�result_type�result_refs)�selfr � r �G/opt/alt/python37/lib64/python3.7/Doc/tools/extensions/c_annotations.py�__init__ s zRCEntry.__init__N)�__name__�
__module__�__qualname__r r r r r r s r c @ s e Zd Zedd� �Zdd� ZdS )�Annotationsc C s� | � }t |d�}z�x�|D ]�}|�� }|d d� dkr6q|�dd�}t|�dkrZtd| ��|\}}}} }
y|| }W n$ tk
r� t|� }||<