Skip to content

Commit

Permalink
Add arguments to function prototypes.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@85673 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Dec 13, 2023
1 parent c6201d0 commit bb93fbe
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
40 changes: 20 additions & 20 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -9705,7 +9705,7 @@ cat << \EOF > conftest.mm
@end

int
main ()
main (void)
{
std::cout << "Hello from C++\n";
Greeter *obj = [Greeter new];
Expand Down Expand Up @@ -9743,7 +9743,7 @@ cat << \EOF > conftest.mm
@end

int
main ()
main (void)
{
std::cout << "Hello from C++\n";
Greeter *obj = [Greeter new];
Expand Down Expand Up @@ -9776,7 +9776,7 @@ cat << \EOF > conftest.mm
@end

int
main ()
main (void)
{
std::cout << "Hello from C++\n";
Greeter *obj = [Greeter new];
Expand Down Expand Up @@ -26181,8 +26181,8 @@ for ac_kw in inline __inline__ __inline; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
static $ac_kw int static_foo (void) {return 0; }
$ac_kw int foo (void) {return 0; }
#endif

_ACEOF
Expand Down Expand Up @@ -27873,7 +27873,7 @@ cat > conftest.c <<EOF
#else
# define F77_SYMBOL(x) x
#endif
int main () {
int main (void) {
exit(0);
}
EOF
Expand Down Expand Up @@ -27949,7 +27949,7 @@ cat > conftest.c <<EOF

extern void F77_SYMBOL(cftest)(int *a, int *b, double *x, double *y);

int main () {
int main (void) {
int a[3] = {17, 237, 2000000000}, b[2], res = 0;
double x[3] = {3.14159265, 123.456789, 2.3e34}, z[3];
double eps = 1e-6;
Expand Down Expand Up @@ -28047,7 +28047,7 @@ typedef union {

extern void F77_SYMBOL(cftest)(Rcomplex *x);

int main () {
int main (void) {
Rcomplex z[3];

z[0].r = 3.14159265;
Expand Down Expand Up @@ -45356,7 +45356,7 @@ else $as_nop
/* end confdefs.h. */

#include <stdlib.h>
int main () {
int main (void) {
int *p = calloc(0, sizeof(int));
exit(p == 0);
}
Expand Down Expand Up @@ -45398,7 +45398,7 @@ else $as_nop
#include <math.h>
#include <stdlib.h>
#include "confdefs.h"
int main () {
int main (void) {
#ifdef HAVE_DECL_ISFINITE
exit(isfinite(1./0.) | isfinite(0./0.) | isfinite(-1./0.));
#else
Expand Down Expand Up @@ -45446,7 +45446,7 @@ else $as_nop
#include <math.h>
#include <stdlib.h>
#include "confdefs.h"
int main () {
int main (void) {
#ifdef HAVE_LOG1P
int k;
double d;
Expand Down Expand Up @@ -45566,7 +45566,7 @@ else $as_nop
#include "confdefs.h"
#include <stdlib.h>
#include <signal.h>
int main ()
int main (void)
{
struct sigaction sa;
siginfo_t si, *ip;
Expand Down Expand Up @@ -46184,7 +46184,7 @@ else $as_nop
#include <complex.h>
#include <stdlib.h>
#include "confdefs.h"
int main () {
int main (void) {
#ifdef HAVE_CTANH
volatile double complex z1 = 0;
volatile double complex z2 = 365;
Expand Down Expand Up @@ -47053,7 +47053,7 @@ cat > conftest.c <<EOF
#endif
extern void F77_SYMBOL(test1)(int *iflag);

int main () {
int main (void) {
int iflag;
F77_SYMBOL(test1)(&iflag);
exit(iflag);
Expand Down Expand Up @@ -47280,7 +47280,7 @@ void blas_set () {
F77_SYMBOL(ztrsv)();
#endif
}
int main ()
int main (void)
{
exit(0);
}
Expand Down Expand Up @@ -48075,7 +48075,7 @@ else $as_nop
#include <iconv.h>
#endif

int main () {
int main (void) {
iconv_t cd;
cd = iconv_open("latin1","UTF-8");
if(cd == (iconv_t)(-1)) exit(1);
Expand Down Expand Up @@ -48169,7 +48169,7 @@ else $as_nop
#include <iconv.h>
#endif

int main () {
int main (void) {
iconv_t cd;
cd = iconv_open("CP1252","UTF-8");
if(cd == (iconv_t)(-1)) exit(1);
Expand Down Expand Up @@ -48755,7 +48755,7 @@ else $as_nop

#include <stdlib.h>

int main () {
int main (void) {
UErrorCode status = U_ZERO_ERROR;
UCollator *collator;
UCharIterator aIter;
Expand Down Expand Up @@ -53108,7 +53108,7 @@ else $as_nop
#include <stdio.h>
#include "confdefs.h"

int main () {
int main (void) {
struct tm *tm;
time_t ct = 0; /* required on 64bit AIX */

Expand Down Expand Up @@ -53705,7 +53705,7 @@ else $as_nop
#include <sys/types.h>
#include <sys/sysctl.h>

int main () {
int main (void) {
int nm[2] = {CTL_KERN, KERN_USRSTACK};
void * base;
size_t len = sizeof(void *);
Expand Down
36 changes: 18 additions & 18 deletions m4/R.m4
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ AC_CACHE_CHECK([for inline], r_cv_c_inline,
for ac_kw in inline __inline__ __inline; do
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
[#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
$ac_kw int foo () {return 0; }
static $ac_kw int static_foo (void) {return 0; }
$ac_kw int foo (void) {return 0; }
#endif
])],
[r_cv_c_inline=$ac_kw; break])
Expand Down Expand Up @@ -854,7 +854,7 @@ dnl Yes we need to double quote this ...
#else
# define F77_SYMBOL(x) x
#endif
int main () {
int main (void) {
exit(0);
}
EOF]
Expand Down Expand Up @@ -927,7 +927,7 @@ dnl Yes we need to double quote this ...
extern void F77_SYMBOL(cftest)(int *a, int *b, double *x, double *y);
int main () {
int main (void) {
int a[3] = {17, 237, 2000000000}, b[2], res = 0;
double x[3] = {3.14159265, 123.456789, 2.3e34}, z[3];
double eps = 1e-6;
Expand Down Expand Up @@ -1022,7 +1022,7 @@ typedef union {
extern void F77_SYMBOL(cftest)(Rcomplex *x);
int main () {
int main (void) {
Rcomplex z[3];
z[0].r = 3.14159265;
Expand Down Expand Up @@ -1372,7 +1372,7 @@ cat << \EOF > conftest.mm
@end
int
main ()
main (void)
{
std::cout << "Hello from C++\n";
Greeter *obj = @<:@Greeter new@:>@;
Expand Down Expand Up @@ -1435,7 +1435,7 @@ AC_DEFUN([R_FUNC_CALLOC],
[AC_CACHE_CHECK([for working calloc], [r_cv_func_calloc_works],
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdlib.h>
int main () {
int main (void) {
int *p = calloc(0, sizeof(int));
exit(p == 0);
}
Expand All @@ -1458,7 +1458,7 @@ AC_DEFUN([R_FUNC_ISFINITE],
#include <math.h>
#include <stdlib.h>
#include "confdefs.h"
int main () {
int main (void) {
#ifdef HAVE_DECL_ISFINITE
exit(isfinite(1./0.) | isfinite(0./0.) | isfinite(-1./0.));
#else
Expand Down Expand Up @@ -1487,7 +1487,7 @@ AC_DEFUN([R_FUNC_LOG1P],
#include <math.h>
#include <stdlib.h>
#include "confdefs.h"
int main () {
int main (void) {
#ifdef HAVE_LOG1P
int k;
double d;
Expand Down Expand Up @@ -2803,7 +2803,7 @@ dnl Yes we need to double quote this ...
#endif
extern void F77_SYMBOL(test1)(int *iflag);
int main () {
int main (void) {
int iflag;
F77_SYMBOL(test1)(&iflag);
exit(iflag);
Expand Down Expand Up @@ -3021,7 +3021,7 @@ void blas_set () {
F77_SYMBOL(ztrsv)();
#endif
}
int main ()
int main (void)
{
exit(0);
}
Expand Down Expand Up @@ -3742,7 +3742,7 @@ AC_DEFUN([R_SYS_POSIX_LEAPSECONDS],
#include <stdio.h>
#include "confdefs.h"
int main () {
int main (void) {
struct tm *tm;
time_t ct = 0; /* required on 64bit AIX */
Expand Down Expand Up @@ -3871,7 +3871,7 @@ if test "$ac_cv_func_iconv" != no; then
#include <iconv.h>
#endif
int main () {
int main (void) {
iconv_t cd;
cd = iconv_open("latin1","UTF-8");
if(cd == (iconv_t)(-1)) exit(1);
Expand Down Expand Up @@ -3942,7 +3942,7 @@ int main () {
#include <iconv.h>
#endif
int main () {
int main (void) {
iconv_t cd;
cd = iconv_open("CP1252","UTF-8");
if(cd == (iconv_t)(-1)) exit(1);
Expand Down Expand Up @@ -4228,7 +4228,7 @@ AC_DEFUN([R_KERN_USRSTACK],
#include <sys/types.h>
#include <sys/sysctl.h>
int main () {
int main (void) {
int nm[2] = {CTL_KERN, KERN_USRSTACK};
void * base;
size_t len = sizeof(void *);
Expand Down Expand Up @@ -4320,7 +4320,7 @@ AC_DEFUN([R_FUNC_SIGACTION],
#include "confdefs.h"
#include <stdlib.h>
#include <signal.h>
int main ()
int main (void)
{
struct sigaction sa;
siginfo_t si, *ip;
Expand Down Expand Up @@ -4420,7 +4420,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdlib.h>
int main () {
int main (void) {
UErrorCode status = U_ZERO_ERROR;
UCollator *collator;
UCharIterator aIter;
Expand Down Expand Up @@ -5014,7 +5014,7 @@ AC_DEFUN([R_FUNC_CTANH],
#include <complex.h>
#include <stdlib.h>
#include "confdefs.h"
int main () {
int main (void) {
#ifdef HAVE_CTANH
volatile double complex z1 = 0;
volatile double complex z2 = 365;
Expand Down

0 comments on commit bb93fbe

Please sign in to comment.