Commit Graph

60 Commits

Author SHA1 Message Date
Dmitry Atamanov
9427724a71 Fix (#6093) 2017-07-17 08:09:54 +02:00
Andreas Rumpf
0915399b50 fixes a long standing string steams bug that caused lexbase to misbehave 2017-06-06 18:03:44 +02:00
Jacek Sieka
0d45c17388 disable StringStream for JS (needs copyMem) 2016-06-08 22:00:13 +08:00
Federico Ceratto
d9cb85c2d8 Spellcheck 2016-02-29 11:25:51 +00:00
Yuriy Glukhov
df211b24fd Dont convert string to cstring when writing to stream. 2016-01-21 11:41:52 +02:00
Radu Oana
4bba8e026a use const instead of let 2015-09-30 09:49:22 -04:00
Radu Oana
374b65289c Move magic numbers to const 2015-09-30 08:20:24 -04:00
Araq
985594cbb8 added streams.readAll proc 2015-09-29 19:30:43 +02:00
JamesP
ff9a3d39d7 add default file mode to newFileStream() 2015-09-26 08:18:42 +10:00
JamesP
eed1000252 add examples to top of module for stringStream and fileStream 2015-09-26 08:18:09 +10:00
patrick dw
1cdbd6b0a5 reworked deprecation to retain old procs 2015-06-19 18:50:01 -05:00
patrick dw
072688d06e Renamed writeln procs to writeLine 2015-06-18 23:49:46 -05:00
Federico Omoto
4618cb58c0 Allow to set position at end of stream 2015-06-09 22:25:31 -03:00
pdw
d18e18060e lib/pure/p-t - Dropped 'T' from types 2015-06-04 13:18:36 +02:00
Flaviu Tamas
d3fc943b6d Fix guard for streams tests 2015-05-25 18:13:20 -04:00
Sergey Avseyev
116347674c Fix peekLine() for streams
Motivation
----------
peekLine procs use defer to reset position in the stream, but it also
make them always return nil.

Modification
------------
Explicitly set result value in peekLine, and write missing unit test.

Result
------
Tests are green and bug is fixed
2015-05-26 00:29:58 +03:00
Sergey Avseyev
f516434283 Remove trailing spaces 2015-05-25 23:27:46 +03:00
apense
f610f8c5f0 Added defer statement
All peeks should be covered by defer now, I think
2015-05-24 18:36:52 -04:00
apense
d48bcb9873 Rewrote some peeking procedures
Use `defer`s and `read...` procs that are already in place. Someone should check that the `defer`s are written correctly. I'm new to using them.
2015-05-21 17:51:41 -04:00
apense
80b5e612c0 Update streams.nim 2015-05-04 08:49:41 -04:00
apense
9a629d72e8 Added peeking procedures to streams
Adds peeking to streams, which is just like reading, but at the end, the stream position hasn't changed.
2015-04-12 20:38:35 -04:00
Archs
758a883cc6 set the correct length for s.data when data truely increased 2015-03-04 00:28:18 +08:00
Archs
f9b2f9565c streams.ssWriteData: calling setLen only when new data truely increases the underlying string buffer 2015-03-01 00:33:40 +08:00
Federico Ceratto
c95f6f117a Fix typos 2015-02-15 16:06:06 +00:00
Araq
20774ad43c fixes the integer conversion regressions 2015-01-13 20:56:31 +01:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Araq
2f43fdb837 renamefest 2014-08-23 01:43:49 +02:00
Araq
e6d17e6273 made large parts of the stdlib gcsafe 2014-04-20 20:01:24 +02:00
Dominik Picheta
96c97d4103 JS: Fixes math and streams module and implements json. 2014-04-11 21:41:45 +01:00
Araq
73c6efdf66 'nil' as a statement is deprecated, use an empty 'discard' instead 2014-01-19 16:54:59 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Zahary Karadjov
a8e12afc76 test-runner for caas multi-step tests 2013-05-04 01:04:28 +03:00
Dominik Picheta
d26e488316 A file stream now makes sure to only close its file descriptor once. 2013-04-07 13:40:01 +01:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
1342798cc7 small cleanups 2013-02-19 23:32:32 +01:00
Zahary Karadjov
81a3585872 merged upstream master 2013-01-27 23:41:45 +02:00
Grzegorz Adam Hankiewicz
afff026dbd Adds hyperlink to system module to explain TFileMode type. 2012-12-11 23:08:09 +01:00
Zahary Karadjov
091c1b3075 caas is now drivable through stdin
* added idetools --eval
* streams.readLine recognises and applies the backspace character
2012-11-28 01:15:13 +02:00
Araq
3c0a6a8962 'assert' hides EAssertionFailsure; stdlib makes use of 'tags' 2012-11-18 01:36:20 +01:00
Dominik Picheta
2898cc7c0e Fixes bug in streams.ssSetPosition. 2012-08-18 21:42:24 +01:00
Araq
8d99753d63 preparations for making 'closure' the default calling convention for proc types 2012-07-16 23:00:57 +02:00
Araq
7cd2f353c7 preparations for marker procs generation 2012-03-19 22:11:19 +01:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
455994664e old 'readline' and 'endOfFile' not deprecated anymore; too convenient for 1 liners (see examples/maximum.nim) 2011-11-29 08:41:06 +01:00
Araq
e261a88d07 further steps to get rid of deprecated endOfFile and readLine 2011-11-29 01:24:58 +01:00
Araq
a489161b16 compiler uses new 'readLine' 2011-11-27 19:01:55 +01:00
Araq
8e1313d237 bugfix: tester compiles again 2011-11-26 17:48:42 +01:00
Araq
4b39ac5cbe deprecated endOfFile and readLine 2011-11-25 18:17:14 +01:00
Araq
40fa4bb52d better streams implemenation; fixes #63 2011-11-12 02:10:07 +01:00