1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
# Copyright © 2007-2018 Jakub Wilk <jwilk@jwilk.net>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of djvulibre-python.
#
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# cython: language_level=3
cdef extern from 'libdjvu/miniexp.h':
struct cexpr_s 'miniexp_s'
ctypedef cexpr_s* cexpr_t 'miniexp_t'
cdef extern struct cvar_s 'minivar_s'
ctypedef cvar_s cvar_t 'minivar_t'
cdef class _WrappedCExpr:
cdef cvar_t* cvar
cdef cexpr_t cexpr(self)
cdef object print_into(self, object, object, bint)
cdef object as_string(self, object, bint)
cdef object public_c2py(cexpr_t)
cdef _WrappedCExpr public_py2c(object)
|