More consts.

This commit is contained in:
William McBrine
2006-02-27 08:13:04 +00:00
parent 6393e92333
commit 451bd32e7b
8 changed files with 22 additions and 22 deletions

View File

@@ -15,7 +15,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: curses.h,v 1.135 2006/02/27 07:28:30 wmcbrine Exp $ */
/* $Id: curses.h,v 1.136 2006/02/27 08:13:02 wmcbrine Exp $ */
/*----------------------------------------------------------------------*
* PDCurses *
@@ -1492,7 +1492,7 @@ int PDC_chins(WINDOW *, chtype, bool);
int PDC_ungetch(int);
void PDC_set_title(const char *);
int PDC_getclipboard(char **, long *);
int PDC_setclipboard(char *, long);
int PDC_setclipboard(const char *, long);
int PDC_freeclipboard(char *);
int PDC_clearclipboard(void);

View File

@@ -15,7 +15,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: curspriv.h,v 1.42 2006/02/27 07:58:30 wmcbrine Exp $ */
/* $Id: curspriv.h,v 1.43 2006/02/27 08:13:02 wmcbrine Exp $ */
/* CURSPRIV.H
@@ -294,7 +294,7 @@ int XCurses_get_rows(void);
int XCurses_refresh_scrollbar(void);
void XCurses_set_title(const char *);
int XCurses_getclipboard(char **, long *);
int XCurses_setclipboard(char *, long);
int XCurses_setclipboard(const char *, long);
int XCurses_clearclipboard(void);
unsigned long XCurses_get_key_modifiers(void);
#endif
@@ -304,7 +304,7 @@ void movedata(unsigned, unsigned, unsigned, unsigned, unsigned);
#endif
#ifdef PDCDEBUG
void PDC_debug(char *, ...);
void PDC_debug(const char *, ...);
# define PDC_LOG(x) if (trace_on) PDC_debug x
#else
# define PDC_LOG(x)

View File

@@ -22,7 +22,7 @@
#ifdef PDCDEBUG
const char *rcsid_PDCclip =
"$Id: pdcclip.c,v 1.19 2006/02/23 01:46:52 wmcbrine Exp $";
"$Id: pdcclip.c,v 1.20 2006/02/27 08:13:03 wmcbrine Exp $";
#endif
/* global clipboard contents, should be NULL if none set */
@@ -92,11 +92,11 @@ int PDC_getclipboard(char **contents, long *length)
PDC_CLIP_ACCESS_ERROR no clipboard support
Portability:
PDCurses int PDC_setclipboard(char *contents, long length);
PDCurses int PDC_setclipboard(const char *contents, long length);
**man-end****************************************************************/
int PDC_setclipboard(char *contents, long length)
int PDC_setclipboard(const char *contents, long length)
{
PDC_LOG(("PDC_setclipboard() - called\n"));

View File

@@ -26,7 +26,7 @@
#ifdef PDCDEBUG
const char *rcsid_PDCclip =
"$Id: pdcclip.c,v 1.17 2006/02/23 01:46:52 wmcbrine Exp $";
"$Id: pdcclip.c,v 1.18 2006/02/27 08:13:03 wmcbrine Exp $";
#endif
/*man-start**************************************************************
@@ -128,11 +128,11 @@ int PDC_getclipboard(char **contents, long *length)
clipboard
Portability:
PDCurses int PDC_getclipboard(char *contents, long length);
PDCurses int PDC_getclipboard(const char *contents, long length);
**man-end****************************************************************/
int PDC_setclipboard(char *contents, long length)
int PDC_setclipboard(const char *contents, long length)
{
#if !defined(EMXVIDEO)
HAB hab;

View File

@@ -25,7 +25,7 @@
#ifdef PDCDEBUG
const char *rcsid_PDCdebug =
"$Id: pdcdebug.c,v 1.17 2006/02/23 01:46:52 wmcbrine Exp $";
"$Id: pdcdebug.c,v 1.18 2006/02/27 08:13:03 wmcbrine Exp $";
#endif
bool trace_on = FALSE;
@@ -44,11 +44,11 @@ bool trace_on = FALSE;
No errors are defined for this function.
Portability:
PDCurses void PDC_debug(char *, ...);
PDCurses void PDC_debug(const char *, ...);
**man-end****************************************************************/
void PDC_debug(char *fmt, ...)
void PDC_debug(const char *fmt, ...)
{
va_list args;
FILE *dbfp;

View File

@@ -21,7 +21,7 @@
#ifdef PDCDEBUG
const char *rcsid_PDCclip =
"$Id: pdcclip.c,v 1.13 2006/02/23 01:46:52 wmcbrine Exp $";
"$Id: pdcclip.c,v 1.14 2006/02/27 08:13:03 wmcbrine Exp $";
#endif
/*man-start**************************************************************
@@ -102,11 +102,11 @@ int PDC_getclipboard(char **contents, long *length)
clipboard
Portability:
PDCurses int PDC_getclipboard(char *contents, long length);
PDCurses int PDC_getclipboard(const char *contents, long length);
**man-end****************************************************************/
int PDC_setclipboard(char *contents, long length)
int PDC_setclipboard(const char *contents, long length)
{
HGLOBAL ptr1;
LPTSTR ptr2;

View File

@@ -21,7 +21,7 @@
#ifdef PDCDEBUG
const char *rcsid_PDCclip =
"$Id: pdcclip.c,v 1.15 2006/02/23 01:46:52 wmcbrine Exp $";
"$Id: pdcclip.c,v 1.16 2006/02/27 08:13:03 wmcbrine Exp $";
#endif
/*man-start**************************************************************
@@ -75,11 +75,11 @@ int PDC_getclipboard(char **contents, long *length)
clipboard
Portability:
PDCurses int PDC_getclipboard(char *contents, long length);
PDCurses int PDC_getclipboard(const char *contents, long length);
**man-end****************************************************************/
int PDC_setclipboard(char *contents, long length)
int PDC_setclipboard(const char *contents, long length)
{
PDC_LOG(("PDC_setclipboard() - called\n"));

View File

@@ -12,7 +12,7 @@
#ifdef PDCDEBUG
const char rcsid_x11curses =
"$Id: x11curses.c,v 1.26 2006/02/27 07:58:31 wmcbrine Exp $";
"$Id: x11curses.c,v 1.27 2006/02/27 08:13:04 wmcbrine Exp $";
#endif
extern AppData app_data;
@@ -476,7 +476,7 @@ int XCurses_getclipboard(char **contents, long *length)
return result;
}
int XCurses_setclipboard(char *contents, long length)
int XCurses_setclipboard(const char *contents, long length)
{
int rc;
char buf[12]; /* big enough for 2 integers */