Commit Graph

11210 Commits

Author SHA1 Message Date
Michał Zieliński
39cabcdd27 Use quoteShell in stdlib, where appropriate. 2013-12-11 22:27:39 +01:00
Andreas Rumpf
efc0d8557a Merge pull request #736 from Varriount/os/fix-windows-removefile
Fixed skipFile proc to not skip files that merely start with '.'
2013-12-11 13:20:38 -08:00
Clay Sweetser
33ffe60864 Fixed skipFile proc to not skip files that merely start with '.'
Modified removeFile to reset the read only attribute on files before trying to delete.
2013-12-11 16:16:14 -05:00
Michał Zieliński
c363197275 Deprecate quoteIfContainsWhite in favor of osproc.quoteShell. 2013-12-10 23:00:01 +01:00
Michał Zieliński
b8072bd22e add quoteShell to osproc.nim 2013-12-10 22:56:29 +01:00
Andreas Rumpf
9848f82c03 Merge pull request #730 from zielmicha/fix-parameters
Make parseopt correct (and based on seq[string] as parameters, not string)
2013-12-10 11:53:58 -08:00
Michał Zieliński
8561ef5bc8 use parseopt2 in parseopt2 test 2013-12-10 20:48:18 +01:00
Michał Zieliński
1472b46708 Merge old parseopt.nim into fix-parameters 2013-12-10 20:42:32 +01:00
Michał Zieliński
2e0da6a5c6 Make old parseopt as deprecated. 2013-12-10 20:41:52 +01:00
Michał Zieliński
088d472662 rename new parseopt to parseopt2 2013-12-10 20:33:51 +01:00
Michał Zieliński
896766ae2c Fix : and = precedence in parseopt. 2013-12-10 19:10:06 +01:00
Grzegorz Adam Hankiewicz
016b1e0068 Merge pull request #732 from gradha/pr_reverts_quoting_changes
Reverts "Make quoteIfContainsWhite quote…". Refs #702.
2013-12-10 08:54:05 -08:00
Grzegorz Adam Hankiewicz
da05cf51de Reverts "Make quoteIfContainsWhite quote…". Refs #702.
This reverts commit e7e8c77062 to avoid
tool breakage. A different approach is being worked on #730.
2013-12-10 17:50:47 +01:00
Zahary Karadjov
7120491d05 in successful compilations with verbosity:0, all output is suppressed (useful for combing with --run) 2013-12-10 01:49:30 +02:00
Michał Zieliński
b4716e3b5b Merge branch 'master' of https://github.com/Araq/Nimrod into fix-parameters 2013-12-09 23:38:19 +01:00
Michał Zieliński
d1f3512aba Reimplement parseopt which parses arguments given as a sequence of strings, not single string. 2013-12-09 23:29:16 +01:00
Zahary Karadjov
14dd3113a2 fix computed dynlib names; fixes #718 2013-12-09 23:06:11 +02:00
Michał Zieliński
8dae664159 Add commandLineParams to os.nim.
commandLineParams returns seq of arguments given to program on command line.
2013-12-09 21:45:42 +01:00
Grzegorz Adam Hankiewicz
9486670e93 Merge pull request #727 from gradha/pr_recovers_windows_code
Revert "removed windows". Refs #698.
2013-12-09 09:29:49 -08:00
Grzegorz Adam Hankiewicz
8468e2af3a Revert "removed windows". Refs #698.
This reverts commit 5ab3d66144.
2013-12-09 18:28:11 +01:00
Michał Zieliński
642a0d5563 Normalize whitespace in os.nim.
I can't edit it - trick with asking git to ignore whitespace doesn't
work if I need to change indention level.
2013-12-09 18:03:36 +01:00
Zahary Karadjov
95a6e01ea8 Merge branch 'master' of github.com:Araq/Nimrod into upstream 2013-12-09 00:26:04 +02:00
Zahary Karadjov
de3b7cd413 progress towards adding negative type classes
[unittest bugfixes]
the block form of check now allows comments
errors when inspecting the arguments of var-accepting procs
2013-12-09 00:09:03 +02:00
Grzegorz Adam Hankiewicz
7e9f158494 Merge pull request #721 from gradha/pr_doc_fixes
Doc fixes
2013-12-08 13:45:48 -08:00
Grzegorz Adam Hankiewicz
89215ba6d0 Updates configuration for recent lib removals. Refs #698. 2013-12-08 21:18:06 +01:00
Grzegorz Adam Hankiewicz
410fcf7f52 Fixes strutils reference in macro tutorial. 2013-12-08 18:33:19 +01:00
Grzegorz Adam Hankiewicz
2c315690f2 Merge pull request #717 from gradha/pr_fixes_minor_doc_mistakes
Fixes minor doc mistakes.
2013-12-08 03:56:00 -08:00
Grzegorz Adam Hankiewicz
8526d29365 Adds missing `s` to sligthly odd sentence. 2013-12-08 12:52:54 +01:00
Grzegorz Adam Hankiewicz
53c0012a83 Fixes link to manual in bold section.
Nested inline markup is not possible at the moment, see
http://stackoverflow.com/a/9645684/172690. Maybe this would be a useful
extension to have in nimrod's custom rst engine?
2013-12-08 12:49:21 +01:00
Araq
29357ab556 more tests are green 2013-12-08 01:47:07 +01:00
Michał Zieliński
febe71b99a Merge branch 'master' of github.com:zielmicha/Nimrod 2013-12-07 23:10:04 +01:00
Andreas Rumpf
5cdfa4b1af Merge pull request #702 from zielmicha/master
Make quoteIfContainsWhite quote argument, so it can be safely passed to shell.
2013-12-07 13:59:50 -08:00
Michał Zieliński
e7e8c77062 Make quoteIfContainsWhite quote argument, so it can be safely passed to shell.
On Windows put it in double quotes and escape double quotes using backslash.
On Posix put it in single quotes and escape single quotes using '"'"'.

This commit changes what quoteIfContainsWhite does, but before that change it
was used incorrectly all over standard library, which caused security issues.
2013-12-07 22:56:02 +01:00
Zahary Karadjov
208924b929 fixes #708
It's unclear to me why for variables were treated as globals.
This is likely to cause many problems, but in this particular case
it was breaking the unittest/insepectArgs recursive function (the
for loop variable has a different value in each stack frame)
2013-12-07 21:23:22 +02:00
Zahary Karadjov
1e26047c3b adding some provisions for writing lower-level unit tests targeting specific sub-systems of the compiler
see sigmatch as an example.
tests are compiled only when the compiler is compiled with -d:selftest
to execute them, just run the resulting binary without arguments
2013-12-07 20:30:44 +02:00
Araq
430c8d8b52 new VM supports 'getAst' 2013-12-06 20:29:37 +01:00
Araq
4ffe6a8282 new VM: passes more tests 2013-12-06 01:48:02 +01:00
Araq
3560827a28 makes 'reject' tests green 2013-12-05 11:28:45 +01:00
Araq
c0a3d44060 bugfix: keywords are sorted 2013-12-05 10:45:36 +01:00
Araq
5eba93d584 Merge branch 'master' into vm2
Conflicts:
	compiler/sem.nim
2013-12-05 00:03:27 +01:00
Grzegorz Adam Hankiewicz
ed760c0397 Merge pull request #706 from hiteshjasani/master
Add docs for connecting to postgres with keyword/value connection.
2013-12-04 14:25:03 -08:00
Hitesh Jasani
20661c9c46 Add docs for connecting to postgres with keyword/value connection
strings.
2013-12-04 14:01:25 -05:00
Andreas Rumpf
2264875237 Merge pull request #698 from fowlmouth/smallstdlib
removed x11
2013-12-04 07:52:22 -08:00
Araq
32d2327be0 don't use memset for temps unless necessary 2013-12-03 13:30:58 +01:00
fowlmouth
5ab3d66144 removed windows 2013-12-03 00:14:20 -06:00
fowlmouth
dc27f87257 removed deprecated libraries from nimrod.cfg 2013-12-02 23:48:22 -06:00
fowlmouth
4f0eeaa55e fixes compiler.lists.bringToFront 2013-12-02 23:47:56 -06:00
Araq
5cb60ffbe0 Merge branch 'master' of github.com:Araq/Nimrod 2013-12-03 01:59:59 +01:00
Araq
fe983b1309 fixes a regression where memset was used without including <string.h> 2013-12-03 01:59:38 +01:00
Grzegorz Adam Hankiewicz
0628d85a6a Merge pull request #676 from gradha/pr_expands_macro_tutorial
Expands tutorial macro section with step by step guide.
2013-12-02 15:15:09 -08:00