|
|
|
@ -1837,9 +1837,8 @@ synctex_status_t _synctex_setup_visible_box(synctex_node_t box) { |
|
|
|
* With this method, one can enlarge the box to contain the given point (h,v). |
|
|
|
* With this method, one can enlarge the box to contain the given point (h,v). |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
synctex_status_t _synctex_horiz_box_setup_visible(synctex_node_t node,int h, int v) { |
|
|
|
synctex_status_t _synctex_horiz_box_setup_visible(synctex_node_t node,int h, int v) { |
|
|
|
# ifdef __DARWIN_UNIX03 |
|
|
|
(void)v; /* unused */ |
|
|
|
# pragma unused(v) |
|
|
|
|
|
|
|
# endif |
|
|
|
|
|
|
|
int itsBtm, itsTop; |
|
|
|
int itsBtm, itsTop; |
|
|
|
if (NULL == node || node->class->type != synctex_node_type_hbox) { |
|
|
|
if (NULL == node || node->class->type != synctex_node_type_hbox) { |
|
|
|
return SYNCTEX_STATUS_BAD_ARGUMENT; |
|
|
|
return SYNCTEX_STATUS_BAD_ARGUMENT; |
|
|
|
@ -3261,9 +3260,7 @@ int synctex_node_line(synctex_node_t node) { |
|
|
|
return node?SYNCTEX_LINE(node):-1; |
|
|
|
return node?SYNCTEX_LINE(node):-1; |
|
|
|
} |
|
|
|
} |
|
|
|
int synctex_node_column(synctex_node_t node) { |
|
|
|
int synctex_node_column(synctex_node_t node) { |
|
|
|
# ifdef __DARWIN_UNIX03 |
|
|
|
(void)node; /* unused */ |
|
|
|
# pragma unused(node) |
|
|
|
|
|
|
|
# endif |
|
|
|
|
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
|
# ifdef SYNCTEX_NOTHING |
|
|
|
# ifdef SYNCTEX_NOTHING |
|
|
|
@ -3290,9 +3287,8 @@ synctex_node_t synctex_sheet_content(synctex_scanner_t scanner,int page) { |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
|
|
|
|
|
|
|
|
int synctex_display_query(synctex_scanner_t scanner,const char * name,int line,int column) { |
|
|
|
int synctex_display_query(synctex_scanner_t scanner,const char * name,int line,int column) { |
|
|
|
# ifdef __DARWIN_UNIX03 |
|
|
|
(void)column; /* unused */ |
|
|
|
# pragma unused(column) |
|
|
|
|
|
|
|
# endif |
|
|
|
|
|
|
|
int tag = synctex_scanner_get_tag(scanner,name); |
|
|
|
int tag = synctex_scanner_get_tag(scanner,name); |
|
|
|
size_t size = 0; |
|
|
|
size_t size = 0; |
|
|
|
int friend_index = 0; |
|
|
|
int friend_index = 0; |
|
|
|
@ -3689,9 +3685,8 @@ int _synctex_point_h_distance(synctex_point_t hitPoint, synctex_node_t node, syn |
|
|
|
* if node is at the bottom of the hit point, this distance is negative.*/ |
|
|
|
* if node is at the bottom of the hit point, this distance is negative.*/ |
|
|
|
int _synctex_point_v_distance(synctex_point_t hitPoint, synctex_node_t node,synctex_bool_t visible); |
|
|
|
int _synctex_point_v_distance(synctex_point_t hitPoint, synctex_node_t node,synctex_bool_t visible); |
|
|
|
int _synctex_point_v_distance(synctex_point_t hitPoint, synctex_node_t node,synctex_bool_t visible) { |
|
|
|
int _synctex_point_v_distance(synctex_point_t hitPoint, synctex_node_t node,synctex_bool_t visible) { |
|
|
|
# ifdef __DARWIN_UNIX03 |
|
|
|
(void)visible; /* unused */ |
|
|
|
# pragma unused(visible) |
|
|
|
|
|
|
|
# endif |
|
|
|
|
|
|
|
if (node) { |
|
|
|
if (node) { |
|
|
|
int min,max; |
|
|
|
int min,max; |
|
|
|
switch(node->class->type) { |
|
|
|
switch(node->class->type) { |
|
|
|
@ -3779,9 +3774,8 @@ synctex_bool_t _synctex_point_in_box(synctex_point_t hitPoint, synctex_node_t no |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int _synctex_node_distance_to_point(synctex_point_t hitPoint, synctex_node_t node, synctex_bool_t visible) { |
|
|
|
int _synctex_node_distance_to_point(synctex_point_t hitPoint, synctex_node_t node, synctex_bool_t visible) { |
|
|
|
# ifdef __DARWIN_UNIX03 |
|
|
|
(void)visible; |
|
|
|
# pragma unused(visible) |
|
|
|
|
|
|
|
# endif |
|
|
|
|
|
|
|
int result = INT_MAX; /* when the distance is meaning less (sheet, input...) */ |
|
|
|
int result = INT_MAX; /* when the distance is meaning less (sheet, input...) */ |
|
|
|
if (node) { |
|
|
|
if (node) { |
|
|
|
int minH,maxH,minV,maxV; |
|
|
|
int minH,maxH,minV,maxV; |
|
|
|
|