]> git.draconx.ca Git - upkg.git/commit
libupkg: Store export parent pointers directly.
authorNick Bowler <nbowler@draconx.ca>
Mon, 14 May 2012 21:47:14 +0000 (17:47 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 14 May 2012 21:47:14 +0000 (17:47 -0400)
commit95f7a657a099c844a644b8736bd18e08afd50661
treed4251fe4566c8660ebe1eea11a496a18a9042970
parente6d2653b6a2612ea2cee768d4dadcc3fb9315d00
libupkg: Store export parent pointers directly.

Making users handle the package member directly leads to some fairly
ridiculous and somewhat tricky code.  Resolve them all at package load
time and store pointers directly in the upkg_export structure, which
should help simplify the callers.

At this point, we codify the "exports cannot have packages which are
imports" assumption, which appears to be valid.  It's not obvious how
name lookup could possibly succeed if this were not the case.
src/libupkg.c
src/upkg.c
src/upkg.h