Commit Graph

5052 Commits

Author SHA1 Message Date
Andreas Rumpf
18690d4a61 speed up json core module 2016-11-21 13:54:16 +01:00
Andreas Rumpf
02a2180a6a first version of the new memory tracking feature 2016-11-21 12:10:44 +01:00
Dominik Picheta
53f5f26c66 Merge pull request #5037 from FedericoCeratto/patch-18
Add [un]marshalling examples
2016-11-19 20:40:35 +01:00
Dominik Picheta
beb44ef13d Async: Refactors asyncdispatch.poll. 2016-11-19 20:21:52 +01:00
Dominik Picheta
ffbe7382f8 Async: Fixes problem when callbacks add other callbacks.
For context, see http://irclogs.nim-lang.org/19-11-2016.html#19:08:51
2016-11-19 20:16:15 +01:00
Dominik Picheta
d847d35009 Async: Further callbacks will no longer be called after an EAGAIN.
For context, see discussion here https://gitter.im/nim-lang/Nim?at=583090a2df9f0f6e7f576e43 or here http://irclogs.nim-lang.org/19-11-2016.html#17:30:59.
2016-11-19 20:06:23 +01:00
Federico Ceratto
0ce459ac53 Add marshal format warning 2016-11-19 18:52:28 +00:00
Federico Ceratto
80744fe4f7 Add [un]marshalling examples 2016-11-19 16:55:47 +00:00
Felix Krause
93a998204c Fixes #5035 2016-11-18 23:42:15 +01:00
David Krause
5058ae1ba5 fixed typo 2016-11-17 16:47:36 +01:00
Andreas Rumpf
c629d6fef1 Merge pull request #5024 from flyx/timesimprovement
Improvements to times.nim
2016-11-15 09:32:48 +01:00
Andreas Rumpf
ff628e242f Merge pull request #5027 from nigredo-tori/descriptor-logger
Add newFileLogger overload accepting file descriptor
2016-11-15 09:29:29 +01:00
Dmitry Polienko
c62c38ca46 Use default colors for test and suite names 2016-11-15 13:43:39 +07:00
Dmitry Polienko
2c46fdd0ab Add newFileLogger overload accepting file descriptor 2016-11-15 12:13:05 +07:00
Felix Krause
0ffd14e169 Updated times.parse() documentation 2016-11-14 19:18:23 +01:00
Felix Krause
434c27343e Parse 'Z' as valid timezone if offset is expected 2016-11-14 18:46:35 +01:00
Dominik Picheta
52f20abf22 Merge pull request #5023 from nigredo-tori/fix-5022
Fix asyncfile in Windows Server 2003
2016-11-14 18:45:48 +01:00
Felix Krause
0587a57807 Assume local DST iff no timezone is given 2016-11-14 18:36:03 +01:00
Felix Krause
aa08c32c2b Improved -; fixed tests
* added prefix `-` operator for TimeInterval
 * improved `-` for both TimeInterval and TimeInfo
 * Fixed a DST test
2016-11-14 18:28:55 +01:00
Felix Krause
544a2cfe1a Fixed daylight saving time
* When formatting timezone, substract 1 hour from timezone when isDST
 * Do not depend DST in current timezone when parsing arbitrary date
   because formatted timestamps are never in DST.
 * On the way, removed an unnecessary line in parsing code which could
   cause bugs.
 * Added DST tests
2016-11-14 18:28:55 +01:00
Dmitry Polienko
e695d3bfba Fix asyncfile in Windows Server 2003
Fixes #5022
2016-11-14 02:55:57 -08:00
Felix Krause
91a0674961 Fixed timezone rendering, added test 2016-11-10 19:03:46 +01:00
Felix Krause
9b2aaf0df6 Fixed timezone sign error
* This was introduced in recent "cosmetic" fix. Not so cosmetic
   after all…
2016-11-08 20:57:53 +01:00
Araq
72af7e6821 use a full MD5 hash with no collision detection for proc names 2016-11-08 08:37:15 +01:00
Araq
c0b8a79315 make tests green 2016-11-08 08:37:14 +01:00
Araq
c66580911e htmlparser: different error corrections 2016-11-07 18:58:39 +01:00
Andreas Rumpf
4c79583a95 Merge pull request #5002 from goldenreign/time-compare-nosideeffect
Add 'noSideEffect' pragma for Time type's operators. Fixes #4981
2016-11-07 16:52:34 +01:00
Andreas Rumpf
be296c3274 Merge pull request #4984 from flyx/timezonefix
Fixed timezone handling
2016-11-07 14:28:54 +01:00
Zajcev Evgeny
b1a369d2fb [enh] isUpperAscii*, isLowerAscii* speedup execution by stopping
iteration as soon as possible
2016-11-07 13:21:17 +03:00
Felix Krause
6e604e2f9f More cosmetic changes
* Don't use factor var, it's overly complicated
 * Removed proc that's now unused
 * Better documented timezone field
2016-11-07 11:08:31 +01:00
goldenreign
63c450abdc Fix - operator for Time type for JS target 2016-11-07 14:26:27 +07:00
goldenreign
554105ff7c Add 'noSideEffect' pragma for Time type's operators 2016-11-07 12:14:28 +07:00
Andreas Rumpf
91bcf99d8a os.nim: posix copyFile showed a weird problem about buffer flushing; worked around via flushFile() call 2016-11-06 17:33:33 +01:00
Andreas Rumpf
5471b1eaca htmlparser: support parsing of class=foobar without quotes 2016-11-05 15:27:47 +01:00
Andreas Rumpf
0a6787f956 better error handling for osproc.nim 2016-11-05 09:04:16 +01:00
Felix Krause
f500b9f47b Cosmetic fixes
* Improved comments
 * Improved spacing
 * Use consts instead of magic numbers
2016-11-03 18:45:52 +01:00
Andreas Rumpf
ee8c1c6f93 Merge pull request #4989 from endragor/empty-async-all
async all() now immediately completes if arg is empty
2016-11-03 10:54:19 +01:00
Ruslan Mustakov
f2bded180f async all() now immediately completes if arg is empty 2016-11-03 10:50:43 +07:00
Dominik Picheta
e784fdee45 Merge pull request #4970 from nigredo-tori/fix-4969
Fix problems with persistent HTTP connections
2016-11-02 18:57:00 +01:00
lihf8515
89d4574445 Update parsecfg.nim
Value includes double quotation marks.
2016-11-02 11:48:11 +08:00
Dmitry Polienko
4753149227 Implement suggestions from @dom96 2016-11-02 09:19:20 +07:00
Felix Krause
9d5de8021b Use ISO 8601 format for times.$. Fixed tests.
* `$` now uses format() with explicit time zone.
 * Fixed errors in rendering "z", "zz" and "zzz"
 * Updated tests
2016-11-01 21:14:52 +01:00
Felix Krause
170745eb39 Removed tzname because it's broken
* No mapping between TimeInfo.tzname and TimeInfo.timezone
 * tzname of time.h is not well-defined, may have almost arbitrary
   length, and localization may differ
 * Code used hardcoded "UTC" string
2016-11-01 20:26:50 +01:00
Felix Krause
c1f0b7643c Fixed timezone offset parsing 2016-11-01 19:33:43 +01:00
Felix Krause
96234f36ca Made times.nim compile again to JS 2016-11-01 18:42:22 +01:00
Felix Krause
2ec6fe56ad Fixed timezone handling
* mktime always interprets its input as local time even on systems where
   gmtoff is present, so using it is utterly useless for anything but getting
   the local timezone. Removed all other usage of gmtoff to avoid confusion.
 * Properly handle timezone offset in toTime()
 * Properly handle timezone offset in `$` because asctime also interprets its
   input as local time
 * Also tried to fix the JavaScript implementation
2016-11-01 17:22:50 +01:00
Araq
47304372ca change TimeImpl for MingW 2016-11-01 14:11:46 +01:00
Felix Krause
af4c75a893 Fixes #4974 2016-10-31 20:46:50 +01:00
Dmitry Polienko
52f4590e98 Don't persist generated headers between requests 2016-10-31 09:46:50 +07:00
Dmitry Polienko
860264a382 Skip empty lines before status line
As recommended here: https://tools.ietf.org/html/rfc7230#section-3.5
2016-10-31 09:42:45 +07:00