Skip to content

Commit d5ad367

Browse files
author
andreas
committed
Merging support files from cogvm branch.
git-svn-id: http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins@2411 fa1542d4-bde8-0310-ad64-8ed1123d492a
1 parent 931be74 commit d5ad367

File tree

2 files changed

+157
-65
lines changed

2 files changed

+157
-65
lines changed

FilePlugin/FilePlugin.h

+9-5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* EMAIL:
99
* RCSID: $Id$
1010
*
11+
* 2009-05-15 EEM add stdio flag; reorder SQFile to make it more compact
1112
* 2005-03-26 IKP fix unaligned accesses to file member
1213
* 2004-06-10 IKP 64-bit cleanliness
1314
* 01/22/2002 JMM change off_t to squeakOffsetFileType
@@ -18,11 +19,13 @@
1819

1920
/* squeak file record; see sqFilePrims.c for details */
2021
typedef struct {
21-
int sessionID; /* ikp: must be first */
22-
void *file;
23-
int writable;
24-
squeakFileOffsetType fileSize;
25-
int lastOp; /* 0 = uncommitted, 1 = read, 2 = write */
22+
int sessionID; /* ikp: must be first */
23+
void *file;
24+
squeakFileOffsetType fileSize; /* 64-bits we hope. */
25+
char writable;
26+
char lastOp; /* 0 = uncommitted, 1 = read, 2 = write */
27+
char lastChar;
28+
char isStdioStream;
2629
} SQFile;
2730

2831
/* file i/o */
@@ -43,6 +46,7 @@ size_t sqFileWriteFromAt(SQFile *f, size_t count, char* byteArrayIndex, size_t
4346
sqInt sqFileFlush(SQFile *f);
4447
sqInt sqFileTruncate(SQFile *f,squeakFileOffsetType offset);
4548
sqInt sqFileThisSession(void);
49+
sqInt sqFileStdioHandlesInto(SQFile files[3]);
4650

4751
/* directories */
4852

0 commit comments

Comments
 (0)