diff options
author | Jérôme Laurens <jerome.laurens@u-bourgogne.fr> | 2011-10-14 09:00:51 +0000 |
---|---|---|
committer | Jérôme Laurens <jerome.laurens@u-bourgogne.fr> | 2011-10-14 09:00:51 +0000 |
commit | 8ee4aa4b11b67745947366bf98684910f01f7aec (patch) | |
tree | d04356e8cfb0623492f9248420724455335848aa /Build/source/texk/web2c/synctexdir/synctex_parser_utils.h | |
parent | be86dbfdc0331493f4ea56529caac029263766ac (diff) |
synctex parser changes: better forward synchronization and new file naming convention support. Only the synctex command line tool is concerned as well as 3rd parties software, but not the various tex engines.
git-svn-id: svn://tug.org/texlive/trunk@24285 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.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h b/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h index e67f8f56ed7..18348aa6dca 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h +++ b/Build/source/texk/web2c/synctexdir/synctex_parser_utils.h @@ -5,7 +5,7 @@ This file is part of the SyncTeX package. Latest Revision: Tue Jun 14 08:23:30 UTC 2011 -Version: 1.16 +Version: 1.17 See synctex_parser_readme.txt for more details @@ -61,9 +61,14 @@ authorization from the copyright holder. extern "C" { #endif +#define FALSE 0 +#define TRUE !FALSE + # if _WIN32 +# define SYNCTEX_CASE_SENSITIVE_PATH FALSE # define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c || '\\' == c) # else +# define SYNCTEX_CASE_SENSITIVE_PATH TRUE # define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c) # endif @@ -73,6 +78,12 @@ extern "C" { # define SYNCTEX_IS_DOT(c) ('.' == c) # endif +# if SYNCTEX_CASE_SENSITIVE_PATH +# define SYNCTEX_ARE_PATH_CHARACTERS_EQUAL(left,right) (left != right) +# else +# define SYNCTEX_ARE_PATH_CHARACTERS_EQUAL(left,right) (toupper(left) != toupper(right)) +# endif + /* This custom malloc functions initializes to 0 the newly allocated memory. * There is no bzero function on windows. */ void *_synctex_malloc(size_t size); @@ -100,6 +111,9 @@ synctex_bool_t _synctex_path_is_absolute(const char * name); /* Description forthcoming...*/ const char * _synctex_last_path_component(const char * name); +/* Description forthcoming...*/ +const char * _synctex_base_name(const char *path); + /* 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. * In all other cases, no destination buffer is created and the src is not copied. @@ -132,7 +146,7 @@ int _synctex_get_name(const char * output, const char * build_directory, char ** /* 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); -const char * synctex_ignore_leading_dot_slash(const char * name); +synctex_bool_t synctex_ignore_leading_dot_slash_in_path(const char ** name); #ifdef __cplusplus } |