Changeset View
Changeset View
Standalone View
Standalone View
core/synctex/synctex_parser_utils.c
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | |||||
182 | } | 182 | } | ||
183 | 183 | | |||
184 | /* strip the last extension of the given string, this string is modified! */ | 184 | /* strip the last extension of the given string, this string is modified! */ | ||
185 | void _synctex_strip_last_path_extension(char * string) { | 185 | void _synctex_strip_last_path_extension(char * string) { | ||
186 | if(NULL != string){ | 186 | if(NULL != string){ | ||
187 | char * last_component = NULL; | 187 | char * last_component = NULL; | ||
188 | char * last_extension = NULL; | 188 | char * last_extension = NULL; | ||
189 | # if defined(SYNCTEX_WINDOWS) | 189 | # if defined(SYNCTEX_WINDOWS) | ||
190 | last_component = PathFindFileName(string); | 190 | last_component = PathFindFileNameA(string); | ||
191 | last_extension = PathFindExtension(string); | 191 | last_extension = PathFindExtensionA(string); | ||
192 | if(last_extension == NULL)return; | 192 | if(last_extension == NULL)return; | ||
193 | if(last_component == NULL)last_component = string; | 193 | if(last_component == NULL)last_component = string; | ||
194 | if(last_extension>last_component){/* filter out paths like "my/dir/.hidden" */ | 194 | if(last_extension>last_component){/* filter out paths like "my/dir/.hidden" */ | ||
195 | last_extension[0] = '\0'; | 195 | last_extension[0] = '\0'; | ||
196 | } | 196 | } | ||
197 | # else | 197 | # else | ||
198 | char * next = NULL; | 198 | char * next = NULL; | ||
199 | /* first we find the last path component */ | 199 | /* first we find the last path component */ | ||
▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines |