hpi-swa / RSqueak

A Squeak/Smalltalk VM written in RPython.
BSD 3-Clause "New" or "Revised" License
84 stars 15 forks source link

Add file prim stubs and fix primitiveFileWrite #73

Closed matthias-springer closed 9 years ago

matthias-springer commented 9 years ago

primitiveFileWrite should support strings and word arrays. Also added primitives for truncating files and primitive for setting mac file type (stub only, no implementation).

timfel commented 9 years ago

This won't translate on windows (which is missing os.ftruncate), you have to guard this and do something else on that platform (I think we dealt with that issue in Topaz, you may be able to just copy the code)

timfel commented 9 years ago

Besides those minor comments, this can be merged

matthias-springer commented 9 years ago

Somebody have a clue why this is still failing on Travis? Works on my machine (OS X).

timfel commented 9 years ago

It's a pypy head issue - just don't update your pypy checkout for now ;)