Commit Graph

10630 Commits

Author SHA1 Message Date
Michał Zieliński
43dae68a42 inter.txt: fix git bisect example (#5722) 2017-04-19 00:36:28 +02:00
Zach Smith
fa592f3aad Minor: spelling correction in tables.nim (#5727) 2017-04-19 00:35:44 +02:00
Dominik Picheta
03ddfddcae Add test for previous commit. 2017-04-17 20:04:24 +02:00
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
Dominik Picheta
12f758cc42 Merge pull request #5719 from FedericoCeratto/patch-26
Fix "secure" capitalization
2017-04-17 14:14:53 +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
759a586b19 Fix huge logo in readme. 2017-04-15 15:50:28 +02:00
Dominik Picheta
5cf31417a6 Fixes #5710. Closes #5711. 2017-04-15 09:03:12 +02:00
Andreas Rumpf
55b5401dc6 fixes yet another regression caused by the .procvar removal 2017-04-14 19:18:26 +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
Andreas Rumpf
e8389dcb93 docgen: make whitespace around 'class=' more consistent 2017-04-12 15:05:28 +02:00
Eugene Kabanov
050918aa2a Fix tioselectors.nim for appveyor. (#5694) 2017-04-12 08:43:41 +02: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
Fredrik Høisæther Rasch
392f025148 Error Message if CC invocation fails (#5663) 2017-04-08 19:06:19 +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
zah
0c694d2064 Merge pull request #5564 from nim-lang/fix/4556
Fix/4556
2017-04-06 11:25:19 +03:00
Andreas Rumpf
ab3f22fce1 minor update for nimsuggest 2017-04-06 08:53:31 +02:00
Arne Döring
3d4f68c822 Make nimsuggest quit when pressing Ctrl-D from the command line. (#5662) 2017-04-06 08:16:26 +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
Zahary Karadjov
34c34cb49b move the object construction logic to a separate file 2017-04-06 00:46:18 +03:00
Zahary Karadjov
f162214d5d object construction: test cases and manual additions 2017-04-06 00:46:18 +03:00
Zahary Karadjov
564c0acae2 cleaned up the code and implemented proper error messages 2017-04-06 00:46:18 +03:00
Zahary Karadjov
02243410fd News items for previous commit 2017-04-06 00:46:18 +03:00
Zahary Karadjov
6edb07091d fix #4556
This implements a number of new safety checks and error messages
when object constructors are used:

In case objects:

* the compiler will prevent you from initializing fields in
conflicting branches

* When a field from a particular branch is initialized, the
compiler will demand that the discriminator field is also
supplied with a maching compile-time value

In all objects:

* When the "requiresInit" pragma is applied to a type, all fields
of the type must be initialized when object construction is used.

The code will be simplified in a follow up commit.
2017-04-06 00:45:12 +03:00
Andreas Rumpf
88c4d6aabe fix another compiler regression 2017-04-05 11:32:23 +02:00
Andreas Rumpf
ac81a99892 make tests green again 2017-04-04 18:05:53 +02:00
Andreas Rumpf
bfaa329680 Merge branch 'devel' into araq 2017-04-04 13:38:41 +02:00
Andreas Rumpf
0b79a2b02e attempt to make tests green again 2017-04-04 13:28:15 +02:00