gexp: Keep only a single 'references' field.
authorLudovic Courtès <ludo@gnu.org>
Sat, 2 Jul 2016 21:19:40 +0000 (23:19 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 12 Jul 2016 20:47:08 +0000 (22:47 +0200)
commitaffd7761f3b38f7d5670a4e91fefef72174621cc
tree1ccfdca4ab255517d3fd9a99a2239453224e2013
parent08858812b57796fe5c2acee9f1675523333a149c
gexp: Keep only a single 'references' field.

The distinction between native inputs and "normal" inputs can already be
determined by looking at the 'native?' field of <gexp-input>.  The extra
'natives' field of <gexp> added complexity for no good reason.

* guix/gexp.scm (<gexp>)[natives]: Remove.
(write-gexp): Remove use of 'gexp-native-references'.
(gexp-inputs)[native-input?]: New procedure.
Use it.
(gexp->sexp)[reference->sexp]: Honor N? for input lists.
Remove use of 'gexp-native-references'.
(gexp)[collect-native-escapes]: Remove.
Simplify.
guix/gexp.scm