Billingsly Wetherfordshire
e1fa19fa7a
Update os.nim
...
added file/dirExists synonyms for existsFile/dir
2013-12-23 12:58:22 -06:00
Billingsly Wetherfordshire
b3057be2c9
Update endians.nim
...
adds swapEndian16 function
2013-12-23 11:52:11 -06:00
Araq
b76729df1c
Merge branch 'master' of https://github.com/Araq/Nimrod into vm2
...
Conflicts:
web/news.txt
2013-12-23 01:23:16 +01:00
Araq
9145bcfbb6
new VM: some progress for the FFI support
2013-12-23 01:17:48 +01:00
Michał Zieliński
bdb5c4ad35
Introduce poEvalCommand, poUsePath, fix remaining quoting issues.
...
- poUsePath is now an alias for poUseShell.
- poEvalCommand should be used when shell evaluation is really needed.
It passes `command` directly to shell/winapi. Requires `args` parameter
to be empty.
2013-12-21 18:46:51 +01:00
Michał Zieliński
3503f1ca33
Normalize whitespace in osproc.nim.
2013-12-21 18:05:19 +01:00
Grzegorz Adam Hankiewicz
7a05b108d5
Renames configuration file to new pattern. Refs #720 .
2013-12-21 11:44:17 +01:00
Andreas Rumpf
259d205ff6
Merge pull request #759 from zielmicha/stdmsg
...
Write tracebacks to stderr instead of stdout.
2013-12-20 09:42:39 -08:00
Clay Sweetser
9de92522a6
Further fixes (stupid kdiff automerge)
2013-12-18 16:04:43 -05:00
Clay Sweetser
c26e787e5d
os.nim - Modify removeFile to use native Windows API calls
2013-12-18 15:32:26 -05:00
Michał Zieliński
74a63c004f
Rework CGI error reporting.
...
- remove 'undocumented' stackTraceNL
- add 'undocumented' errorMessageWriter
- make printing errors for browser optional (for security)
2013-12-18 18:15:39 +01:00
Clay Sweetser
ab2eb884a0
Modified os.removeFile to act correctly when deleting a file that doesn't exist.
2013-12-17 18:03:08 -05:00
Andreas Rumpf
20c69dac9e
Merge pull request #737 from zielmicha/quote-shell
...
quoteIfContainsWhite -> quoteShell
2013-12-16 12:32:14 -08:00
Araq
8c553fa8a2
Merge branch 'master' into vm2
2013-12-13 15:58:03 +01:00
Michał Zieliński
39cabcdd27
Use quoteShell in stdlib, where appropriate.
2013-12-11 22:27:39 +01: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
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
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
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
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
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
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
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
5eba93d584
Merge branch 'master' into vm2
...
Conflicts:
compiler/sem.nim
2013-12-05 00:03:27 +01:00
Grzegorz Adam Hankiewicz
6e451d4f33
Merge pull request #695 from gradha/pr_adds_htmlparser_example
...
Adds an example to htmlparser showing how to save changes.
2013-12-02 15:13:40 -08:00
Grzegorz Adam Hankiewicz
dc9e17503e
Makes htmlparser handle whitespace. Refs #694 .
...
Without the flag, htmlparser will ignore some significant whitespace in
HTML files. A more correct fix would be to not reuse the xml parser
since the rules for HTML are slightly different, but this will do for
the moment.
2013-12-02 20:55:55 +01:00
Grzegorz Adam Hankiewicz
f91a34c9e6
Adds an example to htmlparser showing how to save changes.
2013-11-30 21:03:41 +01:00
Araq
0d193a446b
updated fsmonitor module
2013-11-30 03:28:31 +01:00
Araq
9035d15ed2
next steps for FFI support
2013-11-25 13:04:11 +01:00
Araq
98cf1c412a
garbage-in-garbage-out principle for unicode errors; fixes #674
2013-11-19 14:39:27 +01:00
Araq
619356dd08
bugfix: '$' for TPort
2013-11-19 14:06:39 +01:00
Andreas Rumpf
a3163aa2cf
Merge pull request #677 from gradha/pr_fixes_times_calculation
...
Fixes times.toSeconds to handle hours and minutes correctly.
2013-11-19 02:31:58 -08:00
Grzegorz Adam Hankiewicz
d037aec415
Fixes times.toSeconds to handle hours and minutes correctly.
2013-11-17 21:31:05 +01:00
Erik O'Leary
1a6742e651
Fixed http header parsing issue
...
If second half of http header line was empty, server would crash with
EInvalidIndex
https://gist.github.com/onionhammer/7487452
2013-11-15 10:47:25 -06:00
Erik O'Leary
b5965d05a2
Added timestamp to TIRCEvent
2013-11-13 13:20:45 -06:00
Araq
993cdb82b6
Merge branch 'master' of github.com:Araq/Nimrod
2013-10-31 22:34:15 +01:00
Araq
eb72857ea2
added $ for oids
2013-10-31 22:30:59 +01:00
Andreas Rumpf
528f972d17
Merge pull request #631 from mflamer/master
...
LockFree Hash Table 0.1
2013-10-31 13:43:19 -07:00