mirror of
https://github.com/cc65/cc65.git
synced 2025-01-21 15:32:41 +00:00
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:
parent
c70c5197e1
commit
114acc4d79
@ -10,9 +10,10 @@
|
||||
|
||||
|
||||
|
||||
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 found = 0;
|
||||
int first = 0;
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
int cprintf (char* format, ...)
|
||||
int cprintf (const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start (ap, format);
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
|
||||
|
||||
FILE* fdopen (int handle, char* /*mode*/)
|
||||
FILE* fdopen (int handle, const char* /*mode*/)
|
||||
{
|
||||
FILE* f;
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
int fprintf (FILE* /*F*/, char* format, ...)
|
||||
int fprintf (FILE* /*F*/, const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start (ap, format);
|
||||
|
@ -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 */
|
||||
if ((f->f_flags & _FOPEN) == 0 || (f->f_flags & (_FERROR | _FEOF)) != 0) {
|
||||
|
@ -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 */
|
||||
if ((f->f_flags & _FOPEN) == 0) {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* printf.c
|
||||
*
|
||||
*
|
||||
* Ullrich von Bassewitz, 11.08.1998
|
||||
*/
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
int printf (char* format, ...)
|
||||
int printf (const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start (ap, format);
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
int sprintf (char* /*buf*/, char* format, ...)
|
||||
int sprintf (char* /*buf*/, const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start (ap, format);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
@ -42,3 +42,4 @@ int vfprintf (FILE* f, char* format, va_list ap)
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
|
||||
int vprintf (char* format, va_list ap)
|
||||
int vprintf (const char* format, va_list ap)
|
||||
{
|
||||
return vfprintf (stdout, format, ap);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user