Fixed param type qualifiers in several function definitions

git-svn-id: svn://svn.cc65.org/cc65/trunk@278 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-08-13 16:16:49 +00:00
parent c70c5197e1
commit 114acc4d79
13 changed files with 17 additions and 15 deletions

View file

@ -10,7 +10,8 @@
void* bsearch (void* key, void* base, size_t n, size_t size, int (*cmp) (void*, void*)) void* bsearch (const void* key, const void* base, size_t n, size_t size,
int (*cmp) (const void*, const void*))
{ {
int current; int current;
int result; int result;

View file

@ -11,7 +11,7 @@
int cprintf (char* format, ...) int cprintf (const char* format, ...)
{ {
va_list ap; va_list ap;
va_start (ap, format); va_start (ap, format);

View file

@ -13,7 +13,7 @@
FILE* fdopen (int handle, char* /*mode*/) FILE* fdopen (int handle, const char* /*mode*/)
{ {
FILE* f; FILE* f;

View file

@ -11,7 +11,7 @@
int fprintf (FILE* /*F*/, char* format, ...) int fprintf (FILE* /*F*/, const char* format, ...)
{ {
va_list ap; va_list ap;
va_start (ap, format); va_start (ap, format);

View file

@ -13,7 +13,7 @@
int fputs (char* s, FILE* f) int fputs (const char* s, FILE* f)
{ {
/* Check if the file is open or if there is an error condition */ /* Check if the file is open or if there is an error condition */
if ((f->f_flags & _FOPEN) == 0 || (f->f_flags & (_FERROR | _FEOF)) != 0) { if ((f->f_flags & _FOPEN) == 0 || (f->f_flags & (_FERROR | _FEOF)) != 0) {

View file

@ -13,7 +13,7 @@
FILE* freopen (char* name, char* mode, FILE* f) FILE* freopen (const char* name, const char* mode, FILE* f)
{ {
/* Check if the file is open, if so, close it */ /* Check if the file is open, if so, close it */
if ((f->f_flags & _FOPEN) == 0) { if ((f->f_flags & _FOPEN) == 0) {

View file

@ -13,7 +13,7 @@
size_t fwrite (void* buf, size_t size, size_t count, FILE* f) size_t fwrite (const void* buf, size_t size, size_t count, FILE* f)
{ {
int bytes; int bytes;

View file

@ -11,7 +11,7 @@
int printf (char* format, ...) int printf (const char* format, ...)
{ {
va_list ap; va_list ap;
va_start (ap, format); va_start (ap, format);

View file

@ -11,7 +11,7 @@
int sprintf (char* /*buf*/, char* format, ...) int sprintf (char* /*buf*/, const char* format, ...)
{ {
va_list ap; va_list ap;
va_start (ap, format); va_start (ap, format);

View file

@ -26,7 +26,7 @@ static void out (struct outdesc* d, char* buf, unsigned count)
int vcprintf (char* format, va_list ap) int vcprintf (const char* format, va_list ap)
{ {
struct outdesc d; struct outdesc d;

View file

@ -25,7 +25,7 @@ static void out (struct outdesc* d, char* buf, unsigned count)
int vfprintf (FILE* f, char* format, va_list ap) int vfprintf (FILE* f, const char* format, va_list ap)
{ {
struct outdesc d; struct outdesc d;
@ -42,3 +42,4 @@ int vfprintf (FILE* f, char* format, va_list ap)

View file

@ -12,7 +12,7 @@
int vprintf (char* format, va_list ap) int vprintf (const char* format, va_list ap)
{ {
return vfprintf (stdout, format, ap); return vfprintf (stdout, format, ap);
} }

View file

@ -25,7 +25,7 @@ static void out (struct outdesc* d, char* buf, unsigned count)
int vsprintf (char* buf, char* format, va_list ap) int vsprintf (char* buf, const char* format, va_list ap)
{ {
struct outdesc d; struct outdesc d;