Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating: minor.

  • Loading branch information...
commit 9938e048eb6facab00179996763f24eb27fd4153 1 parent 55393e8
Hongwei Xi authored
View
3  .libfiles
@@ -358,11 +358,8 @@ libats/DATS/linset_listord.dats
** note that the flag __USE_MISC needs to be set in order to
** gain access to the type 'struct drand48_data'
*/
-/*
-// resulting errors on MACOSX
libats/SATS/linordset_randbst.sats -D_XOPEN_SOURCE -D_BSD_SOURCE
libats/DATS/linordset_randbst.dats -D_XOPEN_SOURCE -D_BSD_SOURCE
-*/
/* linear array-based queue implementation */
libats/SATS/linqueue_arr.sats
View
6 config.h.in
@@ -6,6 +6,12 @@
/* Define to 1 if you have the <curses.h> header file. */
#undef HAVE_CURSES_H
+/* Define to 1 if you have the `drand48_r' function. */
+#undef HAVE_DRAND48_R
+
+/* Define to 1 if you have the `erand48_r' function. */
+#undef HAVE_ERAND48_R
+
/* Define to 1 if you have the <gmp.h> header file. */
#undef HAVE_GMP_H
View
1  configure.ac
@@ -118,6 +118,7 @@ dnl = check for SIZEOF_VOIDP
AC_CHECK_SIZEOF(void*)
dnl = check for some functions
+AC_CHECK_FUNCS(drand48_r erand48_r)
AC_CHECK_FUNCS(posix_memalign memalign)
dnl = AH_TEMPLATE([HAVE_GCBDW],
View
8 doc/EXAMPLE/TEST/Makefile
@@ -337,10 +337,10 @@ cleanall:: ; $(RMF) libats_linqueue_lst
######
-# checkall:: libats_linordset_randbst
-# libats_linordset_randbst: libats_linordset_randbst.dats
-# $(ATSCC) -D_ATS_GCATS -O2 -o $@ $< && ./$@ 1000000
-# cleanall:: ; $(RMF) libats_linordset_randbst
+checkall:: libats_linordset_randbst
+libats_linordset_randbst: libats_linordset_randbst.dats
+ $(ATSCC) -D_ATS_GCATS -O2 -o $@ $< && ./$@ 1000000
+cleanall:: ; $(RMF) libats_linordset_randbst
######
View
4 libats/CATS/linordset_randbst.cats
@@ -59,6 +59,8 @@ typedef linordset_rngobj_struct *linordset_rngobj ;
/* ****** ****** */
+#ifdef HAVE_DRAND48_R
+
typedef struct {
linordset_rngobj_struct rng ;
struct drand48_data state ; // the state of RNG
@@ -106,6 +108,8 @@ atslib_linordset_rngobj_make_drand48 (
return (obj) ;
} // end of [linordset_rngobj_make_drand48]
+#endif // end of [HAVE_DRAND48_R]
+
/* ****** ****** */
#endif /* ATS_LIBATS_LINORDSET_RANDBST_CATS */
Please sign in to comment.
Something went wrong with that request. Please try again.