added Item$ = "__SmIC__="+FileName$ to COLUMNBOX ADD, add a filemode: r+ ( read/write )

This commit is contained in:
Jim
2015-05-05 21:04:32 -07:00
parent cd2a1ddb30
commit 83339084fe
13 changed files with 639 additions and 348 deletions

View File

@@ -707,7 +707,7 @@ void function(struct command *current,YabInterface* yab) /* performs a function
case fTELL:
i=(int)(a1->value);
if (badstream(i,0)) return;
if (!(stream_modes[i] & (smREAD | smWRITE))) {
if (!(stream_modes[i] & (smREAD | smWRITE| smREADWRITE))) {
sprintf(string,"stream %d not opened",i);
error(ERROR,string);
value=0;
@@ -1681,7 +1681,7 @@ static double peek(char *dest, YabInterface *yab) /* peek into internals */
static int peekfile(int stream) /* read a byte from stream */
{
if (stream && badstream(stream,0)) return 0;
if (stream && !(stream_modes[stream] & smREAD)) {
if (stream && !(stream_modes[stream] & smREAD | smREADWRITE)) {
sprintf(string,"stream %d not open for reading",stream);
error(ERROR,string);
return 0;