tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
parent
ac9c1cd6b9
commit
e80465dacf
372 changed files with 4486 additions and 4486 deletions
|
|
@ -18,21 +18,21 @@ type
|
|||
FOwnerDocument: PDocument # Read-Only
|
||||
FParentNode: PNode # Read-Only
|
||||
prefix*: string # Setting this should change some values... TODO!
|
||||
|
||||
|
||||
PElement* = ref Element
|
||||
Element = object of Node
|
||||
FTagName: string # Read-only
|
||||
|
||||
|
||||
PCharacterData = ref CharacterData
|
||||
CharacterData = object of Node
|
||||
data*: string
|
||||
|
||||
|
||||
PDocument* = ref Document
|
||||
Document = object of Node
|
||||
FImplementation: PDOMImplementation # Read-only
|
||||
FDocumentElement: PElement # Read-only
|
||||
|
||||
PAttr* = ref Attr
|
||||
|
||||
PAttr* = ref Attr
|
||||
Attr = object of Node
|
||||
FName: string # Read-only
|
||||
FSpecified: bool # Read-only
|
||||
|
|
@ -44,22 +44,22 @@ type
|
|||
|
||||
PText* = ref Text
|
||||
Text = object of CharacterData
|
||||
|
||||
|
||||
PComment* = ref Comment
|
||||
Comment = object of CharacterData
|
||||
|
||||
|
||||
PCDataSection* = ref CDataSection
|
||||
CDataSection = object of Text
|
||||
|
||||
|
||||
PProcessingInstruction* = ref ProcessingInstruction
|
||||
ProcessingInstruction = object of Node
|
||||
data*: string
|
||||
FTarget: string # Read-only
|
||||
|
||||
proc `namespaceURI=`*(n: var PNode, value: string) =
|
||||
proc `namespaceURI=`*(n: var PNode, value: string) =
|
||||
n.FNamespaceURI = value
|
||||
|
||||
proc main =
|
||||
|
||||
proc main =
|
||||
var n: PNode
|
||||
new(n)
|
||||
n.namespaceURI = "test"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ proc p(a: PObj) =
|
|||
proc q(a: var PObj) =
|
||||
a.p()
|
||||
|
||||
var
|
||||
var
|
||||
a: PObj
|
||||
new(a)
|
||||
q(a)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ type
|
|||
status*: TStatusEnum
|
||||
desc*: string
|
||||
hash*: string
|
||||
|
||||
|
||||
proc initStatus*(): TStatus =
|
||||
result.status = sUnknown
|
||||
result.desc = ""
|
||||
|
|
@ -49,7 +49,7 @@ proc `$`*(status: TStatusEnum): string =
|
|||
return "csource generation succeeded"
|
||||
of sUnknown:
|
||||
return "unknown"
|
||||
|
||||
|
||||
proc makeCommitPath*(platform, hash: string): string =
|
||||
return platform / "nim_" & hash.substr(0, 11) # 11 Chars.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue