Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/putchar.c')
-rw-r--r--newlib/libc/stdio/putchar.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/newlib/libc/stdio/putchar.c b/newlib/libc/stdio/putchar.c
index e1d748ae2..ff207f3d0 100644
--- a/newlib/libc/stdio/putchar.c
+++ b/newlib/libc/stdio/putchar.c
@@ -28,7 +28,7 @@ ANSI_SYNOPSIS
#include <stdio.h>
int putchar(int <[ch]>);
- int _putchar_r(struct _reent *<[reent]>, int <[ch]>);
+ int _putchar_r(void *<[reent]>, int <[ch]>);
TRAD_SYNOPSIS
#include <stdio.h>
@@ -36,7 +36,7 @@ TRAD_SYNOPSIS
int <[ch]>;
int _putchar_r(<[reent]>, <[ch]>)
- struct _reent *<[reent]>;
+ char *<[reent]>;
int <[ch]>;
DESCRIPTION
@@ -68,27 +68,26 @@ static char sccsid[] = "%W% (Berkeley) %G%";
* A subroutine version of the macro putchar.
*/
-#include <_ansi.h>
-#include <reent.h>
#include <stdio.h>
+
#include "local.h"
#undef putchar
int
-_DEFUN(_putchar_r, (ptr, c),
- struct _reent *ptr _AND
- int c)
+_putchar_r (ptr, c)
+ struct _reent *ptr;
+ int c;
{
- _REENT_SMALL_CHECK_INIT (ptr);
+ _REENT_SMALL_CHECK_INIT(_stdout_r (ptr));
return putc (c, _stdout_r (ptr));
}
#ifndef _REENT_ONLY
int
-_DEFUN(putchar, (c),
- int c)
+putchar (c)
+ int c;
{
/* CHECK_INIT is (eventually) called by __swbuf. */