From 9547a2acebe7707dca4b4ebea17dcc8c2071359d Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 29 Dec 2002 14:47:01 +0000 Subject: [PATCH] Make resizeline() and lineptr() static and give them prototypes. git-svn-id: svn://svn.tartarus.org/sgt/putty@2376 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index 1446fa21..c7d05c50 100644 --- a/terminal.c +++ b/terminal.c @@ -62,6 +62,8 @@ const wchar_t sel_nl[] = SEL_NL; /* * Internal prototypes. */ +static unsigned long *resizeline(unsigned long *, int); +static unsigned long *lineptr(Terminal *, int, int); static void do_paint(Terminal *, Context, int); static void erase_lots(Terminal *, int, int, int); static void swap_screen(Terminal *, int, int, int); @@ -75,7 +77,7 @@ static void scroll_display(Terminal *, int, int, int); /* * Resize a line to make it `cols' columns wide. */ -unsigned long *resizeline(unsigned long *line, int cols) +static unsigned long *resizeline(unsigned long *line, int cols) { int i, oldlen; unsigned long lineattrs; @@ -102,7 +104,7 @@ unsigned long *resizeline(unsigned long *line, int cols) * whether the y coordinate is non-negative or negative * (respectively). */ -unsigned long *lineptr(Terminal *term, int y, int lineno) +static unsigned long *lineptr(Terminal *term, int y, int lineno) { unsigned long *line, *newline; tree234 *whichtree; -- 2.11.0