# HG changeset patch # User jwe # Date 1193753100 0 # Node ID 405cf85b435ccc2c3c3f894231fcf9beccd73ebe # Parent 525cd5f47ab6bdaeda51cfb2c8f80c619530070f [project @ 2007-10-30 14:04:59 by jwe] diff -r 525cd5f47ab6 -r 405cf85b435c scripts/ChangeLog --- a/scripts/ChangeLog Mon Oct 29 19:12:28 2007 +0000 +++ b/scripts/ChangeLog Tue Oct 30 14:05:00 2007 +0000 @@ -1,3 +1,8 @@ +2007-10-30 David Bateman + + * plot/__go_draw_axes__.m (do_linestyle_command): + Use point type 0 for ".". + 2007-10-26 John W. Eaton * image/imshow.m: Improve compatibility. diff -r 525cd5f47ab6 -r 405cf85b435c scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Mon Oct 29 19:12:28 2007 +0000 +++ b/scripts/plot/__go_draw_axes__.m Tue Oct 30 14:05:00 2007 +0000 @@ -1056,7 +1056,7 @@ case "*" pt = "3"; case "." - pt = "7"; + pt = "0"; case "x" pt = "2"; case {"square", "s"} diff -r 525cd5f47ab6 -r 405cf85b435c src/ChangeLog --- a/src/ChangeLog Mon Oct 29 19:12:28 2007 +0000 +++ b/src/ChangeLog Tue Oct 30 14:05:00 2007 +0000 @@ -1,3 +1,12 @@ +2007-10-30 John W. Eaton + + * file-io.cc (fopen_mode_to_ios_mode): Handle 'W' as 'w' and 'R' + as 'r', but warn about them. + +2007-10-29 Thomas Treichl + + * data.cc: Include sytime.h, sys/types.h, and sys/resource.h. + 2007-10-25 John W. Eaton * graphics.cc (figure::properties::set_currentaxes): diff -r 525cd5f47ab6 -r 405cf85b435c src/data.cc --- a/src/data.cc Mon Oct 29 19:12:28 2007 +0000 +++ b/src/data.cc Tue Oct 30 14:05:00 2007 +0000 @@ -25,6 +25,16 @@ #include #endif +#include "systime.h" + +#ifdef HAVE_SYS_TYPES_H +#include +#endif + +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + #include #include diff -r 525cd5f47ab6 -r 405cf85b435c src/file-io.cc --- a/src/file-io.cc Mon Oct 29 19:12:28 2007 +0000 +++ b/src/file-io.cc Tue Oct 30 14:05:00 2007 +0000 @@ -144,7 +144,27 @@ std::string mode = mode_arg; - size_t pos = mode.find ('z'); + // 'W' and 'R' are accepted as 'w' and 'r', but we warn about + // them because Matlab says they perform "automatic flushing" + // but we don't know precisely what action that implies. + + size_t pos = mode.find ('W'); + + if (pos != NPOS) + { + warning ("fopen: treating mode \"W\" as equivalent to \"w\""); + mode[pos] = 'w'; + } + + pos = mode.find ('R'); + + if (pos != NPOS) + { + warning ("fopen: treating mode \"R\" as equivalent to \"r\""); + mode[pos] = 'r'; + } + + pos = mode.find ('z'); if (pos != NPOS) {