diff options
author | raveit65 <[email protected]> | 2016-06-23 13:34:00 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-24 13:45:05 +0200 |
commit | b307e10130b239f092905ac42028f499df74aa9b (patch) | |
tree | e526ef493483668a1b537077af3e55023a91c52b /cut-n-paste/synctex/synctex_parser_utils.h | |
parent | 4e2cf26a825b5c8d30f6a84227a1f4d279928859 (diff) | |
download | atril-b307e10130b239f092905ac42028f499df74aa9b.tar.bz2 atril-b307e10130b239f092905ac42028f499df74aa9b.tar.xz |
synctex: update to version 1.17
taken from:
https://git.gnome.org/browse/evince/commit/?id=6179f51
Diffstat (limited to 'cut-n-paste/synctex/synctex_parser_utils.h')
-rw-r--r-- | cut-n-paste/synctex/synctex_parser_utils.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cut-n-paste/synctex/synctex_parser_utils.h b/cut-n-paste/synctex/synctex_parser_utils.h index e67f8f56..18348aa6 100644 --- a/cut-n-paste/synctex/synctex_parser_utils.h +++ b/cut-n-paste/synctex/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 } |