Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2018 21:17:48 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331265 - head/sys/sys
Message-ID:  <201803202117.w2KLHmSQ061264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Mar 20 21:17:48 2018
New Revision: 331265
URL: https://svnweb.freebsd.org/changeset/base/331265

Log:
  Remove obsolete lint support.

Modified:
  head/sys/sys/_stdarg.h

Modified: head/sys/sys/_stdarg.h
==============================================================================
--- head/sys/sys/_stdarg.h	Tue Mar 20 21:16:26 2018	(r331264)
+++ head/sys/sys/_stdarg.h	Tue Mar 20 21:17:48 2018	(r331265)
@@ -52,18 +52,5 @@
   #define	va_end(ap)		__builtin_va_end(ap)
 #endif
 
-#if defined(lint) && !defined(va_start)
-  /*
-   * Provide a fake implementation for lint's benefit
-   * This very much assumes that __va_list ends up being a pointer
-   */
-  #define va_start(ap, last) ((void)((ap) = (char *) (&(last)+1)))
-  #if __ISO_C_VISIBLE >= 1999
-    #define va_copy(dst, src) ((dst) = (src))
-  #endif
-  #define va_arg(ap, type) (*((type*)(((ap) += sizeof(type)) - sizeof(type))))
-  #define va_end(ap) ((void)0)
-#endif
-
 #endif /* ! _SYS__STDARG_H_ */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803202117.w2KLHmSQ061264>