summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-28 19:27:23 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-28 19:27:23 -0500
commit0e57122ecfd554131fd6ad54fcbb556733bf6c88 (patch)
treea25bf21ab7a5d28629f09cb042ce836439905ceb /main.c
parentac3563dce6c0cceef83f4e838365178da4602507 (diff)
qsort_with_context on systems without qsort_r/s
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 176f972..8248ac3 100644
--- a/main.c
+++ b/main.c
@@ -179,6 +179,11 @@ int main(int argc, char **argv) {
}
#endif
}
+ #if TED_FORCE_SEARCH_CWD
+ // override whether or not we are in the executable's directory
+ // (for testing on Unix systems without /proc)
+ ted->search_cwd = true;
+ #endif
Settings *settings = &ted->settings;