Commit Graph

3637 Commits

Author SHA1 Message Date
xyz
aad55ae772 Add support for ioctl.
"ioctl (an abbreviation of input/output control) is a system call for device-specific input/output operations and other operations which cannot be expressed by regular system calls."
2016-01-17 13:56:41 -05:00
Michał Zieliński
26f2bb0eab add support for uint32 and uint64 in repr 2016-01-16 17:06:03 +01:00
Dominik Picheta
eb1bedc3c2 Removed redis module from standard library. 2016-01-16 14:58:12 +00:00
Andreas Rumpf
1124c61c49 Merge branch 'devel' into new-ll 2016-01-14 15:01:55 +01:00
Felix Krause
708b9f90b7 Made docgen emit valid XML by default 2016-01-11 22:52:59 +01:00
Dominik Picheta
fffdae32c7 Fixed TimeInterval bug. 2016-01-08 11:54:34 +00:00
Dominik Picheta
09b159b816 Fixed ttime test. Improved docs in times module. 2016-01-08 11:46:11 +00:00
Dominik Picheta
596d400825 Merge branch 'times_intervals' of https://github.com/jlp765/Nim into jlp765-times_intervals 2016-01-08 11:12:16 +00:00
Andreas Rumpf
cd707084d1 fixes calling convention for the callbacks 2016-01-08 12:08:32 +01:00
Yuriy Glukhov
589132065e Lexbase compatible with JS 2016-01-06 16:38:27 +02:00
Dominik Picheta
9aa60add87 Fixes docgen for lib/pure/db_common.nim.
See http://forum.nim-lang.org/t/1916.
2016-01-05 15:56:13 +00:00
Yuriy Glukhov
dee5f9ad4f osproc fix for Android 2016-01-04 12:52:54 +02:00
Andreas Rumpf
250e81ceda Merge branch 'devel' into new-ll 2015-12-29 20:45:22 +01:00
Andreas Rumpf
255177f7cd new db_sqlite requires deadCodeElim:on because not every sqlite3_column_name 2015-12-29 20:39:52 +01:00
Andreas Rumpf
72f804671d do not print spurious warnings when dlopen fails; can be re-enabled with -d:nimDebugDlOpen 2015-12-29 20:39:52 +01:00
Dominik Picheta
deef047f27 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2015-12-29 16:25:43 +00:00
Dominik Picheta
bf4c13711a Fixes incorrect Host header when using httpclient with proxy. 2015-12-29 16:25:21 +00:00
Andreas Rumpf
c1627354d1 first implementation of the new lambda-lifting pass; barely anything works 2015-12-26 00:42:30 +01:00
Dominik Picheta
cbab2ecea2 Merge pull request #3663 from def-/netbsd-fix
Fix osproc compilation on NetBSD, use workaround for missing execvpe
2015-12-25 14:30:23 +00:00
Dominik Picheta
b822d2f616 Merge pull request #3662 from def-/openbsd-fix
Fix nativesockets compilation on OpenBSD
2015-12-24 23:24:17 +00:00
Dominik Picheta
a01eb098f1 Task proc in nimscript module will now export the proc it creates. 2015-12-24 17:09:58 +00:00
def
31cc1815d1 Fix nativesockets compilation on OpenBSD and NetBSD 2015-12-23 05:59:29 +01:00
def
25e862b9bc Fix osproc compilation on NetBSD, use workaround for missing execvpe 2015-12-23 05:56:42 +01:00
Andreas Rumpf
d6fbc1425f profiling doesn't require call to enableProfiling 2015-12-18 01:50:27 +01:00
Andreas Rumpf
f75d11193a modified the integrated profiler to hopefully produce more reliable results 2015-12-18 01:47:39 +01:00
Andreas Rumpf
1386592aab implements column information retrival for db_sqlite 2015-12-17 14:39:40 +01:00
Andreas Rumpf
3313170b8d fixes InstantRow decl; implements column information retrival for db_mysql 2015-12-17 14:39:40 +01:00
Andreas Rumpf
de989e6fbd added column_table_name proc 2015-12-17 14:39:40 +01:00
Andreas Rumpf
4e157114a6 added more column information fields 2015-12-17 14:39:40 +01:00
Hans Raaf
169cb7178b Fixing mysql_field.
FIELD had the wrong size which made mysql.fetch_fields() useless.
2015-12-17 14:08:44 +01:00
Andreas Rumpf
a3c8bb9376 updated db*.nim modules 2015-12-16 21:24:13 +01:00
Andreas Rumpf
cb10f30656 big update for the db*.nim modules; uses new db_common.nim 2015-12-16 20:56:12 +01:00
Andreas Rumpf
8d5115886f Merge pull request #3635 from jlp765/odbcsql1
odbcsql.nim  and  db_odbc.nim
2015-12-16 20:55:42 +01:00
Dominik Picheta
39f78ae4f1 Merge pull request #3649 from yglukhov/nil-seq-copy
Fixed copying of nil seq in JS
2015-12-16 14:07:01 +00:00
Yuriy Glukhov
62422b93c6 Fixed copying of nil seq in JS 2015-12-16 15:25:58 +02:00
Reimer Behrends
f664c576c2 Fix code generation issues with TNimType.
This is an alternative attempt to fix issue #2841 in a way that does not
rely on non-standard C compiler behavior.

The underlying problem is that the typeinfo module includes
system/hti.nim, but system/hti.nim is also included by system.nim. The
result is that the compiler at any given point has two instances of
TNimType with the same external name and will generate code either for
one or both of them. Code generation for the second version is normally
suppressed by using {.importc.}, but that results in a missing type
declaration for modules that only use the second version. This happens
for modules that import typeinfo, because the the second component of
typeinfo.Any has type PNimType = ptr TNimType, which generates a
"TNimType *" struct member.

The previous solution was to have a typedef for TNimType in nimbase.h;
however, this results in duplicate typedefs (specifically, but not only
for the code generated for typeinfo.nim). Duplicate typedefs with the
same type name are allowed in C++ and C11, but are explicitly forbidden
in C89 and C99. Modern versions of gcc and clang accept them anyway, but
this is not standard-compliant and may break for other C compilers or
older versions of gcc and clang.

This patch attempts to fix the issue by making the second component of
typeinfo.Nim a pointer instead of a PNimType and casting back and forth
as needed. Thus, the second version of TNimType occurs only within the
code for typeinfo.nim, where it can be safely omitted.
2015-12-15 13:33:38 +01:00
qio-io
135668a7ba Fixing too many open files on quit command with an explicit socket close, and importing the net module 2015-12-13 15:36:26 -04:00
JamesP
e731777853 add SQLErr (mapped to SQLError in odbc lib)
Add some SQLGetInfo consts

Fix SQLSetEnvAttr parameter
2015-12-09 14:28:49 +10:00
JamesP
16d7db47aa add db_odbc library module 2015-12-09 14:02:28 +10:00
Yuriy Glukhov
5545d36330 Fixed getAddrInfo on android 2015-12-08 12:30:38 +02:00
JamesP
8af8f7673b add timeinterval helping functions as per issue #3609
add tests to ttime.nim for timeinterval add/subtract functionality

Changed assert to doAssert in ttime.nim
Added extra tests to ttime.nim
Removal of singular help procs for working with TimeIntervals
Added TimeIin proc toSeconds(a: TimeInfo, interval: TimeInterval) where subtracting a year gave wrong results
Add overflow of units on initInterval eg, 65 seconds is 5 seconds and 1 minute
2015-12-08 10:16:42 +10:00
xiongxin
f3d578245b 7 div 5 == 1
7 div 5 == 1
2015-12-08 00:48:24 +08:00
Dominik Picheta
6f09282352 Merge pull request #3570 from juanfra684/patch-1
OpenBSD doesn't support AI_V4MAPPED
2015-12-04 15:29:56 +00:00
Dominik Picheta
60b23d1f7a Merge pull request #3595 from dfdeshom/devel
Print out more detailed error messages when compilation fails
2015-12-04 15:27:06 +00:00
Dominik Picheta
8e38510aff Merge pull request #3617 from FedericoCeratto/3611
Fix fsmonitor filter logic, add test. Closes: #3611
2015-12-04 15:17:03 +00:00
Federico Ceratto
97540b2ce4 Fix typo, minor rephrasing. 2015-12-03 15:57:55 +00:00
Sqwishy Trick
16b2f4a76f Using low() instead of high() in example for low() procedure 2015-12-02 20:59:34 -08:00
Araq
760242b870 removes 'x is iterator' special casing in the language 2015-12-03 01:08:03 +01:00
Federico Ceratto
05b856df23 Closes: #3611 2015-12-02 16:05:50 +00:00
JamesP
def25504e8 Add comment at end of file on where to find further tests 2015-12-01 23:05:37 +10:00