backfix for 0.19.4 and macro fix, let to const
This commit is contained in:
parent
6854a0886a
commit
e84cb1dba9
3 changed files with 12 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.4.16"
|
version = "0.4.17"
|
||||||
author = "Stefan Salewski"
|
author = "Stefan Salewski"
|
||||||
description = "High level GObject-Introspection based GTK3 bindings"
|
description = "High level GObject-Introspection based GTK3 bindings"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
const RecSep = "!" # Record separator for entries in gisup.nim, also defined in gen.nim
|
const RecSep = "!" # Record separator for entries in gisup.nim, also defined in gen.nim
|
||||||
|
|
||||||
# caution: $$ due to string interpolation
|
# caution: $$ due to string interpolation
|
||||||
let ct4nt = [
|
const ct4nt = [
|
||||||
"int32|int",
|
"int32|int",
|
||||||
"uint32|int",
|
"uint32|int",
|
||||||
"gboolean|toBool",
|
"gboolean|toBool",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# High level gobject-introspection based GTK3 bindings for the Nim programming language
|
# High level gobject-introspection based GTK3 bindings for the Nim programming language
|
||||||
# v 0.4.12 2019-APR-14
|
# v 0.4.17 2019-APR-16
|
||||||
# (c) S. Salewski 2018
|
# (c) S. Salewski 2018
|
||||||
|
|
||||||
# https://wiki.gnome.org/Projects/GObjectIntrospection
|
# https://wiki.gnome.org/Projects/GObjectIntrospection
|
||||||
|
|
@ -115,11 +115,11 @@ var priList: seq[string]
|
||||||
var knownSyms: HashSet[string]
|
var knownSyms: HashSet[string]
|
||||||
var suppressType = false
|
var suppressType = false
|
||||||
var suppressRaise = false
|
var suppressRaise = false
|
||||||
var droppedSyms = initHashSet[string]()
|
var droppedSyms = initSet[string]()
|
||||||
var callerAlloc = initHashSet[string]()
|
var callerAlloc = initSet[string]()
|
||||||
var callerAllocCollector = initHashSet[string]()
|
var callerAllocCollector = initSet[string]()
|
||||||
var privStr = initHashSet[string]()
|
var privStr = initSet[string]()
|
||||||
var processedFunctions = initHashSet[string]()
|
var processedFunctions = initSet[string]()
|
||||||
var delayedMethods: seq[(GIBaseInfo, GIFunctionInfo)]
|
var delayedMethods: seq[(GIBaseInfo, GIFunctionInfo)]
|
||||||
var classList: seq[GIBaseInfo]
|
var classList: seq[GIBaseInfo]
|
||||||
var ct: CountTable[string]
|
var ct: CountTable[string]
|
||||||
|
|
@ -1801,11 +1801,11 @@ proc main(namespace: string) =
|
||||||
var error: GError
|
var error: GError
|
||||||
ct = initCountTable[string]()
|
ct = initCountTable[string]()
|
||||||
var delayedSyms = newSeq[GIBaseInfo]()
|
var delayedSyms = newSeq[GIBaseInfo]()
|
||||||
allSyms = initHashSet[string]()
|
allSyms = initSet[string]()
|
||||||
provInt.clear
|
provInt.clear
|
||||||
interfaceProvider.clear
|
interfaceProvider.clear
|
||||||
var ig = initHashSet[string]()
|
var ig = initSet[string]()
|
||||||
knownSyms = initHashSet[string]()
|
knownSyms = initSet[string]()
|
||||||
let gi = gIrepositoryGetDefault()
|
let gi = gIrepositoryGetDefault()
|
||||||
assert(gi != nil)
|
assert(gi != nil)
|
||||||
moduleNamespace = namespace.toLowerAscii
|
moduleNamespace = namespace.toLowerAscii
|
||||||
|
|
@ -2143,7 +2143,7 @@ proc get$1*(builder: Builder; name: string): $1 =
|
||||||
echo gBaseInfoGetName(el[1])
|
echo gBaseInfoGetName(el[1])
|
||||||
|
|
||||||
# when isMainModule:
|
# when isMainModule:
|
||||||
#scfilter = initHashSet[string]()
|
#scfilter = initSet[string]()
|
||||||
supmod = newStringStream()
|
supmod = newStringStream()
|
||||||
supmod.writeLine("const\n SCA = [")
|
supmod.writeLine("const\n SCA = [")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue