commit before ov-res changes
This commit is contained in:
parent
2fb8ced454
commit
902bf05879
4 changed files with 37 additions and 23 deletions
|
|
@ -16,7 +16,7 @@ import
|
|||
|
||||
type
|
||||
TIdObj* = object of TObject
|
||||
id*: int # unique id; use this for comparisons and not the pointers
|
||||
id*: int # unique id; use this for comparisons and not the pointers
|
||||
|
||||
PIdObj* = ref TIdObj
|
||||
PIdent* = ref TIdent
|
||||
|
|
@ -48,8 +48,8 @@ proc cmpIgnoreStyle(a, b: cstring, blen: int): int =
|
|||
result = 1
|
||||
while j < blen:
|
||||
while a[i] == '_': inc(i)
|
||||
while b[j] == '_':
|
||||
inc(j) # tolower inlined:
|
||||
while b[j] == '_': inc(j)
|
||||
# tolower inlined:
|
||||
aa = a[i]
|
||||
bb = b[j]
|
||||
if (aa >= 'A') and (aa <= 'Z'): aa = chr(ord(aa) + (ord('a') - ord('A')))
|
||||
|
|
@ -129,4 +129,4 @@ proc getIdent(identifier: cstring, length: int, h: THash): PIdent =
|
|||
result.id = - wordCounter
|
||||
else:
|
||||
result.id = id # writeln('new word ', result.s);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue