public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] ansification: remove _NOARGS
Date: Wed, 17 Jan 2018 17:49:00 -0000	[thread overview]
Message-ID: <20180117174909.77104.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e13e191b6052a62701d8fb22c3660df23d3b6ec1

commit e13e191b6052a62701d8fb22c3660df23d3b6ec1
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Sun Dec 3 20:32:27 2017 -0600

    ansification: remove _NOARGS
    
    Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>

Diff:
---
 libgloss/libnosys/fork.c    | 2 +-
 libgloss/libnosys/getpid.c  | 2 +-
 libgloss/mcore/cmb-inbyte.c | 2 +-
 newlib/libc/include/_ansi.h | 4 +---
 4 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/libgloss/libnosys/fork.c b/libgloss/libnosys/fork.c
index f5795cb..5fbf68b 100644
--- a/libgloss/libnosys/fork.c
+++ b/libgloss/libnosys/fork.c
@@ -12,7 +12,7 @@ extern int errno;
 
 int
 _DEFUN (_fork, (),
-        _NOARGS)
+        void)
 {
   errno = ENOSYS;
   return -1;
diff --git a/libgloss/libnosys/getpid.c b/libgloss/libnosys/getpid.c
index 0ea1923..9ed416c 100644
--- a/libgloss/libnosys/getpid.c
+++ b/libgloss/libnosys/getpid.c
@@ -12,7 +12,7 @@ extern int errno;
 
 int
 _DEFUN (_getpid, (),
-        _NOARGS)
+        void)
 {
   errno = ENOSYS;
   return -1;
diff --git a/libgloss/mcore/cmb-inbyte.c b/libgloss/mcore/cmb-inbyte.c
index 0b0b8f5..839ffe6 100644
--- a/libgloss/mcore/cmb-inbyte.c
+++ b/libgloss/mcore/cmb-inbyte.c
@@ -16,7 +16,7 @@
 
 int
 _DEFUN (inbyte, (),
-	_NOARGS)
+	void)
 
 {
     return -1;
diff --git a/newlib/libc/include/_ansi.h b/newlib/libc/include/_ansi.h
index a09bfac..41623f7 100644
--- a/newlib/libc/include/_ansi.h
+++ b/newlib/libc/include/_ansi.h
@@ -48,7 +48,6 @@
 
 #ifdef _HAVE_STDC
 #define	_PTR		void *
-#define	_NOARGS		void
 #define	_VOLATILE	volatile
 #define	_SIGNED		signed
 #define _VOID void
@@ -64,7 +63,7 @@
 #define _EXFNPTR(name, proto)		(* name) proto
 #endif
 #define	_DEFUN(name, arglist, args)	name(args)
-#define	_DEFUN_VOID(name)		name(_NOARGS)
+#define	_DEFUN_VOID(name)		name(void)
 #define _CAST_VOID (void)
 #ifndef _LONG_DOUBLE
 #define _LONG_DOUBLE long double
@@ -74,7 +73,6 @@
 #endif
 #else	
 #define	_PTR		char *
-#define	_NOARGS
 #define	_VOLATILE
 #define	_SIGNED
 #define _VOID void


                 reply	other threads:[~2018-01-17 17:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180117174909.77104.qmail@sourceware.org \
    --to=yselkowitz@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).