]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Correct comment
[lyx.git] / src / support / filetools.h
index 1ac0edf15b45cf40a93f53bc5c27ca0d4467e5a9..e66af9972f7e0b4cb17ba9fa0c35b09b8006ce1c 100644 (file)
@@ -144,10 +144,10 @@ imageLibFileSearch(std::string & dir, std::string const & name,
 
 /// How to quote a filename
 enum quote_style {
-       /** Quote for the (OS dependant) shell. This is needed for command
+       /** Quote for the (OS dependent) shell. This is needed for command
            line arguments of subprocesses. */
        quote_shell,
-       /** Quote a file name for the (OS dependant) shell. This is needed
+       /** Quote a file name for the (OS dependent) shell. This is needed
            for file names as command line arguments of subprocesses. */
        quote_shell_filename,
        /** Quote for python. Use this if you want to store a filename in a
@@ -185,7 +185,7 @@ enum latex_path_dots {
  *  If @c path contains LaTeX special characters, these are escaped.
  *  Eg, '~' -> '\\string~'
  *  If @c path contains spaces, then the returned path is enclosed in
- *  "-quotes. This last fix will lead to successful compiliation of the
+ *  "-quotes. This last fix will lead to successful compilation of the
  *  LaTeX file only if a sufficiently modern LaTeX compiler is used.
  *  If @c ext == EXCLUDE_EXTENSION the extension is left outside the quotes.
  *  This is needed for pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
@@ -328,7 +328,10 @@ bool prefs2prefs(FileName const & filename, FileName const & tempfile,
 /// Does file \p file need to be updated by configure.py?
 bool configFileNeedsUpdate(std::string const & file);
 
-typedef std::pair<int, std::string> cmd_ret;
+struct cmd_ret {
+       bool valid;
+       std::string result;
+};
 
 cmd_ret const runCommand(std::string const & cmd);