w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

synctex_parser_utils.c File Reference
#include <synctex_parser_utils.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <limits.h>
#include <ctype.h>
#include <sys/stat.h>
#include <syslog.h>
Include dependency graph for synctex_parser_utils.c:

Go to the source code of this file.

Macros

#define dest   (*dest_ref)
 
#define TEST(FILENAME, COMPRESS_MODE)
 
#define CLEAN_AND_REMOVE(FILENAME)
 

Functions

void_synctex_malloc (size_t size)
 
void _synctex_free (void *ptr)
 
static int _synctex_log (int level, const char *prompt, const char *reason, va_list arg)
 
int _synctex_error (const char *reason,...)
 
int _synctex_debug (const char *reason,...)
 
void _synctex_strip_last_path_extension (char *string)
 
synctex_bool_t synctex_ignore_leading_dot_slash_in_path (const char **name_ref)
 
const char * _synctex_base_name (const char *path)
 
synctex_bool_t _synctex_is_equivalent_file_name (const char *lhs, const char *rhs)
 
synctex_bool_t _synctex_path_is_absolute (const char *name)
 
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)
 
char * _synctex_merge_strings (const char *first,...)
 
int _synctex_get_name (const char *output, const char *build_directory, char **synctex_name_ref, synctex_io_mode_t *io_mode_ref)
 
const char * _synctex_get_io_mode_name (synctex_io_mode_t io_mode)
 

Macro Definition Documentation

◆ CLEAN_AND_REMOVE

#define CLEAN_AND_REMOVE (   FILENAME)
Value:
if(FILENAME && (FILENAME!=synctex_name)) {\
remove(FILENAME);\
printf("synctex tool info: %s removed\n",FILENAME);\
free(FILENAME);\
FILENAME = NULL;\
}
#define NULL
Definition: ftobjs.h:61

◆ dest

#define dest   (*dest_ref)

◆ TEST

#define TEST (   FILENAME,
  COMPRESS_MODE 
)
Value:
if(FILENAME) {\
if (stat(FILENAME, &buf)) { \
free(FILENAME);\
FILENAME = NULL;\
} else if (buf.st_mtime>the_time) { \
the_time=buf.st_mtime; \
synctex_name = FILENAME; \
if (COMPRESS_MODE) { \
io_mode |= synctex_io_gz_mask; \
} else { \
io_mode &= ~~synctex_io_gz_mask; \
} \
} \
}
#define buf
@ synctex_io_gz_mask
int stat(const char *path, struct stat *sbuf)

Function Documentation

◆ _synctex_base_name()

const char* _synctex_base_name ( const char *  path)

◆ _synctex_copy_with_quoting_last_path_component()

int _synctex_copy_with_quoting_last_path_component ( const char *  src,
char **  dest_ref,
size_t  size 
)

◆ _synctex_debug()

int _synctex_debug ( const char *  reason,
  ... 
)

◆ _synctex_error()

◆ _synctex_free()

◆ _synctex_get_io_mode_name()

const char* _synctex_get_io_mode_name ( synctex_io_mode_t  io_mode)

◆ _synctex_get_name()

◆ _synctex_is_equivalent_file_name()

synctex_bool_t _synctex_is_equivalent_file_name ( const char *  lhs,
const char *  rhs 
)

◆ _synctex_last_path_component()

const char* _synctex_last_path_component ( const char *  name)

◆ _synctex_log()

static int _synctex_log ( int  level,
const char *  prompt,
const char *  reason,
va_list  arg 
)
static

◆ _synctex_malloc()

◆ _synctex_merge_strings()

char * _synctex_merge_strings ( const char *  first,
  ... 
)

◆ _synctex_path_is_absolute()

synctex_bool_t _synctex_path_is_absolute ( const char *  name)

◆ _synctex_strip_last_path_extension()

void _synctex_strip_last_path_extension ( char *  string)

Definition at line 162 of file synctex_parser_utils.c.

References last_component(), next, NULL, string, and strstr().

Referenced by __synctex_open_v2().

◆ synctex_ignore_leading_dot_slash_in_path()

synctex_bool_t synctex_ignore_leading_dot_slash_in_path ( const char **  name_ref)