Commit Graph

7279 Commits

Author SHA1 Message Date
Andrey Sobolev
d1b67cb9bb Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-10-06 10:55:52 +06:00
Dominik Picheta
0a8a2070d0 Merge pull request #3420 from jlp765/manual1
fix #3418 add example on openArray to types.txt
2015-10-05 17:29:33 +01:00
JamesP
aead71cd67 fix #3418 add example on openArray to types.txt 2015-10-05 10:42:04 +10:00
Dominik Picheta
6587f63672 Merge pull request #3415 from jlp765/rationals2
rationals add toRational(float) conversion
2015-10-04 22:17:45 +01:00
Dominik Picheta
8f2b15d170 Merge pull request #3395 from nanoant/patch/rename-rawsockets-to-nativesockets
Rename rawsockets module to nativesockets
2015-10-04 22:12:32 +01:00
JamesP
77d4788655 Add toRational(float) conversion from any float to closest
approx for specified precision
2015-10-04 15:58:02 +10:00
Araq
a2c040e3bd added undocumented exportNims pragma for Nimscript support 2015-10-03 23:19:15 +02:00
Araq
28b1340f94 fixes 'line too long' warning 2015-10-03 23:19:14 +02:00
Dominik Picheta
6bc29ccf4c Merge pull request #3400 from nanoant/patch/generate-install.sh-during-bootstrap
Generate install.sh during bootstrap
2015-10-03 19:30:34 +01:00
Adam Strzelecki
6cc9853935 bootstrap: Generate final install.sh during build
This solves problem where bootstrap was simply copying ./install.sh.template
into ./install.sh. Then first call of ./install.sh was calling ./koch install
that was running extra compilation and overwriting ./install.sh with new
content.

This was overcomplicated, and also caused first `sudo ./install.sh DIR` to run
compilation under root account, leaving root owned files in working directory.

Now bootstrap calls `./koch geninstall` that just generates ./install.sh
without calling it. This ./install.sh is FINAL one, and running it does not
generate any files aside passed DIR. This makes whole process simpler.
2015-10-03 19:51:17 +02:00
Adam Strzelecki
6655537c66 koch: Add geninstall generating just ./install.sh
In opposite to `install` which generates ./install.sh and then calls it.
2015-10-03 19:51:16 +02:00
Adam Strzelecki
be991ed413 Rename rawsockets module to nativesockets
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.

A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Dominik Picheta
3fe5731777 Merge pull request #3389 from nanoant/patch/separate-deprecated-modules
Patch/separate deprecated modules
2015-10-03 14:51:43 +01:00
Dominik Picheta
a35ba105f7 Merge pull request #3393 from nanoant/patch/fix-freebsd-getaddrinfo
rawsockets: Fix getaddrinfo on FreeBSD
2015-10-03 14:50:50 +01:00
Andreas Rumpf
27aaa39d50 Merge pull request #3411 from oderwat/fix-osx-ospaths
Added ReadIOEffect because thats what happens on OSX.
2015-10-02 16:04:32 +02:00
Hans Raaf
437603a812 Added ReadIOEffect because thats what happens on OSX. 2015-10-02 13:54:55 +02:00
Andreas Rumpf
c85fbb6fd4 Merge pull request #3402 from tmm1/exec-processes-after-cb
Add afterRunEvent callback to execProcesses()
2015-10-02 13:21:46 +02:00
Aman Gupta
08843c6673 remove echo() from compiler 2015-10-01 13:16:18 -07:00
Andrey Sobolev
4c53a3a7a5 Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-10-01 22:08:29 +06:00
Dominik Picheta
f8b7a16ad0 Merge pull request #3406 from jlp765/rationals1
Rationals - add checks and tests
2015-10-01 16:19:49 +01:00
JamesP
ce18b85d2c add two test:
zero denominator assert fail,
float type compile failure
2015-10-01 20:32:49 +10:00
Andreas Rumpf
ae9a89dd25 Merge pull request #3394 from nanoant/patch/use-new-filter-prefix
Use new #? filter prefix in various places
2015-10-01 09:12:08 +02:00
Andreas Rumpf
a3550d1314 Merge pull request #3384 from tmm1/bitsize-pragma
Implement bitsize pragma for bitfields
2015-10-01 09:11:17 +02:00
JamesP
2f4cc4efce add a few type checks to limit type to SomeInteger
(adding a compund type to the Rational type definition
made it too difficult to define new variables
using integer literals)
2015-10-01 15:07:23 +10:00
JamesP
d6b7f0ad9e add assertion for zero denominator 2015-10-01 15:02:46 +10:00
Aman Gupta
b093c0abd0 show full compiler output with reNimcCrash 2015-09-30 19:32:09 -07:00
Aman Gupta
ded5753292 remove "rerun with --parallelBuild:1" message and show error inline 2015-09-30 19:05:37 -07:00
Aman Gupta
9f33baf51b add afterRunEvent callback to execProcesses 2015-09-30 19:02:23 -07:00
Aman Gupta
8c86467730 document new bitsize pragma 2015-09-30 12:29:32 -07:00
Andreas Rumpf
2d2f152e3c Merge pull request #3398 from tmm1/run-single-test
Allow testament/tester to run single file
2015-09-30 21:16:36 +02:00
Araq
5a003532d0 fixes #2473; cleanup of some tests 2015-09-30 21:13:13 +02:00
Andreas Rumpf
1a63e630ae Merge pull request #3345 from rbehrends/no-unmap
Add option to disable munmap() use in the allocator.
2015-09-30 21:10:36 +02:00
Aman Gupta
435fbbc943 allow testament/tester to run single file 2015-09-30 12:09:58 -07:00
Andreas Rumpf
55bc5d15c7 Merge pull request #3385 from nanoant/patch/dont-fail-on-unknown-enum-value-to-string
vm: Don't fail on unknown enum position to string
2015-09-30 21:09:17 +02:00
Aman Gupta
87ab263d52 Merge remote-tracking branch 'origin/devel' into bitsize-pragma 2015-09-30 11:43:59 -07:00
Aman Gupta
8450ee9d59 ensure generated c-code matches 2015-09-30 11:42:50 -07:00
Araq
dd2225fe07 NimScript: --threads:on works in a nims file 2015-09-30 17:18:52 +02:00
Andreas Rumpf
8dad20fe38 Merge pull request #3397 from xyz32/move_to_const
Move magic numbers to const
2015-09-30 17:05:38 +02:00
Adam Strzelecki
700b63ad89 Use new #? filter prefix in various places
This silences deprecation warnings and prevent collision with UNIX shebang.
2015-09-30 16:12:31 +02:00
Radu Oana
4bba8e026a use const instead of let 2015-09-30 09:49:22 -04:00
Radu Oana
374b65289c Move magic numbers to const 2015-09-30 08:20:24 -04:00
Adam Strzelecki
e9f5c256d7 parseopt: This module is no longer deprecated
Remove depreciation notice from doc/lib.txt.
2015-09-30 12:28:41 +02:00
Adam Strzelecki
4d2486c858 doc: Move deprecated modules into separate section 2015-09-30 12:28:26 +02:00
Adam Strzelecki
144dc8f8ad Move deprecated modules into lib/deprecated/
This gives clear indication what modules are now deprecated and reduce clutter
in non-deprecated module directories.
2015-09-30 12:26:25 +02:00
Adam Strzelecki
9b5b254620 rawsockets: Fix getaddrinfo on FreeBSD
Currently due bug in FreeBSD passing AI_V4MAPPED to addrinfo.ai_flags causes
getaddrinfo to fail with EAI_BADFLAGS ("Invalid value for ai_flags"). That's
why we should disable this flag for now on FreeBSD.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092
2015-09-30 12:25:57 +02:00
Dominik Picheta
4071219e20 Merge pull request #3391 from tmm1/travis-ci
Tweak travis config
2015-09-30 10:37:19 +01:00
Araq
d80f163384 NimScript: --define works as expected 2015-09-30 11:02:42 +02:00
Andrey Sobolev
4351c62161 Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-09-30 14:23:25 +06:00
Aman Gupta
517312467e add libcurl and libsdl1 headers 2015-09-29 16:22:47 -07:00
Aman Gupta
a90241b8c4 remove mac builds for now 2015-09-29 16:20:51 -07:00