head 1.3; access; symbols pkgsrc-2022Q2:1.2.0.74 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.72 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.70 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.68 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.66 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.64 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.62 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.60 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.56 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.36 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.58 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.54 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.52 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.50 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.48 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.46 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.44 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.42 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.40 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.38 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.34 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.32 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.30 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.28 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.26 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.24 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.22 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.20 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.18 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.16 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.14 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.12 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.10 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.8 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.6 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.4 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.2 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.1.0.12 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.10 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.8 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.6 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.4 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.2 pkgsrc-2011Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2022.09.24.06.00.40; author wiz; state dead; branches; next 1.2; commitid uB6szBiAgstWV4VD; 1.2 date 2013.04.21.15.40.00; author joerg; state Exp; branches; next 1.1; 1.1 date 2011.12.24.17.07.07; author dholland; state Exp; branches; next ; desc @@ 1.3 log @mule: remove code from 1997; does not build in any bulk build I could find; corresponds to emacs 19; newer emacs's have better language support built-in. @ text @$NetBSD: patch-src_term_c,v 1.2 2013/04/21 15:40:00 joerg Exp $ - use standard headers --- src/term.c.orig 1995-01-06 05:57:00.000000000 +0000 +++ src/term.c @@@@ -53,6 +53,7 @@@@ the Free Software Foundation, 675 Mass A #include #include +#include #include #include "termchar.h" #include "termopts.h" @@@@ -342,8 +343,11 @@@@ static int system_uses_terminfo; char *tparam (); extern char *tgetstr (); + +static void clear_end_of_line_raw (int first_unused_hpos); +static void background_highlight (void); -ring_bell () +void ring_bell(void) { if (! FRAME_TERMCAP_P (selected_frame)) { @@@@ -353,7 +357,7 @@@@ ring_bell () OUTPUT (TS_visible_bell && visible_bell ? TS_visible_bell : TS_bell); } -set_terminal_modes () +void set_terminal_modes(void) { if (! FRAME_TERMCAP_P (selected_frame)) { @@@@ -366,7 +370,7 @@@@ set_terminal_modes () losecursor (); } -reset_terminal_modes () +void reset_terminal_modes(void) { if (! FRAME_TERMCAP_P (selected_frame)) { @@@@ -395,8 +399,7 @@@@ update_begin (f) (*update_begin_hook) (f); } -update_end (f) - FRAME_PTR f; +void update_end (FRAME_PTR f) { if (! FRAME_TERMCAP_P (updating_frame)) { @@@@ -410,8 +413,7 @@@@ update_end (f) updating_frame = 0; } -set_terminal_window (size) - int size; +void set_terminal_window (int size) { if (! FRAME_TERMCAP_P (updating_frame)) { @@@@ -493,7 +495,7 @@@@ turn_on_highlight () empty space inside windows. What this is, depends on the user option inverse-video. */ -background_highlight () +static void background_highlight (void) { if (TN_standout_width >= 0) return; @@@@ -505,8 +507,8 @@@@ background_highlight () /* Set standout mode to the mode specified for the text to be output. */ -static -highlight_if_desired () +static void +highlight_if_desired (void) { if (TN_standout_width >= 0) return; @@@@ -544,9 +546,7 @@@@ write_standout_marker (flag, vpos) Call this when about to modify line at position VPOS and not change whether it is highlighted. */ -reassert_line_highlight (highlight, vpos) - int highlight; - int vpos; +void reassert_line_highlight(int highlight, int vpos) { if (! FRAME_TERMCAP_P ((updating_frame ? updating_frame : selected_frame))) { @@@@ -565,8 +565,7 @@@@ reassert_line_highlight (highlight, vpos /* Call this when about to modify line at position VPOS and change whether it is highlighted. */ -change_line_highlight (new_highlight, vpos, first_unused_hpos) - int new_highlight, vpos, first_unused_hpos; +void change_line_highlight (int new_highlight, int vpos, int first_unused_hpos) { standout_requested = new_highlight; if (! FRAME_TERMCAP_P (updating_frame)) @@@@ -601,8 +600,7 @@@@ change_line_highlight (new_highlight, vp /* Move to absolute position, specified origin 0 */ -cursor_to (row, col) - int row, col; +void cursor_to (int row, int col) { if (! FRAME_TERMCAP_P ((updating_frame ? updating_frame @@@@ -625,8 +623,7 @@@@ cursor_to (row, col) /* Similar but don't take any account of the wasted characters. */ -raw_cursor_to (row, col) - int row, col; +static void raw_cursor_to (int row, int col) { if (! FRAME_TERMCAP_P ((updating_frame ? updating_frame : selected_frame))) { @@@@ -645,7 +642,7 @@@@ raw_cursor_to (row, col) /* Erase operations */ /* clear from cursor to end of frame */ -clear_to_end () +static void clear_to_end (void) { register int i; @@@@ -672,7 +669,7 @@@@ clear_to_end () /* Clear entire frame */ -clear_frame () +void clear_frame(void) { if (clear_frame_hook && ! FRAME_TERMCAP_P ((updating_frame ? updating_frame : selected_frame))) @@@@ -717,8 +714,7 @@@@ clear_end_of_line (first_unused_hpos) Note that the cursor may be moved, on terminals lacking a `ce' string. */ -clear_end_of_line_raw (first_unused_hpos) - int first_unused_hpos; +static void clear_end_of_line_raw (int first_unused_hpos) { register int i; @@@@ -954,9 +950,7 @@@@ linecode_conversion (len, src, dst) /* len = actual_column_length, len2 = converted_string_length string2 = converted_string */ /* I gave up using TS_repeat...K.Handa */ -write_glyphs (string, len) - register GLYPH *string; - register int len; +void write_glyphs (GLYPH *string, int len) { register GLYPH g; register int tlen = GLYPH_TABLE_LENGTH; @@@@ -1038,9 +1032,7 @@@@ write_glyphs (string, len) /* If start is zero, insert blanks instead of a string at start */ -insert_glyphs (start, len) - register GLYPH *start; - register int len; +void insert_glyphs (GLYPH *start, int len) { char *buf; register GLYPH g; @@@@ -1112,8 +1104,7 @@@@ insert_glyphs (start, len) } } -delete_glyphs (n) - register int n; +void delete_glyphs(int n) { char *buf; register int i; @@@@ -1149,8 +1140,7 @@@@ delete_glyphs (n) /* Insert N lines at vpos VPOS. If N is negative, delete -N lines. */ -ins_del_lines (vpos, n) - int vpos, n; +void ins_del_lines (int vpos, int n) { char *multi = n > 0 ? TS_ins_multi_lines : TS_del_multi_lines; char *single = n > 0 ? TS_ins_line : TS_del_line; @@@@ -1354,8 +1344,7 @@@@ extern int x_screen_planes; extern do_line_insertion_deletion_costs (); -calculate_costs (frame) - FRAME_PTR frame; +void calculate_costs(FRAME_PTR frame) { register char *f = TS_set_scroll_region ? TS_set_scroll_region @ 1.2 log @Fix various prototype issues. @ text @d1 1 a1 1 $NetBSD: patch-src_term_c,v 1.1 2011/12/24 17:07:07 dholland Exp $ @ 1.1 log @Adjust the amd64 patch by crosschecking the existing header for alpha. Patch extensive use of malloc and alloca without and some other stuff that showed up in the build log. Still crashes in temacs but it's getting much farther. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- src/term.c~ 1995-01-06 05:57:00.000000000 +0000 d7 1 a7 2 @@@@ -52,7 +52,8 @@@@ the Free Software Foundation, 675 Mass A Macro definition of ITNCODE and AUTOCONV switched. */ d15 192 @