about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* fixed typoAnselm R.Garbe2006-08-081-1/+1
* it always takes a while until one sticks to a colorscheme, but this one feels...Anselm R.Garbe2006-08-081-1/+1
* default colors are bestAnselm R.Garbe2006-08-081-3/+3
* without borders it looks cleanerAnselm R.Garbe2006-08-081-2/+2
* red is easier to my eyes with ffffaa bgAnselm R.Garbe2006-08-081-2/+2
* using a better colorscheme (ffffaa is the best background for black)Anselm R.Garbe2006-08-081-2/+2
* applied Sanders tiny patchesAnselm R.Garbe2006-08-084-7/+8
* removed some "arg@10ksloc.org2006-08-071-4/+4
* I really only need 3 tagsarg@10ksloc.org2006-08-071-17/+11
* added a trailing '.' to shortcut descriptions in dwm(1)arg@10ksloc.org2006-08-071-15/+15
* changed signature of drawtextarg@10ksloc.org2006-08-071-12/+10
* applied grabbing-- and shell_minimalarg@10ksloc.org2006-08-072-9/+1
* updated screenshot sectionarg@10ksloc.org2006-08-071-1/+2
* changed font size, I'm not blind...arg@10ksloc.org2006-08-071-2/+2
* small fix of a commentarg@10ksloc.org2006-08-071-1/+1
* typo fixarg@10ksloc.org2006-08-071-1/+1
* applied Sanders man page/Makefile patcharg@10ksloc.org2006-08-072-2/+2
* settle with greyarg@10ksloc.org2006-08-071-2/+2
* next version is 0.8arg@10ksloc.org2006-08-071-1/+1
* made my colors tasting better with the backgroundarg@10ksloc.org2006-08-071-3/+3
* status box should have a border in my eyesarg@10ksloc.org2006-08-072-2/+2
* next attempt for w on black switcharg@10ksloc.org2006-08-071-4/+4
* Added tag 0.7 for changeset 3fb41412e2492f66476d92ce8f007a8b48fb1d2aarg@10ksloc.org2006-08-071-0/+1
* prepared dwm.html 0.7arg@10ksloc.org2006-08-071-3/+6
* added stripping to dwm target in Makefilearg@10ksloc.org2006-08-071-0/+1
* changed getproto, maybe that might fix the killclient issue reported on the listarg@10ksloc.org2006-08-071-2/+3
* applied endless loop prevention on zoom()arg@10ksloc.org2006-08-071-1/+3
* updated man pagearg@10ksloc.org2006-08-071-0/+2
* small fix of the last commitarg@10ksloc.org2006-08-051-1/+1
* using -Os again, zoom is ignored in floating mode or on floating clientsarg@10ksloc.org2006-08-052-2/+2
* mouse grab needs also to grab for combinations of numlock/lockmaskarg@10ksloc.org2006-08-051-0/+20
* slight fixarg@10ksloc.org2006-08-051-3/+2
* small performance tweak ;)arg@10ksloc.org2006-08-041-2/+4
* fixed xterm font change (all other related apps should work fine with this fi...arg@10ksloc.org2006-08-041-14/+12
* fixed view-change bug reported on the listarg@10ksloc.org2006-08-041-14/+10
* no need for -g anymore, regexp matching works nowarg@10ksloc.org2006-08-041-4/+4
* fixed dmenu link (thx to deifl)arg@10ksloc.org2006-08-041-1/+1
* switched to regexp matching for Rulesarg@10ksloc.org2006-08-046-31/+65
* fixed a bug in dmenu callarg@10ksloc.org2006-08-042-6/+3
* using execl now, argv changed, using cmd and const char defs directly in the ...arg@10ksloc.org2006-08-044-18/+18
* added dmenu to dwm.htmlarg@10ksloc.org2006-08-041-0/+4
* small stylistic fixarg@10ksloc.org2006-08-041-1/+2
* removed CONFIGarg@10ksloc.org2006-08-031-3/+2
* make config.h not a time dependencearg@10ksloc.org2006-08-031-1/+1
* removed rm config.h from cleanarg@10ksloc.org2006-08-031-1/+1
* added gmake compliancearg@10ksloc.org2006-08-031-2/+2
* s/tag2/two/garg@10ksloc.org2006-08-032-4/+4
* applied Jukka's diffarg@10ksloc.org2006-08-031-4/+5
* applied Sanders Makefile patcharg@10ksloc.org2006-08-031-26/+20
* stylistic chnagearg@10ksloc.org2006-08-032-4/+4
"w"> bb = chr(ord(bb) + (ord('a') - ord('A'))) result = ord(aa) - ord(bb) if (result != 0) or (aa == '\0'): break inc(i) inc(j) if result == 0: if a[i] != '\0': result = 1 proc cmpExact(a, b: cstring, blen: int): int = var i = 0 var j = 0 result = 1 while j < blen: var aa = a[i] var bb = b[j] result = ord(aa) - ord(bb) if (result != 0) or (aa == '\0'): break inc(i) inc(j) if result == 0: if a[i] != '\0': result = 1 proc getIdent*(ic: IdentCache; identifier: cstring, length: int, h: Hash): PIdent = var idx = h and high(ic.buckets) result = ic.buckets[idx] var last: PIdent = nil var id = 0 while result != nil: if cmpExact(cstring(result.s), identifier, length) == 0: if last != nil: # make access to last looked up identifier faster: last.next = result.next result.next = ic.buckets[idx] ic.buckets[idx] = result return elif cmpIgnoreStyle(cstring(result.s), identifier, length) == 0: assert((id == 0) or (id == result.id)) id = result.id last = result result = result.next new(result) result.h = h result.s = newString(length) for i in 0..<length: result.s[i] = identifier[i] result.next = ic.buckets[idx] ic.buckets[idx] = result if id == 0: inc(ic.wordCounter) result.id = -ic.wordCounter else: result.id = id proc getIdent*(ic: IdentCache; identifier: string): PIdent = result = getIdent(ic, cstring(identifier), identifier.len, hashIgnoreStyle(identifier)) proc getIdent*(ic: IdentCache; identifier: string, h: Hash): PIdent = result = getIdent(ic, cstring(identifier), identifier.len, h) proc newIdentCache*(): IdentCache = result = IdentCache() result.idAnon = result.getIdent":anonymous" result.wordCounter = 1 result.idDelegator = result.getIdent":delegator" result.emptyIdent = result.getIdent("") # initialize the keywords: for s in succ(low(specialWords))..high(specialWords): result.getIdent(specialWords[s], hashIgnoreStyle(specialWords[s])).id = ord(s) proc whichKeyword*(id: PIdent): TSpecialWord = if id.id < 0: result = wInvalid else: result = TSpecialWord(id.id)