Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/numpy/f2py/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/numpy/f2py/__pycache__/use_rules.cpython-35.pyc



(��^.�@s�dZddlmZmZmZddd�ZdZddlmZm	Z	m
Z
mZmZdd	d
ddd
giZ
dd�Zdd�ZdS)ag

Build 'use others module data' mechanism for f2py2e.

Unfinished.

Copyright 2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License.

NO WARRANTY IS EXPRESSED OR IMPLIED.  USE AT YOUR OWN RISK.
$Date: 2000/09/10 12:35:43 $
Pearu Peterson

�)�division�absolute_import�print_functionz$Revision: 1.3 $�
�z
See `f2py -v`)�
applyrules�
dictappend�gentitle�hasnote�outmess�bodya�
#begintitle#
static char doc_#apiname#[] = "\
Variable wrapper signature:\n\
	 #name# = get_#name#()\n\
Arguments:\n\
#docstr#";
extern F_MODFUNC(#usemodulename#,#USEMODULENAME#,#realname#,#REALNAME#);
static PyObject *#apiname#(PyObject *capi_self, PyObject *capi_args) {
/*#decl#*/
	if (!PyArg_ParseTuple(capi_args, "")) goto capi_fail;
printf("c: %d\n",F_MODFUNC(#usemodulename#,#USEMODULENAME#,#realname#,#REALNAME#));
	return Py_BuildValue("");
capi_fail:
	return NULL;
}
�methodzC	{"get_#name#",#apiname#,METH_VARARGS|METH_KEYWORDS,doc_#apiname#},ZneedZ	F_MODFUNCc	Cs�i}td|d�i}i}d|kr�xl|dj�D]Z}|d||kr�td|d||||d|f�qA|||d|<qAWd|krS|drSx�|dj�D]�}|d||dkr0||d||kr|d|||<qLtd||d|f�q�td||d|f�q�WnBx?|dj�D]-}||kr�||||<qd|||<qdWx>|j�D]0}t|t||||d|d��}q�W|S)	NzL		Building use variable hooks for module "%s" (feature only for F90/F95)...
�name�mapz:			Variable "%s<=%s" is already mapped by "%s". Skipping.
�only�varsz%			Ignoring map "%s=>%s". See above.
z2			No definition for variable "%s=>%s". Skipping.
)r�keysr�buildusevar)�m�r�retZvarsmapZrevmap�k�v�r�G/opt/alt/python35/lib64/python3.5/site-packages/numpy/f2py/use_rules.py�buildusevars5s6( .rc	Cswtd||f�i}d|d|d|j�d|d|j�d|jdd	�d
td||f�dtd
||f�dd||fi	}ddddddddddddddddd d!d"d#i
}||d$<x8|j�D]*}|d$jt|�||�|d$<q�Wt||�rA||d%|d%<ti|�}t||||�t	t
|�}|S)&Nz:			Constructing wrapper function for variable "%s=>%s"...
r�realnameZREALNAME�
usemodulenameZ
USEMODULENAMEZtexname�_z\_Z
begintitlez%s=>%sZendtitlez
end of %s=>%sZapinamez#modulename#_use_%s_from_%srZRorZRi�ZRii�ZRiii�ZRiv�ZRv�ZRvi�ZRvii�ZRviii�	ZRixZtexnamenameZnote)r�upper�replacer	r�reprr
r�printr�usemodule_rules)	rrrrrZvrdZnummap�iZrdrrrrYs.$
(rN���)�__doc__�
__future__rrr�__version__Zf2py_versionZauxfuncsrrr	r
rr+rrrrrr�<module>s($