summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h
diff options
context:
space:
mode:
authorJérôme Laurens <jerome.laurens@u-bourgogne.fr>2011-03-11 08:28:35 +0000
committerJérôme Laurens <jerome.laurens@u-bourgogne.fr>2011-03-11 08:28:35 +0000
commitfa733e33bcc0eab72864135d96ab59110fe47e88 (patch)
tree06d7674a1c2a38088cfe0698724651579c7d4043 /Build/source/texk/web2c/synctexdir/synctex_parser_utils.h
parente8b6682ed539f76a81a7be257185634cd01ed000 (diff)
version 1.13: see synctex_parser_readme.txt.
git-svn-id: svn://tug.org/texlive/trunk@21686 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/synctexdir/synctex_parser_utils.h')
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex_parser_utils.h37
1 files changed, 23 insertions, 14 deletions
diff --git a/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h b/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h
index e28ff58ade0..ac6de5578fd 100644
--- a/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h
+++ b/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h
@@ -1,10 +1,12 @@
/*
-Copyright (c) 2008, 2009 jerome DOT laurens AT u-bourgogne DOT fr
+Copyright (c) 2008, 2009, 2010 , 2011 jerome DOT laurens AT u-bourgogne DOT fr
This file is part of the SyncTeX package.
-Version: 1.8
-Latest Revision: Wed Jul 1 11:16:01 UTC 2009
+Latest Revision: Fri Mar 11 07:39:12 UTC 2011
+
+Version: 1.13
+
See synctex_parser_readme.txt for more details
License:
@@ -44,7 +46,11 @@ 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__
@@ -86,7 +92,7 @@ synctex_bool_t _synctex_is_equivalent_file_name(const char *lhs, const char *rhs
synctex_bool_t _synctex_path_is_absolute(const char * name);
/* Description forthcoming...*/
-const char * _synctex_last_path_component(const char * name);
+char * _synctex_last_path_component(const char * name);
/* If the core of the last path component of src is not already enclosed with double quotes ('"')
* and contains a space character (' '), then a new buffer is created, the src is copied and quotes are added.
@@ -100,21 +106,24 @@ const char * _synctex_last_path_component(const char * name);
int _synctex_copy_with_quoting_last_path_component(const char * src, char ** dest_ref, size_t size);
/* These are the possible extensions of the synctex file */
-extern const char * synctex_suffix;
-extern const char * synctex_suffix_gz;
+static const char * synctex_suffix = ".synctex";
+static const char * synctex_suffix_gz = ".gz";
-typedef enum {
- synctex_io_mode_read = 0,
- synctex_io_mode_append = 2
-} synctex_io_mode_t;
+typedef unsigned int synctex_io_mode_type;
typedef enum {
- synctex_compress_mode_none = 0,
- synctex_compress_mode_gz = 1
-} synctex_compress_mode_t;
+ synctex_io_append_mask = 1,
+ synctex_io_gz_mask = synctex_io_append_mask<<1
+} synctex_io_mode_masks_t;
+
+enum {
+ synctex_io_mode_read = 0
+};
-int _synctex_get_name(const char * output, const char * build_directory, char ** synctex_name_ref, synctex_compress_mode_t * compress_mode_ref);
+int _synctex_get_name(const char * output, const char * build_directory, char ** synctex_name_ref, synctex_io_mode_type * 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_type io_mode);
#ifdef __cplusplus
}