Lichen

lib/native/__init__.py

1022:582d834d392d
14 months ago Paul Boddie Merged changes from the value-replacement branch. value-replacement-for-wrapper
     1 #!/usr/bin/env python     2      3 """     4 Native library functions.     5      6 Copyright (C) 2011, 2015-2018, 2021 Paul Boddie <paul@boddie.org.uk>     7      8 This program is free software; you can redistribute it and/or modify it under     9 the terms of the GNU General Public License as published by the Free Software    10 Foundation; either version 3 of the License, or (at your option) any later    11 version.    12     13 This program is distributed in the hope that it will be useful, but WITHOUT    14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    15 FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more    16 details.    17     18 You should have received a copy of the GNU General Public License along with    19 this program.  If not, see <http://www.gnu.org/licenses/>.    20 """    21     22 from native.buffer import buffer_str    23     24 from native.float import float_add, float_div, float_mod, float_mul, \    25                          float_neg, float_pow, float_sub, \    26                          float_eq, float_ge, float_gt, float_le, float_lt, \    27                          float_ne, \    28                          float_int, float_str    29     30 from native.identity import is_, is_not    31     32 from native.int import int_add, int_div, int_mod, int_mul, int_neg, int_pow, \    33                        int_sub, int_and, int_not, int_or, int_xor, \    34                        int_lshift, int_rshift, \    35                        int_eq, int_ge, int_gt, int_le, int_lt, int_ne, \    36                        int_float, int_str, is_int    37     38 from native.introspection import object_getattr, isinstance, issubclass    39     40 from native.iconv import iconv, iconv_close, iconv_open, iconv_reset    41     42 from native.io import fclose, fflush, fopen, fdopen, close, read, write, fread, fwrite    43     44 from native.limits import get_maxint, get_minint    45     46 from native.list import list_init, list_setsize, list_append, list_concat, \    47                         list_len, list_nonempty, list_element, list_setelement    48     49 from native.locale import getlocale, setlocale    50     51 from native.program import get_using    52     53 from native.str import str_add, str_chr, str_eq, str_gt, str_lt, \    54                        str_ord, str_size, str_substr    55     56 from native.system import exit, get_argv, get_path    57     58 from native.tuple import tuple_init    59     60 from native.unicode import unicode_len, unicode_ord, unicode_substr, unicode_unichr    61     62 # vim: tabstop=4 expandtab shiftwidth=4