Commit Graph

5862 Commits

Author SHA1 Message Date
Reimer Behrends
28dd0407bb Fix behavior of os.getFileInfo() for symbolic links.
The calls to lstat() and stat() were switched. As a result,
links weren't followed for followLink == true and links were
followed for followLink == false.
2015-05-13 12:26:34 +02:00
Andreas Rumpf
0b184f2584 Merge pull request #2608 from chrisheller/devel
Add procs for VirtualAllocEx and VirtualFreeEx in windows.nim
2015-05-08 02:20:14 +02:00
Andreas Rumpf
31d472d83d Merge pull request #2660 from MrJohz/contains-tables
Add contains proc for tables to allow usage of `in`
2015-05-08 02:19:45 +02:00
Andreas Rumpf
9422dbf337 Merge pull request #2657 from def-/noreturn
Pass noReturn pragma to C code.
2015-05-08 02:08:32 +02:00
Michael Werner
c384f05e49 fixed typo in threadpool.nim 2015-05-08 03:31:58 +05:00
reactormonk
073547bbc4 Merge pull request #2675 from nanoant/patch/fixup-build-csources-submodule-pull
Fixup: csources is empty after clone
2015-05-08 02:53:19 +05:00
Adam Strzelecki
7e479993a4 Fixup: csources is empty after clone
We actually need to check for existence of csources/.git and then do git
submodule update --init, which pulls the data for submodule.
2015-05-07 23:07:15 +02:00
def
4a2a0894ae Implicitly assume compilers to know naked and noreturn attributes 2015-05-07 22:31:45 +02:00
Andreas Rumpf
a490e13342 Merge pull request #2649 from nanoant/patch/csources-as-submodule
Patch/csources as submodule
2015-05-07 22:17:05 +02:00
Andreas Rumpf
22c9b89392 Merge pull request #2666 from def-/fix-staticlib
Fix the lib path used with --app:staticlib
2015-05-07 22:13:08 +02:00
def
a7b39e3ebf Improve code style a bit 2015-05-07 20:35:16 +02:00
Andreas Rumpf
9ef09fc6f5 Merge pull request #2622 from def-/times-year
Year shouldn't be arbitrarily limited to -10_000 .. 10_000
2015-05-07 20:22:26 +02:00
Varriount
ec0e60830a Merge pull request #2627 from msmith491/devel
Add arbitrary char support to the strutils  proc.  Issue #2626
2015-05-07 13:03:19 -04:00
Varriount
d3f69e14f7 Merge pull request #2596 from Nycto/devel
Fix floats in tuples in HashSets
2015-05-07 13:02:42 -04:00
Varriount
ace11f08aa Merge pull request #2537 from jsanjuas/devel
Generalize mean to other types
2015-05-07 12:59:01 -04:00
Varriount
d882718882 Merge pull request #2665 from koalazen/fix_math_is_power_of_two
fixes isPowerOfTwo returning true on the smallest integer
2015-05-07 12:54:37 -04:00
Varriount
b5e06c0973 Merge pull request #2663 from koalazen/fix_re_comment
Fix comment in re
2015-05-07 12:51:15 -04:00
def
81cff0908e Fix the lib path used with --app:staticlib
For example if gProjectName is "src/false.nim" the old static lib name
was "libsrc/false.nim.a", now it is "libfalse.a".
2015-05-07 02:29:31 +02:00
Koala Zen
cf68d926d8 fixes isPowerOfTwo returning true on the smallest integer 2015-05-06 12:37:15 -07:00
Koala Zen
d620f566b2 Fix comment in re 2015-05-06 09:09:36 -07:00
Jonathan
8e4af5ace0 Add contains proc for tables to allow usage of in 2015-05-05 23:26:58 +01:00
def
78c26cbf18 Distinguish only between __declspec and __attribute__ 2015-05-05 20:35:43 +02:00
def
c5db4fc3a2 Move the noreturn pragma to sysFatal
Now you can choose to implement sysFatal with --os:standalone so that it
returns.
2015-05-05 20:26:54 +02:00
def
a9fe618756 Pass noReturn pragma to C code.
With GCC and Clang this generates __attribute__((noreturn)) in the
function declaration. (both tested) With VCC __declspec(noreturn) is
used.
2015-05-05 00:02:09 +02:00
Andreas Rumpf
b9e02b1efc Merge pull request #2655 from enitihas/nim-cfg-gcc-path
Corrected gcc path on windows
2015-05-04 23:17:03 +02:00
Abhishek Pandey
6018c7a0c9 Corrected gcc path on windows
When gcc path is set to  r"$nimrod\dist\mingw\bin", the compiler gives
an error:
Error : unhandled exception : invalid format string [Value Error], but
works correctly with gcc.path set to r"$nim\dist\mingw\bin". I think
this issue was caused due to the name change from nimrod to nim , but
the name change was not replicated in the config file.
2015-05-05 02:04:33 +05:30
Araq
fd7b7a0bc1 final website changes v0.11.2 2015-05-04 20:53:55 +02:00
Araq
3bef848a2c added missing stuff for the release 2015-05-04 19:40:11 +02:00
Araq
4a51dbe670 version 0.11.2 2015-05-04 16:47:42 +02:00
Araq
288400761c version 0.11.2 2015-05-04 16:47:41 +02:00
Araq
0775402f55 fixes #2651 2015-05-04 16:47:40 +02:00
Araq
cee16d1651 fixes typo in tut1 2015-05-04 16:47:39 +02:00
Adam Strzelecki
05e072b8c4 Make build.sh executable
There is no reason build.sh shouldn't be executable and we couldn't build Nim
with: ./build.sh
2015-05-03 18:56:18 +02:00
Adam Strzelecki
e31bca55fa Make csources a submodule
1. Solves a problem that updating Nim sources we have no indication we need to
   update csources as well.

2. Using submodule we can explicitly request that some Nim version requires
   some csources version to bootstrap.

3. build.sh now simply calls: git submodule update --init --depth 1
   instead shallow clone on missing csources subdirectory.
2015-05-03 18:55:31 +02:00
Andreas Rumpf
ca67687e3b Merge pull request #2648 from def-/zipfiles
Make zipfiles module work again
2015-05-03 17:31:26 +02:00
def
ffad2be237 Make zipfiles module work again
Also adds an example usage to the module
2015-05-03 14:22:49 +02:00
Araq
0e1167d64b made test green 2015-05-03 01:08:53 +02:00
Araq
e23857a98b fixes #2629, fixes #2641, fixes #2632, fixes #2630 2015-05-03 01:08:52 +02:00
Araq
6cb3635ca0 fixes 'echo nil' codegen bug 2015-05-03 01:08:51 +02:00
Araq
c6605d3d50 development version is 0.11.1 2015-05-03 01:08:50 +02:00
Araq
0f35a997dd minor bugfixes to the new 'len(nil)==0' feature 2015-05-03 01:08:50 +02:00
Araq
16a51ffc97 compiler\ccgexprs.nim
fixes 'nil' literal echoing
2015-05-03 01:08:49 +02:00
Araq
7d3a6b42d9 fixes #2625 2015-05-03 01:08:48 +02:00
reactormonk
fe268b7df7 Merge pull request #2639 from HOLYCOWBATMAN/pr-frontpage-slideshow
Moved frontpage slideshow controls
2015-05-03 01:05:40 +05:00
HOLYCOWBATMAN
e639b85e3c Moved frontpage slideshow controls 2015-05-02 09:01:18 -04:00
Chris Heller
2aa61034ba Add deprecated versions of procs in windows.nim that had DWORD parameters converted to SIZE_T 2015-05-01 23:54:28 -07:00
msmith491
50f54bf60b Add arbitrary char support to the strutils proc. Issue #2626 2015-04-30 21:40:26 -07:00
reactormonk
c82cc7c37c Merge pull request #2618 from yglukhov/dom-body-head
Added body and head properties to DOM document.
2015-05-01 03:15:11 +05:00
Araq
d9d5aa60b7 version 0.11.0 v0.11.0 2015-04-30 16:59:29 +02:00
Araq
3905cfeace more cleanups for 0.11.0 2015-04-30 14:32:01 +02:00