summary refs log tree commit diff stats
path: root/tinyc/win32/include/math.h
Commit message (Expand)AuthorAgeFilesLines
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
* tiny C support; cosmetic improvements for the docsAraq2010-08-281-0/+438
d5656c856f05be4604adaeaa'>4f1b89c30 ^
e25474154 ^




3005955d2 ^
e25474154 ^
d68181246 ^
07d465ca4 ^
e25474154 ^
b97a7dbf3 ^
9e6fb3f69 ^
8ca5b71c6 ^
b97a7dbf3 ^
8ca5b71c6 ^

826c1e2d7 ^
e25474154 ^
8ca5b71c6 ^

d68181246 ^

e25474154 ^
8ca5b71c6 ^
328e7a100 ^
3005955d2 ^
1056f9ecf ^

c94647aec ^
d68181246 ^
091c1b307 ^
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

 
                            
                                         




                                                   
                                       
 
      
                                                      
 
                                                  
 
    
                                         

                     
                                                             
                                       

                                                    

                                                             
            
                             
                             
                                                                              

                                                                              
                                                                 
 
                                                                           
#
#
#           The Nim Compiler
#        (c) Copyright 2012 Andreas Rumpf
#
#    See the file "copying.txt", included in this
#    distribution, for details about the copyright.
#

## implements some little helper passes

import
  ast, passes, idents, msgs, options, idgen, lineinfos

from modulegraphs import ModuleGraph, PPassContext

type
  VerboseRef = ref object of PPassContext
    config: ConfigRef

proc verboseOpen(graph: ModuleGraph; s: PSym): PPassContext =
  #MessageOut('compiling ' + s.name.s);
  result = VerboseRef(config: graph.config)
  rawMessage(graph.config, hintProcessing, s.name.s)

proc verboseProcess(context: PPassContext, n: PNode): PNode =
  result = n
  let v = VerboseRef(context)
  if v.config.verbosity == 3:
    # system.nim deactivates all hints, for verbosity:3 we want the processing
    # messages nonetheless, so we activate them again (but honor cmdlineNotes)
    v.config.setNote(hintProcessing)
    message(v.config, n.info, hintProcessing, $idgen.gFrontEndId)

const verbosePass* = makePass(open = verboseOpen, process = verboseProcess)