d_wcsxfrm=''
d_wctomb=''
d_writev=''
-default_inc_excludes_dot='undef'
+default_inc_excludes_dot=''
dlext=''
bin_ELF=''
cccdlflags=''
*) echo "No symbolic links, so not testing for their testing..." >&4
;;
esac
-echo " "
: Make symlinks util
case "$mksymlinks" in
$signal_t blech(int s) { bletched = 1; }
#endif
-int checkit($nvtype d, char *where) {
- unsigned char *p = (char *)&d;
+int checkit($nvtype d, const char *where) {
+ void *v = &d;
+ unsigned char *p = (unsigned char *)v;
unsigned char *end = p + sizeof(d);
int fail = 0;
if (!fail)
return 0;
- p = (char *)&d;
+ p = (unsigned char *)v;
printf("No - %s: 0x", where);
while (p < end)
printf ("%02X", *p++);
EOM
# When changing to exclude by default:
-#case "$default_inc_excludes_dot" in
-# $undef|false|[nN]*) dflt="n" ;;
-# *) dflt="y" ;;
-#esac
-# For now:
case "$default_inc_excludes_dot" in
- $define|true|[yY]*) dflt="y" ;;
- *) dflt="n" ;;
+ $undef|false|[nN]*) dflt="n" ;;
+ *) dflt="y" ;;
esac
+# To turn exclude off by default:
+#case "$default_inc_excludes_dot" in
+# $define|true|[yY]*) dflt="y" ;;
+# *) dflt="n" ;;
+#esac
rp='Exclude '.' from @INC by default? '
. ./myread
#define LONG_DOUBLEKIND $longdblkind
#endif
#$i_math I_MATH
+#$i_string I_STRING
#ifdef I_MATH
#include <math.h>
#endif
+#ifdef I_STRING
+# include <string.h>
+#endif
#include <stdio.h>
/* Note that whether the sign bit is on or off
* for NaN depends on the CPU/FPU, and possibly
* to even mention, causing immediate SIGFPE or equivalent: this is
* the case with VAX floating point, for example.
*/
-static void bytes(unsigned char *p, unsigned int n) {
+static void bytes(void *v, unsigned int n) {
+ unsigned char *p = (unsigned char *)v;
int i;
for (i = 0; i < n; i++) {
printf("0x%02x%s", p[i], i < n - 1 ? ", " : "\n");
;;
*) dtraceobject=$undef ;;
esac
- $rm -f try.c try.o perldtrace.o perldtrace.h
+ $rm_try perldtrace.o perldtrace.h
esac
: Determine if this is an EBCDIC system
return 4;
}
- buffer = malloc(size);
+ buffer = (char *)malloc(size);
if (!buffer) {
perror("malloc");
return 5;
return 2;
}
- buffer = malloc(size);
+ buffer = (char *)malloc(size);
if (!buffer) {
perror("malloc");
return 3;