diff options
| author | Andreas Politz <politza@hochschule-trier.de> | 2019-12-09 07:05:23 +0100 |
|---|---|---|
| committer | Andreas Politz <politza@hochschule-trier.de> | 2019-12-09 07:05:23 +0100 |
| commit | e4c290a7830ea794c5c6180662de001ab49baef6 (patch) | |
| tree | 62ba3ed74dcd3443019e350f7f343526d5d76e12 /server | |
| parent | 57e8fc247f56c7dcef954f75ee1a6fc763df866f (diff) | |
Adapt to changes in synctex APIsynctex-1.21
Diffstat (limited to 'server')
| -rw-r--r-- | server/epdfinfo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/epdfinfo.c b/server/epdfinfo.c index 86d9200..59c4024 100644 --- a/server/epdfinfo.c +++ b/server/epdfinfo.c @@ -2971,8 +2971,8 @@ cmd_synctex_forward_search (const epdfinfo_t *ctx, const command_arg_t *args) const char *source = args[1].value.string; int line = args[2].value.natnum; int column = args[3].value.natnum; - synctex_scanner_t scanner = NULL; - synctex_node_t node; + synctex_scanner_p scanner = NULL; + synctex_node_p node; float x1, y1, x2, y2; PopplerPage *page = NULL; double width, height; @@ -2982,8 +2982,8 @@ cmd_synctex_forward_search (const epdfinfo_t *ctx, const command_arg_t *args) perror_if_not (scanner, "Unable to create synctex scanner,\ did you run latex with `--synctex=1' ?"); - perror_if_not (synctex_display_query (scanner, source, line, column) - && (node = synctex_next_result (scanner)), + perror_if_not (synctex_display_query (scanner, source, line, column, 0) + && (node = synctex_scanner_next_result (scanner)), "Destination not found"); pn = synctex_node_page (node); @@ -3026,10 +3026,10 @@ cmd_synctex_backward_search (const epdfinfo_t *ctx, const command_arg_t *args) int pn = args[1].value.natnum; double x = args[2].value.edge; double y = args[3].value.edge; - synctex_scanner_t scanner = NULL; + synctex_scanner_p scanner = NULL; const char *filename; PopplerPage *page = NULL; - synctex_node_t node; + synctex_node_p node; double width, height; int line, column; @@ -3044,7 +3044,7 @@ cmd_synctex_backward_search (const epdfinfo_t *ctx, const command_arg_t *args) y = y * height; if (! synctex_edit_query (scanner, pn, x, y) - || ! (node = synctex_next_result (scanner)) + || ! (node = synctex_scanner_next_result (scanner)) || ! (filename = synctex_scanner_get_name (scanner, synctex_node_tag (node)))) { |
