diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-10-25 21:42:23 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-10-25 21:42:23 +0200 |
commit | a3d40d091d31ec54b85240209afddb0212de085c (patch) | |
tree | 80c42dda1d6cf13b92be548375c2d6f7ce79bcbb | |
parent | 3a149467427d21fcd2aebf523fb44b12bbe1d010 (diff) | |
download | egawk-a3d40d091d31ec54b85240209afddb0212de085c.tar.gz egawk-a3d40d091d31ec54b85240209afddb0212de085c.tar.bz2 egawk-a3d40d091d31ec54b85240209afddb0212de085c.zip |
VMS fixes for compilation and test suite addition.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | builtin.c | 2 | ||||
-rw-r--r-- | vms/ChangeLog | 5 | ||||
-rw-r--r-- | vms/vmstest.com | 7 |
4 files changed, 14 insertions, 2 deletions
@@ -2,6 +2,8 @@ * Makefile.am (dist-hook): Use `cd $(srcdir)/pc' so that `make distcheck' works completely. + * builtin.c (do_strftime): Add cast to long int in check + for fclock < 0 for systems where time_t is unsigned (e.g., VMS). 2011-10-25 Stefano Lattarini <stefano.lattarini@gmail.com> @@ -1677,7 +1677,7 @@ do_strftime(int nargs) if (do_lint && (t2->flags & (NUMCUR|NUMBER)) == 0) lintwarn(_("strftime: received non-numeric second argument")); fclock = (time_t) force_number(t2); - if (fclock < 0) + if (((long int) fclock) < 0) fatal(_("strftime: second argument less than 0 or too big for time_t")); DEREF(t2); } diff --git a/vms/ChangeLog b/vms/ChangeLog index 9fe0f0f0..88a4bf88 100644 --- a/vms/ChangeLog +++ b/vms/ChangeLog @@ -1,3 +1,8 @@ +2011-10-25 Anders Wallin <anders_s_wallin@yahoo.se> + + * vmstest.com (posix2008sub): Added as specific test in order to + use --posix option. + 2011-06-24 Arnold D. Robbins <arnold@skeeve.com> * vmsbuild.com (REL, PATCHLVL): Move to 4.0.0. diff --git a/vms/vmstest.com b/vms/vmstest.com index 0ca3e0f1..d4d3d8a9 100644 --- a/vms/vmstest.com +++ b/vms/vmstest.com @@ -312,7 +312,6 @@ $ofmta: $paramtyp: $patsplit: $pcntplus: -$posix2008sub: $printf1: $procinfs: $prt1eval: @@ -1078,6 +1077,12 @@ $ igncascmp space.ok _space.tmp $ if $status then rm _space.tmp; $ return $ +$posix2008sub: echo "posix2008sub" +$ gawk --posix -f posix2008sub.awk >_posix2008sub.tmp +$ cmp posix2008sub.ok _posix2008sub.tmp +$ if $status then rm _posix2008sub.tmp; +$ return +$ $printf0: echo "printf0" $ gawk --posix -f printf0.awk >_printf0.tmp $ cmp printf0.ok _printf0.tmp |