mirror of
https://github.com/openbsd/src.git
synced 2025-01-04 23:35:36 -08:00
Also enclose variable names with external linkage in __BEGIN_DECLS.
Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
This commit is contained in:
parent
939fdbfbef
commit
c968322491
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.1 2011/04/21 21:12:56 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
|
||||
/* $NetBSD: fenv.h,v 1.2.4.1 2011/02/08 16:18:55 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
@ -43,6 +43,7 @@ int fetestexcept(int);
|
||||
|
||||
int fegetround(void);
|
||||
int fesetround(int);
|
||||
|
||||
int fegetenv(fenv_t *);
|
||||
int feholdexcept(fenv_t *);
|
||||
int fesetenv(const fenv_t *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: math.h,v 1.28 2011/04/28 18:05:39 martynas Exp $ */
|
||||
/* $OpenBSD: math.h,v 1.29 2011/05/25 21:46:49 martynas Exp $ */
|
||||
/*
|
||||
* ====================================================
|
||||
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
||||
@ -21,6 +21,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/limits.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
/*
|
||||
* ANSI/POSIX
|
||||
*/
|
||||
@ -145,7 +146,6 @@ extern int signgam;
|
||||
#define HUGE MAXFLOAT
|
||||
#endif /* __BSD_VISIBLE */
|
||||
|
||||
__BEGIN_DECLS
|
||||
/*
|
||||
* ANSI/POSIX
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -76,7 +76,9 @@ typedef struct {
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.4 2011/05/25 21:46:49 martynas Exp $ */
|
||||
/* $NetBSD: fenv.h,v 1.1 2010/07/31 21:47:54 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
@ -93,7 +93,9 @@ typedef struct {
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -75,7 +75,9 @@ typedef struct {
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.1 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
/* $NetBSD: fenv.h,v 1.1.6.2 2010/10/24 22:48:02 jym Exp $ */
|
||||
|
||||
/*-
|
||||
@ -93,7 +93,9 @@ typedef struct {
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -75,7 +75,9 @@ typedef struct {
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.1 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -74,7 +74,9 @@ typedef struct {
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -74,7 +74,9 @@ typedef unsigned int fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
|
||||
@ -72,7 +72,9 @@ typedef unsigned int fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.2 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/05/25 21:46:49 martynas Exp $ */
|
||||
/* $NetBSD: fenv.h,v 1.1.2.2 2011/02/08 16:19:41 bouyer Exp $ */
|
||||
|
||||
/*-
|
||||
@ -86,7 +86,9 @@ typedef unsigned long fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fenv.h,v 1.3 2011/04/28 17:34:23 martynas Exp $ */
|
||||
/* $OpenBSD: fenv.h,v 1.4 2011/05/25 21:46:49 martynas Exp $ */
|
||||
/* $NetBSD: fenv.h,v 1.1.2.2 2011/02/08 16:19:41 bouyer Exp $ */
|
||||
|
||||
/*-
|
||||
@ -86,7 +86,9 @@ typedef unsigned long fenv_t;
|
||||
* that manage the floating-point environment, namely fesetenv() and
|
||||
* feupdateenv().
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern fenv_t __fe_dfl_env;
|
||||
__END_DECLS
|
||||
#define FE_DFL_ENV ((const fenv_t *)&__fe_dfl_env)
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user