Skip to content

Commit 557d58d

Browse files
author
ripley
committed
attrinute before value
git-svn-id: https://svn.r-project.org/R/trunk@87903 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 2b1057a commit 557d58d

File tree

17 files changed

+50
-50
lines changed

17 files changed

+50
-50
lines changed

src/include/R_ext/stats_package.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* R : A Computer Language for Statistical Data Analysis
3-
* Copyright (C) 2007--2024 The R Core Team.
3+
* Copyright (C) 2007--2025 The R Core Team.
44
*
55
* This header file is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -49,20 +49,20 @@ enum IVPos {AI = 90, AM = 94, ALGSAV = 50, COVMAT = 25,
4949
STATPR = 22, TOOBIG = 1, VNEED = 3, VSAVE = 59,
5050
X0PRT = 23};
5151

52-
void attribute_hidden
52+
attribute_hidden void
5353
S_Rf_divset(int alg, int iv[], int liv, int lv, double v[]);
5454

55-
void attribute_hidden
55+
attribute_hidden
5656
S_nlsb_iterate(double b[], double d[], double dr[], int iv[],
5757
int liv, int lv, int n, int nd, int p,
5858
double r[], double rd[], double v[], double x[]);
5959

60-
void attribute_hidden
60+
attribute_hidden void
6161
S_nlminb_iterate(double b[], double d[], double fx, double g[],
6262
double h[], int iv[], int liv, int lv, int n,
6363
double v[], double x[]);
6464

65-
void attribute_hidden
65+
attribute_hidden void
6666
S_rcont2(int nrow, int ncol, const int nrowt[], const int ncolt[],
6767
int ntotal, const double fact[],
6868
int jwork[], int matrix[]);

src/include/R_ext/stats_stubs.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* R : A Computer Language for Statistical Data Analysis
3-
* Copyright (C) 2007--2024 The R Core Team.
3+
* Copyright (C) 2007--2025 The R Core Team.
44
*
55
* This header file is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -34,7 +34,7 @@
3434
# define attribute_hidden
3535
#endif
3636

37-
void attribute_hidden
37+
attribute_hidden void
3838
S_Rf_divset(int alg, int iv[], int liv, int lv, double v[])
3939
{
4040
static void(*fun)(int,int[],int,int,double[]) = NULL;
@@ -44,7 +44,7 @@ S_Rf_divset(int alg, int iv[], int liv, int lv, double v[])
4444
fun(alg, iv, liv, lv, v);
4545
}
4646

47-
void attribute_hidden
47+
attribute_hidden void
4848
S_nlminb_iterate(double b[], double d[], double fx, double g[], double h[],
4949
int iv[], int liv, int lv, int n, double v[], double x[])
5050
{
@@ -57,7 +57,7 @@ S_nlminb_iterate(double b[], double d[], double fx, double g[], double h[],
5757
fun(b, d, fx, g, h, iv, liv, lv, n, v, x);
5858
}
5959

60-
void attribute_hidden
60+
attribute_hidden void
6161
S_nlsb_iterate(double b[], double d[], double dr[], int iv[], int liv,
6262
int lv, int n, int nd, int p, double r[], double rd[],
6363
double v[], double x[])
@@ -73,7 +73,7 @@ S_nlsb_iterate(double b[], double d[], double dr[], int iv[], int liv,
7373
fun(b, d, dr, iv, liv, lv, n, nd, p, r, rd, v, x);
7474
}
7575

76-
void attribute_hidden
76+
attribute_hidden void
7777
S_rcont2(int nrow, int ncol, const int nrowt[], const int ncolt[],
7878
int ntotal, const double fact[],
7979
int jwork[], int matrix[])

src/main/envir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4554,7 +4554,7 @@ attribute_hidden SEXP do_topenv(SEXP call, SEXP op, SEXP args, SEXP rho) {
45544554
return topenv(target, envir);
45554555
}
45564556

4557-
Rboolean attribute_hidden isUnmodifiedSpecSym(SEXP sym, SEXP env) {
4557+
attribute_hidden Rboolean isUnmodifiedSpecSym(SEXP sym, SEXP env) {
45584558
if (!IS_SPECIAL_SYMBOL(sym))
45594559
return FALSE;
45604560
for(;env != R_EmptyEnv; env = ENCLOS(env))

src/main/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ attribute_hidden SEXP do_Rhome(SEXP call, SEXP op, SEXP args, SEXP rho)
17331733
}
17341734

17351735
#ifdef Win32
1736-
static bool /*attribute_hidden*/ R_WFileExists(const wchar_t *path)
1736+
static /*attribute_hidden*/ bool R_WFileExists(const wchar_t *path)
17371737
{
17381738
struct _stati64 sb;
17391739
return _wstati64(path, &sb) == 0;

src/modules/internet/libcurl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* R : A Computer Language for Statistical Data Analysis
3-
* Copyright (C) 2015-2024 The R Core Team
3+
* Copyright (C) 2015-2025 The R Core Team
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -95,7 +95,7 @@ R_curl_multi_wait(CURLM *multi_handle,
9595
}
9696
#endif
9797

98-
SEXP attribute_hidden in_do_curlVersion(SEXP call, SEXP op, SEXP args, SEXP rho)
98+
attribute_hidden SEXP in_do_curlVersion(SEXP call, SEXP op, SEXP args, SEXP rho)
9999
{
100100
checkArity(op, args);
101101
SEXP ans = PROTECT(allocVector(STRSXP, 1));
@@ -349,7 +349,7 @@ static void handle_cleanup(void *data)
349349
curl_easy_cleanup(hnd);
350350
}
351351

352-
SEXP attribute_hidden
352+
attribute_hidden SEXP
353353
in_do_curlGetHeaders(SEXP call, SEXP op, SEXP args, SEXP rho)
354354
{
355355
checkArity(op, args);
@@ -847,7 +847,7 @@ static void download_close_finished(download_cleanup_info *c)
847847

848848
/* download(url, destfile, quiet, mode, headers, cacheOK) */
849849

850-
SEXP attribute_hidden
850+
attribute_hidden SEXP
851851
in_do_curlDownload(SEXP call, SEXP op, SEXP args, SEXP rho)
852852
{
853853
checkArity(op, args);

src/nmath/bd0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646
#include "nmath.h"
4747

48-
double attribute_hidden bd0(double x, double np)
48+
attribute_hidden double bd0(double x, double np)
4949
{
5050
if(!R_FINITE(x) || !R_FINITE(np) || np == 0.0) ML_WARN_return_NAN;
5151

@@ -227,7 +227,7 @@ static const float bd0_scale[128 + 1][4] = {
227227
*
228228
* Deliver the result back in two parts, *yh and *yl.
229229
*/
230-
void attribute_hidden ebd0(double x, double M, double *yh, double *yl)
230+
attribute_hidden void ebd0(double x, double M, double *yh, double *yl)
231231
{
232232
const int Sb = 10;
233233
const double S = 1u << Sb; // = 2^10 = 1024

src/nmath/chebyshev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
/* NaNs propagated correctly */
4646

4747

48-
int attribute_hidden chebyshev_init(double *dos, int nos, double eta)
48+
attribute_hidden int chebyshev_init(double *dos, int nos, double eta)
4949
{
5050
int i, ii;
5151
double err;
@@ -66,7 +66,7 @@ int attribute_hidden chebyshev_init(double *dos, int nos, double eta)
6666
}
6767

6868

69-
double attribute_hidden chebyshev_eval(double x, const double *a, const int n)
69+
attribute_hidden double chebyshev_eval(double x, const double *a, const int n)
7070
{
7171
double b0, b1, b2, twox;
7272
int i;

src/nmath/choose.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Mathlib : A C Library of Special Functions
3-
* Copyright (C) 2004-2024 The R Foundation
3+
* Copyright (C) 2004-2025 The R Foundation
44
* Copyright (C) 1998 Ross Ihaka
55
*
66
* This program is free software; you can redistribute it and/or modify
@@ -46,7 +46,7 @@
4646
void R_CheckStack(void);
4747
#endif
4848

49-
double attribute_hidden lfastchoose(double n, double k)
49+
attribute_hidden double lfastchoose(double n, double k)
5050
{
5151
return -log(n + 1.) - lbeta(n - k + 1., k + 1.);
5252
}

src/nmath/gamma_cody.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "nmath.h"
1111

12-
double attribute_hidden Rf_gamma_cody(double x)
12+
attribute_hidden double Rf_gamma_cody(double x)
1313
{
1414
/* ----------------------------------------------------------------------
1515

src/nmath/gammalims.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Mathlib : A C Library of Special Functions
33
* Copyright (C) 1998 Ross Ihaka
4-
* Copyright (C) 1999-2000 The R Core Team
4+
* Copyright (C) 1999-2025 The R Core Team
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -36,7 +36,7 @@
3636

3737
#include "nmath.h"
3838

39-
void attribute_hidden gammalims(double *xmin, double *xmax)
39+
attribute_hidden void gammalims(double *xmin, double *xmax)
4040
{
4141
/* FIXME: Even better: If IEEE, #define these in nmath.h
4242
and don't call gammalims() at all

0 commit comments

Comments
 (0)