Avoid compiler warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14866 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-29 05:41:29 +00:00
parent 77dde4b8bc
commit df3ff193ea
3 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2002-10-29 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/gnustep/gui/GSMethodTable.h:
* Headers/gnustep/gui/PSOperators.h:
Add const qualifier to PSPrintf and PSWriteData argument types to
match all other declatrations.
2002-10-28 Adam Fedor <fedor@gnu.org>
* Source/NSTextView.m (-drawRect:): Don't draw insertion point

View file

@ -272,9 +272,9 @@ typedef struct {
/* Postscript Client functions */
/* ----------------------------------------------------------------------- */
void (*DPSPrintf__)
(NSGraphicsContext*, SEL, char *, va_list);
(NSGraphicsContext*, SEL, const char *, va_list);
void (*DPSWriteData__)
(NSGraphicsContext*, SEL, char *, unsigned int);
(NSGraphicsContext*, SEL, const char *, unsigned int);
/* ----------------------------------------------------------------------- */
/* NSGraphics Ops */

View file

@ -342,11 +342,11 @@ __attribute__((unused));
/* Postscript Client functions */
/* ----------------------------------------------------------------------- */
static inline void
PSPrintf(char * fmt, va_list args)
PSPrintf(const char * fmt, va_list args)
__attribute__((unused));
static inline void
PSWriteData(char * buf, unsigned int count)
PSWriteData(const char * buf, unsigned int count)
__attribute__((unused));
@ -796,13 +796,13 @@ PSdissolve(float x, float y, float w, float h, int gstateNum, float dx, float dy
/* Postscript Client functions */
/* ----------------------------------------------------------------------- */
static inline void
PSPrintf(char * fmt, va_list args)
PSPrintf(const char * fmt, va_list args)
{
DPSPrintf(DEFCTXT, fmt, args);
}
static inline void
PSWriteData(char * buf, unsigned int count)
PSWriteData(const char * buf, unsigned int count)
{
DPSWriteData(DEFCTXT, buf, count);
}