Merge branch 'devel' of https://github.com/Araq/Nim into devel
This commit is contained in:
commit
4754d2dcbd
7 changed files with 20 additions and 10 deletions
|
|
@ -24,7 +24,7 @@ proc execute*(program: string) =
|
||||||
when hasFFI: defineSymbol("nimffi")
|
when hasFFI: defineSymbol("nimffi")
|
||||||
registerPass(verbosePass)
|
registerPass(verbosePass)
|
||||||
registerPass(semPass)
|
registerPass(semPass)
|
||||||
registerPass(vmPass)
|
registerPass(evalPass)
|
||||||
|
|
||||||
appendStr(searchPaths, options.libpath)
|
appendStr(searchPaths, options.libpath)
|
||||||
compileSystemModule()
|
compileSystemModule()
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ hint[LineTooLong]=off
|
||||||
@end
|
@end
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@if macosx:
|
@if macosx or freebsd:
|
||||||
cc = clang
|
cc = clang
|
||||||
tlsEmulation:on
|
tlsEmulation:on
|
||||||
gcc.options.always = "-w -fasm-blocks"
|
gcc.options.always = "-w -fasm-blocks"
|
||||||
|
|
|
||||||
|
|
@ -468,12 +468,16 @@ Windows specific
|
||||||
|
|
||||||
* `windows <windows.html>`_
|
* `windows <windows.html>`_
|
||||||
Contains a wrapper for the Win32 API.
|
Contains a wrapper for the Win32 API.
|
||||||
|
* `winlean <winlean.html>`_
|
||||||
|
Contains a wrapper for a small subset of the Win32 API.
|
||||||
* `shellapi <shellapi.html>`_
|
* `shellapi <shellapi.html>`_
|
||||||
Contains a wrapper for the ``shellapi.h`` header.
|
Contains a wrapper for the ``shellapi.h`` header.
|
||||||
* `shfolder <shfolder.html>`_
|
* `shfolder <shfolder.html>`_
|
||||||
Contains a wrapper for the ``shfolder.h`` header.
|
Contains a wrapper for the ``shfolder.h`` header.
|
||||||
* `mmsystem <mmsystem.html>`_
|
* `mmsystem <mmsystem.html>`_
|
||||||
Contains a wrapper for the ``mmsystem.h`` header.
|
Contains a wrapper for the ``mmsystem.h`` header.
|
||||||
|
* `psapi <psapi.html>`_
|
||||||
|
Contains a wrapper for the ``psapi.h`` header.
|
||||||
* `nb30 <nb30.html>`_
|
* `nb30 <nb30.html>`_
|
||||||
This module contains the definitions for portable NetBIOS 3.0 support.
|
This module contains the definitions for portable NetBIOS 3.0 support.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1313,9 +1313,9 @@ Slices
|
||||||
------
|
------
|
||||||
|
|
||||||
Slices look similar to subranges types in syntax but are used in a different
|
Slices look similar to subranges types in syntax but are used in a different
|
||||||
context. A slice is just an object of type TSlice which contains two bounds,
|
context. A slice is just an object of type Slice which contains two bounds,
|
||||||
`a` and `b`. By itself a slice is not very useful, but other collection types
|
`a` and `b`. By itself a slice is not very useful, but other collection types
|
||||||
define operators which accept TSlice objects to define ranges.
|
define operators which accept Slice objects to define ranges.
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -417,10 +417,12 @@ proc generateSymbolIndex(symbols: seq[TIndexEntry]): string =
|
||||||
result = ""
|
result = ""
|
||||||
var i = 0
|
var i = 0
|
||||||
while i < symbols.len:
|
while i < symbols.len:
|
||||||
result.addf("<dt><span>$1:</span></dt><ul class=\"simple\"><dd>\n",
|
let keyword= symbols[i].keyword
|
||||||
[symbols[i].keyword])
|
let cleaned_keyword = keyword[1..keyword.high - 1]
|
||||||
|
result.addf("<dt><a name=\"$2\" href=\"#$2\"><span>$1:</span></a></dt><ul class=\"simple\"><dd>\n",
|
||||||
|
[keyword, cleaned_keyword])
|
||||||
var j = i
|
var j = i
|
||||||
while j < symbols.len and symbols[i].keyword == symbols[j].keyword:
|
while j < symbols.len and keyword == symbols[j].keyword:
|
||||||
let
|
let
|
||||||
url = symbols[j].link
|
url = symbols[j].link
|
||||||
text = if not symbols[j].linkTitle.isNil: symbols[j].linkTitle else: url
|
text = if not symbols[j].linkTitle.isNil: symbols[j].linkTitle else: url
|
||||||
|
|
|
||||||
|
|
@ -157,8 +157,6 @@ elif defined(linux):
|
||||||
|
|
||||||
var evSet: set[Event] = {}
|
var evSet: set[Event] = {}
|
||||||
if (s.events[i].events and EPOLLERR) != 0: evSet = evSet + {EvError}
|
if (s.events[i].events and EPOLLERR) != 0: evSet = evSet + {EvError}
|
||||||
if (s.events[i].events and EPOLLHUP) != 0: evSet = evSet + {EvError}
|
|
||||||
if (s.events[i].events and EPOLLRDHUP) != 0: evSet = evSet + {EvError}
|
|
||||||
if (s.events[i].events and EPOLLIN) != 0: evSet = evSet + {EvRead}
|
if (s.events[i].events and EPOLLIN) != 0: evSet = evSet + {EvRead}
|
||||||
if (s.events[i].events and EPOLLOUT) != 0: evSet = evSet + {EvWrite}
|
if (s.events[i].events and EPOLLOUT) != 0: evSet = evSet + {EvWrite}
|
||||||
let selectorKey = s.fds[fd]
|
let selectorKey = s.fds[fd]
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,16 @@ case $uos in
|
||||||
myos="linux"
|
myos="linux"
|
||||||
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
|
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
|
||||||
;;
|
;;
|
||||||
*freebsd* | *dragonfly* )
|
*dragonfly* )
|
||||||
myos="freebsd"
|
myos="freebsd"
|
||||||
LINK_FLAGS="$LINK_FLAGS -lm"
|
LINK_FLAGS="$LINK_FLAGS -lm"
|
||||||
;;
|
;;
|
||||||
|
*freebsd* )
|
||||||
|
myos="freebsd"
|
||||||
|
CC="clang"
|
||||||
|
LINKER="clang"
|
||||||
|
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
|
||||||
|
;;
|
||||||
*openbsd* )
|
*openbsd* )
|
||||||
myos="openbsd"
|
myos="openbsd"
|
||||||
LINK_FLAGS="$LINK_FLAGS -lm"
|
LINK_FLAGS="$LINK_FLAGS -lm"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue