about summary refs log tree commit diff stats
path: root/code/directory.rb
Commit message (Expand)AuthorAgeFilesLines
* commit 632d6ae done right (refresh dirs when entering)hut2009-07-191-0/+4
* bugfix: list_dir_first was ignored in previews sometimeshut2009-07-191-0/+2
* bugfixes, todohut2009-07-191-1/+1
* fixed bug 16 (incorrect sorting pointer)hut2009-07-191-3/+12
* improved sorting a bit, (DRY, threadsafe)hut2009-07-181-6/+5
* renamed option "dir_first" to "list_dir_first"hut2009-07-181-1/+1
* show 'lost+found' folder if &show_hidden is onhut2009-07-181-1/+1
* bugfix concerning multithreadinghut2009-07-181-8/+9
* option to show ascii only and replace non-ascii with *hut2009-07-031-1/+1
* put options where they belong. in a config filehut2009-07-031-5/+5
* correct free space display for drives with long mount point nameshut2009-07-031-1/+1
* padding of main column by 3 charactershut2009-06-291-1/+6
* show free disk spacehut2009-06-181-0/+13
* detached entry from directory into a seperate filehut2009-06-121-143/+15
* mooohut2009-06-111-2/+2
* wiphut2009-06-111-2/+1
* more generic require systemhut2009-06-111-0/+1
* lots of changes. version 0.2.1 v0.2.1hut2009-05-091-0/+350
im?h=devel&id=5602183234f59ece4fd668915da848f0753cbbb9'>560218323 ^
e13cd40e2 ^
252eea8ca ^
560218323 ^
e13cd40e2 ^
560218323 ^
e13cd40e2 ^
252eea8ca ^
e13cd40e2 ^
252eea8ca ^
e13cd40e2 ^
252eea8ca ^
252eea8ca ^

560218323 ^


252eea8ca ^





































560218323 ^
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




                                                 
                                                                                                                                                                             
                                                                           
                                                                                             
                    


                                         
                                                                          


                                                                            
                                                                                                                               
                                                                            
                                                                                                             
                                                                             
                                                               
                                                                                                                                     
                                                                             
                                                                                                                   
                                                                             
                                                         
                                                                                                                              
                                                                           
                                                                                                                              
                                                                           

   


 





































                                                    
 
discard """
  action: reject
  cmd: '''nim check --hints:off $options $file'''
  nimoutFull: true
  nimout: '''
tproc_mismatch.nim(38, 52) Error: type mismatch: got <proc (a: int, c: float){.cdecl, noSideEffect, gcsafe.}> but expected 'proc (a: int, c: float){.closure, noSideEffect.}'
  Calling convention mismatch: got '{.cdecl.}', but expected '{.closure.}'.
tproc_mismatch.nim(42, 6) Error: type mismatch: got <proc (){.inline, noSideEffect, gcsafe.}>
but expected one of:
proc bar(a: proc ())
  first type mismatch at position: 1
  required type for a: proc (){.closure.}
  but expression 'fn1' is of type: proc (){.inline, noSideEffect, gcsafe.}
  Calling convention mismatch: got '{.inline.}', but expected '{.closure.}'.

expression: bar(fn1)
tproc_mismatch.nim(46, 8) Error: type mismatch: got <proc (){.inline, noSideEffect, gcsafe.}> but expected 'proc (){.closure.}'
  Calling convention mismatch: got '{.inline.}', but expected '{.closure.}'.
tproc_mismatch.nim(51, 8) Error: type mismatch: got <proc ()> but expected 'proc (){.closure, noSideEffect.}'
  Calling convention mismatch: got '{.nimcall.}', but expected '{.closure.}'.
  Pragma mismatch: got '{..}', but expected '{.noSideEffect.}'.
tproc_mismatch.nim(55, 8) Error: type mismatch: got <proc (a: int){.noSideEffect, gcsafe.}> but expected 'proc (a: float){.closure.}'
  Calling convention mismatch: got '{.nimcall.}', but expected '{.closure.}'.
tproc_mismatch.nim(64, 9) Error: type mismatch: got <proc (a: int)> but expected 'proc (a: int){.closure, gcsafe.}'
  Calling convention mismatch: got '{.nimcall.}', but expected '{.closure.}'.
  Pragma mismatch: got '{..}', but expected '{.gcsafe.}'.
tproc_mismatch.nim(72, 9) Error: type mismatch: got <proc (a: int): int{.nimcall.}> but expected 'proc (a: int): int{.cdecl.}'
  Calling convention mismatch: got '{.nimcall.}', but expected '{.cdecl.}'.
tproc_mismatch.nim(73, 9) Error: type mismatch: got <proc (a: int): int{.cdecl.}> but expected 'proc (a: int): int{.nimcall.}'
  Calling convention mismatch: got '{.cdecl.}', but expected '{.nimcall.}'.
'''
"""



block: # CallConv mismatch
  func a(a: int, c: float) {.cdecl.} = discard
  var b: proc(a: int, c: float) {.noSideEffect.} = a
block: # Parameter CallConv mismatch
  proc fn1() {.inline.} = discard
  proc bar(a: proc()) = discard
  bar(fn1)
block: # CallConv mismatch
  proc fn1() {.inline.} = discard
  var fn: proc()
  fn = fn1
block: # Pragma mismatch
  var a = ""
  proc fn1() = a.add "b"
  var fn: proc() {.noSideEffect.}
  fn = fn1
block: # Fail match not do to Pragma or CallConv
  proc fn1(a: int) = discard
  var fn: proc(a: float)
  fn = fn1
block: # Infered noSideEffect assign
  type Foo = ref object
    x0: int
  var g0 = Foo(x0: 1)
  proc fn1(a: int) = g0.x0 = a
  var fn2: proc(a: int)
  var fn3: proc(a: int) {.gcsafe.}
  fn2 = fn1
  fn3 = fn1
block: # Indrection through pragmas
  {.pragma: inl1, inline.}
  {.pragma: inl2, inline.}
  {.pragma: p1, nimcall.}
  {.pragma: p2, cdecl.}
  var fn1: proc(a: int): int {.inl1, p1.}
  var fn2: proc(a: int): int {.inl2, p2.}
  fn2 = fn1
  fn1 = fn2