Commit Graph

7317 Commits

Author SHA1 Message Date
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
Flaviu Tamas
ba0b9e26c6 Better handle errors
Fixes #7
2015-05-04 16:47:31 -04: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
apense
80b5e612c0 Update streams.nim 2015-05-04 08:49:41 -04: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
def
0e8e574961 Use builtin overflow functions of Clang and GCC (WIP, RFC)
This only works with recent Clang and GCC 5.0.

Currently it doesn't work because __has_builtin can't be defined.

This is totally ugly. But we can't reliably detect whether we can use
the builtins from Nim, especially with cross-compiling where the user
may be using an older compiler version. Switching this on/off manually
with a define seems weird as well, this should work automatically.
2015-05-03 03:49:11 +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
Stephen Sugden
7fb5932b9b Resolve base type fields in [](TAny, string) 2015-05-03 00:16:22 +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
Simon Hafner
1e78c5445d manually reapplied d40098ad 2015-05-02 09:26:15 +05:00
Simon Hafner
2522049ed2 method arrives as symbol 2015-05-02 09:14:02 +05:00
Simon Hafner
0ff5339590 removed debug echos 2015-05-02 08:35:01 +05:00
Simon Hafner
b500907978 some more bugs in epc fixed - removed try 2015-05-02 08:24:05 +05:00
Simon Hafner
7dfa93d3c0 fixed first round of bugs 2015-05-02 08:04:17 +05:00
Simon Hafner
a1ee169d09 implemented nextFreePort for nimsuggest 2015-05-02 05:28:53 +05: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
Dominik Picheta
01f625f75c Intro for release notes. 2015-04-30 12:30:55 +01:00
Araq
a4f8a89c85 preparations for version 0.11.0 2015-04-30 02:01:38 +02:00
Araq
d40098ad82 columns are 1 based for nimsuggest 2015-04-30 00:01:07 +02:00
Araq
6d05ae26e6 fixes regression caused by code cleanups 2015-04-29 22:24:50 +02:00
def
60862c22f5 Year shouldn't be arbitrarily limited to -10_000 .. 10_000. Instead it's
an int now.
2015-04-29 21:34:03 +02:00
Araq
813a4f1d83 the installer can generate tar.gz 2015-04-29 19:59:06 +02:00
yglukhov
3161f904a5 Added body and head properties to document. 2015-04-29 10:01:26 +03:00
Araq
26eae7d00e fixes #2470, fixes #1354 2015-04-28 20:21:53 +02:00
Chris Heller
fcb4d5a44a Update VirtualLock/Unlock to use SIZE_T instead of DWORD for sizes 2015-04-28 10:19:44 -07:00
Chris Heller
26115027bf Update the GlobalAlloc/ReAlloc and LocalAlloc/ReAlloc procs to use SIZE_T instead of DWORD. 2015-04-28 10:12:06 -07:00
Chris Heller
ef46f75572 Update Heap* procs in windows.nim that were using DWORD sizes to use SIZE_T 2015-04-28 10:00:10 -07:00
Chris Heller
c750900286 Update other Virtual* procs that were using dwSize: DWORD to use SIZE_T 2015-04-28 09:53:01 -07:00
Araq
3fa2e79814 sempass2: bugfixes 2015-04-28 15:01:05 +02:00