about summary refs log tree commit diff stats
path: root/config.def.h
Commit message (Expand)AuthorAgeFilesLines
...
* made tag names snappierAnselm R Garbe2008-02-291-1/+1
* removed initags -- we autoselect the first tag in each view insteadanselm@anselm12008-02-281-1/+0
* some more changes towards a better dwmAnselm R Garbe2008-02-281-1/+1
* proceeded, though we still miss a real Tag structanselm@anselm12008-02-271-2/+4
* disabled AIM_XINERAMAanselm@anselm12008-02-261-1/+1
* simplified dwmanselm@anselm12008-02-261-2/+2
* pushing my changes of tonight upstream (hg tip is NOW very UNSTABLE -- but th...anselm@anselm12008-02-231-7/+7
* changed arrange functions to contain the Monitor as first argumentAnselm R Garbe2008-02-211-1/+1
* proceeded with multihead/Xinerama supportanselm@anselm12007-12-221-5/+5
* removed maximize, there will be monocle soonanselm@anselm12007-12-221-1/+0
* fixed wrong tagging stuffanselm@anselm12007-12-221-1/+1
* added dmenu_run to config.hanselm@anselm12007-12-221-2/+1
* simplified Mod-mAnselm R. Garbe2007-12-091-1/+1
* implemented reapply for re-applying the tagging rules during runtime, Mod-rAnselm R. Garbe2007-12-081-0/+1
* Using a new tags definition (const char [][MAXTAGLEN] - thanks go to Szabolcs!Anselm R. Garbe2007-11-101-58/+57
* moved LENGTH to dwm.c, moved prevtags to dwm.carg@suckless.org2007-11-071-4/+0
* revival of RESIZEHINTSAnselm R. Garbe2007-11-021-0/+1
* replaced Nmacros with LENGTH(x) macroAnselm R. Garbe2007-10-281-6/+5
* replaced ISTILE with domwfact/dozoom bools, removed nrules, nlayouts and ltid...Anselm R. Garbe2007-10-281-1/+3
* going toward 4.7Anselm R. Garbe2007-10-271-0/+3
* removed RESIZEHINTS and enhanced tile for fixed or aspect-ratio'ed clientsarg@suckless.org2007-10-241-1/+0
* added antoszka's viewprev patch with some minor modifications, restored Clien...Anselm R. Garbe2007-10-101-0/+1
* removing NULL-terminating **tags definition in config.hAnselm R. Garbe2007-10-051-1/+1
* s/xterm/uxterm/Anselm R. Garbe2007-10-011-1/+1
* fixed font definitionAnselm R. Garbe2007-10-011-1/+1
* applied Peter Hartlich's border collapse patchAnselm R. Garbe2007-09-301-7/+7
* fixed colorsAnselm R. Garbe2007-09-271-3/+3
* updated with my favorite colorschemeAnselm R. Garbe2007-09-261-7/+6
* applied colors depend from lavishs proposalAnselm R. Garbe2007-09-251-6/+6
* switching to white normal bg, renaming tag 9 into www, for static use in conj...Anselm R. Garbe2007-09-231-9/+9
* renamed config.h into config.def.h, config.h will be created if not present, ...Anselm R. Garbe2007-09-231-0/+94
div>
9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
9d27e966 ^
03d50cc8 ^
9d27e966 ^
ee9a9237 ^
dd9ba09a ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
03d50cc8 ^
6030d7e2 ^
03d50cc8 ^
ee9a9237 ^
6030d7e2 ^

33e7c3a7 ^
ee9a9237 ^
6030d7e2 ^


57628c0e ^


e0ffdcd1 ^

57628c0e ^
6030d7e2 ^
9b16f190 ^
6030d7e2 ^

4224ec81 ^
e0ffdcd1 ^
03d50cc8 ^
9b16f190 ^
15ae0717 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

                          
       


                                                                                                                                                 
 
                     
                              
                   


                                              
              
                                    
                      


                                                                                                                                                                  
                                
                         
 
                                                    
                                                                             
              

                                                                                                                                                                       
                      
               


                                        

                                                                                                                                                                             
                             

                                                                                                                                                                           
                             
                   

                           
              
                          
                      
                                                                                                                                                                  
              
                                        
                                   
                       
                             
                   
                                                                                                                                                                             

                           
              
                          
                      
                                                                                                                                                                  
                                 
                   

                           
              
                          
                      
                                                                                                                                                                  
                                 
                                                                                                                                                                                    
                      
                         

                 
                 
              


                                                                                                                                                                       


       

                                                         
        
          
           

              
 
                                            
                  
           
 
                            
# Rudimentary test harness

== code
#   instruction                     effective address                                                   register    displacement    immediate
# . op          subop               mod             rm32          base        index         scale       r32
# . 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes

Entry:  # manual test
    # check-ints-equal(34, 34)
    # . . push args
    68/push  "error in check-ints-equal"/imm32
    68/push  34/imm32
    68/push  34/imm32
    # . . call
    e8/call  check-ints-equal/disp32
    # . . discard args
    81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               0xc/imm32         # add to ESP
    # syscall(exit, 0)
    bb/copy-to-EBX  0/imm32
    b8/copy-to-EAX  1/imm32/exit
    cd/syscall  0x80/imm8

# print msg to stderr if a != b, otherwise print "."
check-ints-equal:  # (a : int, b : int, msg : (address array byte)) -> <void>
    # . prolog
    55/push-EBP
    89/copy                         3/mod/direct    5/rm32/EBP    .           .             .           4/r32/ESP   .               .                 # copy ESP to EBP
    # . save registers
    50/push-EAX
    51/push-ECX
    53/push-EBX
    # load first 2 args into EAX and EBX
    8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           0/r32/EAX   8/disp8         .                 # copy *(EBP+8) to EAX
    8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           3/r32/EBX   0xc/disp8       .                 # copy *(EBP+12) to EBX
    # if (EAX == EBX) success
    39/compare                      3/mod/direct    0/rm32/EAX    .           .             .           3/r32/EBX   .               .                 # compare EAX and EBX
    75/jump-if-unequal  $check-ints-equal:else/disp8
    # . _write(2/stderr, '.')
    # . . push args
    68/push  "."/imm32
    68/push  2/imm32/stderr
    # . . call
    e8/call  _write/disp32
    # . . discard args
    81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
    # . return
    eb/jump  $check-ints-equal:end/disp8
    # otherwise print error message
$check-ints-equal:else:
    # . _write(2/stderr, msg)
    # . . push args
    8b/copy                         1/mod/*+disp8   5/rm32/EBP    .           .             .           1/r32/ECX   0x10/disp8      .                 # copy *(EBP+16) to ECX
    51/push-ECX
    68/push  2/imm32/stderr
    # . . call
    e8/call  _write/disp32
    # . . discard args
    81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
    # . _write(2/stderr, Newline)
    # . . push args
    68/push  Newline/imm32
    68/push  2/imm32/stderr
    # . . call
    e8/call  _write/disp32
    # . . discard args
    81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
    # increment Num-test-failures
    ff          0/subop/increment   0/mod/indirect  5/rm32/.disp32            .             .           .           Num-test-failures/disp32          # increment *Num-test-failures
$check-ints-equal:end:
    # . restore registers
    5b/pop-to-EBX
    59/pop-to-ECX
    58/pop-to-EAX
    # . epilog
    89/copy                         3/mod/direct    4/rm32/ESP    .           .             .           5/r32/EBP   .               .                 # copy EBP to ESP
    5d/pop-to-EBP
    c3/return

== data

# length-prefixed string containing just a single newline
# convenient to have when printing messages and so on
Newline:
    # size
    1/imm32
    # data
    0a/newline

# every test failure increments this counter
Num-test-failures:
    0/imm32

# . . vim:nowrap:textwidth=0