Lichen

Annotated lib/native/tuple.py

858:8f8361de472a
2018-07-21 Paul Boddie Invocations in parameter lists may require temporary storage for contexts and accessors, but the storage locations must be different. Otherwise, the code will generate a sequence-point warning. Here, distinct ranges for parameters in lists are introduced, and accessors are now also stored in arrays, permitting distinct storage.
paul@773 1
#!/usr/bin/env python
paul@773 2
paul@773 3
"""
paul@773 4
Native library functions for tuples.
paul@773 5
paul@773 6
None of these are actually defined here. Instead, native implementations are
paul@773 7
substituted when each program is built. It is, however, important to declare
paul@773 8
non-core exceptions used by the native functions because they need to be
paul@773 9
identified as being needed by the program.
paul@773 10
paul@773 11
Copyright (C) 2017 Paul Boddie <paul@boddie.org.uk>
paul@773 12
paul@773 13
This program is free software; you can redistribute it and/or modify it under
paul@773 14
the terms of the GNU General Public License as published by the Free Software
paul@773 15
Foundation; either version 3 of the License, or (at your option) any later
paul@773 16
version.
paul@773 17
paul@773 18
This program is distributed in the hope that it will be useful, but WITHOUT
paul@773 19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
paul@773 20
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
paul@773 21
details.
paul@773 22
paul@773 23
You should have received a copy of the GNU General Public License along with
paul@773 24
this program.  If not, see <http://www.gnu.org/licenses/>.
paul@773 25
"""
paul@773 26
paul@773 27
def tuple_init(size): pass
paul@773 28
paul@773 29
# vim: tabstop=4 expandtab shiftwidth=4