Review buffer public interface.

This commit is contained in:
Renaud 2013-06-13 19:16:46 +08:00
parent 47c67446b0
commit 008852ada3
2 changed files with 9 additions and 6 deletions

View File

@ -22,6 +22,12 @@
#include "line.h"
#include "window.h"
static int makelist( int iflag) ;
static int addline( char *text) ;
static void ltoa( char *buf, int width, long num) ;
/*
* Attach a buffer to a window. The
* values of dot and mark come from the buffer
@ -273,7 +279,7 @@ int listbuffers(int f, int n)
* int iflag; list hidden buffer flag
*/
#define MAXLINE MAXCOL
int makelist(int iflag)
static int makelist( int iflag)
{
char *cp1;
char *cp2;
@ -381,7 +387,7 @@ int makelist(int iflag)
return TRUE; /* All done */
}
void ltoa(char *buf, int width, long num)
static void ltoa(char *buf, int width, long num)
{
buf[width] = 0; /* End of string. */
while (num >= 10) { /* Conditional digits. */
@ -400,7 +406,7 @@ void ltoa(char *buf, int width, long num)
* on the end. Return TRUE if it worked and
* FALSE if you ran out of room.
*/
int addline(char *text)
static int addline( char *text)
{
struct line *lp;
int i;

View File

@ -10,9 +10,6 @@ int killbuffer( int f, int n) ;
int zotbuf( struct buffer *bp) ;
int namebuffer( int f, int n) ;
int listbuffers( int f, int n) ;
int makelist( int iflag) ;
void ltoa( char *buf, int width, long num) ;
int addline( char *text) ;
int anycb( void) ;
int bclear( struct buffer *bp) ;
int unmark( int f, int n) ;