Commit Graph

9782 Commits

Author SHA1 Message Date
Adam Strzelecki
fd1011e940 build.sh: Output error messages to stderr
Just in case we are running this in some CI.
2015-10-30 15:09:34 +01:00
Adam Strzelecki
1608bd99eb build.sh: Use shell built-in command trace
Rather than issuing echo "cmd..." then cmd... itself, we enable shell trace
facility via set -x, which is POSIX shell standard command and is compatible
with all UNIX shells.

This effectively cuts build.sh size twice, since we don't need to double stuff
there, also making it human readable.

We are also setting PS4 (trace prefix) to none, instead final echo "SUCCESS",
we issue : SUCCESS command which outputs its contents in trace.
2015-10-30 15:06:15 +01:00
Adam Strzelecki
f838c1baa4 fixes #3498
Previously it was not possible to use template arguments in template body as
the symbols were not resolved correctly leading to Error: undeclared
identifier: 'XX', eg.:

   template defaultOf[T](t: T): expr = (var d: T; d)
   echo defaultOf(1) #<- invalid identifier, but should output 0
2015-10-30 12:05:02 +01:00
Araq
22fc9a9470 development version is 0.12.1, not 0.12.0 2015-10-29 23:33:27 +01:00
Adam Strzelecki
47e45dee7e fixes #3496
The problem comes from the fact that macroOrTmpl[...] is transformed by
semSubscript which is trying to evaluate macroOrTmpl identifier in place. This
is okay for non-generic macros or templates, but wrong for generic ones, that
do not have a chance to receive their generic arguments explicitly specified in
brackets.

Solution:

1. macroOrTmpl[...] where macroOrTmpl is non-generic macro or template, then
   macroOrTmpl is evaluated before applying brackets. (as before)

2. macroOrTmpl[...] where macroOrTmpl is generic macro or template, then if:

   a. It comes from macroOrTmpl[...](...) call expr (efInCall), then macroOrTmpl
      is turned into a symbol (efNoEvaluate) rather than evaluating it in place,
      then whole bracket expr is returned to semIndirectOp which transforms it
      to proper generic macro or template call with explicit generic arguments.

   b. macroOrTmpl[...] does not come from call expr, as above macroOrTmpl is
      transformed to symbol, then it is transformed into proper generic macro or
      template call with explicit generic arguments and no normal arguments.
2015-10-29 23:10:45 +01:00
Dominik Picheta
8b8005e1a3 Merge pull request #3495 from bambuchaAdm/libressl-compatibility
Add serach for libssl.so without version suffix.
2015-10-29 19:40:09 +00:00
Łukasz Dubiel
8e9441b8cd Add serach for libssl.so without version suffix. 2015-10-29 20:01:43 +01:00
Hans Raaf
9b64a73bad Removed libiconv prefix (on OS X) to make encodings compile on OS X.
I am not sure since which version OS X does include the libiconv library
without the `lib` prefix. But it seems this is the case for some years
now. If there are ways to check for the OS X version at compile time
this may be needed to support older OS X versions. But I guess thats not
needed for most users working with Nim anyway.
2015-10-28 20:36:09 +01:00
Michał Zieliński
da308be2d7 net.nim: add support for Unix sockets 2015-10-28 20:01:48 +01:00
Araq
8e4b5e10ba updated compiler.nimble file 2015-10-28 14:19:12 +01:00
reactormonk
21755a64fc Merge pull request #3483 from sanxiyn/patch-1
Update website link
2015-10-28 11:28:05 +01:00
Seo Sanghyeon
2309940f02 Update website link 2015-10-28 18:41:42 +09:00
Araq
22a702868b updated todo.txt 2015-10-28 08:13:49 +01:00
Araq
c02e7954af Merge branch 'devel' of https://github.com/nim-lang/Nim into devel 2015-10-27 23:38:25 +01:00
Araq
f03ce85518 news.txt: fixed typo 2015-10-27 23:38:09 +01:00
Dominik Picheta
3892969af4 Merge branch 'devel' 2015-10-27 23:36:00 +01:00
Dominik Picheta
d9415fd5ce Download links for new version. 2015-10-27 23:09:14 +01:00
Dominik Picheta
30cc353831 Prep for v0.12.0 v0.12.0 2015-10-27 22:28:42 +01:00
Dominik Picheta
b186493f01 Merge pull request #3475 from mjoud/shrdoc
fixed shr documentation
2015-10-27 21:03:55 +01:00
Dominik Picheta
82f3cab1ac Improved postgres docs and added untestable tests. 2015-10-27 11:06:00 +01:00
JamesP
a82b9cbda3 fix doco by removing extra ` chars, change a word and
line up multi-line text
2015-10-27 11:06:00 +01:00
JamesP
02d882cfbe add doco outlining the two SQL parameter substitution mechanisms for the db_postgres module
adjust doco note: indent by one space

shorten doco example lines, by splitting across multiple lines

shorten doco line widths by splitting long lines into multi-lines

fix to prepare() example in doco "Note:" section
2015-10-27 11:05:59 +01:00
JamesP
033c461a87 setupQuery() with SqlQuery take parameter substitution with "?"
add instantRows() with SqlPrepared parameter

fix setupQuery() for SqlQuery to produce a unique identiying query name

add rows() iterator with SqlPrepared parameter

add execAffectedRows for SqlPrepared
2015-10-27 11:05:59 +01:00
JamesP
b2a48b0ed6 tryExec() with SqlQuery now takes "?" substitution parameters
add tryExec() with SqlPrepared parameter

exec() with SqlQuery now expects "?" parameter substitution
2015-10-27 11:05:59 +01:00
JamesP
4e19106221 add check to dbFormat() to verify parameter substitution has "?" identifier
add check to prepare() that parameter substitution has "$1" identifier
2015-10-27 11:05:59 +01:00
Araq
86e2d6ee90 fixes #3476 2015-10-27 08:37:56 +01:00
Araq
e94a6ec1f9 added an assertion 2015-10-27 08:37:43 +01:00
Araq
ee08c6eecf tries to fix the travis build 2015-10-26 14:57:22 +01:00
Magnus Jöud
f68330e672 fixed shr documentation
add docs on shr filling with zeros
2015-10-26 00:45:48 +01:00
Araq
aa36e73ecf fixes #3431, fixes #3370, fixes #3468 2015-10-25 02:22:50 +01:00
Araq
77dc0e50ff fixes #3474 2015-10-25 02:38:33 +02:00
Araq
cd7b5ae1eb fixes #1799 properly 2015-10-25 02:35:18 +02:00
Araq
c1c76a20e6 try to make travis generate the tar.xz 2015-10-25 01:29:51 +02:00
Araq
5206c310e6 fixes #1799 2015-10-25 01:26:08 +02:00
Michał Zieliński
3ecf33fa6a net.nim: destroyContext for destroying SSLContext 2015-10-24 22:48:33 +02:00
Michał Zieliński
ba61a8d00a net.nim: support for TLS-PSK ciphersuites 2015-10-24 22:17:31 +02:00
Michał Zieliński
3ebf27ddd2 net.nim: support storing arbitrary data inside SSLContext 2015-10-24 08:53:06 +02:00
Andreas Rumpf
c7eaa8ae03 Merge pull request #3470 from FedericoCeratto/patch-5
Replace "prefix" with "suffix" in endsWith doc
2015-10-23 19:36:17 +02:00
Federico Ceratto
d1bb246c20 Replace "prefix" with "suffix" in endsWith doc 2015-10-23 17:35:55 +01:00
Andreas Rumpf
1c9f05ef13 Merge pull request #3442 from Dhertz/devel
Make sure the json module decodes UTF16 correctly
2015-10-23 02:02:07 +02:00
Andreas Rumpf
ba63ea9e82 Merge pull request #3454 from jlp765/osproc
add simple example for execProcess, exeCmd, execCmdEx
2015-10-23 02:01:26 +02:00
Andreas Rumpf
2dff190512 Merge pull request #3467 from nanoant/patch/fuse-msg-api-n-use-stdout-help
Simplify msg API and always use stdout for help/usage
2015-10-22 22:49:03 +02:00
Adam Strzelecki
24731c5360 compiler/commands: Always write usage to stdout
Usage is compiler command output, not diagnostics, so we shall output it to
stdout. Also this makes: nim -h | less or nim -h | grep ... working.
2015-10-22 22:14:45 +02:00
Adam Strzelecki
acb6a36656 msgs: One msgWriteln with optional flags
Instead of msgWriteln, outWriteln and stdoutWriteln doing essentially the same.
2015-10-22 22:09:15 +02:00
Andreas Rumpf
705cdf8553 Merge pull request #3466 from nanoant/patch/remove-dead-mac-platform-code
system/dyncalls: OS X is already handled as posix
2015-10-22 21:15:31 +02:00
Andreas Rumpf
da33d5ef62 Merge pull request #3464 from yglukhov/disable-failing-tests
Fixed tests for TravisCI.
2015-10-22 21:14:54 +02:00
Adam Strzelecki
a02359b4e1 system/dyncalls: OS X is already handled as posix
So elif defined(mac) has absolutely no effect, also this block uses some legacy
discouraged NSCreateObjectFileImageFromFile function.
2015-10-22 20:40:02 +02:00
Yuriy Glukhov
e5aefbd1d4 Fixed tests for TravisCI 2015-10-22 21:34:37 +03:00
Araq
a90e23a4dd added --reportConceptFailures switch to the manual 2015-10-22 12:14:33 +02:00
Araq
9cc25f8b77 fixes #3452 2015-10-22 12:14:32 +02:00