Reimer Behrends
7dd263f506
Fix readLine handling of long lines.
2015-08-28 17:21:03 +02:00
Andreas Rumpf
f091ce258e
Merge pull request #3239 from xyz32/devel
...
When reading files, check if the eof flag is set before throwing.
2015-08-25 22:22:32 +02:00
xyz
1def8ec9f9
remove fileError
2015-08-25 06:48:58 -04:00
Araq
e703afdb3b
fixes sysio regression for nimscript support
2015-08-24 18:01:40 +02:00
xyz
88247e6857
Append the readAllBuffer to what was read already
2015-08-23 18:54:15 -04:00
xyz
385a883e14
Use seLen as sugested, and fix typos
2015-08-23 18:29:38 -04:00
xyz
dc6c0559e9
When reading files, check if the eof flag is set before throwing.
2015-08-22 10:59:20 -04:00
Andreas Rumpf
2733c508ef
Merge pull request #3143 from def-/readline-faster
...
Improve performance of readLine by using fgets
2015-08-21 21:30:27 +02:00
Araq
69b32637b1
implements experimental new config system based on NimScript
2015-08-16 13:41:30 +02:00
def
a9b299b4ed
Improve readLine to work with strings containing \0 again.
...
This decreases performance slightly.
2015-07-25 20:25:58 +02:00
def
401189c3fe
No need to set trailing \0
2015-07-24 01:13:52 +02:00
def
3943fba34b
Improve performance of readLine by using fgets
...
This drops compatibility with pure CR line endings of old Mac systems
2015-07-24 00:31:35 +02: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
Araq
8ddb58aecc
fixes bootstrapping on windows
2015-04-10 14:17:07 +02:00
Andreas Rumpf
6e6c6446a4
Merge pull request #2329 from def-/readline
...
Speed up readLine by using getc_unlocked
2015-04-10 14:02:22 +02:00
def
22b4e4c2f2
Use more Natural and Positive numbers in proc parameters
...
- Didn't go through all modules, only the main ones I thought of
- Building the compiler and tests still work
2015-04-06 02:24:17 +02:00
def
ef9a3b4d3b
Speed up readLine by using getc_unlocked
...
- Only on POSIX and Windows (_fgetc_nolock here) systems
- File is locked to our thread before and unlocked after readLine
- About 3 times faster in some simple tests
2015-03-12 22:46:18 +01:00
def
aa7e7ee270
Make readFile work with FIFO files
2015-03-12 21:17:39 +01:00
Hans Raaf
79ad73574c
Fix for readAll(stdin) problem on OS X and better anyway.
2015-03-01 03:35:20 +01:00
Araq
f4a0400de2
fixes #2199 , fixes #2197
2015-02-24 19:19:08 +01:00
def
ecfaab68f1
Make readBytes and writeBytes work with uint8
...
So far only openarray[int8] worked. Now it's openarray[int8|uint8]. This
should make sense, since uint8 is comfortable to represent a byte
(0-255) and there is already type byte* = uint8 in system.
2015-02-18 21:13:01 +01:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Araq
e84834db79
lots of C++ codegen improvements
2015-02-07 10:48:07 +01:00
Araq
05f09fafcf
fixed 'system.open' bug
2014-09-14 11:27:14 +02:00
Araq
fc0fda14ae
system files use new identifiers
2014-08-23 00:58:04 +02:00
Reimer Behrends
ce773b70a7
Fixed readAllBuffer() to avoid adding garbage bytes at end.
...
The function readAllBuffer() always returned a string that was a
multiple of the BufSize in length, regardless of how many bytes were
actually read, padding the result with garbage bytes on the last chunk.
This fix properly trims the last chunk to its actual size.
2014-05-26 14:29:55 +02:00
Araq
a4ccd7b865
doc generation for asyncdispatch works
2014-04-06 19:36:29 +02:00
Araq
438703f59e
case consistency: next steps
2013-12-29 01:13:51 +01:00
Araq
1101a40f91
improvements for 'pretty'
2013-12-28 23:30:53 +01:00
Araq
92b8fac94a
case consistency part 4
2013-12-27 23:10:36 +01:00
Araq
9e92455a53
templates can access hidden fields
2013-12-25 14:53:00 +01:00
Araq
4d01408a46
bootstraps with new template symbol binding rules
2013-12-24 16:42:24 +01:00
Araq
feb9af48f1
NoFakeVars progress
2013-12-24 00:21:22 +01:00
Araq
32ef1f8f32
vm: FFI improvements
2013-12-23 20:12:13 +01:00
Araq
9145bcfbb6
new VM: some progress for the FFI support
2013-12-23 01:17:48 +01:00
Araq
7056ceda67
float64 is now an alias to 'float'; fixes #545
2013-08-30 12:24:54 +02:00
Araq
1a5e30b053
made some tests green
2013-06-30 21:55:05 +02:00
Araq
52851b722d
--os:standalone works again
2013-06-30 21:15:28 +02:00
Araq
baf89e3d66
GC'ed wide strings for windows
2013-05-20 02:17:24 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28
Removes executable bit for text files.
2013-03-16 23:53:07 +01:00
Araq
cbf82cad7d
made some tests green
2013-03-04 18:50:08 +01:00
Araq
3c73654aca
Copyright 2012 -> 2013
2013-01-08 07:54:23 +01:00
Araq
3c0a6a8962
'assert' hides EAssertionFailsure; stdlib makes use of 'tags'
2012-11-18 01:36:20 +01:00
Araq
75abf72503
profiler improvements
2012-09-17 00:31:41 +02:00
Araq
af7c92c003
term rewriting macros fully implemented; still buggy
2012-09-03 00:55:44 +02:00
Araq
0171566c98
openarray/varargs split; breaks bootstrapping
2012-08-16 08:34:33 +02:00
Araq
ed915a309e
DLLs should work again; fixes #169
2012-07-24 01:14:21 +02:00
Araq
4fbba0a65a
changed integer promotion rules; breaks bootstrapping and lots of code
2012-07-08 21:03:47 +02:00
Araq
36247e0947
added devel/logging; weakrefs test; next steps for proper unsigned support
2012-07-05 00:03:33 +02:00