aboutsummaryrefslogtreecommitdiff
path: root/src/Experiments/NewPipeline
diff options
context:
space:
mode:
authorGravatar Jason Gross <jagro@google.com>2018-06-28 15:49:46 -0400
committerGravatar Jason Gross <jasongross9@gmail.com>2018-07-03 19:28:55 -0400
commitcf96d549c0f06bf1044d435bc7238288e2211024 (patch)
tree6af245c538dcfb550cf813a4abf55a29a7f700c0 /src/Experiments/NewPipeline
parent71d9873cd3a75b6b7b830ecc15ae179be52c3660 (diff)
static in c
Diffstat (limited to 'src/Experiments/NewPipeline')
-rw-r--r--src/Experiments/NewPipeline/CStringification.v7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Experiments/NewPipeline/CStringification.v b/src/Experiments/NewPipeline/CStringification.v
index 9d4d55362..6072d8ce6 100644
--- a/src/Experiments/NewPipeline/CStringification.v
+++ b/src/Experiments/NewPipeline/CStringification.v
@@ -1840,8 +1840,7 @@ Module Compilers.
:: (List.map (fun s => " " ++ s)%string (to_strings prefix body)))
++ ["}"])%list.
- (** TODO: Allow "static" to be configurable? *)
- Definition ToFunctionLines (static := true) (prefix : string) (name : string)
+ Definition ToFunctionLines (static : bool) (prefix : string) (name : string)
{t}
(e : @Compilers.expr.Expr base.type ident.ident t)
(name_list : option (list string))
@@ -1869,14 +1868,14 @@ Module Compilers.
: string
:= String.concat String.NewLine lines.
- Definition ToFunctionString (prefix : string) (name : string)
+ Definition ToFunctionString (static : bool) (prefix : string) (name : string)
{t}
(e : @Compilers.expr.Expr base.type ident.ident t)
(name_list : option (list string))
(inbounds : type.for_each_lhs_of_arrow ZRange.type.option.interp t)
(outbounds : ZRange.type.option.interp (type.final_codomain t))
: (string * ident_infos) + string
- := match ToFunctionLines prefix name e name_list inbounds outbounds with
+ := match ToFunctionLines static prefix name e name_list inbounds outbounds with
| inl (ls, used_types) => inl (LinesToString ls, used_types)
| inr err => inr err
end.