Rostyslav Dzinko
e94c0ea4c8
Fixed reprEnum function on 32-bit systems
2016-07-05 19:05:31 +03:00
Andreas Rumpf
689d3f75cf
Merge pull request #4445 from Jeff-Ciesielski/jeffc/define_assignments
...
Add the ability to pass a value with the -d flag
2016-07-05 15:45:30 +02:00
Jeff Ciesielski
4f4aafda6c
Plumb {.intdefine.} and {.strdefine.} pragmas.
...
Shorthand so that users won't need to use the .magic pragma
2016-07-04 22:52:24 -04:00
Jeff Ciesielski
94d1aa5109
Add the ability to pass a value with the -d flag
...
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time. This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
2016-07-04 18:11:25 -04:00
Andreas Rumpf
5f9da6b2ae
Merge pull request #4420 from yglukhov/closure-scope
...
Added closureScope template
2016-07-04 10:41:48 +02:00
Chris Heller
f6fda5e704
Add doc to parsexml.nim for template assertions
...
Added additional documentation for parsexml.nim to describe the assertions that are used to check the parser's current status when accessing parser data.
2016-07-02 17:19:03 -06:00
Andreas Rumpf
b56e5e159a
Merge pull request #4361 from jyapayne/fix_split
...
Fix #4305 : Make split proc for set[char] consistent
2016-07-02 17:55:57 +02:00
Andreas Rumpf
97b59506d6
Merge pull request #4389 from jyapayne/add_unicode_procs
...
Add unicode procs
2016-07-02 17:49:43 +02:00
Vladislav Vorobiev
e4b16ac608
Remove line breaks in OSError messages (Windows)
...
Before:
```
Error: unhandled exception: Не удается найти указанный файл.
[OSError]
```
After:
```
Error: unhandled exception: Не удается найти указанный файл. [OSError]
```
2016-07-01 21:50:26 +03:00
Joey Payne
b1ab82715e
Fix modules that import both strutils and unicode
...
This is only an issue when a proc in both modules that is named the same
is used, such as toLower or toUpper for strings.
2016-07-01 07:37:49 -06:00
Joey Payne
e0203a4463
Add useful unicode procs for string manipulation
...
Added: isUpper, isLower, isAlpha, isWhiteSpace, toUpper,
toLower, and capitalize
Renamed strutils procs that are similar to avoid conflicts
2016-07-01 07:37:35 -06:00
Joey Payne
79a8a5ee72
Add transition define for old split behavior
2016-07-01 07:24:30 -06:00
Joey Payne
76f81d4aa4
Fix #4305 : Make split proc for set[char] consistent
2016-07-01 07:24:30 -06:00
Andreas Rumpf
d8ee2c2409
Merge pull request #4401 from zachaysan/add_http_status_codes
...
Add http status codes
2016-06-28 20:14:12 +02:00
Andreas Rumpf
a5f234250e
Merge pull request #4419 from endragor/android4-sockets
...
Added 'android4' define that declares a different gethostbyaddr
2016-06-28 19:37:24 +02:00
Andreas Rumpf
d8fda3e4bb
Merge pull request #4408 from euantorano/feature-strutils-isNilOrEmpty
...
Adding isNilOrEmpty and isNilOrWhitespace
2016-06-28 18:57:03 +02:00
Andreas Rumpf
f7f0cff8b3
Merge pull request #4403 from miere43/win-getch
...
Implemented terminal.getch() for Windows
2016-06-28 18:55:59 +02:00
Yuriy Glukhov
def3e015c7
Added closureScope template
2016-06-27 17:44:05 +03:00
miere43
8314412b99
Added stdcall pragma to WINAPI methods.
2016-06-26 22:18:14 +03:00
miere43
7fc9585f7b
getch() asserts to doAsserts
2016-06-26 17:46:43 +03:00
miere43
57bd50a916
Removed INPUT_KEY_RECORD
2016-06-26 16:01:37 +03:00
cheatfate
b8151e09f4
one more cosmetic change
2016-06-26 12:14:21 +03:00
cheatfate
fb0ef44864
Some cosmetic changes, and comments
2016-06-26 12:05:44 +03:00
cheatfate
2eb34a8129
Event enum is now .pure.
...
Modified getMaxFds() to work more properly.
Removed seqs from code
Some exceptions replaced with doAssert
2016-06-26 09:51:01 +03:00
Euan
f84911364a
Fixing isNilOrWhitespace to handle empty/nil.
2016-06-24 10:51:13 +01:00
Euan
746357404c
Fixing isNilOrWhitespace for empty/nil strings.
...
`isSpace` returns false for an empty string, which is the opposite of
this method.
2016-06-24 10:50:26 +01:00
Euan
d932cb1e51
Adding isNilOrEmpty and isNilOrWhitespace
...
As discussed in #4184 , this patch adds `isNilOrEmpty` and
`isNilOrWhitespace` to `strutils`.
It also modifies the existing `isSpace` proc slightly to exit early
rather than looping through all characters in a string.
2016-06-24 10:18:46 +01:00
miere43
dd7a24d8cc
Implemented terminal.getch() for Windows
2016-06-23 23:22:38 +03:00
cheatfate
c857e32867
Small version of ioselectors.nim, without code duplication and some renames.
2016-06-23 23:12:27 +03:00
Zach Aysan
1e31b27330
Fix typo
2016-06-23 14:37:17 -04:00
Zach Aysan
280b589cd8
Add missing - yet necessary - HTTP status codes.
2016-06-23 14:23:57 -04:00
Ruslan Mustakov
45f76738ee
Added 'android4' define support that declares a different gethostbyaddr. Fixes #4376
2016-06-22 20:50:18 +06:00
Dominik Picheta
6b334770b5
Merge pull request #4391 from edubart/fix-await
...
Fix #4390
2016-06-21 23:52:27 +01:00
Eduardo Bart
404b5b5ff4
Fix #4390
2016-06-21 19:42:42 -03:00
Hans Raaf
25c3a62acd
Fix a warning about result reused in macros.nim.
2016-06-21 13:13:46 +02:00
Andreas Rumpf
f5096076b2
Merge pull request #4360 from jyapayne/add_walktree
...
Add walkPattern to list both directories and files
2016-06-21 02:20:05 +02:00
A. S. Budden
f9bb209c32
Corrected comment in maths library.
2016-06-20 09:15:56 +01:00
Dominik Picheta
f76112fb01
Merge pull request #4370 from edubart/future-withtimeout
...
Add withTimeout proc for futures
2016-06-19 22:58:14 +01:00
Eduardo Bart
c93292e2f7
Add withTimeout proc for futures
2016-06-19 12:56:37 -03:00
Andreas Rumpf
f54e2bae6b
Merge pull request #4344 from ReneSac/queues
...
Enchanced random access support for queues among other changes
2016-06-19 13:56:58 +02:00
Dominik Picheta
8182414a6f
Fix times.+ and - for TimeInfo and TimeInterval.
2016-06-18 16:11:57 +01:00
matkuki
39fd0e801d
Update math.nim
2016-06-18 12:26:21 +02:00
matkuki
f9a659f7ab
Windows MSVC < 2012 'round' function update
...
Microsoft Visual C++ compilers prior to 2012 do not implement the 'round', 'roundl' or 'roundf' functions.
This change is fixes this. Tested it with MSVC 2010.
2016-06-17 21:52:41 +02:00
Joey Payne
02895ba934
Add walkPattern to return both files and directories
...
Also added `walkDirs` to walk only directories based on the pattern
specified.
2016-06-17 08:35:59 -06:00
Dominik Picheta
b0e4c0ae26
Merge pull request #4357 from SSPkrolik/json-contains
...
Implemented `in` operator support for JsonNode objects
2016-06-17 14:12:25 +01:00
Dominik Picheta
494b3b3917
Merge pull request #4352 from jyapayne/fix_walkfiles
...
Fix #4280 : os.walkFiles yields directories on Unix systems
2016-06-17 12:29:17 +01:00
Rostyslav Dzinko
d913ec1685
Implemented in operator support for JsonNode objects
2016-06-17 14:08:54 +03:00
cheatfate
a93ae86088
Lets make arguments names equal on all platforms.
2016-06-17 13:44:28 +03:00
cheatfate
b53f13cbe7
New version, without any piece of code duplication.
2016-06-17 13:37:42 +03:00
ReneSac
67c7a925c1
Remove high() and low() procs from queues module
...
Just in case as they are said not overloadable. No deprecation because this is during a PR: those procs didn't exist before.
Also update comment due to failed optimization attempt using copyMem() for POD datatypes.
2016-06-16 18:08:15 -03:00