From 451bd32e7b4a6e06058c7ddd73f3abc93fedc0cc Mon Sep 17 00:00:00 2001 From: William McBrine Date: Mon, 27 Feb 2006 08:13:04 +0000 Subject: [PATCH] More consts. --- curses.h | 4 ++-- curspriv.h | 6 +++--- dos/pdcclip.c | 6 +++--- os2/pdcclip.c | 6 +++--- pdcurses/pdcdebug.c | 6 +++--- win32/pdcclip.c | 6 +++--- x11/pdcclip.c | 6 +++--- x11/process/x11curses.c | 4 ++-- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/curses.h b/curses.h index 8f82a54a..ddd0b77c 100644 --- a/curses.h +++ b/curses.h @@ -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); diff --git a/curspriv.h b/curspriv.h index 25adff96..a1a74091 100644 --- a/curspriv.h +++ b/curspriv.h @@ -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) diff --git a/dos/pdcclip.c b/dos/pdcclip.c index ed50815a..16c198c1 100644 --- a/dos/pdcclip.c +++ b/dos/pdcclip.c @@ -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")); diff --git a/os2/pdcclip.c b/os2/pdcclip.c index c9be2163..0394e246 100644 --- a/os2/pdcclip.c +++ b/os2/pdcclip.c @@ -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; diff --git a/pdcurses/pdcdebug.c b/pdcurses/pdcdebug.c index 04798303..bd6bbe49 100644 --- a/pdcurses/pdcdebug.c +++ b/pdcurses/pdcdebug.c @@ -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; diff --git a/win32/pdcclip.c b/win32/pdcclip.c index 40a334f1..14af01d3 100644 --- a/win32/pdcclip.c +++ b/win32/pdcclip.c @@ -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; diff --git a/x11/pdcclip.c b/x11/pdcclip.c index 4c2a00f8..2306e26b 100644 --- a/x11/pdcclip.c +++ b/x11/pdcclip.c @@ -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")); diff --git a/x11/process/x11curses.c b/x11/process/x11curses.c index 918d1a51..92ea7e23 100644 --- a/x11/process/x11curses.c +++ b/x11/process/x11curses.c @@ -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 */