Commit 314717f036bab4ad7bb32ecbd5fe5050fa99c996

Authored by Göran Krampe
1 parent bde894cf

Fixed proper capitalizations of category/class names

Showing 1 changed file with 3 additions and 3 deletions
src/squeaknim.nim
... ... @@ -84,9 +84,9 @@ template writeExternalLibrary*() =
84 84 "\tinstanceVariableNames: ''\C" &
85 85 "\tclassVariableNames: ''\C" &
86 86 "\tpoolDictionaries: ''\C" &
87   - "\tcategory: '$1'!\C" &
  87 + "\tcategory: '$2'!\C" &
88 88 "!$1 class methodsFor: 'primitives' stamp: 'SqueakNim'!\C",
89   - gPrefix & capitalize(dllName))
  89 + gPrefix & capitalize(dllName), capitalize(dllName))
90 90  
91 91 template writeSmallTalkCode*(filename: string) =
92 92 ## You need to invoke this template to write the produced SmallTalk code to
... ... @@ -190,6 +190,6 @@ macro wrapObject*(typ: stmt): stmt =
190 190 "\t^#(\C" &
191 191 "$3\C" &
192 192 "\t)! !\C" &
193   - "$1 defineFields.\C!\C\C") % [name, dllName, fields]
  193 + "$1 defineFields.\C!\C\C") % [name, capitalize(dllName), fields]
194 194 stCode.add(st)
195 195 result = newStmtList()
... ...