diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-04 06:22:34 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-04 06:22:34 -0700 |
commit | e05dfea596bee5f26475b3715078ff315f22b5c2 (patch) | |
tree | 3a7babe2f44542220db234b8f71dd456f43a8ee5 /tests | |
parent | 94c4ac621f23e55b42f10d4cba920f2c7580005e (diff) | |
download | txr-e05dfea596bee5f26475b3715078ff315f22b5c2.tar.gz txr-e05dfea596bee5f26475b3715078ff315f22b5c2.tar.bz2 txr-e05dfea596bee5f26475b3715078ff315f22b5c2.zip |
Consolidate sysroot calculation.
* txr.c (sysroot_path): New static variable.
(progpath): Variable renamed to prog_path.
(sysroot_helper): Function removed.
(maybe_sysroot): New function.
(sysroot): Function now just catenates previously
calculated sysroot path onto target without.
(sysroot_init): Follow rename of progpath to prog_path.
GC-protect sysroot_path. Calculate sysroot path; if not
able, emit warning message and use empty string.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions