summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix options module to use new import namedef2015-11-231-2/+2
|
* Update comment about `map` being in system moduledef2015-11-231-6/+3
|
* Fix loop index bug in scan for a[s] in b[s..s+len2-1].Charles Blake2015-11-191-1/+1
| | | | | | a, b must both be indexed starting from s after the common prefix "strip" phase. This resolves issue 3477: https://github.com/nim-lang/Nim/issues/3477
* fixes #3541Araq2015-11-181-2/+1
|
* Add 'auto-decoration' to nimGetProcAddrjyelon2015-11-111-1/+6
| | | | | | | | | | | | | | Maintainers of win32 DLLs can opt to provide libraries with 'decorated' function names (Google "stdcall name decoration"). To pull a function pointer out of one of these DLLs, you have to pass a decorated name to getProcAddress. This is painful for the authors of NIM DLL wrappers - they have to pass manually-decorated strings to "importc", but only on win32. This commit adds auto-decoration to nimGetProcAddress. This function will probe the DLL for the undecorated name, and if that fails, it will automatically add decoration and try again. That way, the author of the wrapper doesn't have to deal with it.
* Prevent Exported C procedure collisionsVarriount2015-11-111-2/+2
| | | Prevents collisions between those C externalized procedures in parseopt and parseopt2.
* Merge pull request #3514 from vegansk/3513_pgsql_prepstatDominik Picheta2015-11-111-6/+2
|\ | | | | Fixed issue 3513: wrong setupQuery realization
| * Fixed issue 3513: wrong setupQuery realizationAnatoly Galiulin2015-11-061-6/+2
| |
* | fixes newly introduced oswalkdir moduleAraq2015-11-101-3/+14
| |
* | added oswalkdir.nim for the JS targetAraq2015-11-101-0/+16
| |
* | os.walkDir is available at compile timeAraq2015-11-101-41/+49
| |
* | added prefix matching to critbits.nimAraq2015-11-101-16/+24
| |
* | Fix osproc.closewt2015-11-101-3/+4
| |
* | Merge pull request #3504 from Matt14916/xmlparser-entitiesDominik Picheta2015-11-081-11/+18
|\ \ | |/ |/| Create entity nodes with xmlparser, add a test to xmlparser
| * Add a test to xmlparserMatt Sullivan2015-10-311-12/+19
| |
| * Create entity nodes with xmlparserMatt Sullivan2015-10-301-1/+1
| |
* | Nimscript fixes 'cpFile' typoAraq2015-11-031-1/+1
| |
* | Merge pull request #3490 from oderwat/osx-libiconvAndreas Rumpf2015-11-011-10/+4
|\ \ | | | | | | Removed libiconv prefix (on OS X) to make encodings compile on OS X.
| * | Removed libiconv prefix (on OS X) to make encodings compile on OS X.Hans Raaf2015-10-281-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Use nanoseconds for timeouts less than 1 second on Mac OS X.Dominik Picheta2015-11-011-1/+3
| | |
* | | Fix poll's timeout for Mac OS X in the seletors module.Dominik Picheta2015-11-011-1/+1
| |/ |/|
* | development version is 0.12.1, not 0.12.0Araq2015-10-291-1/+1
| |
* | Add serach for libssl.so without version suffix.Łukasz Dubiel2015-10-291-1/+1
|/
* Merge branch 'devel'Dominik Picheta2015-10-27238-63236/+16961
|\
| * Prep for v0.12.0Dominik Picheta2015-10-271-2/+2
| |
| * Merge pull request #3475 from mjoud/shrdocDominik Picheta2015-10-271-4/+5
| |\ | | | | | | fixed shr documentation
| | * fixed shr documentationMagnus Jöud2015-10-261-4/+5
| | | | | | | | | | | | add docs on shr filling with zeros
| * | Improved postgres docs and added untestable tests.Dominik Picheta2015-10-271-43/+42
| | |
| * | fix doco by removing extra ` chars, change a word andJamesP2015-10-271-7/+7
| | | | | | | | | | | | line up multi-line text
| * | add doco outlining the two SQL parameter substitution mechanisms for the ↵JamesP2015-10-271-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | setupQuery() with SqlQuery take parameter substitution with "?"JamesP2015-10-271-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | tryExec() with SqlQuery now takes "?" substitution parametersJamesP2015-10-271-5/+11
| | | | | | | | | | | | | | | | | | add tryExec() with SqlPrepared parameter exec() with SqlQuery now expects "?" parameter substitution
| * | add check to dbFormat() to verify parameter substitution has "?" identifierJamesP2015-10-271-0/+4
| | | | | | | | | | | | add check to prepare() that parameter substitution has "$1" identifier
| * | added an assertionAraq2015-10-271-1/+3
| |/
| * fixes #3474Araq2015-10-251-1/+1
| |
| * Merge pull request #3442 from Dhertz/develAndreas Rumpf2015-10-231-8/+32
| |\ | | | | | | Make sure the json module decodes UTF16 correctly
| | * Add UTF-16 decoding tests to json moduleDaniel Hertz2015-10-131-3/+7
| | |
| | * Make sure the json module decodes UTF16 correctlyDaniel Hertz2015-10-131-5/+25
| | | | | | | | | | | | | | | | | | | | | Javascript uses UTF-16 as its internal representation of strings, so JSON does so as well. This means that we could have surrogate pairs, with codepoints above 0xFFFF that take 2 ecape codes to decode.
| * | Merge pull request #3454 from jlp765/osprocAndreas Rumpf2015-10-231-0/+14
| |\ \ | | | | | | | | add simple example for execProcess, exeCmd, execCmdEx
| | * | add simple example for execProcess, exeCmd, execCmdExJamesP2015-10-161-0/+14
| | | |
| * | | system/dyncalls: OS X is already handled as posixAdam Strzelecki2015-10-221-36/+0
| | | | | | | | | | | | | | | | | | | | So elif defined(mac) has absolutely no effect, also this block uses some legacy discouraged NSCreateObjectFileImageFromFile function.
| * | | documentation improvements; system.nim docs adapted to unix's braindead idea ↵Araq2015-10-211-8/+0
| | | | | | | | | | | | | | | | of how software should be packaged which didn't work in 1970 and surprise doesn't work in 2015 either
| * | | fixes wrong doc commentsAraq2015-10-191-4/+4
| | | |
| * | | make terminal.nim work with --app:guiAraq2015-10-191-2/+4
| | | |
| * | | createThread is more convenient to use with a proc taking no argumentsAraq2015-10-191-0/+3
| | | |
| * | | added poDemon flag for process managementAraq2015-10-192-4/+8
| | | |
| * | | add example to proc headings forJamesP2015-10-191-2/+42
| | | | | | | | | | | | | | | | addr, and, or, xor, div, mod, shl, cmp, setLen
| * | | terminal: Support both styled stdout and stderrAdam Strzelecki2015-10-161-118/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is important if we want to write styled diagnostics to stderr, eg. some tool outputting results to stdout, but writing styled error messages to stderr. Previously this module was assuming we are writing only to stdout. Now all module procs take file handle as first argument. Wrappers assuming stdout are provided for backwards compatibility. The new terminal.styledWriteLine(f, args) is provided and documented as counterpart for unstyled plain writeLine(f, args).
| * | | terminal: Remove superflous hStdout = conHandleAdam Strzelecki2015-10-161-17/+13
| |/ / | | | | | | | | | Use just hStdout on Windows to keep handle to process stdout.
| * | Merge pull request #3437 from nim-lang/threadpool-isreadyAndreas Rumpf2015-10-151-0/+11
| |\ \ | | | | | | | | Implement isReady procedure in threadpool module.