Changed paths:
M src/external/calcalcs/calcalcs.c
M src/external/calcalcs/calcalcs.h
Log Message:
-----------
Fix a bug in CalCalcs
"errno" in errno.h (part of the C99 standard) may be defined as a macro (appears to be the
case in the GNU C library), so CalCalcs' use of "errno" as a variable name is a bad idea.
Log Message:
-----------
Fix a bug in pism::increment_date() and add more sanity checks
- Disallow negative years with calendars other than 360_day and 365_day. "Real-life"
calendars do not have a year zero (year jumps from -1 to 1) and handling this properly
would require writing more code we don't really need.
- Stop if the run length is negative (-ys A -ye B with A > B or -y C with C < 0).