Merge pull request #2428 from arnetheduck/comp-lib-ropes

Comp lib ropes
This commit is contained in:
Andreas Rumpf 2015-04-06 00:32:08 +02:00
commit 99e0fb90e0
15 changed files with 200 additions and 189 deletions

View file

@ -105,7 +105,7 @@ proc validateExternCName(s: PSym, info: TLineInfo) =
## Valid identifiers are those alphanumeric including the underscore not
## starting with a number. If the check fails, a generic error will be
## displayed to the user.
let target = ropeToStr(s.loc.r)
let target = $s.loc.r
if target.len < 1 or target[0] notin IdentStartChars or
not target.allCharsInSet(IdentChars):
localError(info, errGenerated, "invalid exported symbol")