Your IP : 216.73.216.85
B
� f� � @ sD d dl Z d dlZdZdZd
dd�Zedkr@ee jd e jd � dS )� Nz�/* Auto-generated by Tools/scripts/generate_opcode_h.py */
#ifndef Py_OPCODE_H
#define Py_OPCODE_H
#ifdef __cplusplus
extern "C" {
#endif
/* Instruction opcodes for compiled code */
aQ
/* EXCEPT_HANDLER is a special, implicit block type which is created when
entering an except handler. It is not an opcode but we define it here
as we want it to be available to both frameobject.c and ceval.c, while
remaining private.*/
#define EXCEPT_HANDLER 257
enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE,
PyCmp_GT=Py_GT, PyCmp_GE=Py_GE, PyCmp_IN, PyCmp_NOT_IN,
PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, PyCmp_BAD};
#define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
#ifdef __cplusplus
}
#endif
#endif /* !Py_OPCODE_H */
�Include/opcode.hc C s� i }t td�rt�| �}nt| �}|� |�� }W d Q R X t||� |d }t|d��h}|�t� xL|d D ]@}||kr�|�d||| f � |dkrl|�dd|d f � qlW |�t� W d Q R X td || f � d S )
N�open�opmap�w�opnamez#define %-23s %3s
Z
POP_EXCEPTz#define %-23s %3d
Z
HAVE_ARGUMENTz%s regenerated from %s) �hasattr�tokenizer �read�exec�write�header�footer�print)Z opcode_pyZoutfileZopcode�fp�coder Zfobj�name� r �D/opt/alt/python37/lib64/python3.7/Tools/scripts/generate_opcode_h.py�main&