Dominik Picheta
5a4c06dbdc
Support JInt fields for 'float' in JSON umarshal macro.
2017-04-17 19:47:43 +02:00
Dominik Picheta
793d6efffb
Fixes null handling for object refs in JSON unmarshal macro.
2017-04-17 18:43:31 +02:00
Dominik Picheta
b829092c9e
Add support for BiggestInt in JSON unmarshal macro.
2017-04-17 18:01:38 +02:00
Dominik Picheta
2108dcf0d5
Fix JSON macro bug with ref objects.
2017-04-17 18:01:38 +02:00
Dominik Picheta
afb7542d20
Merge pull request #5720 from FedericoCeratto/patch-27
...
Fix cookie timestamp format #5718
2017-04-17 14:33:15 +02:00
Federico Ceratto
856d04c146
Fix cookie timestamp format #5718
...
See https://tools.ietf.org/html/rfc6265
2017-04-17 12:58:10 +01:00
Federico Ceratto
407beef7fd
Fix "secure" capitalization
...
See https://tools.ietf.org/html/rfc6265
2017-04-17 12:54:23 +01:00
Jacek Sieka
99d20f6112
fix redundant time import with different signature ( #5715 )
2017-04-16 22:50:10 +02:00
Dominik Picheta
5cf31417a6
Fixes #5710 . Closes #5711 .
2017-04-15 09:03:12 +02:00
Jacek Sieka
ce86b4ad78
Posix from detect ( #5697 )
...
* refactor posix.nim
* types move to separate files for platform-specifc and generic
("other')
* consts move to separate files that get autogenerated by detect.nim
* proc's stay where they are for now, though in a second stage might
move as well
* fix missing when
2017-04-12 23:10:54 +02:00
Jacek Sieka
e512358bc9
Linux abi take 3 ( #5692 )
...
* avoid generating object fields for imported types
* fix some abi/type issues for linux_amd64
2017-04-12 22:57:10 +02:00
Ruslan Mustakov
926563f0e6
Ignore constant-conversion warning ( #5696 )
2017-04-12 22:09:00 +02:00
Zahary Karadjov
03770daba4
allow StmtLists to pass through semExprWithType
...
This fix was necessary in order to fix the lambda lifting used in
the "jsffi" module, which relies on turning nkStmtList into nkLambda
in a catch-all dot operator.
2017-04-11 02:22:13 +03:00
Zahary Karadjov
a3f19c87fb
lift parameter-less do block to lambdas
2017-04-10 23:58:05 +03:00
Zahary Karadjov
48a1a54d1c
improve the usability of the jsffi module
...
* All JavaScript operators are usable with JsObject
* The dot operators will use native JavaScript strings
* Results returned from dot calls are consired discardable
2017-04-09 23:04:55 +03:00
Dominik Picheta
c9c64240d3
Fixes ambiguity introduced by #5390 .
2017-04-09 20:27:28 +02:00
Dominik Picheta
88cb40cd31
Implement support for enum fields in JSON macro.
2017-04-09 17:22:40 +02:00
Dominik Picheta
bd58a0d67c
Use doAssert in JSON macro and improve diagnostics.
2017-04-09 17:04:31 +02:00
Dominik Picheta
4bd650ee42
Merge branch 'feature/json-macro' into devel
2017-04-09 13:11:09 +02:00
Dominik Picheta
7ac0c15e7a
Improve documentation in the JSON module.
2017-04-09 13:09:59 +02:00
Dominik Picheta
eedc6fecd7
Document to macro in JSON and add example.
2017-04-09 12:48:07 +02:00
Dominik Picheta
a883424d0d
Implements else branch for JSON unmarshalling of object variants.
2017-04-09 11:49:50 +02:00
Dominik Picheta
658467a31f
Improve error messages and add tests for the JSON macro.
2017-04-08 22:06:57 +02:00
Dominik Picheta
cc223ff7d8
Support int, string and bool fields in unmarshal json macro.
2017-04-08 21:23:35 +02:00
Dominik Picheta
12aafb25cc
First implementation of JSON unmarshal macro.
2017-04-08 20:55:32 +02:00
Araq
6eb74c7281
remove system.getFileSize again, breaks windows builds and I don't want more stuff that's a pain to support in a platform independent manner
2017-04-08 18:19:01 +02:00
Dominik Picheta
27ede21504
Merge pull request #5612 from ehmry/AsyncFile.setLen
...
asyncfile: setLen procedure for files
2017-04-08 12:24:21 +02:00
Dominik Picheta
cdfcc12529
Implement json.% for enums.
2017-04-06 21:56:20 +02:00
Dominik Picheta
28f3b3d3a7
Add some extra methods and fields to DOM module.
2017-04-06 21:16:17 +02:00
Anatoly Galiulin
3374bcb373
parsecfg: handle streams and strings when saving or loading configuration ( #5554 )
2017-04-06 08:10:08 +02:00
Emery Hemingway
bc5c2d8414
getFileSize and setFileSize procedures for File and AsyncFile
...
Platform independent procedure to set a file length. Useful when
replacing file content.
2017-04-05 19:05:43 -05:00
John Scillieri
4ba6f9808e
Update 'compiles' documentation to remove not ( #5666 )
...
Documentation for proc compiles showed a broken/unintuitive example (unless i missed something)
2017-04-05 23:50:48 +02:00
Andreas Rumpf
bfaa329680
Merge branch 'devel' into araq
2017-04-04 13:38:41 +02:00
Andreas Rumpf
9aeccda262
system.nim: make min/max take openArrays, not varargs (breaking change)
2017-04-04 09:34:16 +02:00
Emery Hemingway
dd7ebb2c95
fixup! support for the Genode OS framework ( #5653 )
...
Allocate thread metadata at createThread.
2017-04-02 23:48:23 +02:00
Andreas Rumpf
c65ff403b2
memory manager: use less memory; corruption prevention
2017-04-02 23:41:29 +02:00
Andreas Rumpf
f520dfbfab
remove en-dash from the language
2017-04-02 23:41:29 +02:00
Daniil Yarancev
009277856e
Fix #5611
2017-04-02 18:52:14 +03:00
Eugene Kabanov
316b680f5d
Proper fix for osproc.nim on Android ( #5646 )
2017-04-02 08:32:54 +02:00
Emery Hemingway
7e351fc7fa
support for the Genode OS framework ( #5560 )
2017-03-31 23:13:06 +02:00
wt
c480505797
Fix wrong value range of ntohs ... ( #5390 )
2017-03-31 22:13:06 +02:00
Silvio
2946c7a4b9
Implementing repr for JS ( #5578 )
2017-03-31 22:00:48 +02:00
Andreas Rumpf
529609f7ed
Merge remote-tracking branch 'origin/concepts-rebased' into araq
2017-03-31 16:40:21 +02:00
Andreas Rumpf
0ccbc82344
Merge branch 'devel' into araq
2017-03-30 23:56:22 +02:00
Dominik Picheta
6edd100619
Merge pull request #5614 from moigagoo/fix_time_offset_in_times_js
...
Times: JS: Remove implicit UTC convesion.
2017-03-30 18:10:11 +02:00
Araq
30c99a8440
fixes #5628
2017-03-30 12:53:32 +02:00
Zahary Karadjov
a74ad869e9
requested code review changes
2017-03-29 16:15:30 +03:00
Konstantin Molchanov
04646052ab
Merge branch 'devel' into fix_time_offset_in_times_js
2017-03-29 16:54:36 +04:00
Konstantin Molchanov
a9044117e9
Stdlib: Times: Use JS's "new Date" to convert TimeInfo to Time.
...
To use JS's Date creation from string, I moved the TimeInfo formatting code above the toTime proc declaration. Also, I changed the argument type for newDate from string to cstring for it to work.
2017-03-29 16:40:52 +04:00
Konstantin Molchanov
875e344be0
JS: Add yearday calculation to getLocalTime and getGMTime, so that yearday is not 0 for TimeInfo instances under JS backend. ( #5616 )
2017-03-29 12:36:04 +02:00