From 314717f036bab4ad7bb32ecbd5fe5050fa99c996 Mon Sep 17 00:00:00 2001 From: Göran Krampe Date: Tue, 10 Mar 2015 13:34:40 +0100 Subject: [PATCH] Fixed proper capitalizations of category/class names --- src/squeaknim.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/squeaknim.nim b/src/squeaknim.nim index cb1a08a..7eb258d 100644 --- a/src/squeaknim.nim +++ b/src/squeaknim.nim @@ -84,9 +84,9 @@ template writeExternalLibrary*() = "\tinstanceVariableNames: ''\C" & "\tclassVariableNames: ''\C" & "\tpoolDictionaries: ''\C" & - "\tcategory: '$1'!\C" & + "\tcategory: '$2'!\C" & "!$1 class methodsFor: 'primitives' stamp: 'SqueakNim'!\C", - gPrefix & capitalize(dllName)) + gPrefix & capitalize(dllName), capitalize(dllName)) template writeSmallTalkCode*(filename: string) = ## You need to invoke this template to write the produced SmallTalk code to @@ -190,6 +190,6 @@ macro wrapObject*(typ: stmt): stmt = "\t^#(\C" & "$3\C" & "\t)! !\C" & - "$1 defineFields.\C!\C\C") % [name, dllName, fields] + "$1 defineFields.\C!\C\C") % [name, capitalize(dllName), fields] stCode.add(st) result = newStmtList() -- libgit2 0.22.2