Revision: 6860
http://skim-app.svn.sourceforge.net/skim-app/?rev=6860&view=rev
Author: hofman
Date: 2010-10-01 11:18:12 +0000 (Fri, 01 Oct 2010)
Log Message:
-----------
Reset io_mode in synctex parser when opening synctex file fails, so we don't
start with the wrong value when retrying. Also, don't rely on some order in
enum values, but use logically defined mask values.
Modified Paths:
--------------
trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
Modified: trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
===================================================================
--- trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
2010-09-30 23:25:11 UTC (rev 6859)
+++ trunk/vendorsrc/jeromelaurens/synctex-parser/synctex_parser.m
2010-10-01 11:18:12 UTC (rev 6860)
@@ -2560,6 +2560,7 @@
free(synctex_name);
synctex_name = NULL;/* Don't forget to reinitialize. */
the_file = NULL; /* Here as well */
+ io_mode &= ~synctex_compress_mode_gz;/* Here as well */
free(quoteless);
return 2;
}
@@ -2600,7 +2601,7 @@
_synctex_error("! __synctex_open:
Concatenation problem (can't add suffix '%s')\n",synctex_suffix_gz);
goto return_on_error;
}
- ++io_mode;
+ io_mode |= synctex_compress_mode_gz;
mode = synctex_io_modes[io_mode]; /* the file is a
compressed and is a binary file, this caused errors on Windows */
/* To quoteless as well. */
if(quoteless && (quoteless !=
strcat(quoteless,synctex_suffix_gz))){
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit