[PATCH] libncurses manpages

Peter Avalos pavalos at theshell.com
Sun Jul 31 06:36:33 PDT 2005


Here's an update for the manpages that match up with the work that joerg
committed the other night that changed some const's.

--Peter


Index: lib/libncurses/man/curs_initscr.3
===================================================================
RCS file: /home/dcvs/src/lib/libncurses/man/curs_initscr.3,v
retrieving revision 1.1
diff -u -r1.1 curs_initscr.3
--- lib/libncurses/man/curs_initscr.3	12 Mar 2005 19:13:54 -0000	1.1
+++ lib/libncurses/man/curs_initscr.3	31 Jul 2005 13:22:43 -0000
@@ -45,7 +45,7 @@
 .br
 \fBbool isendwin(void);\fR
 .br
-\fBSCREEN *newterm(char *type, FILE *outfd, FILE *infd);\fR
+\fBSCREEN *newterm(const char *type, FILE *outfd, FILE *infd);\fR
 .br
 \fBSCREEN *set_term(SCREEN *new);\fR
 .br
Index: lib/libncurses/man/curs_scanw.3
===================================================================
RCS file: /home/dcvs/src/lib/libncurses/man/curs_scanw.3,v
retrieving revision 1.1
diff -u -r1.1 curs_scanw.3
--- lib/libncurses/man/curs_scanw.3	12 Mar 2005 19:13:54 -0000	1.1
+++ lib/libncurses/man/curs_scanw.3	31 Jul 2005 13:22:43 -0000
@@ -38,17 +38,17 @@
 .SH SYNOPSIS
 \fB#include <curses.h>\fR
 
-\fBint scanw(char *fmt, ...);\fR
+\fBint scanw(const char *fmt, ...);\fR
 .br
-\fBint wscanw(WINDOW *win, char *fmt, ...);\fR
+\fBint wscanw(WINDOW *win, const char *fmt, ...);\fR
 .br
-\fBint mvscanw(int y, int x, char *fmt, ...);\fR
+\fBint mvscanw(int y, int x, const char *fmt, ...);\fR
 .br
-\fBint mvwscanw(WINDOW *win, int y, int x, char *fmt, ...);\fR
+\fBint mvwscanw(WINDOW *win, int y, int x, const char *fmt, ...);\fR
 .br
-\fBint vw_scanw(WINDOW *win, char *fmt, va_list varglist);\fR
+\fBint vw_scanw(WINDOW *win, const char *fmt, va_list varglist);\fR
 .br
-\fBint vwscanw(WINDOW *win, char *fmt, va_list varglist);\fR
+\fBint vwscanw(WINDOW *win, const char *fmt, va_list varglist);\fR
 .SH DESCRIPTION
 The \fBscanw\fR, \fBwscanw\fR and \fBmvscanw\fR routines are analogous to
 \fBscanf\fR [see \fBscanf\fR(3S)].  The effect of these routines is as though
Index: lib/libncurses/man/curs_termcap.3
===================================================================
RCS file: /home/dcvs/src/lib/libncurses/man/curs_termcap.3,v
retrieving revision 1.1
diff -u -r1.1 curs_termcap.3
--- lib/libncurses/man/curs_termcap.3	12 Mar 2005 19:13:54 -0000	1.1
+++ lib/libncurses/man/curs_termcap.3	31 Jul 2005 13:22:43 -0000
@@ -49,11 +49,11 @@
 .br
 \fBint tgetent(char *bp, const char *name);\fR
 .br
-\fBint tgetflag(char *id);\fR
+\fBint tgetflag(const char *id);\fR
 .br
-\fBint tgetnum(char *id);\fR
+\fBint tgetnum(const char *id);\fR
 .br
-\fBchar *tgetstr(char *id, char **area);\fR
+\fBchar *tgetstr(const char *id, char **area);\fR
 .br
 \fBchar *tgoto(const char *cap, int col, int row);\fR
 .br
Index: lib/libncurses/man/curs_terminfo.3
===================================================================
RCS file: /home/dcvs/src/lib/libncurses/man/curs_terminfo.3,v
retrieving revision 1.1
diff -u -r1.1 curs_terminfo.3
--- lib/libncurses/man/curs_terminfo.3	12 Mar 2005 19:13:54 -0000	1.1
+++ lib/libncurses/man/curs_terminfo.3	31 Jul 2005 13:22:43 -0000
@@ -53,7 +53,7 @@
 .br
 \fB#include <term.h>\fR
 .PP
-\fBint setupterm(char *\fR\fIterm\fR\fB, int \fR\fIfildes\fR\fB, int *\fR\fIerrret\fR\fB);\fR
+\fBint setupterm(const char *\fR\fIterm\fR\fB, int \fR\fIfildes\fR\fB, int *\fR\fIerrret\fR\fB);\fR
 .br
 \fBint setterm(char *\fR\fIterm\fR\fB);\fR
 .br
@@ -63,7 +63,7 @@
 .br
 \fBint restartterm(const char *\fR\fIterm\fR\fB, int \fR\fIfildes\fR\fB, int *\fR\fIerrret\fR\fB);\fR
 .br
-\fBchar *tparm(char *\fR\fIstr\fR\fB, ...);\fR
+\fBchar *tparm(const char *\fR\fIstr\fR\fB, ...);\fR
 .br
 \fBint tputs(const char *\fR\fIstr\fR\fB, int \fR\fIaffcnt\fR\fB, int (*\fR\fIputc\fR\fB)(int));\fR
 .br
@@ -79,11 +79,11 @@
 .br
 \fBint mvcur(int \fR\fIoldrow\fR\fB, int \fR\fIoldcol\fR\fB, int \fR\fInewrow\fR, int \fR\fInewcol\fR\fB);\fR
 .br
-\fBint tigetflag(char *\fR\fIcapname\fR\fB);\fR
+\fBint tigetflag(const char *\fR\fIcapname\fR\fB);\fR
 .br
-\fBint tigetnum(char *\fR\fIcapname\fR\fB);\fR
+\fBint tigetnum(const char *\fR\fIcapname\fR\fB);\fR
 .br
-\fBchar *tigetstr(char *\fR\fIcapname\fR\fB);\fR
+\fBchar *tigetstr(const char *\fR\fIcapname\fR\fB);\fR
 .br
 .fi
 .SH DESCRIPTION
@@ -238,11 +238,11 @@
 The \fIcapname\fR for each capability is given in the table column entitled
 \fIcapname\fR code in the capabilities section of \fBterminfo\fR(\*n).
 
-\fBchar *boolnames\fR, \fB*boolcodes\fR, \fB*boolfnames\fR
+\fBconst char *boolnames\fR, \fB*boolcodes\fR, \fB*boolfnames\fR
 
-\fBchar *numnames\fR, \fB*numcodes\fR, \fB*numfnames\fR
+\fBconst char *numnames\fR, \fB*numcodes\fR, \fB*numfnames\fR
 
-\fBchar *strnames\fR, \fB*strcodes\fR, \fB*strfnames\fR
+\fBconst char *strnames\fR, \fB*strcodes\fR, \fB*strfnames\fR
 
 These null-terminated arrays contain the \fIcapnames\fR, the
 \fBtermcap\fR codes, and the full C names, for each of the
Index: lib/libncurses/man/curs_util.3
===================================================================
RCS file: /home/dcvs/src/lib/libncurses/man/curs_util.3,v
retrieving revision 1.1
diff -u -r1.1 curs_util.3
--- lib/libncurses/man/curs_util.3	12 Mar 2005 19:13:54 -0000	1.1
+++ lib/libncurses/man/curs_util.3	31 Jul 2005 13:22:43 -0000
@@ -43,11 +43,11 @@
 .SH SYNOPSIS
 \fB#include <curses.h>\fR
 .sp
-\fBchar *unctrl(chtype c);\fR
+\fBconst char *unctrl(chtype c);\fR
 .br
 \fBchar *wunctrl(cchar_t *c);\fR
 .br
-\fBchar *keyname(int c);\fR
+\fBconst char *keyname(int c);\fR
 .br
 \fBchar *key_name(wchar_t w);\fR
 .br
Attachment:
pgp00011.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00011.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20050731/00c5dd60/attachment-0018.obj>


More information about the Submit mailing list