about summary refs log tree commit diff stats
path: root/src/tools/http_common.c
Commit message (Expand)AuthorAgeFilesLines
* Get rid of asprintf and _GNU_SOURCE defineMichael Vetter2021-03-301-2/+0
* Add config.h in files were it was missingMichael Vetter2021-03-261-0/+2
* Move unique_filename_from_url functions to commonWilliam Wennerström2020-12-041-19/+0
* Fix stubs and move some tests to http_commonWilliam Wennerström2020-11-161-16/+12
* Move common http tool code to http_commonWilliam Wennerström2020-11-161-0/+98
n> ^
6251c2c5 ^

ab6ed192 ^
05d17773 ^
ab6ed192 ^
05d17773 ^
1185ccc9 ^
6251c2c5 ^

01aeedd9 ^









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

                                                                            
                 




                                      

                                             

                                        

                                                
                                                              
                                                              
                                                              
                                                                
                             

        









                                                
//: Allow mu programs to log facts just like we've been doing in C++ so far.

:(scenario trace)
recipe main [
  trace [foo], [this is a trace in mu]
]
+foo: this is a trace in mu

:(before "End Primitive Recipe Declarations")
TRACE,
:(before "End Primitive Recipe Numbers")
Recipe_number["trace"] = TRACE;
:(before "End Primitive Recipe Implementations")
case TRACE: {
  assert(is_literal(current_instruction().ingredients.at(0)));
  string label = current_instruction().ingredients.at(0).name;
  assert(is_literal(current_instruction().ingredients.at(1)));
  string message = current_instruction().ingredients.at(1).name;
  trace(1, label) << message;
  break;
}

:(before "End Primitive Recipe Declarations")
HIDE_WARNINGS,
:(before "End Primitive Recipe Numbers")
Recipe_number["hide-warnings"] = HIDE_WARNINGS;
:(before "End Primitive Recipe Implementations")
case HIDE_WARNINGS: {
  Hide_warnings = true;
  break;
}