Ansify to allow to work on it later

This commit is contained in:
Baptiste Daroussin 2015-05-05 07:33:38 +00:00
parent 76cd25496f
commit b16000da4b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282449
3 changed files with 35 additions and 39 deletions

View File

@ -66,9 +66,7 @@ boolean l_onecase; /* true if upper and lower equivalent */
*/ */
int int
STRNCMP(s1, s2, len) STRNCMP(register char *s1, register char *s2, register int len)
register char *s1,*s2;
register int len;
{ {
if (l_onecase) { if (l_onecase) {
do do
@ -147,9 +145,9 @@ STRNCMP(s1, s2, len)
static char *ccre; /* pointer to current position in converted exp*/ static char *ccre; /* pointer to current position in converted exp*/
static char *ure; /* pointer current position in unconverted exp */ static char *ure; /* pointer current position in unconverted exp */
/* re: unconverted irregular expression */
char * char *
convexp(re) convexp(char *re)
char *re; /* unconverted irregular expression */
{ {
register char *cre; /* pointer to converted regular expression */ register char *cre; /* pointer to converted regular expression */
@ -344,11 +342,13 @@ expconv()
* character matched. * character matched.
*/ */
/*
* s: string to check for a match in
* re: a converted irregular expression
* mstring: where to put whatever matches a \p
*/
char * char *
expmatch (s, re, mstring) expmatch (register char *s, register char *re, register char *mstring)
register char *s; /* string to check for a match in */
register char *re; /* a converted irregular expression */
register char *mstring; /* where to put whatever matches a \p */
{ {
register char *cs; /* the current symbol */ register char *cs; /* the current symbol */
register char *ptr,*s1; /* temporary pointer */ register char *ptr,*s1; /* temporary pointer */

View File

@ -542,11 +542,13 @@ putScp(os)
} while (*s); } while (*s);
} }
/*
* start: start of string to write
* end: end of string to write
* force: true if we should force nokeyw
*/
static void static void
putKcp (start, end, force) putKcp (char *start, char *end, boolean force)
char *start; /* start of string to write */
char *end; /* end of string to write */
boolean force; /* true if we should force nokeyw */
{ {
int i; int i;
int xfld = 0; int xfld = 0;
@ -593,16 +595,14 @@ putKcp (start, end, force)
static int static int
tabs(s, os) tabs(char *s, char *os)
char *s, *os;
{ {
return (width(s, os) / 8); return (width(s, os) / 8);
} }
static int static int
width(s, os) width(register char *s, register char *os)
register char *s, *os;
{ {
register int i = 0; register int i = 0;
@ -690,8 +690,7 @@ putcp(c)
* look for a process beginning on this line * look for a process beginning on this line
*/ */
static boolean static boolean
isproc(s) isproc(char *s)
char *s;
{ {
pname[0] = '\0'; pname[0] = '\0';
if (!l_toplex || blklevel == 0) if (!l_toplex || blklevel == 0)
@ -706,8 +705,7 @@ isproc(s)
*/ */
static int static int
iskw(s) iskw(register char *s)
register char *s;
{ {
register char **ss = l_keywds; register char **ss = l_keywds;
register int i = 1; register int i = 1;

View File

@ -55,18 +55,19 @@ __FBSDID("$FreeBSD$");
static char *tbuf; static char *tbuf;
static char *filename; static char *filename;
static int hopcount; /* detect infinite loops in termcap, init 0 */ static int hopcount; /* detect infinite loops in termcap, init 0 */
char *tskip();
char *tgetstr(); static int tnchktc(void);
char *tdecode(); static int tnamatch(char *);
char *getenv(); static char *tskip(register char *);
static char *tdecode(register char *, char **);
/* /*
* Get an entry for terminal name in buffer bp, * Get an entry for terminal name in buffer bp,
* from the termcap file. Parse is very rudimentary; * from the termcap file. Parse is very rudimentary;
* we just notice escaped newlines. * we just notice escaped newlines.
*/ */
tgetent(bp, name, file) int
char *bp, *name, *file; tgetent(char *bp, char *name, char *file)
{ {
register char *cp; register char *cp;
register int c; register int c;
@ -125,7 +126,8 @@ tgetent(bp, name, file)
* entries to say "like an HP2621 but doesn't turn on the labels". * entries to say "like an HP2621 but doesn't turn on the labels".
* Note that this works because of the left to right scan. * Note that this works because of the left to right scan.
*/ */
tnchktc() static int
tnchktc(void)
{ {
register char *p, *q; register char *p, *q;
char tcname[16]; /* name of similar terminal */ char tcname[16]; /* name of similar terminal */
@ -172,8 +174,8 @@ tnchktc()
* against each such name. The normal : terminator after the last * against each such name. The normal : terminator after the last
* name (before the first field) stops us. * name (before the first field) stops us.
*/ */
tnamatch(np) static int
char *np; tnamatch(char *np)
{ {
register char *Np, *Bp; register char *Np, *Bp;
@ -199,8 +201,7 @@ tnamatch(np)
* into the termcap file in octal. * into the termcap file in octal.
*/ */
static char * static char *
tskip(bp) tskip(register char *bp)
register char *bp;
{ {
while (*bp && *bp != ':') while (*bp && *bp != ':')
@ -251,8 +252,8 @@ tgetnum(id)
* of the buffer. Return 1 if we find the option, or 0 if it is * of the buffer. Return 1 if we find the option, or 0 if it is
* not given. * not given.
*/ */
tgetflag(id) int
char *id; tgetflag(char *id)
{ {
register char *bp = tbuf; register char *bp = tbuf;
@ -278,8 +279,7 @@ tgetflag(id)
* No checking on area overflow. * No checking on area overflow.
*/ */
char * char *
tgetstr(id, area) tgetstr(char *id, char **area)
char *id, **area;
{ {
register char *bp = tbuf; register char *bp = tbuf;
@ -303,9 +303,7 @@ tgetstr(id, area)
* string capability escapes. * string capability escapes.
*/ */
static char * static char *
tdecode(str, area) tdecode(register char *str, char **area)
register char *str;
char **area;
{ {
register char *cp; register char *cp;
register int c; register int c;