Revision: 14183
http://sourceforge.net/p/skim-app/code/14183
Author: hofman
Date: 2024-04-04 23:02:15 +0000 (Thu, 04 Apr 2024)
Log Message:
-----------
interchange parameters
Modified Paths:
--------------
trunk/SKPDFSyncParser.m
trunk/SKPDFSynchronizer.h
trunk/SKPDFSynchronizer.m
trunk/SKSyncTeXParser.m
Modified: trunk/SKPDFSyncParser.m
===================================================================
--- trunk/SKPDFSyncParser.m 2024-04-04 22:58:37 UTC (rev 14182)
+++ trunk/SKPDFSyncParser.m 2024-04-04 23:02:15 UTC (rev 14183)
@@ -189,7 +189,7 @@
block(file);
}
-- (BOOL)findFileLine:(NSInteger *)linePtr file:(NSString * __autoreleasing
*)filePtr forLocation:(NSPoint)point inRect:(NSRect)rect
pageBounds:(NSRect)bounds atPageIndex:(NSUInteger)pageIndex {
+- (BOOL)findFile:(NSString * _Nullable __autoreleasing * _Nonnull)filePtr
line:(NSInteger *)linePtr forLocation:(NSPoint)point inRect:(NSRect)rect
pageBounds:(NSRect)bounds atPageIndex:(NSUInteger)pageIndex {
BOOL rv = NO;
if (pageIndex < [pages count]) {
Modified: trunk/SKPDFSynchronizer.h
===================================================================
--- trunk/SKPDFSynchronizer.h 2024-04-04 22:58:37 UTC (rev 14182)
+++ trunk/SKPDFSynchronizer.h 2024-04-04 23:02:15 UTC (rev 14183)
@@ -101,7 +101,7 @@
- (void)enumerateSourceFilesUsingBlock:(void (^)(NSString *file))block;
-- (BOOL)findFileLine:(NSInteger *)linePtr file:(NSString * _Nullable
__autoreleasing * _Nonnull)filePtr forLocation:(NSPoint)point
inRect:(NSRect)rect pageBounds:(NSRect)bounds atPageIndex:(NSUInteger)pageIndex;
+- (BOOL)findFile:(NSString * _Nullable __autoreleasing * _Nonnull)filePtr
line:(NSInteger *)linePtr forLocation:(NSPoint)point inRect:(NSRect)rect
pageBounds:(NSRect)bounds atPageIndex:(NSUInteger)pageIndex;
- (BOOL)findPage:(NSUInteger *)pageIndexPtr location:(NSPoint *)pointPtr
forLine:(NSInteger)line inFile:(nullable NSString *)file;
@end
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2024-04-04 22:58:37 UTC (rev 14182)
+++ trunk/SKPDFSynchronizer.m 2024-04-04 23:02:15 UTC (rev 14183)
@@ -218,7 +218,7 @@
if (atomic_load(&shouldKeepRunning) && [self loadSyncFileIfNeeded]) {
NSInteger foundLine = 0;
NSString *foundFile = nil;
- BOOL success = [parser findFileLine:&foundLine file:&foundFile
forLocation:point inRect:rect pageBounds:bounds atPageIndex:pageIndex];
+ BOOL success = [parser findFile:&foundFile line:&foundLine
forLocation:point inRect:rect pageBounds:bounds atPageIndex:pageIndex];
if (success && atomic_load(&shouldKeepRunning)) {
foundFile = [[sourceFileNames allKeysForObject:foundFile]
firstObject] ?: [self sourceFileForFileName:foundFile isTeX:YES];
Modified: trunk/SKSyncTeXParser.m
===================================================================
--- trunk/SKSyncTeXParser.m 2024-04-04 22:58:37 UTC (rev 14182)
+++ trunk/SKSyncTeXParser.m 2024-04-04 23:02:15 UTC (rev 14183)
@@ -73,7 +73,7 @@
} while ((node = synctex_node_next(node)));
}
-- (BOOL)findFileLine:(NSInteger *)linePtr file:(NSString * __autoreleasing
*)filePtr forLocation:(NSPoint)point inRect:(NSRect)rect
pageBounds:(NSRect)bounds atPageIndex:(NSUInteger)pageIndex {
+- (BOOL)findFile:(NSString * _Nullable __autoreleasing * _Nonnull)filePtr
line:(NSInteger *)linePtr 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_p node;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit