File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ synctex_init_command(void)
152
152
synctex_ctxt .flags .output_p = 0 ;
153
153
154
154
INTPAR (synctex ) = 0 ; /* \synctex=0 : don't record stuff */
155
- synctex_ctxt .flags .off = 0 ; /* we're not forcibly disabled though: user code can override */
156
155
}
157
156
158
157
@@ -698,7 +697,6 @@ synctex_current(void)
698
697
static inline int
699
698
synctex_record_settings (void )
700
699
{
701
- CACHE_THE_EQTB ;
702
700
int len ;
703
701
704
702
if (NULL == synctex_ctxt .file )
@@ -723,7 +721,7 @@ synctex_record_preamble(void)
723
721
int len = ttstub_fprintf (synctex_ctxt .file , "SyncTeX Version:%i\n" , SYNCTEX_VERSION );
724
722
725
723
if (len > 0 ) {
726
- synctex_ctxt .total_length = len ;
724
+ synctex_ctxt .total_length = len ; /* XXX: should this be `+=`? */
727
725
return 0 ;
728
726
}
729
727
@@ -751,7 +749,7 @@ synctex_record_anchor(void)
751
749
int len = ttstub_fprintf (synctex_ctxt .file , "!%i\n" , synctex_ctxt .total_length );
752
750
753
751
if (len > 0 ) {
754
- synctex_ctxt .total_length = len ;
752
+ synctex_ctxt .total_length = len ; /* XXX: should this be `+=`? */
755
753
++ synctex_ctxt .count ;
756
754
return 0 ;
757
755
}
@@ -765,10 +763,13 @@ synctex_record_content(void)
765
763
{
766
764
int len = ttstub_fprintf (synctex_ctxt .file , "Content:\n" );
767
765
768
- if (len > 0 )
766
+ if (len > 0 ) {
769
767
synctex_ctxt .total_length += len ;
770
- else
771
- synctexabort ();
768
+ return 0 ;
769
+ }
770
+
771
+ synctexabort ();
772
+ return -1 ;
772
773
}
773
774
774
775
static inline int
Original file line number Diff line number Diff line change @@ -687,7 +687,6 @@ scaled base_x_height;
687
687
scaled base_width , base_height ;
688
688
scaled accent_width , accent_height ;
689
689
scaled delta ;
690
- integer synctex_options ;
691
690
692
691
/*:1683*/
693
692
Original file line number Diff line number Diff line change @@ -3687,7 +3687,7 @@ initialize_primitives(void)
3687
3687
primitive (S (immediate ), EXTENSION , IMMEDIATE_CODE );
3688
3688
primitive (S (setlanguage ), EXTENSION , SET_LANGUAGE_CODE );
3689
3689
3690
- primitive (S (synctex ), ASSIGN_INT , INT_BASE + 83 );
3690
+ primitive (S (synctex ), ASSIGN_INT , INT_BASE + INT_PAR__synctex );
3691
3691
3692
3692
no_new_control_sequence = true;
3693
3693
}
@@ -3730,8 +3730,6 @@ tt_run_engine(char *dump_name, char *input_file_name)
3730
3730
3731
3731
/* Not sure why these get custom initializations. */
3732
3732
3733
- synctex_options = INT_MAX ;
3734
-
3735
3733
if (file_line_error_style_p < 0 )
3736
3734
file_line_error_style_p = 0 ;
3737
3735
You can’t perform that action at this time.
0 commit comments