summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-27 13:55:44 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-27 13:55:44 +0000
commit47ce3271b417e6d0a8fcbbbe94bd9060290e5032 (patch)
treec6da726176d1271ff0fe608db0b51b52fb4870f8 /Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
parente8c2792ffc88bff8519581351d6349a84d81bebe (diff)
dvisvgm 1.15
git-svn-id: svn://tug.org/texlive/trunk@39886 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
index 073b5bd2045..a3bb950f07e 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/dvisvgm.cpp
@@ -23,7 +23,6 @@
#include <fstream>
#include <iostream>
#include <sstream>
-#include <string>
#include <xxhash.h>
#include "gzstream.h"
#include "CommandLine.h"
@@ -31,21 +30,15 @@
#include "DVIToSVGActions.h"
#include "EPSToSVG.h"
#include "FileFinder.h"
-#include "FilePath.h"
#include "FileSystem.h"
#include "Font.h"
-#include "FontCache.h"
#include "FontEngine.h"
-#include "FontMap.h"
#include "Ghostscript.h"
#include "HtmlSpecialHandler.h"
-#include "InputReader.h"
-#include "Message.h"
#include "PageSize.h"
#include "PSInterpreter.h"
#include "PsSpecialHandler.h"
#include "SignalHandler.h"
-#include "SpecialManager.h"
#include "SVGOutput.h"
#include "System.h"
@@ -114,15 +107,15 @@ static bool set_cache_dir (const CommandLine &args) {
if (args.cache_given() && !args.cache_arg().empty()) {
if (args.cache_arg() == "none")
PhysicalFont::CACHE_PATH = 0;
- else if (FileSystem::exists(args.cache_arg().c_str()))
+ else if (FileSystem::exists(args.cache_arg()))
PhysicalFont::CACHE_PATH = args.cache_arg().c_str();
else
Message::wstream(true) << "cache directory '" << args.cache_arg() << "' does not exist (caching disabled)\n";
}
else if (const char *userdir = FileSystem::userdir()) {
static string cachepath = userdir + string("/.dvisvgm/cache");
- if (!FileSystem::exists(cachepath.c_str()))
- FileSystem::mkdir(cachepath.c_str());
+ if (!FileSystem::exists(cachepath))
+ FileSystem::mkdir(cachepath);
PhysicalFont::CACHE_PATH = cachepath.c_str();
}
if (args.cache_given() && args.cache_arg().empty()) {
@@ -266,6 +259,7 @@ int main (int argc, char *argv[]) {
SVGTree::ZOOM_FACTOR = args.zoom_arg();
SVGTree::RELATIVE_PATH_CMDS = args.relative_given();
SVGTree::MERGE_CHARS = !args.no_merge_given();
+ SVGTree::ADD_COMMENTS = args.comments_given();
DVIToSVG::TRACE_MODE = args.trace_all_given() ? (args.trace_all_arg() ? 'a' : 'm') : 0;
Message::LEVEL = args.verbosity_arg();
PhysicalFont::EXACT_BBOX = args.exact_given();