summaryrefslogtreecommitdiff
path: root/fxjs/cjs_global.h
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-04-04 17:44:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-04 17:44:31 +0000
commit16adb3e0461ba8f5e641900c90b84be5af5c428f (patch)
treeff3824bb739a0e2307955a661959aa18c4e2ad50 /fxjs/cjs_global.h
parentdc566b0a76f9d2ad112c8cc35fa6dc8eaf942316 (diff)
downloadpdfium-16adb3e0461ba8f5e641900c90b84be5af5c428f.tar.xz
Expand ~ when present in directory path
pdfium_test currently isn't expanding ~ in paths that are passed in for directories, which is causing commands like this pdfium_test --font-dir=~/Fonts to fail. This CL adds in performing sh style expansion on the ~ character for --font-dir and --bin-dir. This change depends on POSIX wordexp being available, so guarding the code with checks for Linux || OSX, since those are the only platforms that we build for that are POSIX complient in this regard. BUG=pdfium:1027 Change-Id: I05d518dfa71d95c3b0cfd1f4b382e0a6f4a0f515 Reviewed-on: https://pdfium-review.googlesource.com/28611 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs/cjs_global.h')
0 files changed, 0 insertions, 0 deletions