From 6632d85e5f1120784b3eb0a7ab8be0792ba27b85 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 5 Sep 2018 21:21:59 -0400 Subject: stage1: improve handling of generic fn proto type expr closes #902 --- src/analyze.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 58fe9e7392..aa4fda7624 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1013,7 +1013,7 @@ bool calling_convention_does_first_arg_return(CallingConvention cc) { return cc == CallingConventionUnspecified; } -static const char *calling_convention_name(CallingConvention cc) { +const char *calling_convention_name(CallingConvention cc) { switch (cc) { case CallingConventionUnspecified: return "undefined"; case CallingConventionC: return "ccc"; @@ -1037,7 +1037,7 @@ static const char *calling_convention_fn_type_str(CallingConvention cc) { zig_unreachable(); } -static bool calling_convention_allows_zig_types(CallingConvention cc) { +bool calling_convention_allows_zig_types(CallingConvention cc) { switch (cc) { case CallingConventionUnspecified: case CallingConventionAsync: -- cgit v1.2.3