Revision: 9430
          http://sourceforge.net/p/skim-app/code/9430
Author:   hofman
Date:     2017-10-03 12:54:54 +0000 (Tue, 03 Oct 2017)
Log Message:
-----------
Fix changed type names and arguments for synctex

Modified Paths:
--------------
    trunk/SKPDFSynchronizer.h
    trunk/SKPDFSynchronizer.m

Modified: trunk/SKPDFSynchronizer.h
===================================================================
--- trunk/SKPDFSynchronizer.h   2017-10-03 12:54:05 UTC (rev 9429)
+++ trunk/SKPDFSynchronizer.h   2017-10-03 12:54:54 UTC (rev 9430)
@@ -64,7 +64,7 @@
     NSMapTable *lines;
     
     NSMapTable *filenames;
-    synctex_scanner_t scanner;
+    synctex_scanner_p scanner;
     
     volatile int32_t shouldKeepRunning;
 }

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2017-10-03 12:54:05 UTC (rev 9429)
+++ trunk/SKPDFSynchronizer.m   2017-10-03 12:54:54 UTC (rev 9430)
@@ -481,7 +481,7 @@
             NSPointerFunctions *valuePointerFunctions = [NSPointerFunctions 
pointerFunctionsWithOptions:NSPointerFunctionsMallocMemory | 
NSPointerFunctionsCStringPersonality | NSPointerFunctionsCopyIn];
             filenames = [[NSMapTable alloc] 
initWithKeyPointerFunctions:keyPointerFunctions 
valuePointerFunctions:valuePointerFunctions capacity:0];
         }
-        synctex_node_t node = synctex_scanner_input(scanner);
+        synctex_node_p node = synctex_scanner_input(scanner);
         do {
             if ((fileRep = synctex_scanner_get_name(scanner, 
synctex_node_tag(node)))) {
                 NSMapInsert(filenames, [self sourceFileForFileName:[NSString 
stringWithUTF8String:fileRep] isTeX:YES removeQuotes:NO], fileRep);
@@ -496,7 +496,7 @@
 - (BOOL)synctexFindFileLine:(NSInteger *)linePtr file:(NSString **)filePtr 
forLocation:(NSPoint)point inRect:(NSRect)rect pageBounds:(NSRect)bounds 
atPageIndex:(NSUInteger)pageIndex {
     BOOL rv = NO;
     if (synctex_edit_query(scanner, (int)pageIndex + 1, point.x, 
NSMaxY(bounds) - point.y) > 0) {
-        synctex_node_t node;
+        synctex_node_p node;
         const char *file;
         while (rv == NO && (node = synctex_next_result(scanner))) {
             if ((file = synctex_scanner_get_name(scanner, 
synctex_node_tag(node)))) {
@@ -524,8 +524,8 @@
         if (filename == NULL)
             filename = (char *)[[file lastPathComponent] UTF8String];
     }
-    if (synctex_display_query(scanner, filename, (int)line + 1, 0) > 0) {
-        synctex_node_t node = synctex_next_result(scanner);
+    if (synctex_display_query(scanner, filename, (int)line + 1, 0, -1) > 0) {
+        synctex_node_p node = synctex_next_result(scanner);
         if (node) {
             NSUInteger page = synctex_node_page(node);
             *pageIndexPtr = MAX(page, 1ul) - 1;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to