1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-19 07:46:24 -05:00

review visibility of functions defined by line.

This commit is contained in:
Renaud 2013-06-06 13:08:32 +08:00
parent 5ee997b695
commit 70dab2c8d8
2 changed files with 4 additions and 4 deletions

6
line.c
View File

@ -26,6 +26,8 @@
#define BLOCK_SIZE 16 /* Line block chunk size. */ #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 * 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 * 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 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 && if (curwp->w_doto < curwp->w_dotp->l_used &&
(lgetc(curwp->w_dotp, curwp->w_doto) != '\t' || (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 * about in memory. Return FALSE on error and TRUE if all looks ok. Called by
* "ldelete" only. * "ldelete" only.
*/ */
int ldelnewline(void) static int ldelnewline(void)
{ {
char *cp1; char *cp1;
char *cp2; char *cp2;

2
line.h
View File

@ -30,7 +30,6 @@ void lchange( int flag) ;
int insspace( int f, int n) ; int insspace( int f, int n) ;
int linstr( char *instr) ; int linstr( char *instr) ;
int linsert( int n, int c) ; int linsert( int n, int c) ;
int lowrite( int c) ;
int lover( char *ostr) ; int lover( char *ostr) ;
int lnewline( void) ; int lnewline( void) ;
int ldelete( long n, int kflag) ; int ldelete( long n, int kflag) ;
@ -38,7 +37,6 @@ int ldelchar( long n, int kflag) ;
int lgetchar( unicode_t *) ; int lgetchar( unicode_t *) ;
char *getctext( void) ; char *getctext( void) ;
int putctext( char *iline) ; int putctext( char *iline) ;
int ldelnewline( void) ;
void kdelete( void) ; void kdelete( void) ;
int kinsert( int c) ; int kinsert( int c) ;
int yank( int f, int n) ; int yank( int f, int n) ;