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