7272 } \
7373} while (0)
7474
75- void attribute_hidden CoercionWarning (int warn )
75+ attribute_hidden void CoercionWarning (int warn )
7676{
7777/* FIXME: Use
7878 =====
@@ -88,29 +88,25 @@ void attribute_hidden CoercionWarning(int warn)
8888 warning (_ ("out-of-range values treated as 0 in coercion to raw" ));
8989}
9090
91- int attribute_hidden
92- LogicalFromInteger (int x , int * warn )
91+ attribute_hidden int LogicalFromInteger (int x , int * warn )
9392{
9493 return (x == NA_INTEGER ) ?
9594 NA_LOGICAL : (x != 0 );
9695}
9796
98- int attribute_hidden
99- LogicalFromReal (double x , int * warn )
97+ attribute_hidden int LogicalFromReal (double x , int * warn )
10098{
10199 return ISNAN (x ) ?
102100 NA_LOGICAL : (x != 0 );
103101}
104102
105- int attribute_hidden
106- LogicalFromComplex (Rcomplex x , int * warn )
103+ attribute_hidden int LogicalFromComplex (Rcomplex x , int * warn )
107104{
108105 return (ISNAN (x .r ) || ISNAN (x .i )) ?
109106 NA_LOGICAL : (x .r != 0 || x .i != 0 );
110107}
111108
112- int attribute_hidden
113- LogicalFromString (SEXP x , int * warn )
109+ attribute_hidden int LogicalFromString (SEXP x , int * warn )
114110{
115111 if (x != R_NaString ) {
116112 if (StringTrue (CHAR (x ))) return 1 ;
@@ -119,15 +115,13 @@ LogicalFromString(SEXP x, int *warn)
119115 return NA_LOGICAL ;
120116}
121117
122- int attribute_hidden
123- IntegerFromLogical (int x , int * warn )
118+ attribute_hidden int IntegerFromLogical (int x , int * warn )
124119{
125120 return (x == NA_LOGICAL ) ?
126121 NA_INTEGER : x ;
127122}
128123
129- int attribute_hidden
130- IntegerFromReal (double x , int * warn )
124+ attribute_hidden int IntegerFromReal (double x , int * warn )
131125{
132126 if (ISNAN (x ))
133127 return NA_INTEGER ;
@@ -138,8 +132,7 @@ IntegerFromReal(double x, int *warn)
138132 return (int ) x ;
139133}
140134
141- int attribute_hidden
142- IntegerFromComplex (Rcomplex x , int * warn )
135+ attribute_hidden int IntegerFromComplex (Rcomplex x , int * warn )
143136{
144137 if (ISNAN (x .r ) || ISNAN (x .i ))
145138 return NA_INTEGER ;
@@ -153,8 +146,7 @@ IntegerFromComplex(Rcomplex x, int *warn)
153146}
154147
155148
156- int attribute_hidden
157- IntegerFromString (SEXP x , int * warn )
149+ attribute_hidden int IntegerFromString (SEXP x , int * warn )
158150{
159151 if (x != R_NaString && !isBlankString (CHAR (x ))) { /* ASCII */
160152 char * endp ;
@@ -184,21 +176,18 @@ IntegerFromString(SEXP x, int *warn)
184176 return NA_INTEGER ;
185177}
186178
187- double attribute_hidden
188- RealFromLogical (int x , int * warn )
179+ attribute_hidden double RealFromLogical (int x , int * warn )
189180{
190181 return (x == NA_LOGICAL ) ?
191182 NA_REAL : x ;
192183}
193184
194- double attribute_hidden
195- RealFromInteger (int x , int * warn )
185+ attribute_hidden double RealFromInteger (int x , int * warn )
196186{
197187 return (x == NA_INTEGER ) ? NA_REAL : x ;
198188}
199189
200- double attribute_hidden
201- RealFromComplex (Rcomplex x , int * warn )
190+ attribute_hidden double RealFromComplex (Rcomplex x , int * warn )
202191{
203192 if (ISNAN (x .r ) || ISNAN (x .i ))
204193 return NA_REAL ;
@@ -207,8 +196,7 @@ RealFromComplex(Rcomplex x, int *warn)
207196 return x .r ;
208197}
209198
210- double attribute_hidden
211- RealFromString (SEXP x , int * warn )
199+ attribute_hidden double RealFromString (SEXP x , int * warn )
212200{
213201 double xdouble ;
214202 char * endp ;
@@ -226,8 +214,7 @@ RealFromString(SEXP x, int *warn)
226214 _Z_.r = NA_REAL; \
227215 _Z_.i = NA_REAL
228216
229- Rcomplex attribute_hidden
230- ComplexFromLogical (int x , int * warn )
217+ attribute_hidden Rcomplex ComplexFromLogical (int x , int * warn )
231218{
232219 Rcomplex z ;
233220 if (x == NA_LOGICAL ) {
@@ -245,8 +232,7 @@ ComplexFromLogical(int x, int *warn)
245232 return z ;
246233}
247234
248- Rcomplex attribute_hidden
249- ComplexFromInteger (int x , int * warn )
235+ attribute_hidden Rcomplex ComplexFromInteger (int x , int * warn )
250236{
251237 Rcomplex z ;
252238 if (x == NA_INTEGER ) {
@@ -264,8 +250,7 @@ ComplexFromInteger(int x, int *warn)
264250 return z ;
265251}
266252
267- Rcomplex attribute_hidden
268- ComplexFromReal (double x , int * warn )
253+ attribute_hidden Rcomplex ComplexFromReal (double x , int * warn )
269254{
270255 Rcomplex z ;
271256#ifdef NA_TO_COMPLEX_NA
@@ -282,8 +267,7 @@ ComplexFromReal(double x, int *warn)
282267 return z ;
283268}
284269
285- Rcomplex attribute_hidden
286- ComplexFromString (SEXP x , int * warn )
270+ attribute_hidden Rcomplex ComplexFromString (SEXP x , int * warn )
287271{
288272 const char * xx = CHAR (x ); /* ASCII */
289273 char * endp ;
0 commit comments