mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
tests repaired; serious typo in the allocator fixed; fixes #32
This commit is contained in:
683
doc/theindex.txt
683
doc/theindex.txt
File diff suppressed because it is too large
Load Diff
@@ -561,7 +561,7 @@ proc alloc(allocator: var TMemRegion, size: int): pointer =
|
||||
result = cast[pointer](cast[TAddress](result) +% sizeof(TFreeCell))
|
||||
|
||||
proc alloc0(allocator: var TMemRegion, size: int): pointer =
|
||||
result = alloc(size)
|
||||
result = alloc(allocator, size)
|
||||
zeroMem(result, size)
|
||||
|
||||
proc dealloc(allocator: var TMemRegion, p: pointer) =
|
||||
|
||||
@@ -4501,3 +4501,7 @@ proc G_TYPE_VALUE_ARRAY*(): GType =
|
||||
|
||||
proc G_TYPE_GSTRING*(): GType =
|
||||
result = g_gstring_get_type()
|
||||
|
||||
proc g_thread_init*(vtable: pointer) {.
|
||||
cdecl, dynlib: gobjectlib, importc: "g_thread_init".}
|
||||
|
||||
|
||||
@@ -16872,6 +16872,9 @@ proc set_do_overwrite_confirmation*(chooser: PFileChooser,
|
||||
proc get_realized*(w: PWidget): gboolean {.cdecl, dynlib: lib,
|
||||
importc: "gtk_widget_get_realized".}
|
||||
|
||||
proc set_skip_taskbar_hint*(window: PWindow, setting: gboolean){.cdecl,
|
||||
dynlib: lib, importc: "gtk_window_set_skip_taskbar_hint".}
|
||||
|
||||
proc nimrod_init*() =
|
||||
var
|
||||
cmdLine{.importc: "cmdLine".}: array[0..255, cstring]
|
||||
|
||||
@@ -6,7 +6,7 @@ proc walkDirTree(root: string) =
|
||||
for k, f in walkDir(root):
|
||||
case k
|
||||
of pcFile, pcLinkToFile: echo(f)
|
||||
of pcDirectory: walkDirTree(f)
|
||||
of pcLinkToDirectory: nil
|
||||
of pcDir: walkDirTree(f)
|
||||
of pcLinkToDir: nil
|
||||
|
||||
walkDirTree(".")
|
||||
|
||||
@@ -3,7 +3,7 @@ import os
|
||||
proc rec_dir(dir: string): seq[string] =
|
||||
result = @[]
|
||||
for kind, path in walk_dir(dir):
|
||||
if kind == pcDirectory:
|
||||
if kind == pcDir:
|
||||
add(result, rec_dir(path))
|
||||
else:
|
||||
add(result, path)
|
||||
|
||||
@@ -7,7 +7,7 @@ proc main(filter: string) =
|
||||
for filename in walkFiles(filter):
|
||||
writeln(stdout, filename)
|
||||
|
||||
for key, val in iterOverEnvironment():
|
||||
for key, val in envPairs():
|
||||
writeln(stdout, key & '=' & val)
|
||||
|
||||
main("*.nim")
|
||||
|
||||
@@ -2,7 +2,7 @@ discard """
|
||||
file: "txmlgen.nim"
|
||||
output: "<h1><a href=\"http://force7.de/nimrod\">Nimrod</a></h1>"
|
||||
"""
|
||||
import xmlgen
|
||||
import htmlgen
|
||||
|
||||
var nim = "Nimrod"
|
||||
echo h1(a(href="http://force7.de/nimrod", nim))
|
||||
|
||||
@@ -32,7 +32,7 @@ srcdoc: "pure/complex;pure/times;pure/osproc;pure/pegs;pure/dynlib"
|
||||
srcdoc: "pure/parseopt;pure/hashes;pure/strtabs;pure/lexbase"
|
||||
srcdoc: "pure/parsecfg;pure/parsexml;pure/parsecsv;pure/parsesql"
|
||||
srcdoc: "pure/streams;pure/terminal;pure/cgi;impure/web;pure/unicode"
|
||||
srcdoc: "impure/zipfiles;pure/xmlgen;pure/parseutils;pure/browsers"
|
||||
srcdoc: "impure/zipfiles;pure/htmlgen;pure/parseutils;pure/browsers"
|
||||
srcdoc: "impure/db_postgres;impure/db_mysql;impure/db_sqlite"
|
||||
srcdoc: "pure/httpserver;pure/httpclient;pure/smtp;impure/ssl"
|
||||
srcdoc: "pure/ropes;pure/unidecode/unidecode;pure/xmldom;pure/xmldomparser"
|
||||
|
||||
Reference in New Issue
Block a user