From 70dab2c8d815ddda0b230f1ce896014c4af6e5a6 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 6 Jun 2013 13:08:32 +0800 Subject: [PATCH] review visibility of functions defined by line. --- line.c | 6 ++++-- line.h | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/line.c b/line.c index 071c83c..04b0079 100644 --- a/line.c +++ b/line.c @@ -26,6 +26,8 @@ #define BLOCK_SIZE 16 /* Line block chunk size. */ +static int ldelnewline( void) ; + /* * This routine allocates a block of memory large enough to hold a struct line * containing "used" characters. The block is always rounded up a bit. Return @@ -265,7 +267,7 @@ int linsert(int n, int c) * * int c; character to overwrite on current position */ -int lowrite(int c) +static int lowrite(int c) { if (curwp->w_doto < curwp->w_dotp->l_used && (lgetc(curwp->w_dotp, curwp->w_doto) != '\t' || @@ -515,7 +517,7 @@ int putctext(char *iline) * about in memory. Return FALSE on error and TRUE if all looks ok. Called by * "ldelete" only. */ -int ldelnewline(void) +static int ldelnewline(void) { char *cp1; char *cp2; diff --git a/line.h b/line.h index 2294b14..d649ee7 100644 --- a/line.h +++ b/line.h @@ -30,7 +30,6 @@ void lchange( int flag) ; int insspace( int f, int n) ; int linstr( char *instr) ; int linsert( int n, int c) ; -int lowrite( int c) ; int lover( char *ostr) ; int lnewline( void) ; int ldelete( long n, int kflag) ; @@ -38,7 +37,6 @@ int ldelchar( long n, int kflag) ; int lgetchar( unicode_t *) ; char *getctext( void) ; int putctext( char *iline) ; -int ldelnewline( void) ; void kdelete( void) ; int kinsert( int c) ; int yank( int f, int n) ;