X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=cut-n-paste%2Fsynctex%2Fsynctex_parser_utils.h;h=e28ff58ade08431aaa0f5129be5b439d34bcf190;hb=3421b3c4a7f7fbfb4b50b6d0918fc3fe14ed5c1f;hp=6d36d738e934fddec575fe44fb374026da01d333;hpb=d7f24a354ba037541b40f562c02cccf67c3bf59c;p=evince.git diff --git a/cut-n-paste/synctex/synctex_parser_utils.h b/cut-n-paste/synctex/synctex_parser_utils.h index 6d36d738..e28ff58a 100644 --- a/cut-n-paste/synctex/synctex_parser_utils.h +++ b/cut-n-paste/synctex/synctex_parser_utils.h @@ -1,12 +1,10 @@ /* -Copyright (c) 2008, 2009, 2010, 2011 jerome DOT laurens AT u-bourgogne DOT fr +Copyright (c) 2008, 2009 jerome DOT laurens AT u-bourgogne DOT fr This file is part of the SyncTeX package. -Latest Revision: Fri Mar 11 07:39:12 UTC 2011 - -Version: 1.13 - +Version: 1.8 +Latest Revision: Wed Jul 1 11:16:01 UTC 2009 See synctex_parser_readme.txt for more details License: @@ -46,11 +44,7 @@ authorization from the copyright holder. # define synctex_bool_t int # define synctex_YES -1 -# define synctex_ADD_QUOTES -1 -# define synctex_COMPRESS -1 # define synctex_NO 0 -# define synctex_DONT_ADD_QUOTES 0 -# define synctex_DONT_COMPRESS 0 #ifndef __SYNCTEX_PARSER_UTILS__ # define __SYNCTEX_PARSER_UTILS__ @@ -109,22 +103,18 @@ int _synctex_copy_with_quoting_last_path_component(const char * src, char ** des extern const char * synctex_suffix; extern const char * synctex_suffix_gz; -typedef unsigned int synctex_io_mode_t; - typedef enum { - synctex_io_append_mask = 1, - synctex_io_gz_mask = synctex_io_append_mask<<1 -} synctex_io_mode_masks_t; + synctex_io_mode_read = 0, + synctex_io_mode_append = 2 +} synctex_io_mode_t; typedef enum { synctex_compress_mode_none = 0, synctex_compress_mode_gz = 1 } synctex_compress_mode_t; -int _synctex_get_name(const char * output, const char * build_directory, char ** synctex_name_ref, synctex_io_mode_t * io_mode_ref); +int _synctex_get_name(const char * output, const char * build_directory, char ** synctex_name_ref, synctex_compress_mode_t * compress_mode_ref); -/* returns the correct mode required by fopen and gzopen from the given io_mode */ -const char * _synctex_get_io_mode_name(synctex_io_mode_t io_mode); #ifdef __cplusplus }