Branch: refs/heads/master Author: Alexander Eberspächer alex.eberspaecher@gmail.com Committer: Alexander Eberspächer alex.eberspaecher@gmail.com Date: Mon, 15 Jul 2013 08:08:11 UTC Commit: 3dc54228608b01bccd4d198cec852912000730ad https://github.com/geany/geany/commit/3dc54228608b01bccd4d198cec852912000730...
Log Message: ----------- Add test for complex datatype Cython tag generation
Modified Paths: -------------- tests/ctags/Makefile.am tests/ctags/cython_sample2.pyx tests/ctags/cython_sample2.pyx.tags
Modified: tests/ctags/Makefile.am 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -113,6 +113,7 @@ test_sources = \ countall.sql \ cpp_destructor.cpp \ cython_sample.pyx \ + cython_sample2.pyx \ cxx11enum.cpp \ db-trig.sql \ debian_432872.f90 \
Modified: tests/ctags/cython_sample2.pyx 11 files changed, 11 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,11 @@ +# -*- cython-mode -*- +# test code for cython functionality with complex datatypes + +import numpy as np +cimport numpy as np + +cpdef np.ndarray[dtype=double, ndim=1] my_fun(np.ndarray[dtype=double, ndim=1] x): + cdef np.ndarray[dtype=double, ndim=1, mode="c"] res + + res = 2*x + return res
Modified: tests/ctags/cython_sample2.pyx.tags 3 files changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,3 @@ +# format=tagmanager +my_fun�16�(np.ndarray[dtype=double, ndim=1] x)�0 +np�256�0
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).